Copy link to clipboard
Copied
Hi we are generating PDF with url link in it, so we want to use Interactive PDF type to export our PDF via javascript, however, when we are using below exportfile function, it throws error:
DOC.exportFile(ExportFormat.INTERACTIVE_PDF, File(pdfFile));
Console output: Result: Script Exception :Object does not support the property or method 'INTERACTIVE_PDF'
we are using CS5.5 (7.5) and it works when we change ExportFormat to:
DOC.exportFile(ExportFormat.pdfType, File(pdfFile));
Please help.thank you.
Check that your app.scriptPreferences.version is set to CS5.5 (= 7.5)
Copy link to clipboard
Copied
Check that your app.scriptPreferences.version is set to CS5.5 (= 7.5)
Copy link to clipboard
Copied
yes, it is!
original, it is set to 5.5, after i setup to 7.5
app.scriptPreferences.version=7.5;
the error gone. thank you!
Copy link to clipboard
Copied
You're welcome.