Skip to main content
rakeshk21205956
Inspiring
January 4, 2020
Question

PDF Form Script to Mark a dot or 'x" sign on a image

  • January 4, 2020
  • 2 replies
  • 589 views

Hello,

 

I have a pdf with a image i want that a user can mark anywhere on the image.... like a dot or a "x" sign or any other sign.....

 

is it possible via script...... currently i have made checkboxes all over the image with a circle, but by doing that there are many spaces on image which a left out.

 

 

Thanks

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
January 5, 2020

Yes, you can do this. But it will only work in viewers that are capable of running the necessary JavaScript. 

Download the "Swat the Fly" example file here:

https://www.pdfscripting.com/public/Free-Sample-PDF-Files-with-scripts.cfm

 

In this example new buttons are created every time the user click on the moving "Fly" button, at the location where the user clicks. The same technique can be used to place a stamp, text, or other annotation on a user image. The idea is to place an invisible button over the image, then a mouse click, is a MouseUp event on the button. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
ls_rbls
Community Expert
Community Expert
January 4, 2020

Hi ,

 

can you share a screenshot of what you're trying to do?

 

what version of acrobat pro are you using?