Posted on: 5/9/2012 10:10:52 AM | Views : 271

Hi,
I've a page with just a textbox and a button to show generated pdf.
When I click button "Show PDF" below is the PDF I am getting with 2nd <p> tag overlapping others


This is my code for generating the above pdf
protected void btnSave_Click(object sender, EventArgs e) { // Create a Document object var document = new Document(PageSize.A4, 50, 50, 25, 25); // Create a new PdfWriter object, specifying the output stream var output = new FileStream(Server.MapPath("MyFirstPDF.pdf"), FileMode.Create); var writer = PdfWriter.GetInstance(document, output); // Open the Document for writing document.Open(); string content = txtHtml.Text; var parsedElements = HTMLWorker.ParseTo ...

Go to the complete details ...