I am using ASPOSE PDF stamp function to stamp the pages in the PDF document with a PNG image.
It is working fine if the stamp position is same for all the pages. Since in our case PDF is having pages of different size hence the position is also different. So we are looping through each page to calculate the page size and the stamp position.
If we call AddStamp function for each page then the output is very large with respect to original file.
The Input file detail:
Output File Detail:
Size: 450 MB
If AddStamp is called once for all pages the file size remains same with KB more in size.
Kindly let us know why the file size is increased so much as the stamp image size is 21KB only.
Also Please suggest the best way to stamp pages with different stamp position depending on the page dimension.