Optional. Enable this value by adding it to the profile and setting it equal to "on."
preserve-version | If this value is set to off, the Datalogics PDF REST APIs saves the output PDF document to PDF version 1.7.
If you set this value to “on,” the API preserves the original version of the PDF source document if possible. If you select an option for the API to use when optimizing your source PDF document that will conflict with the current version of the PDF document, the API will ignore your request to preserve the original version of the PDF source document. For example, if you want to use the API to process a PDF source document of version 1.5, and request that the version be preserved and also that the document be converted to PDF/A-3u format, the output will be 1.7 since it's required for PDF/A-3u output. |
write-output-even-if-increase-in-size | If this value is set to off, if the API finds that the output file will be bigger than the original PDF input file when it is finished processing, the system will not generate an output file at all. Rather, it will write an error message saying that the file could not be optimized.
If you set this value to “on,” the API generates the PDF output file even if the optimization process produces a document bigger than the input file it is meant to replace. |
{ . . . }, "general": { "write-output-even-if-increase-in-size": "off", "preserve-version": "off" . . .