1 Reply Latest reply: Jan 24, 2013 1:02 AM by Test Screen Name RSS

    How to Use Acrobat SDK for Automation Using VB or Perl

    SathishVelu Community Member

      Hi Forum,

       

      I am a new bie, just 2 days old to acrobat and javascript, and I am basically a perl developer

       

      I am using Adobe Acrobat 9 Pro,

       

      I downloaded Acrobat SDK, but i don't know what else to do further, how to use??

       

      I tried to start learning SDK, but no proper documents i found to learn and start using SDK,

       

       

      Please suggest some guide or documentation for start learning Acrobat SDK (Step by Step guide)

       

      Here with I have created a small script to merge two pdf

       

      // Create a new PDF document:

      var newDoc = app.newDoc();

      // Insert doc1.pdf:

      newDoc.insertPages({

      nPage : -1,

      cPath : "/d/sathish/1.pdf",

      });

      // Insert doc2.pdf:

      newDoc.insertPages({

      nPage : newDoc.numPages-1,

      cPath : "/d/sathish/2.pdf",

      });

      // Save the new document:

      newDoc.saveAs("/d/sathish/myNewDoc.pdf");

       

       

      My code is working fine and merging properly,

       

      Is there any way to execute this script through commandline or using some other scripting languages like perl or through VB

       

      My objective is to automate the merging process without any manual intervention, I don't want to open acrobat manually to execute this javacript, i want to automate that process too,

       

      Please suggest me which will be very helpful to me,

       

      Thanks in advance

       

      Thanks & Regards

      Sathish V.