Skip to content

Latest commit

 

History

History
44 lines (42 loc) · 2.47 KB

pdftoppm.md

File metadata and controls

44 lines (42 loc) · 2.47 KB

install

sudo apt install poppler-utils [On Debian/Ubuntu & Mint]
sudo dnf install poppler-utils [On RHEL/CentOS & Fedora]
sudo zypper install poppler-tools [On OpenSUSE]
sudo pacman -S poppler [On Arch Linux]

help

pdftoppm -<image_format> <pdf_filename> <image_name>
-f : first page to print
-l : last page to print
-singlefile : write only the first page and do not add digits
-r : resolution, in DPI (default is 150)
-rx : X resolution, in DPI (default is 150)
-ry : Y resolution, in DPI (default is 150)
-scale-to : scales each page to fit within scale-to*scale-to pixel box
-scale-to-x : scales each page horizontally to fit in scale-to-x pixels
-scale-to-y : scales each page vertically to fit in scale-to-y pixels
-x : x-coordinate of the crop area top left corner
-y : y-coordinate of the crop area top left corner
-W : width of crop area in pixels (default is 0)
-H : height of crop area in pixels (default is 0)
-sz : size of crop square in pixels (sets W and H)
-cropbox : use the crop box rather than media box
-mono : generate a monochrome PBM file
-gray : generate a grayscale PGM file
-png : generate a PNG file
-jpeg : generate a JPEG file
-tiff : generate a TIFF file
-tiffcompression : set TIFF compression: none, packbits, jpeg, lzw, deflate
-freetype : enable FreeType font rasterizer: yes, no
-thinlinemode : set thin line mode: none, solid, shape. Default: none
-aa : enable font anti-aliasing: yes, no
-aaVector : enable vector anti-aliasing: yes, no
-opw : owner password (for encrypted files)
-upw : user password (for encrypted files)
-q : don't print any messages or errors
-v : print copyright and version info
-h : print usage information
-help : print usage information

example

/usr/bin/pdftoppm  -png -singlefile  -r 300  xx.pdf xx.png