Discover how to do implement the utility, how to use it, and how to automate your setup.
What Ispoppler-utils?
The poppler-utils utility set allows us to convert images to PDF, and PDF to images.
Shutterstock/Tetiana Yurchenko
Next we use a simplesedsubstitute command to replace a literal dot followed by pdf to nothing.
In other words, we remove the.pdffile extension.
This gives us the benefit of adding it back later only where needed, i.e.
Finally, we usexargsto sent each pdf filename (minus the.pdf) topdftoppmone by one.
We use the-Ioption toxargswhich allows us to specify any input received (i.e.
As an alternative to the-pngoption, one can also use-jpegto generate JPEG files instead.
Usepdftoppm –helporman pdftoppmto see a full list of options.
We also look at a straightforward way to automate this process.Enjoy!