Class CosOpenOptions
- java.lang.Object
-
- com.adobe.internal.pdftoolkit.core.cos.CosOpenOptions
-
public class CosOpenOptions extends java.lang.ObjectProvide options to theCosDocumentwhen it is created.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomFilterRegistrygetCustomFilterRegistry()Return the FilterRegistry that contains custom stream filter implementationsjava.util.LocalegetDocLocale()booleangetDoNotEmbedFonts()PDFFontSetgetFontSet()booleangetLateRepairEnabled()java.util.ListgetRegisteredFilters()Get list of registered custom filtersbooleangetRepairEnabled()voidregisterCustomFilters(java.util.List customFilters)Supply lists that contains custom stream filter implementations for encoding and decoding.voidsetByteWriterFactory(ByteWriterFactory byteWriterFactory)Set theByteWriterFactoryto be used.voidsetDocLocale(java.util.Locale docLocale)The primary locale of the document.voidsetDoNotEmbedFonts(boolean mDoNotEmbedFonts)voidsetEofValue(long eofValue)voidsetFontSet(PDFFontSet fontSet)The font set that should be used while processing the document.voidsetLateRepairEnabled(boolean enableLateRepair)Set/get state of late repair enable boolean, default is truevoidsetNoPreloadXRef(boolean noPreloadXRef)voidsetRepairEnabled(boolean enableRepair)Set/get state of repair enable boolean, default is truevoidsetSaveInPlace(boolean saveInPlace)Enables the document to be incrementally saved to its current stream.voidsetSkipCorruptObjects(boolean skipCorruptObjects)This method sets true if the corrupted objects are to be skipped while parsing the document.booleanskipCorruptObjects()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 theByteWriterFactoryto be used. Note that thisByteWriterFactoryshould only be used by one document.- Parameters:
byteWriterFactory- the factory object for creatingByteWriters
-
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)
-
-