On 6/08/2012 21:01, Gonçalo Martins wrote:
Hi everyone..

I'm pretty new C# programmer and iTextSharp programming usage.
Can you help me doing something like create a *new* PDF file (the original will be maintained) from an existing one(passing a file path), adding a new page to it with a certain sentence and image added(with the used fonts embeded), using the objects PdfWriter/PdfReader and Document. This way I could understand the usage/relation/functionality of it, all together. I already saw the documentation but still have doubts.

Hope someone can help me.

Misleading Subject:-line, good question.

You read the existing PDF with PdfReader.
You create the new PDF with PdfStamper.
You add a page with insertPage().
You add content to that page using getOverContent()
and either PdfContentByte or ColumnText.

I have no idea why you would use PdfWriter and Document.
Please read the documentation at least once more:
http://www.manning.com/lowagie2/samplechapter6.pdf
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to