An instance of the JawsMako Distiller class. More...
#include <distiller.h>
Public Types | |
enum | ePDFVersion { ePDF1_3 = DIST_MAKE_PDF_VERSION(1, 3) , ePDF1_4 = DIST_MAKE_PDF_VERSION(1, 4) , ePDF1_5 = DIST_MAKE_PDF_VERSION(1, 5) , ePDF1_6 = DIST_MAKE_PDF_VERSION(1, 6) , ePDF1_7 = DIST_MAKE_PDF_VERSION(1, 7) } |
Supported PDF versions. More... | |
enum | eTransferFunctionMethod { eTRApply , eTRRemove , eTRPreserve } |
Enumeration for transfer function methods. More... | |
enum | eImageCompression { eICNone , eICAuto , eICFlate , eICFlatePredict , eICDCT , eICLZW , eICCCITT } |
Image compression formats. More... | |
enum | eJpegQuality { eJQLow , eJQMedium , eJQHigh , eJQUser } |
JPEG-equivalent quality factors (QFactor) More... | |
enum | eImageDownsamplingMethod { eIDNone , eIDSubsample , eIDAverage , eIDBicubic } |
Image downsampling methods. More... | |
enum | eDocumentInfo { eDIAuthor = 0 , eDISubject , eDITitle , eDICreator , eDIN } |
Document Information types. More... | |
enum | eThumbnailType { eTHNone = 0 , eTHColor , eTHMono } |
PDF Thumbnail types. More... | |
Public Member Functions | |
virtual void | setParameter (const U8String ¶m, const U8String &value)=0 |
Apply a key-value pair output parameter with a string value. The parameter name is case insensitive. Please refer to the supplied documentation for the details of the available parameters and their ranges. | |
virtual void | setPdfVersion (ePDFVersion version)=0 |
Set the PDF version to generate. | |
virtual void | setCompressPages (bool compressPages)=0 |
Set whether or not compression should be applied to page content. The default is true. | |
virtual void | setAutoRotatePages (bool autoRotatePages)=0 |
Set whether pages should be automatically rotated. The default is false. | |
virtual void | setSubsetFonts (bool subset)=0 |
Set whether embedded fonts should be subset or not. The default is true. | |
virtual void | setEmbedFonts (bool embed)=0 |
Set whether fonts should be forcibly embedded. The standard 14 fonts are not affected by this. The default is true. | |
virtual void | setEmbedBase14Fonts (bool embed)=0 |
Set whether the base 14 PDF fonts should be forcibly embedded. Only the standard 14 fonts are not affected by this; use setEmbedFonts() to affect other fonts. The default is false. | |
virtual void | setEmbedDiskBasedCidFonts (bool embed)=0 |
Set whether CID fonts obtained from resources (i.e, disk based CID fonts) can be embedded. This setting is only effective if the "EmbedFonts" parameter is set to true. | |
virtual void | setResolution (float resolution)=0 |
Set the target resolution for the output, in dots per inch. The default is 288. Equivalent to calling setParameter with the parameter name "Resolution". | |
virtual void | setTransfers (eTransferFunctionMethod transfers)=0 |
Set the desired method to for controlling transfer functions. | |
virtual void | setColorImageCompression (eImageCompression compression)=0 |
Set the image compression for color images. The default is eICFlate. CCITT is not allowed for color images. | |
virtual void | setGrayImageCompression (eImageCompression compression)=0 |
Set the image compression for gray images. The default is eICFlate. CCITT is not allowed for gray images. | |
virtual void | setMonoImageCompression (eImageCompression compression)=0 |
Set the image compression for monochrome images. The default is eICCCITT. JPEG/DCT and auto are not allowed for mono images. | |
virtual void | setColorJPEGQuality (eJpegQuality quality)=0 |
Set the JPEG quality to use when compressing color images in DCT format. Equivalent to calling setParameter() with the parameter name "ColorJPEGQuality" enumeration value as a string ("Low", "Medium", "High" or "User"). The default is eJQLow. | |
virtual void | setColorQFactor (float qfactor)=0 |
Set the QFactor to use when compressing color images in DCT format. Applies only when setting the JPEG quality to eJQUser with setColorJPEGQuality(). | |
virtual void | setGrayJPEGQuality (eJpegQuality quality)=0 |
Set the JPEG quality to use when compressing gray images in DCT format. Equivalent to calling setParameter() with the parameter name "GrayJPEGQuality" enumeration value as a string ("Low", "Medium", "High" or "User"). The default is eJQLow. | |
virtual void | setGrayQFactor (float qfactor)=0 |
Set the QFactor to use when compressing gray images in DCT format. Applies only when setting the JPEG quality to eJQUser with setColorJPEGQuality(). | |
virtual void | setColorImageDownsampling (eImageDownsamplingMethod method)=0 |
Set the desired downsampling method for color images. The default method is eIDNone (no downsampling). | |
virtual void | setGrayImageDownsampling (eImageDownsamplingMethod method)=0 |
Set the desired downsampling method for gray images. The default method is eIDNone (no downsampling). | |
virtual void | setMonoImageDownsampling (eImageDownsamplingMethod method)=0 |
Set the desired downsampling method for monochrome images. The default method is eIDNone (no downsampling). | |
virtual void | setColorImageResolution (float resolution)=0 |
Set the desired resolution for color images when downsampling. The default is 72. | |
virtual void | setGrayImageResolution (float resolution)=0 |
Set the desired resolution for gray images when downsampling. The default is 72. | |
virtual void | setMonoImageResolution (float resolution)=0 |
Set the desired resolution for monochrome images when downsampling. The default is 72. | |
virtual void | setConvertCMYKImagesToRGB (bool convert)=0 |
Set whether to convert CMYK images to RGB. The default is false. | |
virtual void | setProlog (const IInputStreamPtr &prolog)=0 |
Set a prolog stream to be consumed by the PostScript interpreter before the input stream is processed, or NULL to clear. | |
virtual void | setEpilog (const IInputStreamPtr &epilog)=0 |
Set a epilog stream to be consumed by the PostScript interpreter after the input stream is processed, or NULL to clear. | |
virtual void | setDefaultPanoseStyle (const U8String &defaultPanoseStyle)=0 |
Sets the default Panose style to be used when emitting a CID font that is not in the Panose list, or NULL to clear. The Panose style must be a 12-byte hexadecimal string as described in the PDF reference, for example "010502020300000000000000". | |
virtual void | setPanose (const IInputStreamPtr &panose)=0 |
Sets a stream that refers to a list of CID font names and their associated Panose styles. | |
virtual void | getFontNames (const U8String &font, CU8StringVect &names)=0 |
Gets a list of font names from a given file. | |
virtual void | addFont (const U8String &font)=0 |
Adds a font. | |
virtual void | addFonts (const CU8StringVect &fonts)=0 |
Adds fonts. | |
virtual void | removeFont (const U8String &fontName)=0 |
Removes a named font. | |
virtual void | setFontDevicePath (const U8String &path)=0 |
Sets the font device path. | |
virtual void | setResourceDevicePath (const U8String &path)=0 |
Sets the resource device path. | |
virtual void | setTrimToBBox (bool trimToBBox)=0 |
Set whether to use the BoundingBox DSC comment for the page size. The default is false. | |
virtual void | setCropToBBox (bool cropToBBox)=0 |
Set whether to use the BoundingBox DSC comment for the PDF CropBox. The default is false. | |
virtual void | setHiResBBox (bool hiResBBox)=0 |
Set whether to use the HiResBoundingBox DSC comment if present. | |
virtual void | setCompressObjects (bool compressObjects)=0 |
Set whether or not to compress individual objects. | |
virtual void | setPageFilterLow (uint64 pageLow)=0 |
Set lower page limit. | |
virtual void | setPageFilterHigh (uint64 pageHigh)=0 |
Set upper page limit. | |
virtual void | setPageFilterRange (uint64 pageLow, uint64 pageHigh)=0 |
Set page range. | |
virtual void | setDocumentInformationString (eDocumentInfo key, const U8String &value)=0 |
Set PDF Document Information string. | |
virtual void | setEncryption (const U8String &ownerPassword, const U8String &userPassword="", uint32 permissions=0)=0 |
Set the encryption for the output PDF. | |
virtual void | setOverprint (bool overprint)=0 |
Set whether overprinting should be preserved. The default is false. | |
virtual void | setOverprintMode (bool overprintMode)=0 |
Set the overprint mode. The default is true, which sets non-zero overprint mode (/OPM 1). | |
virtual void | setHalftone (bool halftone)=0 |
Set whether halftone information should be preserved. The default is false. | |
virtual void | setOPI (bool opi)=0 |
Set whether OPI comments should be preserved. The default is false. | |
virtual void | setAscii85EncodePages (bool ascii85EncodePages)=0 |
Set whether to ASCII85-encode streams. The default is false. | |
virtual void | setLinearize (bool linearize)=0 |
Set whether the output should be linearized. The default is false. | |
virtual void | setJobTicket (bool jobTicket)=0 |
Set whether to add a job ticket object to the output. The default is false. | |
virtual void | setThumbnails (eThumbnailType thumbnails)=0 |
Set the PDF thumbnail type. | |
virtual void | setUseDeviceDependentColor (bool useDeviceDependentColor)=0 |
Set whether to convert device independent colors to device dependent colors The default is false. | |
virtual void | setCommentMonitor (IPSCommentMonitor *commentMonitor)=0 |
Set a comment monitor. | |
virtual void | distill (const IInputStreamPtr &inputStream, const IOutputStreamPtr &outputStream, const IProgressMonitorPtr &progressMonitor=IProgressMonitorPtr())=0 |
Convert (distill) an input PostScript stream to PDF. | |
Public Member Functions inherited from IRCObject | |
virtual void | addRef () const =0 |
Increases the reference count of the actual object pointed to. This would take place during an assignment or copying. | |
virtual bool | decRef () const =0 |
Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to. | |
virtual int32 | getRefCount () const =0 |
Retrieve the current reference count of the actual object pointed to. | |
Static Public Member Functions | |
static JAWSMAKO_API IDistillerPtr | create (const IJawsMakoPtr &jawsMako) |
Create an IDistiller interface. | |
Additional Inherited Members | |
Protected Member Functions inherited from IRCObject | |
virtual | ~IRCObject () |
Virtual destructor. | |
An instance of the JawsMako Distiller class.
Image compression formats.
JPEG-equivalent quality factors (QFactor)
Enumerator | |
---|---|
eJQLow | eJQLow is equivalent to a QFactor of 0.1 |
eJQMedium | eJQMedium is equivalent to a QFactor of 0.5 |
eJQHigh | eJQHigh is equivalent to a QFactor of 1.3 |
eJQUser | Compress using the QFactor set by setColorQFactor() |
|
pure virtual |
Adds a font.
Adds a font to the list of fonts for use when distilling with in-memory devices. Both the PostScript font name and the full name will be added to the list.
When using font or resource devices on disk, addFont() will add the font to the list of fonts on disk. Any existing font with the same name will be removed.
Only TrueType, TrueType collections or OpenType/CFF fonts are supported.
Equivalent to calling setParameter() with the parameter name "AddFont" the file name of the font.
font | The input font file name. |
|
pure virtual |
Adds fonts.
Convenience function to add fonts to the list of fonts for use when distilling with in-memory devices. Equivalent to calling addFont() for each font in the fonts vector.
fonts | The fonts to add. |
|
static |
Create an IDistiller interface.
The IDistiller interface allows PostScript to be converted (distilled) to PDF.
jawsMako | The IJawsMako object. |
|
pure virtual |
Convert (distill) an input PostScript stream to PDF.
The input and output streams will be both opened and closed, and will not be cloned.
inputStream | The input PostScript stream. |
outputStream | The output stream to write the PDF to. |
progressMonitor | A smart pointer to an IProgressMonitor object which can be NULL if no such object was passed in. |
|
pure virtual |
Gets a list of font names from a given file.
Both the PostScript font name and the full name will be retrieved from the file. Only TrueType, TrueType collections or OpenType/CFF fonts are supported.
If the font argument is an empty string, names will be populated with the names of all known fonts added with addFont().
font | The input font file name. |
names | A list of font names |
|
pure virtual |
Removes a named font.
Removes a font from the list of fonts to use when distilling.
Only font names added with addFont() will be removed.
fontName | The name of the font to remove. |
|
pure virtual |
Set whether to ASCII85-encode streams. The default is false.
Equivalent to calling setParameter() with the parameter name "ASCII85Encode" with a boolean string ("true" or "false").
ascii85EncodePages | Use ASCII85 encoding? |
|
pure virtual |
Set whether pages should be automatically rotated. The default is false.
If true, pages are automatically rotated based on the prevalent text direction on the page.
Equivalent to calling setParameter() with the parameter name "AutoRotatePages" with a boolean string ("true" or "false").
@param autoRotatePages Auto-rotate pages?
|
pure virtual |
Set the image compression for color images. The default is eICFlate.
CCITT is not allowed for color images.
Equivalent to calling setParameter() with the parameter name "ColorImageCompression" with appropriate values.
compression | The desired compression. |
|
pure virtual |
Set the desired downsampling method for color images. The default method is eIDNone (no downsampling).
Equivalent to calling setParameter() with the parameter name "ColorImageDownsampling".
method | The method to use when downsampling. |
|
pure virtual |
Set the desired resolution for color images when downsampling. The default is 72.
Equivalent to calling setParameter() with the parameter name "ColorImageResolution".
resolution | The desired output resolution, in dpi. Pass 0 to leave images unchanged. |
|
pure virtual |
Set the JPEG quality to use when compressing color images in DCT format. Equivalent to calling setParameter() with the parameter name "ColorJPEGQuality" enumeration value as a string ("Low", "Medium", "High" or "User"). The default is eJQLow.
When set to eJQUser, color images will be compressed using the QFactor set with setColorQFactor(). eJQLow is equivalent to a QFactor of 0.1, eJQMedium to 0.5 and eJQHigh to 1.3.
quality | The desired quality level. |
|
pure virtual |
Set the QFactor to use when compressing color images in DCT format. Applies only when setting the JPEG quality to eJQUser with setColorJPEGQuality().
The valid range of this field is from 0 to 1000000. Large numbers give better compression; small numbers give better quality.
Equivalent to calling setParameter() with the parameter name "ColorQFactor" with appropriate values.
qfactor | The QFactor to use when compressing with eJQUser. |
|
pure virtual |
Set a comment monitor.
Sets a IPSCommentMonitor instance that can be used to monitor PostScript comments.
Note that this routine does not take ownership of the passed pointer, which must remain allocated while IDistiller is in use.
commentMonitor | The comment monitor. |
|
pure virtual |
Set whether or not to compress individual objects.
In addition to the compression of individual objects, setting this to true allows the creation of cross reference streams, which allow the generation of PDF files larger than 9999999999 (~9.3GB).
This setting is advisory only. In particular if writing to PDF 1.4 or earlier, object compression will not be used at all.
Equivalent to calling setParameter() with the parameter name "CompressObjects" with a boolean string ("true" or "false").
The default is false.
compressObjects | Whether to compress individual objects. |
|
pure virtual |
Set whether or not compression should be applied to page content. The default is true.
Equivalent to calling setParameter() with the parameter name "CompressPages" with a boolean string ("true" or "false").
compressPages | Compress pages? |
|
pure virtual |
Set whether to convert CMYK images to RGB. The default is false.
Equivalent to calling setParameter() with the parameter name "ConvertCMYKImagesToRGB" with a boolean string ("true" or "false").
convert | Convert CMYK images to RGB? |
|
pure virtual |
Set whether to use the BoundingBox DSC comment for the PDF CropBox. The default is false.
Equivalent to calling setParameter() with the parameter name "CropToBBox" with a boolean string ("true" or "false").
cropToBBox | Whether to use the BoundingBox DSC comment for the PDF CropBox. |
|
pure virtual |
Sets the default Panose style to be used when emitting a CID font that is not in the Panose list, or NULL to clear. The Panose style must be a 12-byte hexadecimal string as described in the PDF reference, for example "010502020300000000000000".
Equivalent to calling setParameter() with the parameter name "DefaultPanoseStyle" with appropriate values.
defaultPanoseStyle | The default Panose style to use. |
|
pure virtual |
Set PDF Document Information string.
Sets the Document Information string for the given key.
setParameter() may also be used to set documentation information types, where the names are equivalent to eDocumentInfo keys. For example:
setParameter("Author", "John Smith");
|
pure virtual |
Set whether the base 14 PDF fonts should be forcibly embedded. Only the standard 14 fonts are not affected by this; use setEmbedFonts() to affect other fonts. The default is false.
Equivalent to calling setParameter() with the parameter name "EmbedBase14Fonts" with a boolean string ("true" or "false").
embed | Embed 'Base 14' fonts? |
|
pure virtual |
Set whether CID fonts obtained from resources (i.e, disk based CID fonts) can be embedded. This setting is only effective if the "EmbedFonts" parameter is set to true.
Equivalent to calling setParameter() with the parameter name "EmbedDiskBasedCidFonts" with a boolean string ("true" or "false").
embed | Embed disk-based CID fonts? |
|
pure virtual |
Set whether fonts should be forcibly embedded. The standard 14 fonts are not affected by this. The default is true.
Equivalent to calling setParameter() with the parameter name "EmbedFonts" with a boolean string ("true" or "false").
embed | Embed fonts? |
|
pure virtual |
Set the encryption for the output PDF.
The default is no encryption.
Please note:
Equivalent to calling setParameter with the parameter names "OwnerPassword", "UserPassword" and "Permissions".
ownerPassword | The owner password to use. |
userPassword | The user password to use. |
permissions | The permissions bit mask for the output PDF. (see IDOMStandardPDFSecurityInfo::ePermissionsFlags). |
|
pure virtual |
Set a epilog stream to be consumed by the PostScript interpreter after the input stream is processed, or NULL to clear.
This stream will be both opened and closed, and will not be cloned; take care when opening multiple PostScript inputs with the same epilog simultaneously.
A epilog stream may also be set with setParameter() using either the "EpilogFile" for an epilog file name value, or "EpilogCommand" for epilog PostScript data.
epilog | The epilog stream to use. |
|
pure virtual |
Sets the font device path.
Provides a method of using a custom PostScript font device in place of the usual in-memory device used by IDistiller. A fully qualified directory path must be provided, and the directory must already exist, IDistiller will not create it automatically. The font path must contain all the fonts required for distilling, and additional fonts may be added when using addFont().
Equivalent to calling setParameter() with the parameter name "FontDevice" with the name of the path.
path | The path name to use for the font device. |
|
pure virtual |
Set the image compression for gray images. The default is eICFlate.
CCITT is not allowed for gray images.
Equivalent to calling setParameter() with the parameter name "GrayImageCompression" with appropriate values.
compression | The desired compression. |
|
pure virtual |
Set the desired downsampling method for gray images. The default method is eIDNone (no downsampling).
Equivalent to calling setParameter() with the parameter name "GrayImageDownsampling".
method | The method to use when downsampling. |
|
pure virtual |
Set the desired resolution for gray images when downsampling. The default is 72.
Equivalent to calling setParameter() with the parameter name "GrayImageResolution".
resolution | The desired output resolution, in dpi. Pass 0 to leave images unchanged. |
|
pure virtual |
Set the JPEG quality to use when compressing gray images in DCT format. Equivalent to calling setParameter() with the parameter name "GrayJPEGQuality" enumeration value as a string ("Low", "Medium", "High" or "User"). The default is eJQLow.
When set to eJQUser, gray images will be compressed using the QFactor set with setGrayQFactor(). eJQLow is equivalent to a QFactor of 0.1, eJQMedium to 0.5 and eJQHigh to 1.3.
quality | The desired quality level. |
|
pure virtual |
Set the QFactor to use when compressing gray images in DCT format. Applies only when setting the JPEG quality to eJQUser with setColorJPEGQuality().
The valid range of this field is from 0 to 1000000. Large numbers give better compression; small numbers give better quality.
Equivalent to calling setParameter() with the parameter name "GrayQFactor" with appropriate values.
qfactor | The QFactor to use when compressing with eJQUser. |
|
pure virtual |
Set whether halftone information should be preserved. The default is false.
Equivalent to calling setParameter() with the parameter name "Halftone" with a boolean string ("true" or "false").
halftone | Preserve halftones? |
|
pure virtual |
Set whether to use the HiResBoundingBox DSC comment if present.
When set to true, and "TrimToBBox" or "CropToBBox" are set to true the HiResBoundingBox DSC comment will be used for the page size or CropBox instead of the BoundingBox DSC comment if it is defined in the input job. If the job defines no HiResBoundingBox DSC comment the BoundingBox is used. The default is false. Equivalent to calling setParameter() with the parameter name "HiResBBox" with a boolean string ("true" or "false").
hiResBBox | Whether to use the HiResBoundingBox DSC comment. |
|
pure virtual |
Set whether to add a job ticket object to the output. The default is false.
If this flag is set, Portable Job Ticket information is added to the generated PDF file.
Equivalent to calling setParameter() with the parameter name "JobTicket" with a boolean string ("true" or "false").
jobTicket | Add job ticket? |
|
pure virtual |
Set whether the output should be linearized. The default is false.
When true, a PDF optimized for byte serving (for example from a web server) will be produced. This will generally be a slow operation.
Equivalent to calling setParameter() with the parameter name "Linearize" with a boolean string ("true" or "false").
linearize | Linearize? |
|
pure virtual |
Set the image compression for monochrome images. The default is eICCCITT.
JPEG/DCT and auto are not allowed for mono images.
Equivalent to calling setParameter() with the parameter name "MonoImageCompression" with appropriate values.
compression | The desired compression. |
|
pure virtual |
Set the desired downsampling method for monochrome images. The default method is eIDNone (no downsampling).
Equivalent to calling setParameter() with the parameter name "MonoImageDownsampling".
method | The method to use when downsampling. |
|
pure virtual |
Set the desired resolution for monochrome images when downsampling. The default is 72.
Equivalent to calling setParameter() with the parameter name "MonoImageResolution".
resolution | The desired output resolution, in dpi. Pass 0 to leave images unchanged. |
|
pure virtual |
Set whether OPI comments should be preserved. The default is false.
Equivalent to calling setParameter() with the parameter name "OPI" with a boolean string ("true" or "false").
opi | Preserve OPI comments? |
|
pure virtual |
Set whether overprinting should be preserved. The default is false.
Equivalent to calling setParameter() with the parameter name "Overprint" with a boolean string ("true" or "false").
overprint | Preserve overprinting? |
|
pure virtual |
Set the overprint mode. The default is true, which sets non-zero overprint mode (/OPM 1).
When set to false /OPM 0 is used when overprinting.
Equivalent to calling setParameter() with the parameter name "OverprintMode" with a boolean string ("true" or "false").
overprintMode | Use non-zero overprint mode? |
|
pure virtual |
Set upper page limit.
Sets the upper limit of pages to be included in the output. Pages are numbered starting with page 1. If set to a non-zero value, all input data following that page will be silently discarded. If set to 0, no upper page limit is set.
Equivalent to calling setParameter() with the parameter name "PageFilterHigh" with the page number as a string.
The default is 0.
pageHigh | The upper page limit. |
|
pure virtual |
Set lower page limit.
Sets the lower limit of pages to be included in the output. Pages are numbered starting with page 1. If set to 0, no lower page limit is set.
Equivalent to calling setParameter() with the parameter name "PageFilterLow" with the page number as a string.
The default is 0.
pageLow | The lower page limit. |
|
pure virtual |
Set page range.
Convenience function to set the pages to be included in the output. Equivalent to calling setPageFilterLow() and setPageFilterHigh() with lower and upper page limits.
The default for each parameter is 0.
pageLow | The lower page limit. |
pageHigh | The upper page limit. |
|
pure virtual |
Sets a stream that refers to a list of CID font names and their associated Panose styles.
Each line of the list must consist of two fields that are tab delimited. The first field is the font name. The second field is the complete string representing the Panose Style entry. For example:
GothicBBBPr6-Medium<tab>0801020b0500000000000000 GothicBBB-Medium<tab>0801020b0500000000000000
If set, the default Panose style will be used when Jaws emits a CID font that is not in the list.
Equivalent to calling setParameter() with the parameter name "Panose" with appropriate values.
panose | The Panose stream. |
|
pure virtual |
Apply a key-value pair output parameter with a string value. The parameter name is case insensitive. Please refer to the supplied documentation for the details of the available parameters and their ranges.
param | The parameter to change |
value | The value to set |
|
pure virtual |
Set the PDF version to generate.
Valid versions supported are:
Equivalent to calling setParameter with the parameter name "PDFVersion" with the value of the version as a string (e.g. "1.6"). The default is 1.3.
version | The PDF version to generate. |
|
pure virtual |
Set a prolog stream to be consumed by the PostScript interpreter before the input stream is processed, or NULL to clear.
This stream will be both opened and closed, and will not be cloned; take care when opening multiple PostScript inputs with the same prolog simultaneously.
A prolog stream may also be set with setParameter() using either the "PrologFile" for a prolog file name value, or "PrologCommand" for prolog PostScript data.
prolog | The prolog stream to use. |
|
pure virtual |
Set the target resolution for the output, in dots per inch. The default is 288. Equivalent to calling setParameter with the parameter name "Resolution".
resolution | The desired resolution. |
|
pure virtual |
Sets the resource device path.
Provides a method of using a custom PostScript resource device in place of the usual in-memory device used by IDistiller. A fully qualified directory path must be provided, and the directory must already exist, IDistiller will not create it automatically. The resource path must contain all the PostScript required for distilling, and additional fonts may be added when using addFont().
Equivalent to calling setParameter() with the parameter name "ResourceDevice" with the name of the path.
path | The path name to use for the resource device. |
|
pure virtual |
Set whether embedded fonts should be subset or not. The default is true.
This is a preference only. Some font types may require subsetting based on context.
Equivalent to calling setParameter() with the parameter name "SubsetFonts" with a boolean string ("true" or "false").
subset | Subset fonts? |
|
pure virtual |
Set the PDF thumbnail type.
Equivalent to calling setParameter with the parameter name "thumbnails" with the enumeration value as a string ("None", "Color" or "Mono"). The default is eTHNone.
thumbnails | The desired thumbnail type. |
|
pure virtual |
Set the desired method to for controlling transfer functions.
Equivalent to calling setParameter with the parameter name "Transfers" with the enumeration value as a string ("Apply", "Remove" or "Preserve"). The default is eTRApply.
transfers | The desired transfer method. |
|
pure virtual |
Set whether to use the BoundingBox DSC comment for the page size. The default is false.
Equivalent to calling setParameter() with the parameter name "TrimToBBox" with a boolean string ("true" or "false").
trimToBBox | Whether to use the BoundingBox DSC comment for the page size. |
|
pure virtual |
Set whether to convert device independent colors to device dependent colors The default is false.
Equivalent to calling setParameter() with the parameter name "UseDeviceDependentColor" with a boolean string ("true" or "false").
useDeviceDependentColor | Use convert? |