Class ContentOptions
The parameters how to render PDF content elements
-
Method Summary
Modifier and TypeMethodDescriptionThe render strategy for annotations (Getter)booleanDefines whether to render text.voidsetAnnotations(AnnotationOptions value) The render strategy for annotations (Setter)voidsetRenderText(boolean value) Defines whether to render text.Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Method Details
-
getAnnotations
The render strategy for annotations (Getter)
Defines whether to render annotation popups. For details, see
AnnotationOptions.Default:
AnnotationOptions.SHOW_ANNOTATIONS -
setAnnotations
The render strategy for annotations (Setter)
Defines whether to render annotation popups. For details, see
AnnotationOptions.Default:
AnnotationOptions.SHOW_ANNOTATIONS- Throws:
IllegalArgumentException- ifvalueisnull
-
getRenderText
public boolean getRenderText()Defines whether to render text. When set to
false, text rendering is skipped entirely. Text embedded in images and text created by drawing lines or paths are still rendered. Skipping text rendering can speed up the rendering process, especially for documents with many text elements.Default:
true. -
setRenderText
public void setRenderText(boolean value) Defines whether to render text. When set to
false, text rendering is skipped entirely. Text embedded in images and text created by drawing lines or paths are still rendered. Skipping text rendering can speed up the rendering process, especially for documents with many text elements.Default:
true.
-