• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Probleme bei ps->pdf mit gs

Chris

Member
Hallo allerseits,

ich muss eine technische Zeichnung, um sie drucken zu lassen, in PDF umwandeln. Sie liegt im PS-Format vor. Die Zeichnung ist A1 Querformat.

Wenn ich nun gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=Plakat.pdf -sPAPERSIZE=a1 Plakat.ps eingebe, bekomme ich zwar ein PDF-Dokument, jedoch ist die Ausrichtung hochformatig. Er schneidet mir einfach rechts mein Dokument ab.

Was kann ich machen, um die Datei Plakat.ps in eine pdf-Datei umzuwandeln, dabei aber die AUsrichtung beibehalten?

MfG
Christian
 

misiu

Moderator
Teammitglied
/usr/share/ghostscript/8.15/doc/Ps2pdf.htm
sagt:
Setting page orientation
By default Ghostscript determines viewing page orientation based on the dominant text orientation on the page. Sometimes, when the page has text in several orientations or has no text at all, wrong orientation can be selected.
Acrobat Distiller parameter AutoRotatePages controls the automatic orientation selection algorithm. On Ghostscript, besides input stream, Distiller parameters can be given as command line arguments. For instance: -dAutoRotatePages=/None or /All or /PageByPage.
When there is no text on the page or automatic page rotation is set to /None an orientation value from setpagedevice is used. Valid values are: 0 (portrait), 3 (landscape), 2 (upside down), and 1 (seascape). The orientation can be set from the command line as "-c <</Orientation 3>> setpagedevice" using Ghostscript directly but cannot be set in ps2pdf. See Limitations below.
Ghostscript passes the orientation values from DSC comments to pdfwrite driver but they are effectively ignored there. This appears to be consistent with Distiller 5 behavior.

hoffentlich hilft es dir...

MfG
misiu
 
Oben