Package com.datalogics.PDFL
Class DrawParams
java.lang.Object
com.datalogics.PDFL.DrawParams
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()booleanBypass copy permissions.Get the cancel callback.The color space in which the bitmap data is represented.The rectangle of the bitmap.booleanEnable/disable black point compensation.booleanEnable/disable thin line adjustments when drawing rectanglesgetFlags()Drawing flags.Gets the ICC Profile of the colorspace to be used for rendering from a known value.Gets the ICC Profile of the colorspace to be used for rendering from a custom file path.A pointer to the matrix to concatenate onto the default page matrix.The optional-content context to use for visibility state information, or NULL to use the document's current states in the default context.Get the progress callback.Default rendering intent is RelColorimetric (relative colorimetric).Smoothing flags.A rectangle represented by the coordinates of its four sides, which specifies the area to draw.voidsetBypassCopyPerm(boolean value) Bypass copy permissions.voidsetCancelProc(CancelProc cancelProc) Set the cancel callback.voidsetColorSpace(ColorSpace colorSpace) The color space in which the bitmap data is represented.voidsetDestRect(Rect rect) The rectangle of the bitmap.voidsetEnableBlackPointCompensation(boolean value) Enable/disable black point compensation.voidsetEnableThinLineHeuristics(boolean value) Enable/disable thin line adjustments when drawing rectanglesvoidDrawing flags.voidsetICCProfile(ColorProfile colorProfile) Sets the ICC Profile of the colorspace to be used for rendering to a known value.voidsetICCProfileCustomPath(String colorProfilePath) Sets the ICC Profile of the colorspace to be used for rendering from a custom file path.voidA pointer to the matrix to concatenate onto the default page matrix.voidThe optional-content context to use for visibility state information, or NULL to use the document's current states in the default context.voidsetProgressProc(RenderProgressProc progressProc) Set the progress callback.voidsetRenderIntent(RenderIntent value) Default rendering intent is RelColorimetric (relative colorimetric).voidsetSmoothFlags(EnumSet<SmoothFlags> value) Smoothing flags.voidsetUpdateRect(Rect rect) A rectangle represented by the coordinates of its four sides, which specifies the area to draw.
-
Constructor Details
-
DrawParams
public DrawParams() -
DrawParams
-
-
Method Details
-
delete
public void delete() -
setFlags
Drawing flags. -
getFlags
Drawing flags. -
getUpdateRect
A rectangle represented by the coordinates of its four sides, which specifies the area to draw. -
setUpdateRect
A rectangle represented by the coordinates of its four sides, which specifies the area to draw. -
getDestRect
The rectangle of the bitmap. It is defined in device space coordinates. Only used when drawing to a bitmap. -
setDestRect
The rectangle of the bitmap. It is defined in device space coordinates. Only used when drawing to a bitmap. -
getMatrix
A pointer to the matrix to concatenate onto the default page matrix. It is useful for converting from page to window coordinates and for scaling. -
setMatrix
A pointer to the matrix to concatenate onto the default page matrix. It is useful for converting from page to window coordinates and for scaling. -
setCancelProc
Set the cancel callback.- Parameters:
cancelProc- a CancelProc, which can return true to cancel the operation, may be null.
-
getCancelProc
Get the cancel callback. -
setProgressProc
Set the progress callback.- Parameters:
progressProc- a RenderProgressProc, that can receive updates regarding rendering progress, may be null.
-
getProgressProc
Get the progress callback. -
setColorSpace
The color space in which the bitmap data is represented. It must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, Lab, or LabA. Only used when drawing to a bitmap. -
getColorSpace
The color space in which the bitmap data is represented. It must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, Lab, or LabA. Only used when drawing to a bitmap. -
setSmoothFlags
Smoothing flags. Only used when drawing to a bitmap. -
getSmoothFlags
Smoothing flags. Only used when drawing to a bitmap. -
setBypassCopyPerm
public void setBypassCopyPerm(boolean value) Bypass copy permissions. Only used when drawing to a bitmap. -
getBypassCopyPerm
public boolean getBypassCopyPerm()Bypass copy permissions. Only used when drawing to a bitmap. -
setEnableBlackPointCompensation
public void setEnableBlackPointCompensation(boolean value) Enable/disable black point compensation. -
getEnableBlackPointCompensation
public boolean getEnableBlackPointCompensation()Enable/disable black point compensation. -
setEnableThinLineHeuristics
public void setEnableThinLineHeuristics(boolean value) Enable/disable thin line adjustments when drawing rectangles -
getEnableThinLineHeuristics
public boolean getEnableThinLineHeuristics()Enable/disable thin line adjustments when drawing rectangles -
setRenderIntent
Default rendering intent is RelColorimetric (relative colorimetric). Only used when drawing to a bitmap. -
getRenderIntent
Default rendering intent is RelColorimetric (relative colorimetric). Only used when drawing to a bitmap. -
setOptionalContentContext
The optional-content context to use for visibility state information, or NULL to use the document's current states in the default context. -
getOptionalContentContext
The optional-content context to use for visibility state information, or NULL to use the document's current states in the default context. -
getICCProfile
Gets 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.
-
setICCProfile
Sets the ICC Profile of the colorspace to be used for rendering to 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
Gets 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.
-
setICCProfileCustomPath
Sets 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.
-