Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

can't export Interactive pdf via javascript

New Here ,
Nov 19, 2014 Nov 19, 2014

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.

TOPICS
Scripting
713
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Nov 19, 2014 Nov 19, 2014

Check that your app.scriptPreferences.version is set to CS5.5 (= 7.5)

Translate
People's Champ ,
Nov 19, 2014 Nov 19, 2014

Check that your app.scriptPreferences.version is set to CS5.5 (= 7.5)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 19, 2014 Nov 19, 2014

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Nov 19, 2014 Nov 19, 2014
LATEST

You're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines