Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Css is not working and pdf form got distorted while converting html to pdf

$
0
0

I am able to make fields editable while converting html to pdf.

It works fine when I convert HTML-->pdf by doing "HTML to pdf" conversion by usind acrobat professional directly.

But the css does not work and form got distorted when We try to convert the html to pdf using Aspose.pdf.dll. The Product version is 2012.12.09. I am using the following code to do the same:

   

Aspose.Pdf.License license = new Aspose.Pdf.License();

            license.SetLicense("Aspose.Pdf.lic");

             StreamReader r1 = File.OpenText(@"D:/Test/Testhtml_pdf.html");

            Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(section, r1.ReadToEnd());

            text2.IsHtmlTagSupported = true;

            section.Paragraphs.Add(text2);

            pdf.HtmlInfo.ImgUrl = "D:/Test/";

            pdf.Save("D:/Test/test_parcs.pdf");v


Viewing all articles
Browse latest Browse all 3131

Trending Articles