Class PageCopyOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCopy strategy for annotations.booleanCopy associated files.booleanCopy the logical structure and tagging information.booleanCopy outline items (bookmarks).Resolution of conflicting form field names.Copy strategy for form fields.getLinks()Copy strategy for links.Copy strategy for named destinations (Getter)booleanFind and merge redundant resources.Specify how page(s) should be rotated.Removal strategy for signed signature fields.Copy strategy for unsigned signature fields.voidsetAnnotations(CopyStrategy value) Copy strategy for annotations.voidsetCopyAssociatedFiles(boolean value) Copy associated files.voidsetCopyLogicalStructure(boolean value) Copy the logical structure and tagging information.voidsetCopyOutlineItems(boolean value) Copy outline items (bookmarks).voidResolution of conflicting form field names.voidsetFormFields(CopyStrategy value) Copy strategy for form fields.voidsetLinks(CopyStrategy value) Copy strategy for links.voidCopy strategy for named destinations (Setter)voidsetOptimizeResources(boolean value) Find and merge redundant resources.voidsetPageRotation(PageRotation value) Specify how page(s) should be rotated.voidRemoval strategy for signed signature fields.voidCopy strategy for unsigned signature fields.Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
PageCopyOptions
public PageCopyOptions()
-
-
Method Details
-
getLinks
Copy strategy for links. (Getter)
Specifies how links (document internal and external links) are treated when copying a page.
Default value:
CopyStrategy.COPY -
setLinks
Copy strategy for links. (Setter)
Specifies how links (document internal and external links) are treated when copying a page.
Default value:
CopyStrategy.COPY- Throws:
IllegalArgumentException- ifvalueisnull
-
getFormFields
Copy strategy for form fields. (Getter)
Specifies how form fields are treated when copying a page.
Default value:
CopyStrategy.COPY -
setFormFields
Copy strategy for form fields. (Setter)
Specifies how form fields are treated when copying a page.
Default value:
CopyStrategy.COPY- Throws:
IllegalArgumentException- ifvalueisnull
-
getSignedSignatures
Removal strategy for signed signature fields. (Getter)
Signed digital signatures are always invalidated when copying a page and therefore have to be removed. This property specifies, whether the visual representation of the signature is preserved.
Default value:
RemovalStrategy.REMOVE -
setSignedSignatures
Removal strategy for signed signature fields. (Setter)
Signed digital signatures are always invalidated when copying a page and therefore have to be removed. This property specifies, whether the visual representation of the signature is preserved.
Default value:
RemovalStrategy.REMOVE- Throws:
IllegalArgumentException- ifvalueisnull
-
getUnsignedSignatures
Copy strategy for unsigned signature fields. (Getter)
Specifies how signature fields are treated, that are not yet signed.
Default value:
CopyStrategy.COPY -
setUnsignedSignatures
Copy strategy for unsigned signature fields. (Setter)
Specifies how signature fields are treated, that are not yet signed.
Default value:
CopyStrategy.COPY- Throws:
IllegalArgumentException- ifvalueisnull
-
getAnnotations
Copy strategy for annotations. (Getter)
Specifies how interactive annotations (like sticky notes or text highlights) are treated when copying a page. This does not include links, form fields and signature fields which are not considered annotations in this product.
Default value:
CopyStrategy.COPY -
setAnnotations
Copy strategy for annotations. (Setter)
Specifies how interactive annotations (like sticky notes or text highlights) are treated when copying a page. This does not include links, form fields and signature fields which are not considered annotations in this product.
Default value:
CopyStrategy.COPY- Throws:
IllegalArgumentException- ifvalueisnull
-
getCopyOutlineItems
public boolean getCopyOutlineItems()Copy outline items (bookmarks). (Getter)
Specifies whether outline items (also known as bookmarks) pointing to the copied page should be copied to the target document automatically.
Default value:
true -
setCopyOutlineItems
public void setCopyOutlineItems(boolean value) Copy outline items (bookmarks). (Setter)
Specifies whether outline items (also known as bookmarks) pointing to the copied page should be copied to the target document automatically.
Default value:
true -
getCopyAssociatedFiles
public boolean getCopyAssociatedFiles()Copy associated files. (Getter)
Specifies whether embedded files associated with a page or any of its subobjects are also copied when copying the page.
Default value:
true -
setCopyAssociatedFiles
public void setCopyAssociatedFiles(boolean value) Copy associated files. (Setter)
Specifies whether embedded files associated with a page or any of its subobjects are also copied when copying the page.
Default value:
true -
getCopyLogicalStructure
public boolean getCopyLogicalStructure()Copy the logical structure and tagging information. (Getter)
Specifies whether the logical structure and tagging information associated with a page or its content is also copied when copying the page.
This is required if the target document conformance is PDF/A Level a.
Default value:
true -
setCopyLogicalStructure
public void setCopyLogicalStructure(boolean value) Copy the logical structure and tagging information. (Setter)
Specifies whether the logical structure and tagging information associated with a page or its content is also copied when copying the page.
This is required if the target document conformance is PDF/A Level a.
Default value:
true -
getFormFieldConflictResolution
Resolution of conflicting form field names. (Getter)
Form field of different files can have the same name (identifier). This property specifies how name conflicts are resolved, when copying pages from multiple source files.
Default value:
NameConflictResolution.MERGE -
setFormFieldConflictResolution
Resolution of conflicting form field names. (Setter)
Form field of different files can have the same name (identifier). This property specifies how name conflicts are resolved, when copying pages from multiple source files.
Default value:
NameConflictResolution.MERGE- Throws:
IllegalArgumentException- ifvalueisnull
-
getNamedDestinations
Copy strategy for named destinations (Getter)
Specify whether named destinations are resolved when copying a page.
Default value:
NamedDestinationCopyStrategy.COPY -
setNamedDestinations
Copy strategy for named destinations (Setter)
Specify whether named destinations are resolved when copying a page.
Default value:
NamedDestinationCopyStrategy.COPY- Throws:
IllegalArgumentException- ifvalueisnull
-
getOptimizeResources
public boolean getOptimizeResources()Find and merge redundant resources. (Getter)
Find and merge redundant resources such as fonts and images. This can lead to much smaller files, especially when copying pages from multiple similar source files. However, it also results in longer processing time.
Default value:
true -
setOptimizeResources
public void setOptimizeResources(boolean value) Find and merge redundant resources. (Setter)
Find and merge redundant resources such as fonts and images. This can lead to much smaller files, especially when copying pages from multiple similar source files. However, it also results in longer processing time.
Default value:
true -
getPageRotation
Specify how page(s) should be rotated. (Getter)
Default:
PageRotation.NO_ROTATION -
setPageRotation
Specify how page(s) should be rotated. (Setter)
Default:
PageRotation.NO_ROTATION- Throws:
IllegalArgumentException- ifvalueisnull
-