Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I have my basic iTextSharp code

C#
<pre>private void button1_Click(object sender, EventArgs e)
    {
        Document doc = new Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35);
        PdfWriter wri = PdfWriter.GetInstance(doc, new FileStream("Test.pdf", FileMode.Create));
        doc.Open();
        doc.Add();
        doc.Close();

    }


Can I use

C#
e.Graphics.DrawString(label1.Text, label1.Font, Brushes.Black, 13, 13);


with it and if I can how?
Posted
Updated 18-Jul-13 8:24am
v2
Comments
ridoy 18-Jul-13 15:14pm    
i don't think you can.
Boipelo 18-Jul-13 15:24pm    
What are you trying to achieve? Where will that line go?
Tomaž Leitinger 18-Jul-13 16:00pm    
I was told that a PDFSharp would be better solution for this. does no one know how to use it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900