This function can be used to save one or more document pages as a PDF file.
To create a PDF file from the active UniPlot document, right click outside the document page and select Export=>Save Document as a PDF file. You can also add the command to your User Toolbar (see Tools=>Customize User Toolbar).
Please see “Comment” for information about to setup the PDF export.
PDF Config...
In the following dialog box you can select the PostScript driver and the Ghostscript Exe file.
Comment
Ghostscript is a suite of software based on an interpreter of the Adobe PostScript and Portable Document Format (PDF) page description languages. Ghostscript can be downloaded free of charge. The homepage is http://www.cs.wisc.edu/~ghost/. At http://sourceforge.net/projects/ghostscript/ you can download a setup program: gs854w32-gpl.exe. Ghostscript has a GPL license and can be used commercially.
Ghostscript Server Installation:
Install Ghostscript on the server. Set the enviroment variable GS_LIB on the workstation. This variable contains the complete path to the ghostscript lib directory.
You can set this variable inside a UniScript file, for example ghostscript.ic. Save this file in the UniPlot autoload directory.
The following example shows the file ghostscript.ic (adjust the path names):
putenv("GS_LIB=\\p3200server\c\program files\gs\gs8.54\lib");
WriteProfileString("Settings", "pdf-printer", "\\p3200server\PS-Printer");
WriteProfileString("Settings", "pdf-exe", ..
"\\p3200server\c\program files\gs\gs8.54\bin\gwin32c.exe");
You do not need to have a PostScript-Printer connected to your computer to setup a PostScript driver.
If you like to create color PDF files, select a color PostScript-Driver, e.g. HP Color LaserJet PS. As printer port select File:. Give the driver a distinct name, e.g. UniPlot-PDF.
If you would like to create a PDF file in an automation script, call DocPrintPDF.
See also
id-1963650