We've been trying to convert some htm pages to PDF, but I think the pages don't get converted properly. Could you help to clarify whether this is existing issue, or only exist in the trial version? I've tried to search similar keywords, it seems that they should have been fixed in the earlier version.
There is suggestion to use Aspose Words from the forum. However, it still doesn't work as intended although the result is better compared to Aspose PDF result.
Attached is the sample of the htm code. (or can just refer below..)
Thanks for your inquiry. Yes, reported issue has been fixed. Please check documentation link to convert HTML to PDF for details. Please download and try the latest version of Aspose.Pdf for .Net. Hopefully, it will help you accomplish your task.
HtmlLoadOptions htmlOptions = new HtmlLoadOptions;
// use the new conversion engine
htmlOptions.UseNewConversionEngine = true;
// load HTML file
Document doc = new Document(myDir + "TableHtml_sample.htm", htmlOptions);
doc.Save(myDir + "HTMLtoPDFDOM.pdf");
Please feel free to contact us for any further assistance.
Thank you for the prompt reply. The pdf output I saw from the attachment looks ok. However, when we tried to do the conversion ourselves, we're hit with this error message.
"At most 4 text fragments can be added in evaluation mode."
Is there any way we could try the working version or bypass the particular error message? Or could you help to advise us is there any workable methods that we can use?
Thanks for your feedback. The PDF evaluation version has two limitations: an evaluation watermark and a maximum of four elements from any collection can be viewed. Please request a temporary license for 30 days to evaluate our product without any limitations. Hopefully, your issue will be resolved.
Please feel free to contact us for any further assistance.
Thanks for your feedback. I am afraid I am unable to replicate the issue with Aspose.Pdf for .NET 9.3.0. Please download and try latest version of Aspose.Pdf, hopefully it will help you to accomplish the task.
Thank you for your reply. Apparently the PDF format you've attached is somewhat different from what we're expecting. Please refer to the sample pdf format attached. Basically it's something similar to the html itself (e.g. being viewed in browsers).
We could convert the html by doing .save as PDF directly, but the formatting would be something that we don't expect. Using the new conversion engine method will give us error message.
We are sorry for the inconvenience caused. I have managed to notice formatting issue in resultant HTML file and logged it as PDFNEWNET-37060 for further investigation and resolution. We will keep you updated about the issue resolution progress via this forum thread.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.