Click or drag to resize

PDFRasterizer Class

PDFRasterizer is a low-level PDF rasterizer. The main purpose of this class is to convert PDF pages to raster images (or bitmaps). PDFRasterizer is a relatively low-level class. If you need to convert PDF page to an image format or a Bitmap, consider using PDF::PDFDraw. Similarly, if you are building an interactive PDF viewing application use PDF::PDFViewCtrl instead.
Inheritance Hierarchy
SystemObject
  pdftron.PDFPDFRasterizer

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class PDFRasterizer : IClosable

The PDFRasterizer type exposes the following members.

Constructors
  NameDescription
Public methodPDFRasterizer
empty PDFRasterizer constructor
Public methodPDFRasterizer(PDFRasterizerType)
instantiates PDFRasterizer with specified type
Top
Properties
  NameDescription
Public propertyCancel
Gets or sets whether rasterization should be cancelled.
Top
Methods
  NameDescription
Public methodCancelRendering
Cancel the rendering in progress.
Public methodClose
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetColorPostProcessMode
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetRasterizerType
Gets the type of current rasterizer.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleRasterize
Draws the page into a given memory buffer.
Public methodRasterizeSeparations
Draws the page into a given memory buffer (Separation)
Public methodSetAntiAliasing
Enable or disable anti-aliasing. Anti-Aliasing is a technique used to improve the visual quality of images when displaying them on low resolution devices (for example, low DPI computer monitors). Anti-aliasing is enabled by default.
Public methodSetBackgroundColor
Sets the background colors for the Rasterizer The Rasterizer will start initialize the entire buffer with this color The default is transparent (each byte is 0)
Public methodSetCaching
Sets the caching.
Public methodSetColorPostProcessColors
Set the color post processing transformation. This transform is applied to the rasterized bitmap as the final step in the rasterization process, and is applied directly to the resulting bitmap(disregarding any color space information). Color post processing only supported for RGBA output. This mode will map the brightness of the original rasterized bitmap to a gradient between whiteColor and blackColor
Public methodSetColorPostProcessMode
Draws the page into a given memory buffer. Set the color post processing transformation. This transform is applied to the rasterized bitmap as the final step in the rasterization process, and is applied directly to the resulting bitmap (disregarding any color space information). Color post processing only supported for RGBA output.
Public methodSetDrawAnnotations
Enable or disable annotation and forms rendering. By default, annotations and forms are rendered.
Public methodSetGamma
Sets the gamma factor used for anti-aliased rendering.
Public methodSetHighlightFields
Enable or disable highlighting form fields. Default is disabled.
Public methodSetImageSmoothing
Enable or disable image smoothing. The rasterizer allows a tradeoff between rendering quality and rendering speed. This function can be used to indicate the preference between rendering speed and quality.image smoothing is enabled by default.
Public methodSetOCGContext
Public methodSetOverprint
Enable or disable support for overprint. Overprint is a device dependent feature and the results will vary depending on the output color space and supported colorants (i.e. CMYK, CMYK+spot, RGB, etc). By default overprint is enabled for only PDF/X files.
Public methodSetPathHinting
Enable or disable path hinting. Path hinting is used to slightly adjust paths in order to avoid or alleviate artifacts of hair line cracks between certain graphical elements. This option is turned on by default.
Public methodSetPrintMode
Tells the rasterizer to render the page 'print' mode. Certain page elements (such as annotations or OCG-s) are meant to be visible either on the screen or on the printed paper but not both. A common example, is the "Submit" button on electronic forms.
Public methodSetRasterizerType
Sets rasterizer to the specified type
Public methodSetThinLineAdjustment
Set thin line adjustment parameters.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also