DrawParams Class Documentation

class DrawParams

Namespace:com::datalogics::PDFL

Detailed Description

Settings for rendering PDF pages as images. This is used for rendering PDF pages to images, such as PNG or JPG files, to export to separate files or to send to a printer.

Referenced by

Constructor & Destructor Documentation

DrawParams

DrawParams()

Construct default DrawParams. Initializes with DeviceRGB color space, relative colorimetric render intent, no smoothing, no draw flags, and no cancel or progress callbacks.

DrawParams

DrawParams(DrawParams rhs)

Parameters

rhs: DrawParams

The DrawParams to copy from.

Copy constructor.

Member Function Documentation

delete

synchronized void delete(Boolean disposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized void delete()

Returns:

synchronized void

finalize

void finalize()

Returns:

void

getBypassCopyPerm

boolean getBypassCopyPerm()

Returns:

boolean

Bypass copy permissions. Only used when drawing to a bitmap.

getCancelProc

CancelProc getCancelProc()

Returns:

CancelProc

The current cancel callback, or null if none is set.

Get the cancel callback for rendering operations.

getColorSpace

ColorSpace getColorSpace()

Returns:

ColorSpace

The color space in which the bitmap data is represented. Must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, Lab, or LabA. Only used when drawing to a bitmap.

getDestRect

Rect getDestRect()

Returns:

Rect

The rectangle of the bitmap in device space coordinates. Only used when drawing to a bitmap.

getEnableBlackPointCompensation

boolean getEnableBlackPointCompensation()

Returns:

boolean

Enable/disable black point compensation.

getEnableThinLineHeuristics

boolean getEnableThinLineHeuristics()

Returns:

boolean

Enable/disable thin line adjustments when drawing rectangles

getFlags

java.util.EnumSet< DrawFlags > getFlags()

Returns:

java.util.EnumSet< DrawFlags >

Drawing flags.

getICCProfile

ColorProfile getICCProfile()

Returns:

ColorProfile

The ICC Profile of the colorspace to be used for rendering, from a known value. NOTE: The ICCProfileCustomPath must not be set for this property to be used. The profile must be compatible with the ColorSpace property value, which can't be set to ICCBased either.

getICCProfileCustomPath

String getICCProfileCustomPath()

Returns:

String

The ICC Profile of the colorspace to be used for rendering, from a custom file path. NOTE: The ICCProfile is ignored when this property is a non-empty string. The profile must be compatible with the ColorSpace property value, which can't be set to ICCBased either.

getMatrix

Matrix getMatrix()

Returns:

Matrix

The matrix to concatenate onto the default page matrix. Useful for converting from page to window coordinates and for scaling.

getOptionalContentContext

OptionalContentContext getOptionalContentContext()

Returns:

OptionalContentContext

The optional content context, or NULL if using the document's default.

Get the optional-content context used for visibility state information.

getProgressProc

RenderProgressProc getProgressProc()

Returns:

RenderProgressProc

The current progress callback, or null if none is set.

Get the progress callback for rendering operations.

getRenderIntent

RenderIntent getRenderIntent()

Returns:

RenderIntent

Default rendering intent is RelColorimetric (relative colorimetric). Only used when drawing to a bitmap.

getSmoothFlags

java.util.EnumSet< SmoothFlags > getSmoothFlags()

Returns:

java.util.EnumSet< SmoothFlags >

Smoothing flags. Only used when drawing to a bitmap.

getUpdateRect

Rect getUpdateRect()

Returns:

Rect

The rectangle specifying the area to draw. A rectangle represented by the coordinates of its four sides. If unset (degenerate), the page's CropBox is used instead.

setBypassCopyPerm

void setBypassCopyPerm(boolean value)

Parameters

value: boolean

Returns:

void

Bypass copy permissions. Only used when drawing to a bitmap.

setCancelProc

void setCancelProc(CancelProc cancelProc)

Parameters

cancelProc: CancelProc

The cancel callback to set, or null to clear.

Returns:

void

The cancel callback for rendering operations. A CancelProc can return true to cancel the operation. May be null.

setColorSpace

void setColorSpace(ColorSpace colorSpace)

Parameters

colorSpace: ColorSpace

Returns:

void

The color space in which the bitmap data is represented. Must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, Lab, or LabA. Only used when drawing to a bitmap.

setDestRect

void setDestRect(Rect rect)

Parameters

rect: Rect

Returns:

void

The rectangle of the bitmap in device space coordinates. Only used when drawing to a bitmap.

setEnableBlackPointCompensation

void setEnableBlackPointCompensation(boolean value)

Parameters

value: boolean

Returns:

void

Enable/disable black point compensation.

setEnableThinLineHeuristics

void setEnableThinLineHeuristics(boolean value)

Parameters

value: boolean

Returns:

void

Enable/disable thin line adjustments when drawing rectangles

setFlags

void setFlags(java.util.EnumSet< DrawFlags > value)

Parameters

value: java.util.EnumSet< DrawFlags >

Returns:

void

Drawing flags.

setICCProfile

void setICCProfile(ColorProfile colorProfile)

Parameters

colorProfile: ColorProfile

Returns:

void

The ICC Profile of the colorspace to be used for rendering, from a known value. NOTE: The ICCProfileCustomPath must not be set for this property to be used. The profile must be compatible with the ColorSpace property value, which can't be set to ICCBased either.

setICCProfileCustomPath

void setICCProfileCustomPath(String colorProfilePath)

Parameters

colorProfilePath: String

Returns:

void

The ICC Profile of the colorspace to be used for rendering, from a custom file path. NOTE: The ICCProfile is ignored when this property is a non-empty string. The profile must be compatible with the ColorSpace property value, which can't be set to ICCBased either.

setMatrix

void setMatrix(Matrix matrix)

Parameters

matrix: Matrix

Returns:

void

The matrix to concatenate onto the default page matrix. Useful for converting from page to window coordinates and for scaling.

setOptionalContentContext

void setOptionalContentContext(OptionalContentContext context)

Parameters

context: OptionalContentContext

The optional content context, or NULL for the default.

Returns:

void

The optional-content context to use for visibility state information. Set to NULL to use the document's current states in the default context.

setProgressProc

void setProgressProc(RenderProgressProc progressProc)

Parameters

progressProc: RenderProgressProc

The progress callback to set, or null to clear.

Returns:

void

The progress callback for rendering operations. A RenderProgressProc receives updates regarding rendering progress. May be null.

setRenderIntent

void setRenderIntent(RenderIntent value)

Parameters

value: RenderIntent

Returns:

void

Default rendering intent is RelColorimetric (relative colorimetric). Only used when drawing to a bitmap.

setSmoothFlags

void setSmoothFlags(java.util.EnumSet< SmoothFlags > value)

Parameters

value: java.util.EnumSet< SmoothFlags >

Returns:

void

Smoothing flags. Only used when drawing to a bitmap.

setUpdateRect

void setUpdateRect(Rect rect)

Parameters

rect: Rect

Returns:

void

The rectangle specifying the area to draw. A rectangle represented by the coordinates of its four sides. If unset (degenerate), the page's CropBox is used instead.