HTML to PDF: Extra line breaks

I am binding a HTML stream and it works for the most part. the only problem is that a extra line break is being added after the end of my

html source:

1.Ancillary Documents.


     (a)Acknowledgement. Client hereby acknowledges receipt of an Information Statement and a Privacy Notice with respect to this transaction.

Browser output:

1.Ancillary Documents.

(a)Acknowledgement. Client hereby acknowledges receipt of an Information Statement and a Privacy Notice with respect to this transaction.

PDF Output

Attatched Screen shot of the PDF snippet,

Hello Patrick,

Thanks for considering Aspose.

I tested the scenario but I was unable to reproduce the issue. Make sure you are using the latest version of Aspose.Pdf v3.7.0.0 Can you please share the code that you are using so that we can check it. The resultant Pdf that I have generated is in attachment.

I down loaded the newest version (3.7.0.0) yesterday and still have the issue

Here is the Code:

m_oPDF = New Aspose.Pdf.Pdf()

' Get our assembly.

Dim oThisAssembly As System.Reflection.Assembly = System.Reflection.Assembly.GetAssembly(GetType(PDFMaker))

' Load License file.

Dim oLicense As IO.Stream = oThisAssembly.GetManifestResourceStream(Me.GetType.Namespace.ToString() & ".Aspose.Pdf.lic")

If Not (oLicense Is Nothing) Then

Dim license As New Aspose.Pdf.License

license.SetLicense(oLicense)

End If

oLicense.Close()

oLicense.Dispose()

m_oPDF.BindHTML(oStream)

Dim oOutStreamAs New IO.MemoryStream

m_oPDF.Save(oOutStream)

Return oOutStream

I found the Answer:

I did not have this section of text wrapped in a

or .

I saw a unrelated post mention this requierment and tryied it and it solved my issue.