extractPages
Hello !
I'm so sorry, perhaps this is a really stupid question, because I could have found the answer. I'v read so many posts about, but I can't reach what I want.
I'm using Acrobat 9 Pro. I want to extract or insert pages with a button in my pdf by using javascript. I know, it's not possible with a trigger in document scripts.
So I made a js-file named "insert_page.js" and put it into Adobe's javascript folder (C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Javascripts). The content of the script simply is:
function extract_page()
{
this.addField("Testbutton", "button", 0, [100,100, 150, 80]);
this.getField("Testbutton").fillColor=["RGB", 1, 0, 0];
this.extractPages(0, 0, "/c/Users/destinationfolder/newPage.pdf");
}
Writing this in the console: everything works fine !!! Calling from the Button, nothing happens. What ist wrong ? Please help me !!
remark: the field is only added for being sure, that the function ist really called by clicking the button. I don't really need it. Interesting is just the extractPages call.
