Error Codes

1001 Syntax error.  You started PDF OPTIMIZER but left out the name of your input PDF document, or the export document, or the profile, or otherwise made an error in your command syntax.
1002 Profile not found. PDF OPTIMIZER could not find the profile file you named in your command statement.  Check the file name or path for errors.
1003 Profile invalid. The JSON file you provided as the profile contains syntax errors.
1004 Invalid PDF document.  PDF OPTIMIZER does not support PDF 2.0 documents.
1005 Invalid flag value. PDF OPTIMIZER found an unexpected value in the settings in your JSON profile.  Key values, such as “medium” or “jpeg” as well as the word “on” must always be in quotes, while numeric values must not have quotes.  This format would generate an error:
"target-dpi": "350"
This is the correct format.
"target-dpi": 350
Or if you leave out quotes, as if you meant to include a numeric value, that will also generate an error, like this:
"discard-javascript-actions": on
This is the correct format.
"discard-javascript-actions": "on"