1

ツールを使用して、単一の画像を含む「横向き」PDFファイル(たとえば、ページ全体を埋める画像でpaperwidth = 842およびpaperheight = 595ポイント)をpdftocairoEPSファイルに変換する方法がわかりません。

私が得た出力は、元のファイルの縮小バージョン (EPS ファイルの「不適切な」ページ幅 595 に合わせて幅が 842 から 595 にスケーリングされている)、または 595 から 842 の間のコンテンツが切り取られた EPS のいずれかです (-noshrinkパラメータで)。

何か案は?

編集1:pdftocairo version 0.43.0

入力 PDF: pdfinfo test.pdf Creator: DocType PDF-Emitter (DocType PDF-Emitter v1.9.37-9-g1b2b6f3) Producer: Haru Free PDF Library 2.3.0RC2 CreationDate: Mon Jun 4 11:18:30 2018 Tagged: no UserProperties: no Suspects: no Form: none JavaScript: no Pages: 1 Encrypted: no Page size: 595.44 x 841.68 pts Page rot: 90 File size: 149246 bytes Optimized: no PDF version: 1.3

横向きPDF

pdftocairo -eps test.pdf で変換

ランドスケープ EPS

4

1 に答える 1

0

Poppler の最新バージョン (私のシステムでは v0.42.0) には、次のコマンド ライン オプションが役立ちます。

$ pdftocairo -h
   pdftocairo version 0.42.0
   Copyright 2005-2016 The Poppler Developers - http://poppler.freedesktop.org
   Copyright 1996-2011 Glyph & Cog, LLC

Usage: pdftocairo [options] <PDF-file> [<output-file>]
   [....]
  -eps              : generate Encapsulated PostScript (EPS)
   [....]
  -r <fp>           : resolution, in PPI (default is 150)
  -rx <fp>          : X resolution, in PPI (default is 150)
  -ry <fp>          : Y resolution, in PPI (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
   [....]
  -level2           : generate Level 2 PostScript (PS, EPS)
  -level3           : generate Level 3 PostScript (PS, EPS)
  -origpagesizes    : conserve original page sizes (PS, PDF, SVG)
  -paper <string>   : paper size (letter, legal, A4, A3, match)
  -paperw <int>     : paper width, in points
  -paperh <int>     : paper height, in points
  -nocrop           : don't crop pages to CropBox
  -expand           : expand pages smaller than the paper size
  -noshrink         : don't shrink pages larger than the paper size
  -nocenter         : don't center pages smaller than the paper size
   [....]
于 2016-03-23T17:50:29.800 に答える