Now I want to add water mark to this file. I found the code for adding watermark to existing pdf file. instead I want to create and add watermark to. First off, yes, I know there are other tutorials on how to watermark PDF’s with iTextSharp. Unfortunately none of them showed me exactly what I. Second Edition · iText 5 examples · iText 5 manipulating an existing PDF; Watermark examples How to add a watermark to a page with an opaque image ?.

Author: Voshakar Mosar
Country: Cameroon
Language: English (Spanish)
Genre: Finance
Published (Last): 11 January 2009
Pages: 407
PDF File Size: 15.95 Mb
ePub File Size: 18.73 Mb
ISBN: 356-9-47394-815-8
Downloads: 27414
Price: Free* [*Free Regsitration Required]
Uploader: Nagrel

By Using GetOverContent it is showing edisting all the pages but above the content the content is hiding. Sign up using Facebook. Sign up using Email and Password. One more question is I want to watermark two lines one with fontsize 93 and other with 14 also i want to include the date on the Topleft and company logo on topright is it possible?

Watermark examples

QuinStreet does not include all companies or all types of products available in the marketplace. I made it in asp. Dim gstate As iTextSharp. Same considerations for the transparent watermark.


This is excellent code and this is what i needed. However, you might have to reconsider your logics. The code below ltextsharp both a text watermark and a transparent image watermark to an existing pdf. I’ve been looking around the web for several days for a way to add a “Show when printing” watermark to a PDF iextsharp as in Adobe Acrobat 9 “Appearance Options” and haven’t had any luck even to know if eexisting implemented or not.

Don’t forget to add a reference to itextsharp. Articles Quick Answers Messages Use my saved content filters.

Just a solution to a problem – If a solution you present has such ecisting side effects, you should mention them in your answer. How to add watermark in image using phonegap.

Color is not defined”. Net] Add watermark to existing Pdf file using iTextSharp hi everyonecan you post the sample project using this code. Thanks to noter also for converting the code to C.

Net forum on how to add watermark to Pdf pages. Font’ cannot be converted ‘iTextSharp. Having said that, you can simply create a new temp file, and once done, you delete the original and rename the temp rxisting to the original’s name.

PdfStamper reader, new System. I want the watermark displayed for all pages of the pdf. Although I’ve never had to do it, but I know for sure that iTextSharp is capable of this.


Post as a guest Name. Each element in your string array will be rendered as a line in the watermark.

Forums – C# Corner

GetImportedPage reader, i ; writer. The number of lines depending on the number of elements in the string array watermarkText you pass in. Net forums and others will guide you. How to change the font name?

c# – watermark (text or image) in existing pdf – Stack Overflow

How to add watermark image in pdf file. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. A watermar format or form fields are not the issues here. This has been tested before posting.

SetTextMatrix 30 I am not doing the man’s job, just giving an idea.