Compress
The compression settings can be used to automatically compress the contents of the PDF document when saving. Whenever a web service operation saves the PDF document, it should try to compress it according to the settings specified here.
The options are defined under settings.compress. You can use compressProfile to set when the PDF is automatically compressed.
always= PDF documents should always be compressed when saved.never= PDF documents should not be automatically compressed (Default)recompress= PDF documents should only be compressed automatically if they were already compressed previously.
tip
Instead, document compression can also be triggered specifically using the compress operation in the Toolbox web service (see example below).
{
"settings": {
"compress": {
"compressObjects": {
"objectStreamSize": 200
},
"compressProfile": "never"
}
},
"toolbox": [
{
"compress": {
"compressObjects": {
"objectStreamSize": 200
}
}
}
]
}