Why does AddWatermark make file so big?
I have created a 600 x 253 72 dpi gif file. It is only 36kb in size. When I take a 7 page 220kb PDF file and do a cfpdf action="addwatermark" to the file, it grows from 220kb to a whopping 1.3 MB!
Strangely enough, if I open the same file in Adobe Acrobat Professional and manually add the exact same gif file as a watermark to the exact same PDF file, the result file actually got SMALLER!?!?!
You don't believe me? Try it yourself.
Image file: https://www.calcerts.com/images/logo_main_watermark_color.gif
Original PDF: https://www.calcerts.com/BB4031.pdf
PDF File after doing a simple addwatermark: https://www.calcerts.com/BB4031_WTF.pdf
PDF File if I add the image as a watermark in Adobe Acrobat Professional 8: https://www.calcerts.com/BB4031_AdobeWatermarked.pdf
The code I used was this:
<cfpdf action="addwatermark"
source="d:\BB4031.pdf"
destination="d:\BB4031_WTF.pdf"
image="D:\images\logo_main_watermark_color.gif"
opacity = 2
foreground = "yes"
rotation = 0
showonprint = "yes"
overwrite="yes"
position = "0,250"
>
