Copy link to clipboard
Copied
Hi together,
I have a PDF-Form and there some objects become visible or invisible with checkboxes. This works very fine and is not so hard to realise. But after I make a object (e.g. a picture form element) visible I want to move the object with a drag-and-drop-function.
Is this possible with JavaScript in Acrobat DC?
Thanks for your help
Thorsten
Copy link to clipboard
Copied
With Acrobat Javascript you can change the position of form fields (property rect).
Copy link to clipboard
Copied
Hallo Bernd,
da du eine deutsche Flagge als Symbol hast, schreibe ich jetzt einfach mal auf Deutsch.
Die Eigenschaft "rect" ist aber doch keine drag-and-drop Funktion? Ich meine wirklich, das der User das Objekt anklickt, im Mousdown Zustand das Objekt verschiebt und irgendwo loslässt und damit neu positioniert.
Im Web ist dies mit unterstützung von Bibliotheksfunktionen sehr gut möglich, aber in Acrobat habe ich das noch nicht gemacht.
Gruß
Thorsten
Copy link to clipboard
Copied
You don't need Javascript.
In Adobe Acrobat use Tools > Prepare Form
There you can select and drag form fields.
Copy link to clipboard
Copied
Hi Bernd,
I think this is a misunderstanding. I don't mean the drag-and-drop-function by creating a PDF-Form.
I speak about a drag-and-drop-function if a user fills out the form and in this process the user make an object visible by clicking a checkbox. This works pretty well. After fade-in the object the user should change the position of this object by drag-and-drop.
Greetings
Thorsten
Copy link to clipboard
Copied
This is not possible.
Copy link to clipboard
Copied
Hi Bernd,
thanks for you help. Now I'm a little bit afflicted . But if it's not possible it's not possible.
Greeting
Thorsten
Copy link to clipboard
Copied
If the object is an image, checking the box can pop up a dialog to instruct the user as to how to paste the image into the PDF. The image becomes a custom stamp that the user can then move and scales as needed. For other objects, you can use JavaScript to add an annotation that they can then drag around.