Highlighted

Is there a script to compress and attach pdf form to mail?

Explorer ,
Jun 27, 2020

Copy link to clipboard

Copied

Hi All

 

I have a pdf form which eventually ends up in a size of over 200MB when filled, primarily due to Pictures.

 

I want to create a submit button on the form which when clicked automatically compresses the file and attaches itself to the mail box.

 

If this is possible requesting to please help with the script.

 

thanks a lot for your help. 

Topics

Acrobat SDK and JavaScript, Create PDFs, Edit and convert PDFs, PDF forms

Views

82

Likes

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

Is there a script to compress and attach pdf form to mail?

Explorer ,
Jun 27, 2020

Copy link to clipboard

Copied

Hi All

 

I have a pdf form which eventually ends up in a size of over 200MB when filled, primarily due to Pictures.

 

I want to create a submit button on the form which when clicked automatically compresses the file and attaches itself to the mail box.

 

If this is possible requesting to please help with the script.

 

thanks a lot for your help. 

Topics

Acrobat SDK and JavaScript, Create PDFs, Edit and convert PDFs, PDF forms

Views

83

Likes

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
Adobe Community Professional ,
Jun 27, 2020

Copy link to clipboard

Copied

Acrobat Reader can't compress the file.

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 27, 2020

Copy link to clipboard

Copied

If the images in the form are jpgs, you can't compress a jpg because the jpg is a compressed format. (To show this, select a jpg on your computer, do a compression (e.g., zip) on the image and compare the difference in size — there is none.

 

HOWEVER: if you half the size of an image, the storage size goes down 75%. Think of it this way: if you have an image that's 1000 pixels wide and 1000 pixels high. That is an image that is a 1,000,000 pixel image. But if you now have the same image but is now 500 x 500 pixels, it is a 250,000 pixel image.

 

What I do not know is if you put the images in this form or if the people filling out the form put the images into the form. If YOU put the images in there, there is some chance for more control on the size of the images. If you depend upon the person filling out the form, it's almost impossible for them to learn how to prepare the images for form insertion. That is, unless, everyone of the recipients is a Photoshop user or the like.

Likes

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
Reply
Loading...
Most Valuable Participant ,
Jun 27, 2020

Copy link to clipboard

Copied

> If the images in the form are jpgs, you can't compress a jpg because the jpg is a compressed format. (To show this, select a jpg on your computer, do a compression (e.g., zip) on the image and compare the difference in size — there is none.

 

That's not quite true. The compression used by the JPEG format is not necessarily the strongest. There are compression algotihms (including zip) that will reduce the size of a typical JPEG file. Maybe not by a lot, but also not by zero...

Likes

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
Reply
Loading...
gary_sc LATEST
Adobe Community Professional ,
Jun 27, 2020

Copy link to clipboard

Copied

You are correct. As I was tapping the "Post" button, I realized I should have said "the difference in size is minimal at best." But I had other things to take care of and just left it. I knew that someone was going to come along and correct me...

 

;>)

Likes

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
Reply
Loading...
Resources
One Stop Solution for Acrobat
Edit a PDF
Add a group