From b816d6d8505d1dda1a75affdca47509cf8c32a48 Mon Sep 17 00:00:00 2001 From: Olga <41551585+olgashi@users.noreply.github.com> Date: Fri, 11 Feb 2022 08:46:34 -0600 Subject: [PATCH] pdftoppm: add page (#7764) --- pages/linux/pdftoppm.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/pdftoppm.md diff --git a/pages/linux/pdftoppm.md b/pages/linux/pdftoppm.md new file mode 100644 index 000000000..514c3f682 --- /dev/null +++ b/pages/linux/pdftoppm.md @@ -0,0 +1,24 @@ +# pdftoppm + +> Convert PDF document pages to portable Pixmap (image formats). +> More information: . + +- 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}}`