public class PageCopyOptions extends NativeObject
Constructor and Description |
---|
PageCopyOptions() |
Modifier and Type | Method and Description |
---|---|
static PageCopyOptions |
createDynamicObject(long handle) |
CopyStrategy |
getAnnotations()
Copy strategy for annotations.
|
boolean |
getCopyAssociatedFiles()
Copy associated files.
|
boolean |
getCopyLogicalStructure()
Copy the logical structure and tagging information.
|
boolean |
getCopyOutlineItems()
Copy outline items (bookmarks).
|
NameConflictResolution |
getFormFieldConflictResolution()
Resolution of conflicting form field names.
|
FormFieldCopyStrategy |
getFormFields()
Copy strategy for form fields and widgets.
|
CopyStrategy |
getLinks()
Copy strategy for links.
|
NamedDestinationCopyStrategy |
getNamedDestinations()
Copy strategy for named destinations (Getter)
|
NameConflictResolution |
getOcgConflictResolution()
Resolution of conflicting layer (OCC) information.
|
boolean |
getOptimizeResources()
Find and merge redundant resources.
|
RemovalStrategy |
getSignedSignatures()
Removal strategy for signed signature fields.
|
CopyStrategy |
getUnsignedSignatures()
Copy strategy for unsigned signature fields.
|
void |
setAnnotations(CopyStrategy value)
Copy strategy for annotations.
|
void |
setCopyAssociatedFiles(boolean value)
Copy associated files.
|
void |
setCopyLogicalStructure(boolean value)
Copy the logical structure and tagging information.
|
void |
setCopyOutlineItems(boolean value)
Copy outline items (bookmarks).
|
void |
setFormFieldConflictResolution(NameConflictResolution value)
Resolution of conflicting form field names.
|
void |
setFormFields(FormFieldCopyStrategy value)
Copy strategy for form fields and widgets.
|
void |
setLinks(CopyStrategy value)
Copy strategy for links.
|
void |
setNamedDestinations(NamedDestinationCopyStrategy value)
Copy strategy for named destinations (Setter)
|
void |
setOcgConflictResolution(NameConflictResolution value)
Resolution of conflicting layer (OCC) information.
|
void |
setOptimizeResources(boolean value)
Find and merge redundant resources.
|
void |
setSignedSignatures(RemovalStrategy value)
Removal strategy for signed signature fields.
|
void |
setUnsignedSignatures(CopyStrategy value)
Copy strategy for unsigned signature fields.
|
equals, hashCode
public static PageCopyOptions createDynamicObject(long handle)
public CopyStrategy getLinks()
Specifies how links (document internal and external links) are treated when copying a page.
Default value: CopyStrategy.COPY
public void setLinks(CopyStrategy value)
Specifies how links (document internal and external links) are treated when copying a page.
Default value: CopyStrategy.COPY
java.lang.IllegalArgumentException
- if value
is null
public FormFieldCopyStrategy getFormFields()
Specifies how form fields and widgets are treated when copying a page.
Default value: forms.FormFieldCopyStrategy.COPY
public void setFormFields(FormFieldCopyStrategy value)
Specifies how form fields and widgets are treated when copying a page.
Default value: forms.FormFieldCopyStrategy.COPY
java.lang.IllegalArgumentException
- if value
is null
public RemovalStrategy getSignedSignatures()
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
public void setSignedSignatures(RemovalStrategy value)
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
java.lang.IllegalArgumentException
- if value
is null
public CopyStrategy getUnsignedSignatures()
Specifies how signature fields are treated, that are not yet signed.
Default value: CopyStrategy.COPY
public void setUnsignedSignatures(CopyStrategy value)
Specifies how signature fields are treated, that are not yet signed.
Default value: CopyStrategy.COPY
java.lang.IllegalArgumentException
- if value
is null
public CopyStrategy getAnnotations()
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 products.
Default value: CopyStrategy.COPY
public void setAnnotations(CopyStrategy value)
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 products.
Default value: CopyStrategy.COPY
java.lang.IllegalArgumentException
- if value
is null
public boolean getCopyOutlineItems()
Specifies whether outline items (also known as bookmarks) pointing to the copied page should be copied to the target document automatically.
Default value: true
public void setCopyOutlineItems(boolean value)
Specifies whether outline items (also known as bookmarks) pointing to the copied page should be copied to the target document automatically.
Default value: true
public boolean getCopyAssociatedFiles()
Specifies whether embedded files associated with a page or any of its subobjects are also copied when copying the page.
Default value: true
public void setCopyAssociatedFiles(boolean value)
Specifies whether embedded files associated with a page or any of its subobjects are also copied when copying the page.
Default value: true
public boolean getCopyLogicalStructure()
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
public void setCopyLogicalStructure(boolean value)
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
public NameConflictResolution getFormFieldConflictResolution()
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
public void setFormFieldConflictResolution(NameConflictResolution value)
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
java.lang.IllegalArgumentException
- if value
is null
public NameConflictResolution getOcgConflictResolution()
When copying pages from multiple documents, name conflicts in the layer information (optional content groups, OCG) can occur. This property specifies how such conflicts are resolved.
Default value: NameConflictResolution.MERGE
public void setOcgConflictResolution(NameConflictResolution value)
When copying pages from multiple documents, name conflicts in the layer information (optional content groups, OCG) can occur. This property specifies how such conflicts are resolved.
Default value: NameConflictResolution.MERGE
java.lang.IllegalArgumentException
- if value
is null
public NamedDestinationCopyStrategy getNamedDestinations()
Specify whether named destinations are resolved when copying a page.
Default value: navigation.NamedDestinationCopyStrategy.COPY
public void setNamedDestinations(NamedDestinationCopyStrategy value)
Specify whether named destinations are resolved when copying a page.
Default value: navigation.NamedDestinationCopyStrategy.COPY
java.lang.IllegalArgumentException
- if value
is null
public boolean getOptimizeResources()
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 decreases performance.
Default value: true
public void setOptimizeResources(boolean value)
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 decreases performance.
Default value: true