Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 16, 2012 05:40 PM by bbcompent1
Apr 16, 2012 05:10 PM|LINK
I have a request for adding the words 'Company Confidential' to all printed material from one of our websites.
The 'printed' material could include documents (that were previously uploaded), or reports.
What I think is needed is a for a watermark to be applied to all documents as they are uploaded, but I am unsure of how to handle the watermark for the other material. Other material being anything that the users uses the File>Print option to print.
But, if there is one way to watermark all printed material I would love to know about it. Does anybody know of a way to do this?
Apr 16, 2012 05:37 PM|LINK
Carrie, I think this is going to be a challenge no matter how you slice it but maybe this thread from StackOverflow might help.
For the images that get downloaded:
Now, for your documents that are on the system, I would suggest makign them all PDF and then use ITextSharp to watermark them on the fly. What you'll do in this case is with iTextSharp, open the PDF File on the server in memory, toss a watermark image onto
the pdf, then save it in the memory stream before rendering it to the client.
Apr 16, 2012 05:40 PM|LINK
ALong with many other samples on their site (http://www.pdfsharp.net/wiki/PDFsharpSamples.ashx), this sample shows how to watermark the PDF file: