public class Copier extends Object
Class for coping object
| Constructor and Description |
|---|
Copier(com.aspose.pdf.engine.data.ITrailerable trailerable)
Creates an instance of
Copier class. |
| Modifier and Type | Method and Description |
|---|---|
com.aspose.pdf.engine.data.IPdfPrimitive |
duplicate(com.aspose.pdf.engine.data.IPdfPrimitive src)
Duplicates IPdfPrimitive
|
com.aspose.pdf.engine.data.IPdfPrimitive |
duplicate(com.aspose.pdf.engine.data.IPdfPrimitive src,
boolean IsResourceObject)
Creates copy of object with all dependent object.
|
boolean |
getAllowReusePageContent()
get Allow Reuse Page Content
|
boolean |
getIgnoreCorruptedObjects()
get Ignore Corrupted Objects
|
String[] |
getRestrictedKeys()
get Restricted Keys
|
boolean |
getReuseStreams()
get Reuse Streams
|
boolean |
getUseStubs()
Indicates whether stubs should be used during the duplication process.
|
void |
setAllowReusePageContent(boolean value)
set Allow Reuse Page Content
|
void |
setIgnoreCorruptedObjects(boolean value)
Set Ignore Corrupted Objects
|
void |
setRestrictedKeys(String[] value)
set Restricted Keys
|
void |
setReuseStreams(boolean value)
set Reuse Streams
|
void |
setUseStubs(boolean value)
Indicates whether stubs should be used during the duplication process.
|
public Copier(com.aspose.pdf.engine.data.ITrailerable trailerable)
Creates an instance of Copier class.
trailerable - The trailerable to create destination objects.
Use the UseStubs(getUseStubs()/setUseStubs(boolean)) option to explicitly copy the streams rather than using references to the original streams.
public boolean getIgnoreCorruptedObjects()
public void setIgnoreCorruptedObjects(boolean value)
value - boolean valuepublic boolean getReuseStreams()
public void setReuseStreams(boolean value)
value - boolean valuepublic boolean getAllowReusePageContent()
public void setAllowReusePageContent(boolean value)
value - boolean valuepublic boolean getUseStubs()
Indicates whether stubs should be used during the duplication process.
If the option is turned on, then the streams will be copied, otherwise a link to the source stream will be used. Which will not allow you to close the copied document, but saves on the process of copying and memory.
public void setUseStubs(boolean value)
Indicates whether stubs should be used during the duplication process.
If the option is turned on, then the streams will be copied, otherwise a link to the source stream will be used. Which will not allow you to close the copied document, but saves on the process of copying and memory.
value - boolean valuepublic String[] getRestrictedKeys()
public void setRestrictedKeys(String[] value)
value - String[] arraypublic com.aspose.pdf.engine.data.IPdfPrimitive duplicate(com.aspose.pdf.engine.data.IPdfPrimitive src)
src - IPdfPrimitive objectpublic com.aspose.pdf.engine.data.IPdfPrimitive duplicate(com.aspose.pdf.engine.data.IPdfPrimitive src,
boolean IsResourceObject)
Creates copy of object with all dependent object. The object may be from part of other document (e.g. coping pages between documents, etc.)
src - IPdfPrimitive objectIsResourceObject - boolean valueCopyright © 2025 Aspose. All Rights Reserved.