Starou / SimpleIDML

Manipulate Adobe® InDesign® IDML files
Other
209 stars 35 forks source link

InDesign Server 2020 returns "The property is not applicable in the current state" when export.jsx sets certain PDF options #59

Closed kylehodgson closed 2 years ago

kylehodgson commented 2 years ago

I'm using SimpleIDML with InDesign Server 2020 on MacOS, and when attempting to export my IDML file to PDF export.jsx InDesign Server rejects the job. Removing properties one by one I tracked it down to a few different properties that cause issues.

I have a PR incoming that wraps each of these properties in a try, such as were already found for ignoreSpreadOverrides on line 144 and simulateOverprint on line 211 of export.jsx. I also added an alert to the catch; for my instance of InDesign Server this causes the exception message to be logged, so that users will know which properties failed to be set.

kylehodgson commented 2 years ago

duplicate