DrawParams Class Documentation
class DrawParamsNamespace:datalogics_interface
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.
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(const DrawParams & other)Parameters
other: const DrawParams &
Copy constructor.
DrawParams
DrawParams(DrawParams && )Parameters
~DrawParams
~DrawParams()Member Function Documentation
get_bypass_copy_perm
bool get_bypass_copy_perm()Returns:
boolBypass copy permissions. Only used when drawing to a bitmap.
get_color_space
std::unique_ptr< ColorSpace > get_color_space()Returns:
std::unique_ptr< 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.
get_dest_rect
Rect get_dest_rect()Returns:
RectThe rectangle of the bitmap in device space coordinates.
Only used when drawing to a bitmap.
get_enable_black_point_compensation
bool get_enable_black_point_compensation()Returns:
boolEnable/disable black point compensation.
get_enable_thin_line_heuristics
bool get_enable_thin_line_heuristics()Returns:
boolEnable/disable thin line adjustments when drawing rectangles.
get_flags
DrawFlags get_flags()Returns:
DrawFlagsDrawing flags.
get_icc_profile
ColorProfile get_icc_profile()Returns:
ColorProfileThe 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.
get_icc_profile_custom_path
std::string get_icc_profile_custom_path()Returns:
std::stringThe 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.
get_matrix
Matrix get_matrix()Returns:
MatrixThe matrix to concatenate onto the default page matrix.
Useful for converting from page to window coordinates and for scaling.
get_optional_content_context
std::unique_ptr< OptionalContentContext > get_optional_content_context()Returns:
std::unique_ptr< OptionalContentContext >The optional content context, or NULL if using the document's default.
Get the optional-content context used for visibility state information.
get_render_intent
RenderIntent get_render_intent()Returns:
RenderIntentDefault rendering intent is RelColorimetric (relative colorimetric). Only used when drawing to a bitmap.
get_smooth_flags
SmoothFlags get_smooth_flags()Returns:
SmoothFlagsSmoothing flags. Only used when drawing to a bitmap.
get_update_rect
Rect get_update_rect()Returns:
RectThe 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.
operator=
DrawParams & operator=(const DrawParams & other)Parameters
other: const DrawParams &
Returns:
DrawParams &Copy assignment.
operator=
DrawParams & operator=(DrawParams && )Parameters
Returns:
DrawParams &set_bypass_copy_perm
void set_bypass_copy_perm(bool value)Parameters
value: bool
Returns:
voidBypass copy permissions. Only used when drawing to a bitmap.
set_color_space
void set_color_space(ColorSpace & color_space)Parameters
color_space: ColorSpace &the color space in which the bitmap data is represented
Returns:
voidThe 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.
set_dest_rect
void set_dest_rect(const Rect & rect)Parameters
rect: const Rect &
Returns:
voidThe rectangle of the bitmap in device space coordinates.
Only used when drawing to a bitmap.
set_enable_black_point_compensation
void set_enable_black_point_compensation(bool value)Parameters
value: bool
Returns:
voidEnable/disable black point compensation.
set_enable_thin_line_heuristics
void set_enable_thin_line_heuristics(bool value)Parameters
value: bool
Returns:
voidEnable/disable thin line adjustments when drawing rectangles.
set_flags
void set_flags(DrawFlags flags)Parameters
flags: DrawFlags
Returns:
voidDrawing flags.
set_icc_profile
void set_icc_profile(ColorProfile profile)Parameters
profile: ColorProfile
Returns:
voidThe 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.
set_icc_profile_custom_path
void set_icc_profile_custom_path(const std::string & path)Parameters
path: const std::string &
Returns:
voidThe 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.
set_matrix
void set_matrix(const Matrix & matrix)Parameters
matrix: const Matrix &
Returns:
voidThe matrix to concatenate onto the default page matrix.
Useful for converting from page to window coordinates and for scaling.
set_optional_content_context
void set_optional_content_context(OptionalContentContext & context)Parameters
context: OptionalContentContext &The optional content context, or NULL for the default.
Returns:
voidThe optional-content context to use for visibility state information.
Set to NULL to use the document's current states in the default context.
set_render_intent
void set_render_intent(RenderIntent intent)Parameters
intent: RenderIntent
Returns:
voidDefault rendering intent is RelColorimetric (relative colorimetric). Only used when drawing to a bitmap.
set_smooth_flags
void set_smooth_flags(SmoothFlags flags)Parameters
flags: SmoothFlags
Returns:
voidSmoothing flags. Only used when drawing to a bitmap.
set_update_rect
void set_update_rect(const Rect & rect)Parameters
rect: const Rect &
Returns:
voidThe 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.