public class PageImageParams
extends java.lang.Object
| Constructor and Description |
|---|
PageImageParams() |
PageImageParams(ColorSpace ColorSpace,
java.util.EnumSet<SmoothFlags> Smoothing,
int PixelWidth,
int PixelHeight,
double HorizontalResolution,
double VerticalResolution,
java.util.EnumSet<DrawFlags> PageDrawFlags)
Set up the parameters for rendering a PDF page to an image.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
getBlackPointCompensation()
The BlackPointCompensation desired (default is true if not explicitly set)
|
boolean |
getBypassCopyPerm()
The BypassCopyPerm allows to bypass copy permitions.
|
boolean |
getCalibrateDeviceSpacesWhenPrinting()
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.
|
double |
getHorizontalResolution()
The desired horizontal resolution in pixels/inch of the output image.
|
ColorProfile |
getICCProfile()
Gets the ICC Profile of the colorspace to be used for rendering from a known value.
|
java.lang.String |
getICCProfileCustomPath()
Gets the ICC Profile of the colorspace to be used for rendering from a custom file path.
|
ColorSpace |
getImageColorSpace()
The ColorSpace used in exporting a PDF page to an image
|
java.util.EnumSet<DrawFlags> |
getPageDrawFlags()
the DrawFlags used or rendering a PDF page to an image.
|
int |
getPixelHeight()
The height in pixels of the image to be created from a PDF page.
|
int |
getPixelWidth()
The width in pixels of the image to be created from a PDF page.
|
RenderIntent |
getRenderIntent()
The RenderIntent used to specify color translation for colors outside gamut of the color profile used.
|
java.util.EnumSet<SmoothFlags> |
getSmoothing()
The SmoothFlags used in exporting a PDF page to an image
|
boolean |
getThinLineHeuristics()
The ThinLineHeuristics used to determine whether thin lines will be fattened non-linearly or the stroke adjust will be applied to thin rectangles.
|
boolean |
getUseDeviceNForImageSeparations()
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.
|
double |
getVerticalResolution()
The desired vertical resolution in pixels/inch of the output image.
|
void |
setBlackPointCompensation(boolean arg0) |
void |
setBypassCopyPerm(boolean value) |
void |
setCalibrateDeviceSpacesWhenPrinting(boolean value) |
void |
setHorizontalResolution(double arg0) |
void |
setICCProfile(ColorProfile colorProfile)
Sets the ICC Profile of the colorspace to be used for rendering to a known value.
|
void |
setICCProfileCustomPath(java.lang.String colorProfilePath)
Sets the ICC Profile of the colorspace to be used for rendering from a custom file path.
|
void |
setImageColorSpace(ColorSpace cs) |
void |
setPageDrawFlags(java.util.EnumSet<DrawFlags> arg0) |
void |
setPixelHeight(int arg0) |
void |
setPixelWidth(int arg0) |
void |
setRenderIntent(RenderIntent arg0) |
void |
setSmoothing(java.util.EnumSet<SmoothFlags> smoothflag) |
void |
setThinLineHeuristics(boolean arg0) |
void |
setUseDeviceNForImageSeparations(boolean value)
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.
|
void |
setVerticalResolution(double arg0) |
public PageImageParams()
public PageImageParams(ColorSpace ColorSpace, java.util.EnumSet<SmoothFlags> Smoothing, int PixelWidth, int PixelHeight, double HorizontalResolution, double VerticalResolution, java.util.EnumSet<DrawFlags> PageDrawFlags)
ColorSpace - The desired color space for the image, DEVICERGB, DEVICECMYK or DEVICEGRAY only.Smoothing - 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 togetherPixelWidth - The desired witdth in pixels of the output image.PixelHeight - The desired height in pixels of the output image.HorizontalResolution - The desired horizontal resolution in pixels/inch of the output image. If you pass in 0.0, 300.0 dpi is used.VerticalResolution - The desired vertical resolution in pixels/inch of the output image. If you pass in 0.0, 300.0 dpi is used.PageDrawFlags - An OR of the flags from DrawFlags which control how the PDF page is to be drawn.public void delete()
public ColorSpace getImageColorSpace()
public void setImageColorSpace(ColorSpace cs)
public java.util.EnumSet<SmoothFlags> getSmoothing()
public void setSmoothing(java.util.EnumSet<SmoothFlags> smoothflag)
public int getPixelWidth()
public void setPixelWidth(int arg0)
public int getPixelHeight()
public void setPixelHeight(int arg0)
public double getHorizontalResolution()
public void setHorizontalResolution(double arg0)
public double getVerticalResolution()
public void setVerticalResolution(double arg0)
public java.util.EnumSet<DrawFlags> getPageDrawFlags()
public void setPageDrawFlags(java.util.EnumSet<DrawFlags> arg0)
public RenderIntent getRenderIntent()
public void setRenderIntent(RenderIntent arg0)
public boolean getBlackPointCompensation()
public void setBlackPointCompensation(boolean arg0)
public boolean getThinLineHeuristics()
public void setThinLineHeuristics(boolean arg0)
public boolean getBypassCopyPerm()
public void setBypassCopyPerm(boolean value)
public boolean getCalibrateDeviceSpacesWhenPrinting()
public void setCalibrateDeviceSpacesWhenPrinting(boolean value)
public ColorProfile getICCProfile()
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.
public void setICCProfile(ColorProfile 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.
public java.lang.String getICCProfileCustomPath()
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.
public void setICCProfileCustomPath(java.lang.String colorProfilePath)
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.
public boolean getUseDeviceNForImageSeparations()
public void setUseDeviceNForImageSeparations(boolean value)