2016-03-22 6 views
1

EPSへのpdftocairoツールを使用して、1つの画像を含む「ランドスケープ」PDFファイルをどのように変換するのか分かりません(たとえば、paperwidth = 842、paperheight = 595ポイント、ファイル。"pdftocairo -eps"の "landscape" PDFを正しいEPSに変換するにはどうすればいいですか?

出力は元のファイルの縮小版です(幅は842から595にスケーリングされ、EPSファイルの「間違った」ページ幅595に合わせられます)。またはEPSが595と842の間にある場合ちょうど切り捨てられます(-noshrinkパラメータ付き)。

アイデア?

+0

を、お願いします?どのバージョンのPoppler/'pdftocairo'を使用していますか? –

答えて

0

にPopplerの最新バージョンは、(私のシステムで、それはv0.42.0です)助けになることがあり、次のコマンドラインオプションがあります:あなたがサンプルPDF(へのリンク)を追加することができます

$ 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 
    [....] 
関連する問題