FOM Reference > Application > Printers > fPSPrinter interface
  
fPSPrinter interface
This object represents a PostScript printer device.
This object inherits from fPrinter.
PSColorMode enumeration
The color mode to use.
The PSColorMode enumeration has the following constants of type int.
MODE_MONOCHROME = 0
Convert all colors to monochrome.
MODE_COLOR = 1
Use normal colors in the PDF.
MODE_CMYK = 2
Convert all colors to CMYK.
MODE_CMYK_SPOT = 3
Convert all colors to CMYK and use spot colors.
PSPaperTray enumeration
Which paper tray to use.
The PSPaperTray enumeration has the following constants of type int.
TRAY_DEFAULT = 0
Use the default paper tray.
TRAY_1 = 1
Use paper tray 1.
TRAY_2 = 2
Use paper tray 2.
TRAY_FEED = 3
Use the manual paper tray feed.
PSImageCompression enumeration
The options to compress images.
The PSImageCompression enumeration has the following constants of type int.
COMPRESS_NONE = 0
Use no compression.
COMPRESS_APP = 1
Use APP compression.
COMPRESS_RLE = 2
Use Run Length Encoding compression.
COMPRESS_LZW = 3
Use LZW compression.
PSOutputDevices enumeration
The options to compress images.
The PSOutputDevices enumeration has the following constants of type int.
OUTPUT_FILE = 1
Print to file.
OUTPUT_PRINTMANAGER = 2
Print to file.
OUTPUT_COM1 = 3
Print to COM1.
OUTPUT_COM2 = 4
Print to COM2.
OUTPUT_LPT1 = 5
Print to LPT1.
OUTPUT_LPT2 = 6
Print to LPT2.
OUTPUT_LPT3 = 7
Print to LPT3.
CtrlD attribute
If true, sent Ctrl-D to the printer.
CtrlD
Access
read-write
Returns
boolean
PDFArticleSettings attribute
If the PostScript is converted to PDF, include the specified /ARTICLE settings.
PDFArticleSettings
Access
read-write
Returns
String
PDFDestSettings attribute
If the PostScript is converted to PDF, include the specified /DEST settings.
PDFDestSettings
Access
read-write
Returns
String
PDFLinkSettings attribute
If the PostScript is converted to PDF, include the specified /LNK settings.
PDFLinkSettings
Access
read-write
Returns
String
PDFOutSettings attribute
If the PostScript is converted to PDF, include the specified /OUT settings.
PDFOutSettings
Access
read-write
Returns
String
binaryImages attribute
If true, output the images as binary.
binaryImages
Access
read-write
Returns
boolean
colorMode attribute
Which color mode to use. Value is one of fPSPrinter.PSColorMode
colorMode
Access
read-write
Returns
int
duplex attribute
If true, set duplex printing.
duplex
Access
read-write
Returns
boolean
fileFrequency attribute
Specifies how many files to create while printing, if outputDevice is set to fPSPrinter.OUTPUT_FILE. This value is ignored for any other output device. Value is one of fPrinter.PrinterFileFrequency
fileFrequency
Access
read-write
Returns
int
filename attribute
The file to print the document to, if outputDevice is set to fPSPrinter.OUTPUT_FILE. This value is ignored for any other output device.
filename
Access
read-write
Returns
String
firstPageTray attribute
Which paper tray to use for the first page. Value is one of fPSPrinter.PSPaperTray
firstPageTray
Access
read-write
Returns
int
fontComments attribute
If true, use DSC 3.0 format font comments, otherwise output them as DSC 2.0 format.
fontComments
Access
read-write
Returns
boolean
fontFrequency attribute
If true, include fonts once in the postcript, otherwise include fonts once for each page.
fontFrequency
Access
read-write
Returns
boolean
fontTypes attribute
If true, include fonts as Type 1 format, otherwise use Type 3.
fontTypes
Access
read-write
Returns
boolean
imageCompression attribute
Which method to use when compressing images. Value is one of fPSPrinter.PSImageCompression
imageCompression
Access
read-write
Returns
int
includeOPIComments attribute
If true, include OPI comments.
includeOPIComments
Access
read-write
Returns
boolean
includePrinterFonts attribute
If true, printer fonts will be included in the postscript.
includePrinterFonts
Access
read-write
Returns
boolean
includeScreenFonts attribute
If true, screen fonts will be included in the postscript.
includeScreenFonts
Access
read-write
Returns
boolean
includeTIFFComments attribute
If true, include TIFF comments.
includeTIFFComments
Access
read-write
Returns
boolean
mediaWidth attribute
The size of the paper. If this value is set to 0, the paper size from the printer will be used.
mediaWidth
Access
read-write
Returns
fLength
orientation attribute
If true, automatically rotate the page to fit the paper.
orientation
Access
read-write
Returns
boolean
originalImages attribute
If true, use the full image. Otherwise use the draft version of the image.
originalImages
Access
read-write
Returns
boolean
otherPagesTray attribute
Which paper tray to use for other pages. Value is one of fPSPrinter.PSPaperTray
otherPagesTray
Access
read-write
Returns
int
outputDevice attribute
The output device for the printer. Value is one of fPSPrinter.PSOutputDevices
outputDevice
Access
read-write
Returns
int
printerColor attribute
If true, use the printer versions of the colors. Otherwise use the normal screen color.
printerColor
Access
read-write
Returns
boolean
printerName attribute
The name of the Windows printer to use, if outputDevice is set to fPSPrinter.OUTPUT_PRINTMANAGER. This value is ignored for any other output device.
printerName
Access
read-write
Returns
String
propertyAuthor attribute
Include the Author document property in the PostScript.
propertyAuthor
Access
read-write
Returns
boolean
propertyCustom attribute
Include the Custom document properties in the PostScript.
propertyCustom
Access
read-write
Returns
boolean
propertyKeywords attribute
Include the Keywords document property in the PostScript.
propertyKeywords
Access
read-write
Returns
boolean
propertyOpenOnPage attribute
Include the Open On Page document property in the PostScript.
propertyOpenOnPage
Access
read-write
Returns
boolean
propertyPageMode attribute
Include the Page Mode document property in the PostScript.
propertyPageMode
Access
read-write
Returns
boolean
propertySubject attribute
Include the Subject document property in the PostScript.
propertySubject
Access
read-write
Returns
boolean
propertyTitle attribute
Include the Title document property in the PostScript.
propertyTitle
Access
read-write
Returns
boolean
propertyView attribute
Include the View document property in the PostScript.
propertyView
Access
read-write
Returns
boolean
scratchFile attribute
The location of the scratch file if required.
scratchFile
Access
read-write
Returns
String
screening attribute
If true, use device screening. Otherwise use APP screening.
screening
Access
read-write
Returns
boolean
selectPageSize attribute
If true, automatically select the page size.
selectPageSize
Access
read-write
Returns
boolean
fPSPrinter method
Creates a new PostScript Printer device.
fPSPrinter
Parameters
None
Returns
fPSPrinter. A new object of class fPSPrinter.
readResolve method
Return the object corresponding to the given serialized representation.
readResolveobj
Parameters
Objectobj
The serialized representation.
Returns
fPSPrinter. The object corresponding to the serialized representation.