Hi,
orticelo:I want the table to adjust to the content and not wrap text if possible, but when I give the overall table width it gives for each column the same width . (attachment: table2.jpg). If I omit the overall table width the table overflows from the pdf document (it is cut in the middle). How to solve that ? (borders are only used here to show my point)
orticelo:The second huge problem is with css property - > line-height. No matter what I do Aspose can't interpret this properly. I was trying in version 6.7 and in 8.0.
tilal.ahmadPlease check this post for setting column width dynamically to length of contents. Hopefully it will help you to accomplish your requirements.
tilal.ahmadCan you please share your sample code here? So we will look into it and will provide you more information accordingly.
orticelo:About Line Height : I’ve attached archive with html file. And here below is part of c# code responsible for generating pdf.
notice the same problem. For the sake of correction, I have logged this problem
as PDFNEWNET-36167 in our issue tracking system. We will further
look into the details of this problem and will keep you updated on the status
of correction. Please be patient and spare us little time. We are sorry for
this inconvenience.
orticelo:tilal.ahmadPlease check this post for setting column width dynamically to length of contents. Hopefully it will help you to accomplish your requirements.Sorry but I don't see any link to related post ?tilal.ahmadCan you please share your sample code here? So we will look into it and will provide you more information accordingly.About Line Height : I've attached archive with html file. And here below is part of c# code responsible for generating pdf.code:var pdf = new Aspose.Pdf.Generator.Pdf();Aspose.Pdf.Generator.Section section = pdf.Sections.Add();StreamReader r = File.OpenText(@"C:\one_LineHeightTest.html");var text2 = new Aspose.Pdf.Generator.Text(section, r.ReadToEnd());text2.IsHtmlTagSupported = true;text2.IsHtml5Supported = true;section.Paragraphs.Add(text2);pdf.Save(@"one.pdf");
Example form suggested post assuming table generation form code. So It wont help me to solve my problem.
Hi there,
Hi there,
Thank you for sharing source HTML file. While testing the scenario with the latest version of Aspose.Pdf for NET 8.7.0, We have managed to reproduce the reported table formatting issue and logged it in our bug tracking system as PDFNEWNET-36201 for further investigation and resolution. We will notify you via this thread as soon as it is resolved.
We are sorry for the inconvenience caused.
Best Regards,
The issues you have found earlier (filed as PDFNEWNET-36201) have been fixed in Aspose.Pdf for .NET 8.9.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi,
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;color:#2B91AF”>HtmlLoadOptions options = <span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
“Times New Roman”;color:blue”>new <span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;color:#2B91AF”>HtmlLoadOptions();<o:p></o:p>
options.UseNewConversionEngine = true;
Document doc = new Document(@"D:\input\SampleFile.html", options);
doc.Save(<span style=“font-size:10.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;color:#A31515;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>@“D:\pdftest\SampleFile.pdf”);
The issues you have found earlier (filed as PDFNEWNET-36167) have been fixed in Aspose.Pdf for .NET 9.4.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.