GithubHelp home page GithubHelp logo

templates's Issues

How to use pdf2write.sh ?

I'm somewhat new to al this so how do I make this script actually convert a pdf to png? If I run it nothing much happens nor can i specify a file.
If I run it in terminal I get
Converting PDF to images...
I/O Error: Couldn't open file 'out': No such file or directory.
convert-im6.q16: no images defined 'out-%03d.png' @ error/convert.c/ConvertImageCommand/3258.
No page images found: make sure pdftoppm (from poppler-utils) or imagemagick and ghostscript are installed

pdf2write.sh generates blank pages on Mac OS

Hi all,

as said in the subject, I tried to use the pdf2write.sh script that you suggest to write on PDFs (also thanks for suggesting the alternative software in the FAQ, but still I wanted to try), it seems to partially work because it recognizes the PDF file and it generates a number of pages equal to the original file, but the problem is that the pages are completely empty.

Perhaps this script was not tested in Mac OS? or perhaps some of the engines/tools used by the script do not work on Mac OS? Perhaps it would work if I select some specific options (like the image format, resolution, etc.)?

Unfortunately I cannot give you more information so far because apparently the script does not print any error message, it behaves as everything has been done correctly, but the PDF pages are empty.

Many thanks for your great work and your great tool, from a MacOS user with an external tablet/dispay with a stylus...

UPDATE: I looked inside the generated SVGZ file, and it seems there are actually several <image> tags (as many as the number of PDF pages) with some base64-encoded data inside (are the newline characters supposed to be there?), but they appear blank when I open the file. I paste one of the <image> tags partially here:

<image x="0" y="0" width="1239" height="1754" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACa8AAA20CAQAAABSEOvjAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAA
ASwAAAEsAHOI6VIAAAAHdElNRQfkBg0NKR/9vd8EAAAKeHpUWHRSYXcgcHJvZmlsZSB0eXBlIGlj
YwAAWIWdl22SZKkNRf+zCi+BTwktBwSK8P434ENWd0+33TNjOyuIzHoPhJCu7hXpn+7pH3zqUEn5
...
VDExOjQxOjMxKzAyOjAwol32wwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wNi0xM1QxMTo0MToz
MSswMjowMNMATn8AAAAmdEVYdHBkZjpIaVJlc0JvdW5kaW5nQm94ADU5NC45Nng4NDIuMDQrMCsw
7wuGawAAABR0RVh0cGRmOlZlcnNpb24AUERGLTEuMyBTBqy/AAAAAElFTkSuQmCC
"/>

Feature request

It would be interesting to have a black or green background. Simulating blackboards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.