• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
12

Image in form

New Here ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

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

TOPICS
PDF forms

Views

214

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

Too bad, but thank you for your response!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

LATEST

Probably even more tricky since two form fields are used. At least with a drawing annotation the ordering is a bit more predictable. 

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines