Home > batch, convert, ebook, imagemagick, jpg, pdf, pdftk, scan > Batch convert a huge number of jpg images into one single pdf file

Batch convert a huge number of jpg images into one single pdf file

February 7th, 2006 Leave a comment Go to comments

1 – Convert all the jpg files into pdf files with ImageMagick :

$ for i in *.jpg; do convert $i $i.pdf; done

2 – Merge, concantenate, join all the pdf files into one with pdftk :

$ pdftk *.pdf cat output output.pdf

Note : convert from ImageMagick won’t work if there are too many files or too little memory :

$ convert *.jpg output.pdf

Categories: batch, convert, ebook, imagemagick, jpg, pdf, pdftk, scan Tags:
  1. Anonymous
    March 31st, 2008 at 22:43 | #1

    THANK YOU !!

    Denis BRAUSSEN

  1. No trackbacks yet.