Answered
iText Watermark position issue
Coders,
Please forgive me in advance as my java kung foo is not that strong. I have a site which allows users to merge multiple pdf documents they choose via a checklist, and then it will apply a small watermark to the top left (xposition 158, yposition 743). The problem is that there are some pdfs in which the watermark gets set in the middle of the page instead of the top left. I believe I have read in some forums where it may be a size issue of sorts, but I'm still confused. I do know that I have found a weird work around, which involves saving the pdf documents that don't work right, then rescanning via copy machine and having my copy machine send it back to me via email. It will then apply the watermark to the upper left corner. I will attach my code below (note: code is written in coldfusion and java):
I hope this isn't confusing. Thanks in advance for everyone's assistance.
Please forgive me in advance as my java kung foo is not that strong. I have a site which allows users to merge multiple pdf documents they choose via a checklist, and then it will apply a small watermark to the top left (xposition 158, yposition 743). The problem is that there are some pdfs in which the watermark gets set in the middle of the page instead of the top left. I believe I have read in some forums where it may be a size issue of sorts, but I'm still confused. I do know that I have found a weird work around, which involves saving the pdf documents that don't work right, then rescanning via copy machine and having my copy machine send it back to me via email. It will then apply the watermark to the upper left corner. I will attach my code below (note: code is written in coldfusion and java):
I hope this isn't confusing. Thanks in advance for everyone's assistance.
