public class PdfOptions extends Object
Provides options for rendering documents as PDF.
Constructor and Description |
---|
PdfOptions()
Initializes a new instance of the
PdfOptions class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getDeleteAnnotations()
Specifies whether annotations from PDF documents should not be rendered.
|
boolean |
getEnablePreciseRendering()
Indicates whether the PDF document is rendered in a precise mode or not.
|
int |
getFlags()
getFlags.
|
boolean |
getPreventGlyphsGrouping()
Deprecated.
|
boolean |
getRenderLayersSeparately()
Specifies whether PDF document layers have to be separated when rendering into HTML.
|
boolean |
getUseOriginalContentOrdering()
Specifies content ordering mode when rendering into HTML.
|
boolean |
hasNonDefaultFlags()
hasNonDefaultFlags.
|
void |
setDeleteAnnotations(boolean value)
Specifies whether annotations from PDF documents should not be rendered.
|
void |
setEnablePreciseRendering(boolean value)
Indicates whether the PDF document is rendered in a precise mode or not.
|
void |
setPreventGlyphsGrouping(boolean value)
Deprecated.
|
void |
setRenderLayersSeparately(boolean value)
Specifies whether PDF document layers have to be separated when rendering into HTML.
|
void |
setUseOriginalContentOrdering(boolean value)
Specifies content ordering mode when rendering into HTML.
|
public PdfOptions()
Initializes a new instance of the PdfOptions
class.
public boolean getEnablePreciseRendering()
Indicates whether the PDF document is rendered in a precise mode or not. The default value is false.
The following example demonstrates how to enable precise rendering. The precise rendering mode allows to keep maximum precision during positioning of glyphs on the page. When this option is enabled, it will degrade performance, but in certain cases will improve render result.public void setEnablePreciseRendering(boolean value)
Indicates whether the PDF document is rendered in a precise mode or not. The default value is false.
The following example demonstrates how to enable precise rendering. The precise rendering mode allows to keep maximum precision during positioning of glyphs on the page. When this option is enabled, it will degrade performance, but in certain cases will improve render result.value
- a boolean.@Deprecated public boolean getPreventGlyphsGrouping()
Indicates whether the mode, when text glyphs will not be grouped into words and strings is on. The default value is false.
The following example demonstrates how to set prevent glyphs grouping. This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately to each other.@Deprecated public void setPreventGlyphsGrouping(boolean value)
Indicates whether the mode, when text glyphs will not be grouped into words and strings is on. The default value is false.
The following example demonstrates how to set prevent glyphs grouping. This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately to each other.value
- a boolean.public boolean getUseOriginalContentOrdering()
Specifies content ordering mode when rendering into HTML. The default value is false.
The following example demonstrates how to enable original content ordering. When original content ordering is enabled, text and graphics are rendered into HTML according to z-order in original PDF document. This mode is preferable for rendering PDF documents with multi-layered layout. When original content ordering is not enabled text and graphics are rendered into HTML as a single layer.public void setUseOriginalContentOrdering(boolean value)
Specifies content ordering mode when rendering into HTML. The default value is false.
The following example demonstrates how to enable original content ordering. When original content ordering is enabled, text and graphics are rendered into HTML according to z-order in original PDF document. This mode is preferable for rendering PDF documents with multi-layered layout. When original content ordering is not enabled text and graphics are rendered into HTML as a single layer.value
- a boolean.public boolean getRenderLayersSeparately()
Specifies whether PDF document layers have to be separated when rendering into HTML. The default value is false.
The following example demonstrates how to enable layers separate rendering. When rendering layered PDF documents into HTML, by default all layers are rendered as one. Enable layers separate rendering in order to group each PDF layer into separate elements, so that layers can be manipulated using Javascript.public void setRenderLayersSeparately(boolean value)
Specifies whether PDF document layers have to be separated when rendering into HTML. The default value is false.
The following example demonstrates how to enable layers separate rendering. When rendering layered PDF documents into HTML, by default all layers are rendered as one. Enable layers separate rendering in order to group each PDF layer into separate elements, so that layers can be manipulated using Javascript.value
- a boolean.public boolean getDeleteAnnotations()
Specifies whether annotations from PDF documents should not be rendered. The default value is false.
The following example demonstrates how to disable annotations rendering.public void setDeleteAnnotations(boolean value)
Specifies whether annotations from PDF documents should not be rendered. The default value is false.
The following example demonstrates how to disable annotations rendering.value
- a boolean.public boolean hasNonDefaultFlags()
hasNonDefaultFlags.
public int getFlags()
getFlags.
Copyright © 2018. All rights reserved.