API
An instance of the JawsMako Distiller class.
#include <distiller.h>
Public Types | |
enum | ePDFVersion { |
Supported PDF versions. | |
enum | eTransferFunctionMethod { eTRApply, eTRRemove, eTRPreserve } |
Enumeration for transfer function methods. | |
enum | eImageCompression { , eICDCT } |
Enumeration for image compression formats. | |
enum | eJpegQuality |
Enumeration for JPEG quality. | |
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 | 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 | 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. | |
virtual void | setGrayImageCompression (eImageCompression compression)=0 |
Set the image compression for gray images. The default is eICFlate. | |
virtual void | setMonoImageCompression (eImageCompression compression)=0 |
Set the image compression for monochrome images. The default is eICCCITT. | |
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 | 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. More... | |
virtual void | removeFont (const U8String &fontName)=0 |
Removes a named font. More... | |
virtual void | setFontDevicePath (const U8String &path)=0 |
Sets the font device path. More... | |
virtual void | setResourceDevicePath (const U8String &path)=0 |
Sets the resource device path. More... | |
virtual void | distill (const IInputStreamPtr &inputStream, const IOutputStreamPtr &outputStream, const IProgressMonitorPtr &progressMonitor=IProgressMonitorPtr())=0 |
Convert (distill) an input PostScript stream to PDF. More... | |
Public Member Functions inherited from | |
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. More... | |
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 a IDistiller interface. |