PageImageParams Class Documentation

classPageImageParams

Namespace:com::datalogics::PDFL

Detailed Description

Used to manage converting a PDF page to an image. The Page Image Parameters are a set of parameters used to control converting a PDF page to an image, such as a PNG, JPG, or BMP. The parameters include pixel height & width, color space, resolution, so on.

Referenced by

Uses types

Constructor & Destructor Documentation

PageImageParams

PageImageParams()

Construct default PageImageParams. Initializes with DeviceRGB color space, no smoothing, zero pixel dimensions, 300 dpi resolution, relative colorimetric render intent, and black point compensation enabled.

PageImageParams

PageImageParams(ColorSpaceColorSpace, java.util.EnumSet< SmoothFlags >Smoothing, intPixelWidth, intPixelHeight, doubleHorizontalResolution, doubleVerticalResolution, java.util.EnumSet< DrawFlags >PageDrawFlags)

Parameters

ColorSpace: ColorSpace
Smoothing: java.util.EnumSet< SmoothFlags >

Indicates what parts of PDF Page (text, image, art, none) are to be smoothed in rendering to an image. Note these flags can be or'd together

PixelWidth: int

The desired witdth in pixels of the output image.

PixelHeight: int

The desired height in pixels of the output image.

HorizontalResolution: double

The desired horizontal resolution in pixels/inch of the output image. If you pass in 0.0, 300.0 dpi is used.

VerticalResolution: double

The desired vertical resolution in pixels/inch of the output image. If you pass in 0.0, 300.0 dpi is used.

PageDrawFlags: java.util.EnumSet< DrawFlags >

An OR of the flags from DrawFlags which control how the PDF page is to be drawn.

Set up the parameters for rendering a PDF page to an image. Horizontal and Vertical Resolution have to be either both zero or both non-zero.

Member Function Documentation

DisposeChildren

voidDisposeChildren()

Returns:

void

[static initializer]

static void[static initializer]()

delete

synchronized voiddelete(Booleandisposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized voiddelete()

Returns:

synchronized void

finalize

voidfinalize()

Returns:

void

getBlackPointCompensation

booleangetBlackPointCompensation()

Returns:

boolean

The BlackPointCompensation setting. Default is true if not explicitly set.

getBypassCopyPerm

booleangetBypassCopyPerm()

Returns:

true if this option is turned on.

The BypassCopyPerm allows to bypass copy permitions.

getCalibrateDeviceSpacesWhenPrinting

booleangetCalibrateDeviceSpacesWhenPrinting()

Returns:

true if this option is turned on.

Sets if Device spaces should be treated as calibrated to the associated working profile (when true), otherwise it treats them as uncalibrated (when false) when printing.

getHorizontalResolution

doublegetHorizontalResolution()

Returns:

double

The desired horizontal resolution in pixels/inch of the output image. Defaults to 300 dpi. Must not be negative. Horizontal and vertical resolution must be either both zero or both non-zero.

getICCProfile

ColorProfilegetICCProfile()

Returns:

ColorProfile

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.

getICCProfileCustomPath

StringgetICCProfileCustomPath()

Returns:

String

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.

getImageColorSpace

ColorSpacegetImageColorSpace()

Returns:

ColorSpace

The ColorSpace used in exporting a PDF page to an image. Must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, DeviceN, or ICCBased.

getPageDrawFlags

java.util.EnumSet< DrawFlags >getPageDrawFlags()

Returns:

java.util.EnumSet< DrawFlags >

The DrawFlags used for rendering a PDF page to an image. An OR of the flags from DrawFlags which control how the PDF page is drawn.

getPixelHeight

intgetPixelHeight()

Returns:

int

The height in pixels of the image to be created from a PDF page. If not specified (zero), the rendered PDF page size will be used. PixelWidth and PixelHeight must be either both zero or both non-zero.

getPixelWidth

intgetPixelWidth()

Returns:

int

The width in pixels of the image to be created from a PDF page. If not specified (zero), the rendered PDF page size will be used. PixelWidth and PixelHeight must be either both zero or both non-zero.

getRenderIntent

RenderIntentgetRenderIntent()

Returns:

RenderIntent

The RenderIntent used to specify color translation for colors outside gamut of the color profile used. The default is relative colorimetric.

getSmoothing

java.util.EnumSet< SmoothFlags >getSmoothing()

Returns:

java.util.EnumSet< SmoothFlags >

The SmoothFlags used in exporting a PDF page to an image. Indicates what parts of the PDF page (text, image, art, none) are to be smoothed when rendering to an image. These flags can be OR'd together.

getThinLineHeuristics

booleangetThinLineHeuristics()

Returns:

true if thin line heuristics are applied, false otherwise.

The ThinLineHeuristics setting. Determines whether thin lines will be fattened non-linearly or the stroke adjust will be applied to thin rectangles.

getUseDeviceNForImageSeparations

booleangetUseDeviceNForImageSeparations()

Returns:

true if this option is turned on. NOTE: This member is only applicable when calling the GetImageSeparations() method, only when Colorants used are only Process.

Gets the UseDeviceNForImageSeparations setting, which indicates when the GetImageSeparations() method is called if a DeviceN colorspace will be used for rasterization.When false, if only Process colorants are provided to GetImageSeparations() then it's rendered using DeviceCMYK.When true, then it's rendered using DeviceN.

getVerticalResolution

doublegetVerticalResolution()

Returns:

double

The desired vertical resolution in pixels/inch of the output image. Defaults to 300 dpi. Must not be negative. Horizontal and vertical resolution must be either both zero or both non-zero.

setBlackPointCompensation

voidsetBlackPointCompensation(booleanarg0)

Parameters

arg0: boolean

Returns:

void

The BlackPointCompensation setting. Default is true if not explicitly set.

setBypassCopyPerm

voidsetBypassCopyPerm(booleanvalue)

Parameters

value: boolean

Returns:

void

setCalibrateDeviceSpacesWhenPrinting

voidsetCalibrateDeviceSpacesWhenPrinting(booleanvalue)

Parameters

value: boolean

Returns:

void

setHorizontalResolution

voidsetHorizontalResolution(doublearg0)

Parameters

arg0: double

Returns:

void

The desired horizontal resolution in pixels/inch of the output image. Defaults to 300 dpi. Must not be negative. Horizontal and vertical resolution must be either both zero or both non-zero.

setICCProfile

voidsetICCProfile(ColorProfilecolorProfile)

Parameters

colorProfile: ColorProfile

Returns:

void

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.

setICCProfileCustomPath

voidsetICCProfileCustomPath(StringcolorProfilePath)

Parameters

colorProfilePath: String

Returns:

void

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.

setImageColorSpace

voidsetImageColorSpace(ColorSpacecs)

Parameters

Returns:

void

The ColorSpace used in exporting a PDF page to an image. Must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, DeviceN, or ICCBased.

setPageDrawFlags

voidsetPageDrawFlags(java.util.EnumSet< DrawFlags >arg0)

Parameters

arg0: java.util.EnumSet< DrawFlags >

Returns:

void

The DrawFlags used for rendering a PDF page to an image. An OR of the flags from DrawFlags which control how the PDF page is drawn.

setPixelHeight

voidsetPixelHeight(intarg0)

Parameters

arg0: int

Returns:

void

The height in pixels of the image to be created from a PDF page. If not specified (zero), the rendered PDF page size will be used. PixelWidth and PixelHeight must be either both zero or both non-zero.

setPixelWidth

voidsetPixelWidth(intarg0)

Parameters

arg0: int

Returns:

void

The width in pixels of the image to be created from a PDF page. If not specified (zero), the rendered PDF page size will be used. PixelWidth and PixelHeight must be either both zero or both non-zero.

setRenderIntent

voidsetRenderIntent(RenderIntentarg0)

Parameters

arg0: RenderIntent

Returns:

void

The RenderIntent used to specify color translation for colors outside gamut of the color profile used. The default is relative colorimetric.

setSmoothing

voidsetSmoothing(java.util.EnumSet< SmoothFlags >smoothflag)

Parameters

smoothflag: java.util.EnumSet< SmoothFlags >

Returns:

void

The SmoothFlags used in exporting a PDF page to an image. Indicates what parts of the PDF page (text, image, art, none) are to be smoothed when rendering to an image. These flags can be OR'd together.

setThinLineHeuristics

voidsetThinLineHeuristics(booleanarg0)

Parameters

arg0: boolean

Returns:

true if thin line heuristics are applied, false otherwise.

The ThinLineHeuristics setting. Determines whether thin lines will be fattened non-linearly or the stroke adjust will be applied to thin rectangles.

setUseDeviceNForImageSeparations

voidsetUseDeviceNForImageSeparations(booleanvalue)

Parameters

value: boolean

Returns:

void

Sets the UseDeviceNForImageSeparations setting, which indicates when GetImageSeparations() is called if a DeviceN colorspace will be used for rasterization.When false, if only Process colorants are provided to GetImageSeparations() then it's rendered using DeviceCMYK.When true, then it's rendered using DeviceN.NOTE: This member is only applicable when calling the GetImageSeparations() method, only when Colorants used are only Process.

setVerticalResolution

voidsetVerticalResolution(doublearg0)

Parameters

arg0: double

Returns:

void

The desired vertical resolution in pixels/inch of the output image. Defaults to 300 dpi. Must not be negative. Horizontal and vertical resolution must be either both zero or both non-zero.