Hi, 

I would like to add a text with pdfcontentbyte.

This is my code :


Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs)

        Dim doc1 As New Document
        
            
        'use a variable to let my code fit across the page...

        Dim path As String
        path = Server.MapPath("PDFs")

        PdfWriter.GetInstance(doc1, New FileStream(path + "/Doc12.pdf",
FileMode.Create))

        doc1.Open()
        
        Dim cb As PdfContentByte =
iTextSharp.text.pdf.PdfWriter.DirectContent



But in this line  Dim cb As PdfContentByte =
iTextSharp.text.pdf.PdfWriter.DirectContent I get an error .In fact
DirectContent is not available. 

Have you an idea ?

Thankyou for your help


-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/error-Writer-directContent-tp2528184p2528184.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
iText-questions mailing list
[email protected]
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