How to convert a .pdf file into a folder of images?

Shawn

I have some .pdf files that I would like to convert to my preferred reading format of .cbr or .cbz or, if this isn't directly possible, I need to extract all pages from the .pdf as images and then compress them into my format of choice. I have only been able to save pages one at a time with Document Viewer. Obviously, I'd like to do it a little quicker. I have tried pdfsam, pdf shuffler, and pdfmod all with no luck. I am using Ubuntu 11.10.

Shawn

OK well, I did some more research and although tohuwawohu's method does work, I found it easier to use a program called pdftoppm to achieve what I wanted done. Since I am pretty much a layperson when it comes to using command line apps, I will do my best to explain how I got this to work for me.

  1. Navigate to the folder containing the .pdf you wish to edit and open a terminal there. I did this by using the sample command:

    cd ~/Documents/PDF
    
  2. Let's say the file I want to edit is called Sample.pdf What I want to do is use pdftoppm to create image files of each page of the .pdf. Several formats can be chosen (see the man pages link above) but I prefer to use .png. The basic command looks like this:

    pdftoppm -FORMAT FILENAME.pdf PREFIX
    

    or in the example above:

    pdftoppm -png Sample.pdf Sample
    

    This command creates an image file of each page in the same folder as the original .pdf file with names like Sample-01.png, Sample-02.png and so on. I have tried it with the .png and .jpeg extensions successfully. .jpg is apparently not supported.

  3. Then I just use Archive Manager by selecting all the newly-created image files, right-clicking, and choosing "Compress" from the context menu. I then choose the archive format I prefer (in this case .cbz or Comic Book Zip) and create the new archive.

  4. Now I have a shiny new .cbz file called Sample.cbz which I can then view with my Comix reader!

Hopefully what I have posted above makes enough sense that someone else can learn from it. If I need to change it in any way please let me know.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to convert pdf files in multiple folders into multiple pdf files matching the folder names

分類Dev

Watermark in PDF file is hiding behind images

分類Dev

How to .gitignore "public/images/" folder in VS Code?

分類Dev

How can I convert .mp4 files and .srt file to images based on subtitle's timeline?

分類Dev

Is there a way to convert Rd file online on github to pdf

分類Dev

How to add images in an html file?

分類Dev

How to merge .pdf and .jpg file in one pdf

分類Dev

How to compress images and convert them into progressive images using cloud code?

分類Dev

Two images to one pdf file one image per page

分類Dev

How to convert images color space in Keras?

分類Dev

python3 convert files (from folder and sub folder) to json file on specific format(item include folder name and file name)

分類Dev

How to convert PDF to DOCX or URL to DOCX with NodeJS?

分類Dev

How do I convert with Angular: HTML into PDF

分類Dev

How can I automatically convert PowerPoint to PDF?

分類Dev

How to convert a DjVu to PDF maintaining shape deduplication

分類Dev

How to delete an folder from Firebase which contains images?

分類Dev

how to Copy Images from Main Domain to Subdomain Folder in c#

分類Dev

NativeScript: How to copy a file from an apps folder to a user accessible folder?

分類Dev

How to save/export a pdf to a certain folder using VBA

分類Dev

Use convert to grab a specific page from a PDF file?

分類Dev

Revert default folder (Images)

分類Dev

How to loop sequentially through images in one folder and compare with the latest image in another folder

分類Dev

How to get a json file from raw folder?

分類Dev

How to copy file to root "dist/" folder with VueJS?

分類Dev

How to put a txt file into a folder C programming

分類Dev

How to copy uploaded file into the public folder?

分類Dev

How to create a symbolic/soft link to a file not a folder

分類Dev

How to get .json file in folder structure

分類Dev

how to remove blank text file from folder?

Related 関連記事

  1. 1

    How to convert pdf files in multiple folders into multiple pdf files matching the folder names

  2. 2

    Watermark in PDF file is hiding behind images

  3. 3

    How to .gitignore "public/images/" folder in VS Code?

  4. 4

    How can I convert .mp4 files and .srt file to images based on subtitle's timeline?

  5. 5

    Is there a way to convert Rd file online on github to pdf

  6. 6

    How to add images in an html file?

  7. 7

    How to merge .pdf and .jpg file in one pdf

  8. 8

    How to compress images and convert them into progressive images using cloud code?

  9. 9

    Two images to one pdf file one image per page

  10. 10

    How to convert images color space in Keras?

  11. 11

    python3 convert files (from folder and sub folder) to json file on specific format(item include folder name and file name)

  12. 12

    How to convert PDF to DOCX or URL to DOCX with NodeJS?

  13. 13

    How do I convert with Angular: HTML into PDF

  14. 14

    How can I automatically convert PowerPoint to PDF?

  15. 15

    How to convert a DjVu to PDF maintaining shape deduplication

  16. 16

    How to delete an folder from Firebase which contains images?

  17. 17

    how to Copy Images from Main Domain to Subdomain Folder in c#

  18. 18

    NativeScript: How to copy a file from an apps folder to a user accessible folder?

  19. 19

    How to save/export a pdf to a certain folder using VBA

  20. 20

    Use convert to grab a specific page from a PDF file?

  21. 21

    Revert default folder (Images)

  22. 22

    How to loop sequentially through images in one folder and compare with the latest image in another folder

  23. 23

    How to get a json file from raw folder?

  24. 24

    How to copy file to root "dist/" folder with VueJS?

  25. 25

    How to put a txt file into a folder C programming

  26. 26

    How to copy uploaded file into the public folder?

  27. 27

    How to create a symbolic/soft link to a file not a folder

  28. 28

    How to get .json file in folder structure

  29. 29

    how to remove blank text file from folder?

ホットタグ

アーカイブ