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

How do I add a subfolder to Cpath?

Explorer ,
Oct 05, 2016 Oct 05, 2016

I have this code and I want to add subfolder to the code so the output files will go in a subfolder named pdf. How can I do this??

/* Extract Pages to Folder */

    var re = /.*\/|\.pdf$/ig;

    var filename = this.path.replace(re,"");

    {

        for ( var i = 0;  i < this.numPages; i++ )

        this.extractPages

         ({

            nStart: i,

            cPath : Number(filename) + (i+1) + ".pdf"

        });

    };

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

LEGEND , Oct 06, 2016 Oct 06, 2016

Update the value you set for cPath. Note that the directory separator character is / not \ in this case e.g. Directory/file.pdf. Be sure to create the folder first, Acrobat won't do that.

Translate
LEGEND ,
Oct 06, 2016 Oct 06, 2016

Update the value you set for cPath. Note that the directory separator character is / not \ in this case e.g. Directory/file.pdf. Be sure to create the folder first, Acrobat won't do that.

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
Explorer ,
Oct 06, 2016 Oct 06, 2016
LATEST

Thank you very much! Now I have a javascript that outputs all of the singel sided pdf:s to the subfolder pdf that I have created manually.

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