File=>PDF-Export

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=>PDF-Export. 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.

../../_images/pdf-export-en.png
Print Range
In this group you can select the pages which will be saved in the PDF file.
Save As
The name under which the PDF-Document will be saved.
Automatically lauch default PDF Viewer
After the PDF document has been created, the PDF viewer (Adobe Acrobat Reader, http://www.adobe.com) will be launched if this option is selected.

PDF Config…

In the following dialog box you can select the PostScript driver and the Ghostscript Exe file.

../../_images/pdf-export-config-en.png

Comment

  • Ghostscript must be installed on your computer or a server computer. 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.
  • To use this function a PostScript printer driver must be installed.
  • If the PDFCreator is installed, UniPlot uses the Ghostscript and the Postscript printer driver installed with the PDFCreator. PDFCreator is a free tool to create PDF files. See http://www.pdfforge.org/products/pdfcreator.

Ghostscript Server Installation:

Install Ghostscript on the server. Set the environment 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.

id-1094850