2016-03-22 2 views
1

Je n'arrive pas à comprendre comment convertir un fichier PDF "paysage" avec une seule image dessus (par exemple paperwidth = 842 et paperheight = 595 points avec une image qui remplit toute la page) avec l'outil pdftocairo à un fichier EPS fichier. La sortie obtenue est soit une version rétrécie du fichier d'origine (la largeur est mise à l'échelle de 842 à 595 pour correspondre à la largeur de page 595 "incorrecte" du fichier EPS), soit une version EPS où le contenu est compris entre 595 et 842 Il suffit de couper (avec le paramètre -noshrink).Comment convertir un PDF "paysage" avec "pdftocairo -eps" en EPS correct?

Des idées?

+0

Pouvez-vous ajouter un (lien vers un) échantillon PDF, S'il vous plaît? Quelle version de Poppler/'pdftocairo' utilisez-vous? –

Répondre

0

La plus récente version de Poppler (sur mon système, il est v0.42.0) a les options de ligne de commande suivantes qui peuvent être utiles:

$ 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 
    [....]