Skip to main content
Participating Frequently
July 26, 2022
Question

Reduce Disk Space taken up by watermark

  • July 26, 2022
  • 2 replies
  • 989 views

Hi Everyone!

 

I've been using the debbugger to write a JavaScrip code that makes it easier to add a unique watermark to a document. One issue I'm running into is the file becomes mich larger in size. The test file starts out as 36kb and after I save it with the watermark its 486KB and another code its 492KB Dos anyone have any ideas to fix it? 

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
July 28, 2022

Change your code to use a different font for the watermark text, preferably one that's available in the application itself (basically everything that can be referred to via the font object by name, such as font.Helv or font.Times).

bart2212Author
Participating Frequently
August 3, 2022

Thank you! That worked. 

Karl Heinz  Kremer
Community Expert
Community Expert
July 26, 2022

In Adobe Acrobat Pro, you have a tool to figure out what featues in a PDF file are using how much space. You can find this "Audit space usage" feature when you select to save the file as an Optimized PDF (File>Save as Other>Optimized PDF). It's very likely that this is caused by an embedded font. Have you tried to use a different font to see if this keeps the file size down? 

bart2212Author
Participating Frequently
July 26, 2022

Hi Karl!

 

I really apprciate the help. I tried saving the file as an Optimized PDF. Here is a screenshot of the embeded fonts. Should I get rid of them?

 

Karl Heinz  Kremer
Community Expert
Community Expert
July 27, 2022

It depends on what feature in the PDF uses up the most space. If the subset embedded font is not a big contributor to the total size, then I would not touch it. Subset embedded means that only those glyphs (the drawings of the characters) that are actually used in the file are embedded, so that keeps the size down already. Did you run the space audit function? What did it report?