1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 19:35:25 +02:00
tldr/pages/linux/pdftoppm.md

25 lines
741 B
Markdown
Raw Normal View History

2022-02-11 08:46:34 -06:00
# pdftoppm
> Convert PDF document pages to portable Pixmap (image formats).
> More information: <https://manned.org/pdftoppm>.
- Specify the range of pages to convert (`n` - first page, `m` - last page):
2022-02-11 08:46:34 -06:00
`pdftoppm -f {{n}} -l {{m}} {{path/to/file.pdf}} {{image_name_prefix}}`
2022-02-11 08:46:34 -06:00
- Convert only the first page of a PDF:
`pdftoppm -singlefile {{path/to/file.pdf}} {{image_name_prefix}}`
- Generate a monochrome PBM file (instead of a color PPM file):
`pdftoppm -mono {{path/to/file.pdf}} {{image_name_prefix}}`
- Generate a grayscale PGM file (instead of a color PPM file):
`pdftoppm -gray {{path/to/file.pdf}} {{image_name_prefix}}`
- Generate a PNG file instead a PPM file:
`pdftoppm -png {{path/to/file.pdf}} {{image_name_prefix}}`