pdftoppm: add page (#7764)

feature/windows-fix-syntax-2
Olga 2022-02-11 08:46:34 -06:00 committed by GitHub
parent dd2f86d67a
commit b816d6d850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
pages/linux/pdftoppm.md Normal file
View File

@ -0,0 +1,24 @@
# 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):
`pdftoppm -f {{N}} -l {{M}} {{path/to/file.pdf}} {{image_name_prefix}}`
- 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}}`