views:

135

answers:

0

I have a letterhead template in PDF with just one big text field called "txtBody". I am using iTextsharp to open up that template and then can easily stuff some text into that field like below:

            var stamper = new PdfStamper(pdfReader, newFileStream);
            var form = stamper.AcroFields;
            var fieldKeys = form.Fields.Keys;

            form.SetField("txtBody", SomeString);

but what i really want to do is stuff in not just a sentence, but some formatted text, for example some HTML snippet (an unordered list).

Can someone point me in the right direction? It doesn't have to be HTML formatting, but anyway I can basically set the field in the PDF and include indents, paragraphs line breaks etc.