CIB pdf toolbox 2 technical documentation
4. Usecases
4.13. Compression of documents
|
Property |
Meaning |
Type |
|
Compress |
A flag indicating, that compression should be activated. |
Set |
|
CompressQuality |
Defining a compression profile, which sets a lot of other settings regarding compression. Available profile names are:
|
Set |
|
Threads |
The amount of threads, which are allowed to work on compression. The default is the available number of CPUs – 1. If you want to disable threading, you need to set this propert to 0 or 1. |
Set |
|
RemovePieceInfo |
A flag which indicates removing propriertary data of pdf creators from the PDF document. This is default for all compression profies. |
Set |
|
RemoveThumbs |
A flag which indicates removing page thumbnail images of the PDF document. This is default for all compression profies. |
Set |
|
OptimizePages |
A flag which indicates to optimize the internal page tree of the PDF document. This is default for all compression profies. |
Set |
|
RemoveAlternateImages |
A flag which indicates to remove alternate images. This is default for all compression profies. |
Set |
|
RemoveSpiderInfo |
A flag which indicates to remove spider info. This is default for all compression profies. |
Set |
|
OptimizeContent |
A flag which indicates to otimize the content streams of all pages and removing unneeded commands. This is default for all compression profies. |
Set |
|
OptimizeStreams |
A flag which indicates to otimize the streams in general to check, if they can be saved by lossless reduction by resaving them with tuned saving parameters. |
Set |
|
Compress |
Compression can take a lot time. You can set Property Cancel=1 to indicate, that the compression should be canceled and compression should be stopped. This is a thread-safe property and can be set from different threads. |
Set |
Instead Compress and CompressQuality also finetuning of the reencoding of the images can be done. Normally this finetuning is not recommended.
|
Property |
Meaning |
Type |
|
ReEncodeImages |
A flag indicating, that the document images should be reencoded. |
Set |
|
ReEncodeImagesOptions |
A JSON object which configures the image reencoding with following keys:
|
Set |