I used this one
pdftoppm -png yourfile.pdf output_prefix
To export images from a PDF on Arch Linux, you can use a couple of tools depending on your preference:
1. PDFImages (from Poppler)
pdfimages
is a command-line tool that extracts images from a PDF file without re-encoding. It’s part of the poppler
package.
Installation:
sudo pacman -S poppler
Usage:
pdfimages -all yourfile.pdf output_prefix
This will extract all images and save them with the prefix output_prefix
.
2. pdftoppm (from Poppler)
If you want to convert all PDF pages to images instead of extracting embedded images:
Installation:
sudo pacman -S poppler
Usage:
pdftoppm -png yourfile.pdf output_prefix
This will convert each page to PNG images.
3. GIMP (GUI option)
GIMP can open PDF files and let you export images from individual pages.
Installation:
sudo pacman -S gimp
Usage:
- Open the PDF in GIMP.
- Choose the page(s) you want to open.
- Export the images after editing or adjusting.
Choose the method that suits your workflow!