I have a pdf file stored at some location on my server. On click of a link I want to add a text-watermark to this pdf file and then print it.
something like this:
in aspx say we have a (button a link-button or a simple link)
<a id="abc" href="../test.pdf" onclick="watermarkAndPrintPdf()"> PrintPdf </a>
or
<asp:linkbutton id="abc" runat="server" onclick="watermarkAndPrintPdf()" Text="Print Pdf"/>
Now when user click this link my code should add watermark(which will probably the loged-in user name) and print this document.
I want to know what ['watermarkAndPrintPdf()'] this function will be.......
Note:-It is a web application in C# asp.net 4.0. (I don't mind if print dialog box opens or It prints without it.)
Please help....