Today, my girlfriend had to create an Ebook (in pdf) using some images acquired from a scanner (using xsane). After searching a while on google how to do that I remembered that ImageMagick was the tool to manipulate images, so I gave it a try. Luckily (for me) it worked!
After this brief introduction, it’s time to share the two-steps solution with you.
Acquire the documents
The first step is to scan all of your documents using xsane. For a good quality use a DPI of 200 or more. You should name them accordingly to the order of inclusion. For example: 0001.png, 0002.png, …
Create the PDF
Now in a console, use this simple command to generate the ebook.
convert -define pdf:use-trimbox=true -compress jpeg -quality 95% *.png ebook.pdf
Remember that it can take some time if you have many pages.
That’s all folks !
Recent Comments