Batch Convert Image to PDF
A friend of mine was looking for a way to batch-convert images into PDFs. Here’s a simple algorithm for converting JPG to PDF using jpg2pdf.org. Since I use a Mac, the tutorial will be for Mac/Linux.
For Mac, install Brew from here.
View the code on Gist.
For Linux, install imagemagick and poppler-utils.
View the code on Gist.
Use this one-line script to convert all images in the current folder.
View the code on Gist.
Originally published: 2013-12-05 Last modified: 2023-03-21 WordPress ID: 1304

Leave a Reply