PDDocument.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final PDDocument | |
| public static final float | |
| private final COSObjectPool | |
| private final List | |
| private final CompressParameters | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | COSWriterCompressionPool(PDDocument
The document, that shall be compressed. document, CompressParameters The configuration of the compression operations, that shall be applied. parameters)
Constructs an object that can be used to compress the contents of a given |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private COSBase | addObjectToPool(COSObjectKey
The key, COSBase COSObjectKey that shall be used as the COSBases ID, if possible.The base)COSBase, that shall be registered in this pool.Adds the given |
| private void | addStructure(COSBase
The object to be added for compressing. current)Attempts to find yet unregistered streams and dictionaries in the given structure. |
| public boolean | |
| public List | Returns: The createdCOSWriterObjectStreams for all currently registered compressible objects.Creates |
| public long | Returns: The highest object number, that is registered in this compression pool.Returns the highest object number, that is registered in this compression pool. |
| public COSObjectKey | Returns: TheCOSObjectKey, that is registered for the given COSBase in this compression pool, if
such an object is contained.The object)COSBase a COSObjectKey is registered for in this compression pool.Returns the |
| public COSBase | Returns: TheCOSBase, that is registered for the given COSObjectKey in this compression pool, if
such an object is contained.The key)COSObjectKey a COSBase is registered for in this compression pool.Returns the |
| public List | Returns: A list of allCOSBases, that can be added to an object stream.Returns all |
| public List | Returns: A list of all top levelCOSBases.Returns all |
| allDirectObjects | back to summary |
|---|---|
| private final Set<COSBase> allDirectObjects | |
| document | back to summary |
|---|---|
| private final PDDocument document | |
| MINIMUM_SUPPORTED_VERSION | back to summary |
|---|---|
| public static final float MINIMUM_SUPPORTED_VERSION | |
| objectPool | back to summary |
|---|---|
| private final COSObjectPool objectPool | |
| objectStreamObjects | back to summary |
|---|---|
| private final List<COSObjectKey> objectStreamObjects | |
| parameters | back to summary |
|---|---|
| private final CompressParameters parameters | |
| topLevelObjects | back to summary |
|---|---|
| private final List<COSObjectKey> topLevelObjects | |
| COSWriterCompressionPool | back to summary |
|---|---|
| public COSWriterCompressionPool(PDDocument document, CompressParameters parameters) throws IOException
Constructs an object that can be used to compress the contents of a given
| |
| addElements | back to summary |
|---|---|
| private void addElements(Iterator<COSBase> elements) throws IOException | |
| addObjectToPool | back to summary |
|---|---|
| private COSBase addObjectToPool(COSObjectKey key, COSBase base) Adds the given
| |
| addStructure | back to summary |
|---|---|
| private void addStructure(COSBase current) throws IOException Attempts to find yet unregistered streams and dictionaries in the given structure.
| |
| contains | back to summary |
|---|---|
| public boolean contains(COSBase object) Returns true, if the given | |
| createObjectStreams | back to summary |
|---|---|
| public List Creates
| |
| getHighestXRefObjectNumber | back to summary |
|---|---|
| public long getHighestXRefObjectNumber() Returns the highest object number, that is registered in this compression pool.
| |
| getKey | back to summary |
|---|---|
| public COSObjectKey getKey(COSBase object) Returns the
| |
| getObject | back to summary |
|---|---|
| public COSBase getObject(COSObjectKey key) Returns the
| |
| getObjectStreamObjects | back to summary |
|---|---|
| public List Returns all
| |
| getTopLevelObjects | back to summary |
|---|---|
| public List Returns all
| |