Script Save As with stamps increases file size

New Here ,
Apr 16, 2020

Copy link to clipboard

Copied

Hi all,

 

I currently have a working script that saves the PDF to a fixed location depending on the user input.

 

Everything seems to work, however, if the user adds some digital stamps to the PDF before running the script, the file size increases (the stamps are less than 1mb, but the file becomes > 10mb) and each time they run the script, it will increase the file size two folds (Double)

 

Is there any way to fix this or is there a way to run the optimize PDF or a regular "save as" that doesn't save the overhead from scripting?

TOPICS
Acrobat SDK and JavaScript

Views

23

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

Script Save As with stamps increases file size

New Here ,
Apr 16, 2020

Copy link to clipboard

Copied

Hi all,

 

I currently have a working script that saves the PDF to a fixed location depending on the user input.

 

Everything seems to work, however, if the user adds some digital stamps to the PDF before running the script, the file size increases (the stamps are less than 1mb, but the file becomes > 10mb) and each time they run the script, it will increase the file size two folds (Double)

 

Is there any way to fix this or is there a way to run the optimize PDF or a regular "save as" that doesn't save the overhead from scripting?

TOPICS
Acrobat SDK and JavaScript

Views

24

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
Apr 16, 2020 0

Have something to add?

Join the conversation