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

Place a limit on size of photo to imbed to a pdf fillable form

Community Beginner ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

I have created a fillable form for contestants to submit their application for an award; I want the applicants to attach photos in image boxes provided, but I would like to limit the size of the photos to 200K each. I have not found any guidance on how to do this. Does anyone have any suggestions on how to achieve this? Thanks

TOPICS
How to , PDF forms , Rich media and 3D

Views

496

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 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

Not possible.

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
LEGEND ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

You really need an HTML form with server back end for this. For example, I'd expect a lot of contestants to want to use a phone, and PDF forms are unlikely to cut it. Back end needs to be developed by an experienced specialist.

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 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

Unfortunately you can't get a direct byte size from an image imported into a button (i.e. an image field). First, Acrobat can change (convert formats) when the image is imported, so it's not exactly the same as the one the user provided. 

 

However, there are a couple of indirect methods for finding out about the size of the image in Acrobat.

 

1) The width and height of the image can be acquired directly. This is not an exact byte size measure, but it can get you a good estimate.

 

2) There is a "doc.filesize" property that gives the size of the file on disk. It does not provide the change in size when image import happens. The file has to be saved first. Then the filesize updates. So the script for calculating the size would have to ask the user to save the PDF first.  

 

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 ,
Sep 11, 2024 Sep 11, 2024

Copy link to clipboard

Copied

LATEST

I have a PDF form, which I created using Adobe Acrobat Pro dc. In the form, there are many image fields. when I add all the images, the form gets too big, like 120 MB. Can you help me with this issue?

I need the form 10-15 MB.

(To not overload the file, limit the photo to medium size 1024x768) in pdf form

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