Op 25/02/2011 19:27, Craig Hodder schreef:
> It would appear I am missing something very important.

You're trying to run. Try walking first.
Start with a standalone example, not with a web app.
Once the standalone example works, you can easily adapt it into a web app.

Why do you need a Document instance? Remove this line:
>          Dim document As New Document()
This is OK:
>          Dim reader As PdfReader = New PdfReader(sourcepdf)
>          Dim stamp As PdfStamper = New PdfStamper(reader, 
> Response.OutputStream)
This is "doing it the hard way":
>          Dim content As PdfContentByte = stamp.GetUnderContent(1)
>          Dim txt As PdfContentByte = stamp.GetOverContent(1)
>          txt.BeginText()
>          txt.SetTextMatrix(250, 250)
>          txt.SetFontAndSize(bf_times, 14)
>          txt.ShowText(text)
>          txt.EndText()
Why not use ColumnText? That's much easier.

This is all wrong:
>          content.Add(txt)
This is OK:
>          stamp.Close()


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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