Intro
This is a simple way to export all pages in a pdf-file to jpegs.
The jpegs can later be zipped or rared, then the resulting files be renamed with the cbz or cbr extension for easier reading in a comic reader app.
Assumptions
The export is done on Kubuntu 19.10. It should however be possible to do on most linux distros, where pdftoppm is available.
Howto
- Browse to the folder where your pdf-file is.
$ cd ~/tmp
- We will use the command pdftoppm to export the pages.
Running pdftoppm --help will reveal all options available with the command.
In our case we enter the pdf filename, a prefix and what format to export to.
$ pdftoppm Mommy.Why.is.There.a.Server.in.the.House.pdf pic -jpeg
$ ll
total 7044
drwxrwxr-x 2 sorin sorin 4096 Feb 27 16:02 ./
drwxrwxr-x 65 sorin sorin 4096 Feb 27 15:44 ../
-rw-rw-r-- 1 sorin sorin 2030134 Feb 8 19:18 Mommy.Why.is.There.a.Server.in.the.House.pdf
-rw-rw-r-- 1 sorin sorin 46461 Feb 27 16:02 pic-01.jpg
-rw-rw-r-- 1 sorin sorin 105429 Feb 27 16:02 pic-02.jpg
-rw-rw-r-- 1 sorin sorin 209441 Feb 27 16:02 pic-03.jpg
-rw-rw-r-- 1 sorin sorin 242310 Feb 27 16:02 pic-04.jpg
-rw-rw-r-- 1 sorin sorin 309109 Feb 27 16:02 pic-05.jpg
-rw-rw-r-- 1 sorin sorin 204486 Feb 27 16:02 pic-06.jpg
-rw-rw-r-- 1 sorin sorin 246781 Feb 27 16:02 pic-07.jpg
-rw-rw-r-- 1 sorin sorin 283377 Feb 27 16:02 pic-08.jpg
-rw-rw-r-- 1 sorin sorin 180208 Feb 27 16:02 pic-09.jpg
-rw-rw-r-- 1 sorin sorin 324938 Feb 27 16:02 pic-10.jpg
-rw-rw-r-- 1 sorin sorin 278511 Feb 27 16:02 pic-11.jpg
-rw-rw-r-- 1 sorin sorin 169428 Feb 27 16:02 pic-12.jpg
-rw-rw-r-- 1 sorin sorin 46482 Feb 27 16:02 pic-13.jpg
$ - Done!
Sources
https://askubuntu.com/questions/50170/how-to-convert-pdf-to-image