

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,

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:
#PS TO PDF CONVERTOR 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 Comparison of ps2pdf and Acrobat Distillerįor other information, see the Ghostscript.MyPDF.Ps2pdf: PostScript-to-PDF converter ps2pdf: PostScript-to-PDF converter Table of contents "Adobe PDF on Ne05:", Collate:=True, PrToFileName:=PSFileName LogFile = "U:\500-4614-00 HDVS\Deviations\DCR Test Results" & SerialDate & "-" & SerialNum & ".log"Īpplication.ActivePrinter = "Adobe PDF on Ne05:"Ī Copies:=1, ActivePrinter:= _ PDFFileName = "U:\500-4614-00 HDVS\Deviations\DCR Test Results" & SerialDate & "-" & SerialNum & ".pdf" PSFileName = "U:\500-4614-00 HDVS\Deviations\DCR Test Results" & SerialDate & "-" & SerialNum & ".ps" 'Creates new strings for the printing functions 'Selects the cells that are to be printed
#PS TO PDF CONVERTOR SERIAL NUMBER#
'Selects cell H8 and then enters the serial number based off of the file name in the format "SN: #-#"ĪctiveCell.FormulaR1C1 = "SN: " & SerialDate & "-" & SerialNum 'takes the next four numbers from the FullFileName string and assigns them to the SerialNum string 'takes the first four numbers from the FullFileName string and assigns them to the SerialDate string 'sets the FullFileName variable value to the name of the file I have selected "Do not send fonts to 'Adobe PDF'" in the printing preferences. Basically I am trying to write a script that will:ġ) Take the file name and assign it to variablesĢ) Enter those variables in the form of a serial number is a particular cell I posted on this a while back and then got side tracked on other topics.
