

sUserPassword= string Defines the user password for opening the document. sOwnerPassword= string Defines that the document to be encrypted with the specified The following switches used for creating encrypted documents : Wide variety of uses, possibly at the expense of a larger output file. /default selects output intended to be useful across a./prepress selects output similar to Acrobat Distiller./printer selects output similar to the Acrobat Distiller./ebook selects medium-resolution output similar to the./screen selects low-resolution output similar to theĪcrobat Distiller "Screen Optimized" setting.dPDFSETTINGS= configuration Presets the "distiller parameters" to one of four predefined settings: So set a small or zero value if the source document is expected Note that redundant inline images can't merge into a single object, Imbed into a context stream rather than create an XObject. dMaxInlineImageSize= integer Specifies the maximal size of image in bytes, which ps2pdf will The default value is true theįalse setting is intended only for debugging. dCompressFonts= boolean Defines whether ps2pdf will compress embedded fonts in Ps2pdf also recognizes the following switches:

Parameters from within the PostScript input file. Running ps2pdf, and provide an equivalent way to set these The PostScript setdistillerparams andĬurrentdistillerparams operators are also recognized when "distiller parameters", Adobe's documented parameters for controlling theĬonversion process. s parameter= string switches for setting The color space to be used for device-dependent colors in the dProcessColorModel= device_color_space Sets r resolution Sets the resolution for pattern fills and for fonts that must be The options in the command line may include any switches that mayīe used with Ghostscript's PostScript and PDF interpreter (see here for a complete list), although almost none Ghostscript passes the orientation values from DSC comments toīut they are effectively ignored there. Using Ghostscript directly but cannot be set in ps2pdf. None an orientation value from setpagedevice is used.Īnd 1 (seascape). When there is no text on the page or automatic page rotation is set to Input stream, Distiller parameters can be given as command line arguments. Orientations or has no text at all, wrong orientation can be selected.Īcrobat Distiller parameter AutoRotatePages controls theĪutomatic orientation selection algorithm. Sometimes, when the page has text in several So in these environments, if the executable has aĭifferent name, you must set GSC to the name of theīy default Ghostscript determines viewing page orientation based on the dominant GSC environment variable, if defined, as the name of theĮxecutable otherwise the script assumes the executable is named Ps2pdfxx.bat script uses the value of the

Unlikely that you will need to change this. dCompatibilityLevel= after -dPDFSETTINGS=.Īll of these scripts actually call a script named ps2pdfwrĪssumes that the Ghostscript executable is named gs it is You can still specify the output format by using PDFSETTINGS: this overrides the output format specified by Note that if you specify a value for PDFSETTINGS, thisĬhooses PDF 1.2 or 1.3 output depending on the value of dCompatibilityLevel= 1.x switch in the command Level of the output, use ps2pdf12, ps2pdf13, ps2pdf per se currently produces PDF 1.2 output.ps2pdf14 produces PDF 1.4 output (Acrobat 5-and-later.ps2pdf13 produces PDF 1.3 output (Acrobat 4-and-later.ps2pdf12 produces PDF 1.2 output (Acrobat 3-and-later.The name ps2pdf above refers to any of them. There are actually several different ps2pdf * scripts:

#Convert ps to pdf windows windows
Or, on Unix systems and some versions of Windows NT and OS/2 Ghostscript for details: this is currently the case on all platforms, in Ghostscript was compiled see the documentation on building Pdfwrite device must be included in the makefile when Ps2pdf is implemented as a very small command script (batchįile) that invokes Ghostscript, selecting a special "output device" called Not the user interface) of Adobe's Acrobat TMĭistiller TM product: it converts PostScript files Overview ps2pdf is a work-alike for nearly all the functionality (but
