2 Replies Latest reply on May 6, 2008 10:49 AM by (thomaspinto)

    Printing last page

      Can anyone help me this? I am having trouble making a script to print the
      last page of my pdf files.
      I have a folder with 20 pdf files. I want to make a batch process to go to
      the folder, open the files
      and send to my printer just the last page of each document.

      Here's one of my attempts which only prints the first page of each document
      /* Print Last Page of File */
      var pp = this.getPrintParams();
      pp.reversepages = true;
      pp.firstpage = 0;
      this.print(pp);


      Here's another of my attempts which only prints the first page of each
      document
      /* Print Last Page */
      var pp = this.getPrintParams();
      ({
      bUI: false,
      nStart: pp.lastpage,
      bSilent: true,
      bShrinkToFit: true
      });
      this.print