freeware image->pdf converter ?
Moderators: NeilBlanchard, Ralf Hutter, sthayashi, Lawrence Lee
freeware image->pdf converter ?
hello, does anyone know of a simple freeware app to convert a bunch of image files into pdf file? i am aware of virtual printers for example CutePDF writer which is a great little tool but would only print one image at a time and i'd get a 1-page pdf and have to muck around merging them. what i want is more like an app that can take, say, a hundred png files and generate me a 100-page .pdf ..
well i can easily batch-convert the png to bmp or jpg or whatever if that would make it any less of an 'odd conversion'. surely something must exist to do this because there are countless ebooks floating around the web made from scanned images... what i want it for is scanning my tons of sheet music and making my own fake books
-
- *Lifetime Patron*
- Posts: 2269
- Joined: Sun May 21, 2006 9:09 am
- Location: Northern California.
No "scan to PDF" option?wim wrote:well i can easily batch-convert the png to bmp or jpg or whatever if that would make it any less of an 'odd conversion'. surely something must exist to do this because there are countless ebooks floating around the web made from scanned images... what i want it for is scanning my tons of sheet music and making my own fake books
-
- Posts: 68
- Joined: Mon Apr 28, 2003 5:27 pm
- Location: USA
Re: freeware image->pdf converter ?
Using netpbm works OK if not particularly fast. Just run it in a pipe e.g. pngtopnm | pnmtops | pstopdf (pdftops comes from another package, like poppler-utils on Ubuntu; not sure where you would get a prebuilt version for non-Linux OSes). If you want to combine images then something like pscat or pnmcat as an intermediary will probably be needed, and some scripting.wim wrote:hello, does anyone know of a simple freeware app to convert a bunch of image files into pdf file?
Seconding this...the $80 Canon scanner I bought a few years back had a 'scan to pdf' option as part of the s/w toolkit.xan_user wrote:No "scan to PDF" option?wim wrote:well i can easily batch-convert the png to bmp or jpg or whatever if that would make it any less of an 'odd conversion'. surely something must exist to do this because there are countless ebooks floating around the web made from scanned images... what i want it for is scanning my tons of sheet music and making my own fake books
Bmeps will convert from png to pdf*. However, it creates individual pdfs, so you will need to merge the results with something like pdfsam.Vicotnik wrote:PNG to PDF is an odd conversion. I don't think there is such a program.
*I could never get the GUI to work. The command line works, but you must remember to add C:\Program Files\Krause\bin to your PATH.
You can do the same thing easily in python, PIL, and reportlab
http://www.reportlab.org/index.html
Something like (untested):
import Image
from reportlab.pdfgen import canvas
img = Image.open( 'foo.png' )
x, y = img.size
pdf = canvas.Canvas("foo.pdf")
pdf.drawImage( img, x, y )
pdf.showPage()
pdf.save()
http://www.reportlab.org/index.html
Something like (untested):
import Image
from reportlab.pdfgen import canvas
img = Image.open( 'foo.png' )
x, y = img.size
pdf = canvas.Canvas("foo.pdf")
pdf.drawImage( img, x, y )
pdf.showPage()
pdf.save()
I've met ImageMagick before, but I had no idea it had these command line tools, I had just thought it was a PHP library.DrJ wrote:Try ImageMagick. It is the standard "Swiss Army Knife" of format conversions, and you do use it from the command line to process files in batches.
I converted a bunch of jpgs with
Code: Select all
convert c:\myfolder\*.jpg output.pdf
and it worked flawlessly. So much for my crappy bmeps.