Jérôme AIRAUDO wrote:
> Hi every body,
> 
> I wish you ‘ll excuse me, but English is not my native language.

Your English is excellent!

> What I wanted to do is :
> -       Open an existing PDF

Use PdfReader.

> -       Add a watermark to this PDF using another exiting PDF and not an 
> Image (because of lost of quality between pdf and png, for example).

Use PdfStamper and the method getUnderContent()
This method needs a page number as parameter.

> -       Save the result in an another PDF (or in the original if it’s 
> possible)

You can create the PdfStamper with a FileOutputStream.
This FileOutputStream can only write to the existing file,
if you created the PdfReader using a byte[] (you can't
write into the file you're reading with PdfReader.)

Or you can create the PdfStamper with a ByteArrayOutputStream
and overwrite the existing file with the byte[] once you've finished.

Or you can create a new file, then replace the original file with it.

> If someone can help me (I’m newbie in dotnet).

For examples: see chapter 6 of the Second Edition of the book:
http://itextpdf.com/examples/index.php?page=toc&id=6
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to