public class PdfOptions extends Object
Provides options for rendering PDF documents.
Constructor and Description |
---|
PdfOptions()
Initializes new instance of
PdfOptions class. |
Modifier and Type | Method and Description |
---|---|
ImageQuality |
getImageQuality()
Specifies output image quality for image resources when rendering into HTML.
|
boolean |
isDisableCharsGrouping()
If attribute RenderTextAsImage set to true, the text from the source becomes an image in HTML.
|
boolean |
isEnableFontHinting()
Enables font hinting.
|
boolean |
isEnableLayeredRendering()
Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML.
|
boolean |
isRenderOriginalPageSize()
When this option enabled the output pages will have the same size
in pixels as page size in a source PDF document.
|
boolean |
isRenderTextAsImage()
If attribute RenderTextAsImage set to true, the text from the source becomes an image in HTML.
|
void |
setDisableCharsGrouping(boolean value)
Disables chars grouping to keep maximum precision during chars positioning when rendering the page.
|
void |
setEnableFontHinting(boolean value)
Enables font hinting.
|
void |
setEnableLayeredRendering(boolean value)
Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML.
|
void |
setImageQuality(ImageQuality value)
Specifies output image quality for image resources when rendering into HTML.
|
void |
setRenderOriginalPageSize(boolean mRenderOriginalPageSize)
When this option enabled the output pages will have the same size
in pixels as page size in a source PDF document.
|
void |
setRenderTextAsImage(boolean renderTextAsImage)
If attribute RenderTextAsImage set to true, the text from the source becomes an image in HTML.
|
public PdfOptions()
Initializes new instance of PdfOptions
class.
public final ImageQuality getImageQuality()
Specifies output image quality for image resources when rendering into HTML. The default value is Low.
public final boolean isDisableCharsGrouping()
When this option is set to
/**
Disables chars grouping to keep maximum precision during chars positioning when rendering the page.
public final boolean isEnableFontHinting()
Enables font hinting. The font hinting adjusts the display of an outline font. Supported only for TTF fonts when these fonts are used in source document.
public final boolean isEnableLayeredRendering()
Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML.
public boolean isRenderOriginalPageSize()
public boolean isRenderTextAsImage()
When this option is set to
public final void setDisableCharsGrouping(boolean value)
Disables chars grouping to keep maximum precision during chars positioning when rendering the page.
public final void setEnableFontHinting(boolean value)
Enables font hinting. The font hinting adjusts the display of an outline font. Supported only for TTF fonts when these fonts are used in source document.
public final void setEnableLayeredRendering(boolean value)
Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML.
public final void setImageQuality(ImageQuality value)
Specifies output image quality for image resources when rendering into HTML. The default value is Low.
value
- Specifies output image quality for image resources when rendering into HTML.public void setRenderOriginalPageSize(boolean mRenderOriginalPageSize)
mRenderOriginalPageSize
- This option is supported when rendering into PNG or JPG formats.public void setRenderTextAsImage(boolean renderTextAsImage)
When this option is set to