2 Replies Latest reply on Jan 31, 2013 5:56 AM by loufrank

    Automating print_to_pdf


      Here is what I am trying to accomplish. I am cropping a large or small graphics on a certain page and afterwards I run a code that tells me the optimal scale to resize in order to fit nicely on an 8.5 x 11 page. The code I have below allows me to interact with the print window but this is not what I want to do, I want to automate this complete process.


      The question is this:

      Is it possible for me in JavaScript to select Poster in Page Size & Handling and place the optimal scale number in the Tile Scale box.



      bUI: true,

      bSilent: true,

      bShrinkToFit: true,

      //tileScale: 1,

      nStart: this.pageNum,

      nEnd: this.pageNum



      Thanks to everyone and anyone who can help.