DrawParams Class Documentation

classDrawParams

Namespace:datalogics_interface

Detailed Description

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()

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

~DrawParams

~DrawParams()

Member Function Documentation

get_bypass_copy_perm

boolget_bypass_copy_perm()

Returns:

bool

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

get_dest_rect

Rectget_dest_rect()

Returns:

Rect

Only used when drawing to a bitmap.

get_enable_black_point_compensation

boolget_enable_black_point_compensation()

Returns:

bool

Enable/disable black point compensation.

get_enable_thin_line_heuristics

boolget_enable_thin_line_heuristics()

Returns:

bool

Enable/disable thin line adjustments when drawing rectangles.

get_icc_profile

ColorProfileget_icc_profile()

Returns:

ColorProfile

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::stringget_icc_profile_custom_path()

Returns:

std::string

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

Matrixget_matrix()

Returns:

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:

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

RenderIntentget_render_intent()

Returns:

RenderIntent

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

get_smooth_flags

SmoothFlagsget_smooth_flags()

Returns:

SmoothFlags

Smoothing flags. Only used when drawing to a bitmap.

get_update_rect

Rectget_update_rect()

Returns:

Rect

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

set_bypass_copy_perm

voidset_bypass_copy_perm(boolvalue)

Parameters

value: bool

Returns:

void

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

set_color_space

voidset_color_space(ColorSpace &color_space)

Parameters

color_space: ColorSpace &

the color space in which the bitmap data is represented

Returns:

void

Must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, Lab, or LabA. Only used when drawing to a bitmap.

set_dest_rect

voidset_dest_rect(const Rect &rect)

Parameters

Returns:

void

Only used when drawing to a bitmap.

set_enable_black_point_compensation

voidset_enable_black_point_compensation(boolvalue)

Parameters

value: bool

Returns:

void

Enable/disable black point compensation.

set_enable_thin_line_heuristics

voidset_enable_thin_line_heuristics(boolvalue)

Parameters

value: bool

Returns:

void

Enable/disable thin line adjustments when drawing rectangles.

set_flags

voidset_flags(DrawFlagsflags)

Parameters

flags: DrawFlags

Returns:

void

Drawing flags.

set_icc_profile

voidset_icc_profile(ColorProfileprofile)

Parameters

profile: ColorProfile

Returns:

void

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

voidset_icc_profile_custom_path(const std::string &path)

Parameters

path: const std::string &

Returns:

void

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

voidset_matrix(const Matrix &matrix)

Parameters

Returns:

void

Useful for converting from page to window coordinates and for scaling.

set_optional_content_context

voidset_optional_content_context(OptionalContentContext &context)

Parameters

context: OptionalContentContext &

The optional content context, or NULL for the default.

Returns:

void

Set to NULL to use the document's current states in the default context.

set_render_intent

voidset_render_intent(RenderIntentintent)

Parameters

intent: RenderIntent

Returns:

void

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

set_smooth_flags

voidset_smooth_flags(SmoothFlagsflags)

Parameters

Returns:

void

Smoothing flags. Only used when drawing to a bitmap.

set_update_rect

voidset_update_rect(const Rect &rect)

Parameters

Returns:

void

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