Clicking on a button, I would like to set x/y pos of differents text elements presents on my PDF.
Do you have a way to do it, I can't find any solution.
Position of form fields or comments?
The only way to do this is if the text is in a form field or annotation.
You can find scripting info on doing this here:
Thank you for your answers. I was not specific enough indeed.
I has a form text element in my PDF.
myTextFormField.setxpos = 100;
myTextFormField.setypos = 100;
=> I know this os not the good code 🙂 Just for the example.
I'm going to read it thanks but not sur this is my need 🙂
If it is a text field that is being moved, then the article is exactly what you need. You'll also find a free example that shows how to move fields here:
Look at the "Bouncing Button" and "Swat the Fly" example files.