Covert multipage PDF to an image

Sudhakar Rayavaram
TarkaLabs TIL
Published in
1 min readMar 20, 2018

ImageMagick provides powerful tools to manipulate images. I was surprised to learn that it can even handle PDFs. To convert a multipage PDF to a single image with all the pages (vertically lined), you just need one command

convert some_file.pdf -append image.jpg

If you want the pages aligned horizontally

convert some_file.pdf +append image.jpg

You can also control the size of each page by passing additional parameter ‘resize’

convert some_file.pdf -append -resize 800 image.jpg

Note: convert is a command line utility that will get installed when you install ImageMagick

--

--

TarkaLabs TIL
TarkaLabs TIL

Published in TarkaLabs TIL

Tarka Labs is a team of passionate hackers, designers and product managers. We believe in experimental methods to identify the best solutions to problems instead of working on technology du jour. (https://tarkalabs.com/)

Sudhakar Rayavaram
Sudhakar Rayavaram

Written by Sudhakar Rayavaram

[su-docker] Software plumber, health and wellness enthusiast, digital artist, data visualization lover & …