/ / Чому у pdftoppm poppler-utils немає опції jpeg? - jpeg, попплер

Чому pdftoppm poppler-utils не має параметра jpeg? - jpeg, poppler

В Ubuntu 10.04 я встановив пакет poppler-utils, щоб мати можливість запускати pdftoppm.

Моя мета - перетворити PDF-файли у jpegs, однак у мене немає цієї опції / прапорця. Єдиний растризатор, який, на мою думку, є підтримка PNG.

Чи може хтось порадити, як я можу отримати підтримку jpeg? Велике дякую.

(Див. Мій список варіантів нижче після запуску: pdftoppm --help):

pdftoppm version 0.12.4
Copyright 2005-2009 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2004 Glyph & Cog, LLC
Usage: pdftoppm [options] [PDF-file [PPM-file-prefix]]
-f <int>            : first page to print
-l <int>            : last page to print
-r <fp>             : resolution, in DPI (default is 150)
-rx <fp>            : X resolution, in DPI (default is 150)
-ry <fp>            : Y resolution, in DPI (default is 150)
-scale-to <int>     : scales each page to fit within scale-to*scale-to pixel box
-scale-to-x <int>   : scales each page horizontally to fit in scale-to-x pixels
-scale-to-y <int>   : scales each page vertically to fit in scale-to-y pixels
-x <int>            : x-coordinate of the crop area top left corner
-y <int>            : y-coordinate of the crop area top left corner
-W <int>            : width of crop area in pixels (default is 0)
-H <int>            : height of crop area in pixels (default is 0)
-sz <int>           : 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
-freetype <string>  : enable FreeType font rasterizer: yes, no
-aa <string>        : enable font anti-aliasing: yes, no
-aaVector <string>  : enable vector anti-aliasing: yes, no
-opw <string>       : owner password (for encrypted files)
-upw <string>       : 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
--help              : print usage information
-?                  : print usage information

Відповіді:

5 за відповідь № 1

Відповідно до ця сторінка повинна бути можливість використовувати опцію -jpeg щоб в результаті створити jpeg-зображення. Якщо ви не можете, вам слід отримати нову версію, можливо, якщо вам це дозволено.

Якщо не єдине рішення - перетворити його згодом. Але в будь-якому випадку, якщо ви відчуваєте, що перетворення JPEG занадто повільне, я дам вам пораду використовувати libjpeg-turbo. Якщо ви заміните стандартну бібліотеку libjpeg, ви повинні збільшити продуктивність принаймні фактора 2.