I would like to know how can I create this Script, and be able to paste what I have in the clipboard right after the last page that I have. For example, if you copied an image to the clipboard I want to press the button or Call the code and the image have inserted followed by my last page that I have in my file.
I want to achieve this using code of Java Script
This is not possible with a script.
Opps, I was mistaken, This line of code will insert a new page from clipboard data, when run from a privileged context.
It requires the user to specify the page location: