Class CosOpenOptions
- java.lang.Object
-
- com.adobe.internal.pdftoolkit.core.cos.CosOpenOptions
-
public class CosOpenOptions extends java.lang.Object
Provide options to theCosDocument
when it is created.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomFilterRegistry
getCustomFilterRegistry()
Return the FilterRegistry that contains custom stream filter implementationsjava.util.Locale
getDocLocale()
boolean
getDoNotEmbedFonts()
PDFFontSet
getFontSet()
boolean
getLateRepairEnabled()
java.util.List
getRegisteredFilters()
Get list of registered custom filtersboolean
getRepairEnabled()
void
registerCustomFilters(java.util.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(java.util.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
skipCorruptObjects()
This method returns true if the corrupted objects shall be skipped while parsing the document.
-
-
-
Method Detail
-
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
public void setByteWriterFactory(ByteWriterFactory byteWriterFactory)
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
public java.util.Locale getDocLocale()
-
setDocLocale
public void setDocLocale(java.util.Locale docLocale)
The primary locale of the document.
-
getFontSet
public PDFFontSet getFontSet()
-
setFontSet
public void setFontSet(PDFFontSet fontSet)
The font set that should be used while processing the document.
-
getRegisteredFilters
public java.util.List getRegisteredFilters()
Get list of registered custom filters- Returns:
- list of registered custom filters.
-
registerCustomFilters
public void registerCustomFilters(java.util.List customFilters)
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
public CustomFilterRegistry 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)
-
-