Skip to main content
Participant
February 15, 2024
Question

Image in form

  • February 15, 2024
  • 2 replies
  • 517 views

Hello,

I am developing a PDF form. An image can be uploaded in one of the fields. I want this image to always have rounded corners. Is it possible to set this?

Kind regards,

Esther

This topic has been closed for replies.

2 replies

Participant
February 15, 2024

Too bad, but thank you for your response!

Thom Parker
Community Expert
Community Expert
February 15, 2024

Well there is a way to obscure the image. It is possible to dynamically create a frame with rounded inside corners using the Polyline annotation. Then place this frame over the image button. But to do it you'll need to create an algorithm for it.  Lots of geometry. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
February 15, 2024

I think it should also be possible to use another image field with a fixed image of a "picture frame", ie. an image with a transparent center and an opaque border, and overlay it on top of the first image to get the same effect. Also a bit tricky to implement, though, especially if you want to use the first field multiple times.

Thom Parker
Community Expert
Community Expert
February 15, 2024

That would require editing or somehow obscuring the image.  Neither of which is easily done with a script in a document.  By which I mean that it's not possible. 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often