Class OperationCompressObjects


  • public class OperationCompressObjects
    extends Object
    Combines object definitions of the document into so-called \"object streams\" and compresses them. This operation is recommended especially for larger documents with many objects. The size of contained resources (such as graphics and fonts) cannot be reduced in this way.
    • Constructor Detail

      • OperationCompressObjects

        public OperationCompressObjects()
    • Method Detail

      • getObjectStreamSize

        @Nullable
        public @Nullable Integer getObjectStreamSize()
        Specifies the number of objects that may be combined into one stream. The higher the number, the higher the expected effect (assuming that the document contains a large number of objects). On the other hand, very large object streams can have a negative effect on the loading and display speed of the document in readers. For values beyond 500 objects, it is recommended to perform a manual check whether the document can still be displayed without problems. minimum: 1
        Returns:
        objectStreamSize
      • setObjectStreamSize

        public void setObjectStreamSize​(Integer objectStreamSize)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object