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

edit and enable hyperlink options -- Adobe indesign preset

Guest
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

I need to validate my adobe indesign preset before export PDF and enable the bookmark and hyperlink option. How to do this?

TOPICS
Scripting

Views

854

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

Guide , Dec 28, 2016 Dec 28, 2016

or..

var myPDFexportPreset = app.pdfExportPresets.item('Adobe PDF Preset 1');

myPDFexportPreset.includeBookmarks = true;

myPDFexportPreset.includeHyperlinks = true;

var myPDFname = app.activeDocument.name.split(".indd").join(".pdf")

var myPDF = new File("~/Documents/" + myPDFname);

app.activeDocument.exportFile(ExportFormat.pdfType, myPDF, false,myPDFexportPreset);

Votes

Translate

Translate
Guide ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

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
Guest
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

Thanks tpk. But my question is after import the preset i need to enable the bookmark and hyperlink features. Is this possible

                        app.importFile(ExportPresetFormat.pdfExportPresetsFormat, myFile);                          
                        var myPDFexportPreset = app.pdfExportPresets.item(myJoboptionsName); 

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
Guide ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

app.pdfExportPreferences.includeBookmarks = true;

app.pdfExportPreferences.includeHyperlinks = true;

just add this lines to enable bookmark and hyperlinks, is this you needed?

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
Guide ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

If you want this for preset use

app.pdfExportPreset.includeBookmarks = true; 

app.pdfExportPreset.includeHyperlinks = true; 

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
Guide ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

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
Guest
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

Its working for bleed marks and its not working for bookmark

app.pdfExportPreset.includeBookmarks = true; 

app.pdfExportPreset.includeHyperlinks = true; 

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
Guide ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

Could you post the entire coding of yours? So we can see where we are..

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
Guest
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

            var myPDFexportPreset = app.pdfExportPresets.item('Adobe PDF Preset 1'); 

            app.pdfExportPreferences.includeBookmarks = true; 

            app.pdfExportPreferences.includeHyperlinks = true;

            var myPDFname = app.activeDocument.name.split(".indd").join(".pdf") 

            var myPDF = new File("~/Documents/" + myPDFname); 

            app.activeDocument.exportFile(ExportFormat.pdfType, myPDF, false,myPDFexportPreset); 

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
Guide ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

You used pdfExportPreferences instead of pdfExportPreset

also make sure you have Adobe PDF Preset 1 preset available

try this and let me know

var myPDFexportPreset = app.pdfExportPresets.item('Adobe PDF Preset 1');

app.pdfExportPreset.includeBookmarks = true;

app.pdfExportPreset.includeHyperlinks = true;

var myPDFname = app.activeDocument.name.split(".indd").join(".pdf")

var myPDF = new File("~/Documents/" + myPDFname);

app.activeDocument.exportFile(ExportFormat.pdfType, myPDF, false,myPDFexportPreset);

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
Guide ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

LATEST

or..

var myPDFexportPreset = app.pdfExportPresets.item('Adobe PDF Preset 1');

myPDFexportPreset.includeBookmarks = true;

myPDFexportPreset.includeHyperlinks = true;

var myPDFname = app.activeDocument.name.split(".indd").join(".pdf")

var myPDF = new File("~/Documents/" + myPDFname);

app.activeDocument.exportFile(ExportFormat.pdfType, myPDF, false,myPDFexportPreset);

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