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

Save File with Different Settings

Engaged ,
Mar 16, 2016 Mar 16, 2016

So I have PDF files that I continue to have to apply the same steps to. I am not really that great with programming. I have written 2 tools using the trustedSave MenuItem. I have 2 different tools created. I have commented in the steps I am not sure if are possible or not. I have the api book but again I am not a programmer....I stumble through the best I can

// TO SAVE WEB FILE

app.addMenuItem({

    cName: "trustedSave",

    cUser: "Save SIS File",

    cParent: "Tools",

    cExec: "saveSisFile();",

    nPos: 0

});

function saveSisFile() {

    app.beginPriv(); {

        // EMBED ALL PAGE THUMBNAILS

        // USING SMALLEST FILE SIZE FROM PDF OPTIMIZER

        this.saveAs("~/Desktop/" + this.documentFileName.substring(0, 11) + '_SIS.pdf');

    }

    app.endPriv();

}

// TO SAVE TILED FILE

app.addMenuItem({

    cName: "trustedSave",

    cUser: "Save P File",

    cParent: "Tools",

    cExec: "savePFile();",

    nPos: 0

});

function savePFile() {

    app.beginPriv(); {

        // EMBED ALL PAGE THUMBNAILS

        // DELETE PAGE 1

        // PRINT - TILE LARGE PAGES - WITH 0.5" Overlap

        this.saveAs("~/Desktop/" + this.documentFileName.substring(0, 11) + '_P.pdf');

    }

    app.endPriv();

}

Acrobat 8 Pro, Windows 7 64 bit machine

TOPICS
Acrobat SDK and JavaScript , Windows
601
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

Community Expert , Mar 16, 2016 Mar 16, 2016

‌May be better when you use batch sequences for this.

Translate
Community Expert ,
Mar 16, 2016 Mar 16, 2016
LATEST

‌May be better when you use batch sequences for this.

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