Class CosOpenOptions


  • public class CosOpenOptions
    extends java.lang.Object
    Provide options to the CosDocument when it is created.
    • 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 as CosNull.
        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 as CosNull.
        Parameters:
        skipCorruptObjects -
      • setByteWriterFactory

        public void setByteWriterFactory​(ByteWriterFactory byteWriterFactory)
        Set the ByteWriterFactory to be used. Note that this ByteWriterFactory should only be used by one document.
        Parameters:
        byteWriterFactory - the factory object for creating ByteWriters
      • 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.
      • 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)