imagebashpdf

How can I convert a series of images to a PDF from the command line on Linux?


I have a scanning server I wrote in CGI and Bash. I want to be able to convert a bunch of images (all in one folder) to a PDF from the command line. How can that be done?


Solution

  • Using ImageMagick, you can try:

    convert page.png page.pdf
    

    For multiple images:

    convert page*.png mydoc.pdf