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

can't export Interactive pdf via javascript

New Here ,
Nov 19, 2014 Nov 19, 2014

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.

TOPICS
Scripting

Views

682

Translate

Translate

Report

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)

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

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!

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

You're welcome.

Votes

Translate

Translate

Report

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