Class CosSaveParams
java.lang.Object
com.adobe.internal.pdftoolkit.core.cos.CosSaveParams
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Produce a simple, shallow clone.boolean
Returns true if document to be closed after save.Returns version extensions.boolean
Returns true if force compression to be used.Returns header.Returns header token.int
Returns save style to save with.boolean
Save the CosDocument to the ByteWriter given during save but do NOT make it the backing store and continue to use the existing one.Only for internal engineering use.Returns version to save with.int
Returns xref style to save with.void
setCloseAfterSave
(boolean closeAfterSave) Sets true if document to be closed after save.void
setExtensions
(Map extensions) Sets version extensions to use.void
setForceCompress
(boolean forceCompress) Specifies if force compression to be used.void
Sets header to sue while saving.void
setHeaderToken
(String headerToken) Sets header token.void
setSaveStyle
(int saveStyle) Sets save style to save with.void
setSaveToCopy
(boolean saveToCopy) Save the CosDocument to the ByteWriter given during save but do NOT make it the backing store and continue to use the existing one.void
setTempByteWriter
(ByteWriter tempByteWriter) Only for internal engineering use.void
setVersion
(String version) Sets version to save with.void
setXrefStyle
(int xrefstyle)
-
Field Details
-
CURRENT_XREF
public static final int CURRENT_XREF- See Also:
-
XREFTABLE
public static final int XREFTABLE- See Also:
-
XREFSTREAM
public static final int XREFSTREAM- See Also:
-
XREFHYBRID
public static final int XREFHYBRID- See Also:
-
SAVE_STYLE_DEFAULT
public static final int SAVE_STYLE_DEFAULT- See Also:
-
SAVE_STYLE_INCREMENTAL
public static final int SAVE_STYLE_INCREMENTAL- See Also:
-
SAVE_STYLE_FULL
public static final int SAVE_STYLE_FULL- See Also:
-
SAVE_STYLE_LINEAR
public static final int SAVE_STYLE_LINEAR- See Also:
-
-
Constructor Details
-
CosSaveParams
public CosSaveParams(int saveStyle) Constructor with specified save style.
-
-
Method Details
-
setHeader
Sets header to sue while saving. -
getHeader
Returns header. -
setHeaderToken
Sets header token.- Throws:
PDFInvalidParameterException
-
getHeaderToken
Returns header token. -
setVersion
Sets version to save with. -
getVersion
Returns version to save with. -
getExtensions
Returns version extensions. -
setExtensions
Sets version extensions to use. -
setXrefStyle
public void setXrefStyle(int xrefstyle) - Parameters:
xrefstyle
- - int enum for specifying full save xref style: CURRENT_XREF - use existing style (default for existing document) XREFTABLE - xref table (default for new document) XREFSTREAM - xref stream (required if compressed object streams) XREFHYBRID - hybrid (compressed object streams only visible to v 1.5 or later)
-
getXrefStyle
public int getXrefStyle()Returns xref style to save with. -
setSaveStyle
public void setSaveStyle(int saveStyle) Sets save style to save with. -
getSaveStyle
public int getSaveStyle()Returns save style to save with. -
setCloseAfterSave
public void setCloseAfterSave(boolean closeAfterSave) Sets true if document to be closed after save. -
getCloseAfterSave
public boolean getCloseAfterSave()Returns true if document to be closed after save. -
setForceCompress
public void setForceCompress(boolean forceCompress) Specifies if force compression to be used. -
getForceCompress
public boolean getForceCompress()Returns true if force compression to be used. -
setTempByteWriter
Only for internal engineering use. This api can change without notice. -
getTempByteWriter
Only for internal engineering use. This api can change without notice. -
setSaveToCopy
public void setSaveToCopy(boolean saveToCopy) Save the CosDocument to the ByteWriter given during save but do NOT make it the backing store and continue to use the existing one.- Parameters:
saveToCopy
- will document be saved as a copy
-
getSaveToCopy
public boolean getSaveToCopy()Save the CosDocument to the ByteWriter given during save but do NOT make it the backing store and continue to use the existing one. -
clone
Produce a simple, shallow clone.
-