Skip to main content
Dickes_B
Participant
July 2, 2019
Question

Is a drag-and-drop function in a PDF-Form possible?

  • July 2, 2019
  • 2 replies
  • 2107 views

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

This topic has been closed for replies.

2 replies

JoelGeraci
Participating Frequently
July 2, 2019

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.

Bernd Alheit
Community Expert
Community Expert
July 2, 2019

With Acrobat Javascript you can change the position of form fields (property rect).

Dickes_B
Dickes_BAuthor
Participant
July 2, 2019

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

Bernd Alheit
Community Expert
Community Expert
July 2, 2019

You don't need Javascript.

In Adobe Acrobat use Tools > Prepare Form

There you can select and drag form fields.