Class CosOpenOptions
java.lang.Object
com.adobe.internal.pdftoolkit.core.cos.CosOpenOptions
Provide options to the
CosDocument
when it is created.-
Method Summary
Modifier and TypeMethodDescriptionReturn the FilterRegistry that contains custom stream filter implementationsboolean
boolean
Get list of registered custom filtersboolean
void
registerCustomFilters
(List customFilters) Supply lists that contains custom stream filter implementations for encoding and decoding.void
setByteWriterFactory
(ByteWriterFactory byteWriterFactory) Set theByteWriterFactory
to be used.void
setDocLocale
(Locale docLocale) The primary locale of the document.void
setDoNotEmbedFonts
(boolean mDoNotEmbedFonts) void
setEofValue
(long eofValue) void
setFontSet
(PDFFontSet fontSet) The font set that should be used while processing the document.void
setLateRepairEnabled
(boolean enableLateRepair) Set/get state of late repair enable boolean, default is truevoid
setNoPreloadXRef
(boolean noPreloadXRef) void
setRepairEnabled
(boolean enableRepair) Set/get state of repair enable boolean, default is truevoid
setSaveInPlace
(boolean saveInPlace) Enables the document to be incrementally saved to its current stream.void
setSkipCorruptObjects
(boolean skipCorruptObjects) This method sets true if the corrupted objects are to be skipped while parsing the document.boolean
This method returns true if the corrupted objects shall be skipped while parsing the document.
-
Method Details
-
skipCorruptObjects
public boolean skipCorruptObjects()This method returns true if the corrupted objects shall be skipped while parsing the document. In that case, the objects which couldn't be parsed shall be treated asCosNull
.- Returns:
- the mSkipCorruptObjects
-
setSkipCorruptObjects
public void setSkipCorruptObjects(boolean skipCorruptObjects) This method sets true if the corrupted objects are to be skipped while parsing the document. In that case, the objects which couldn't be parsed shall be treated asCosNull
.- Parameters:
skipCorruptObjects
-
-
setByteWriterFactory
Set theByteWriterFactory
to be used. Note that thisByteWriterFactory
should only be used by one document.- Parameters:
byteWriterFactory
- the factory object for creatingByteWriter
s
-
setEofValue
public void setEofValue(long eofValue) - Parameters:
eofValue
- The eofValue to set.
-
setSaveInPlace
public void setSaveInPlace(boolean saveInPlace) Enables the document to be incrementally saved to its current stream.- Parameters:
saveInPlace
- true if in-place incremental save should be allowed
-
setNoPreloadXRef
public void setNoPreloadXRef(boolean noPreloadXRef) - Parameters:
noPreloadXRef
- true if preloading of the main XRef section is disabled
-
getDocLocale
-
setDocLocale
The primary locale of the document. -
getFontSet
-
setFontSet
The font set that should be used while processing the document. -
getRegisteredFilters
Get list of registered custom filters- Returns:
- list of registered custom filters.
-
registerCustomFilters
Supply lists that contains custom stream filter implementations for encoding and decoding.- Parameters:
customFilters
- - list of custom filters to be used during stream encoding or decoding.
-
getCustomFilterRegistry
Return the FilterRegistry that contains custom stream filter implementations- Returns:
- filter registry
-
setRepairEnabled
public void setRepairEnabled(boolean enableRepair) Set/get state of repair enable boolean, default is true -
getRepairEnabled
public boolean getRepairEnabled() -
setLateRepairEnabled
public void setLateRepairEnabled(boolean enableLateRepair) Set/get state of late repair enable boolean, default is true -
getLateRepairEnabled
public boolean getLateRepairEnabled() -
getDoNotEmbedFonts
public boolean getDoNotEmbedFonts() -
setDoNotEmbedFonts
public void setDoNotEmbedFonts(boolean mDoNotEmbedFonts)
-