Hi,
I am using Free pdf library for .NET v3.2. I am using it to convert a html page to pdf. But in the pdf the HTML styles are lost. These styles are applied to the HTML using a css file.
I am using the .NET 2.0 dlls in my project and this is the code that I am using
Dim doc As New PdfDocument
Dim url = "my URL"
doc.LoadFromHTML(url, False, True, True)
Dim path As String = Server.MapPath("Test.pdf")
doc.SaveToFile(path)
doc.Close()
I also attaching the screenshot of the HTML and the generated pdf.
Please let me know if I am missing a setting which will retain the styles in the HTML.
Thank you,
Ashish Pednekar