I have tried creating a sample HTML document but I am afraid I could not produce the HTML file which can help me in replicating this issue. Can you please share the file which you are using so that we can test the scenario at our end. We are sorry for this inconvenience.
Thanks for sharing the details and resource files.
As per my observations, you are using Aspose.Words for .NET to read the contents of HTML file and save them in output format, so I am going to move this thread to respective forum where my fellow workers taking care of this product would be in better position to answer this query. Soon you will be updated with the status of correction.
Besides this, please note that Aspose.Pdf for .NET also supports the capability to convert HTML files into PDF format. But I am afraid during my testing, I have observed that the output PDF file generated with Aspose.Pdf for .NET has some formatting issues i.e. Tables are re-sized, formatting is lost and also contents are overlapping. For
the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-34204. We
will investigate this issue in details and will keep you updated on the status
of a correction.
I have tested the scenario and have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-6857 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
As per your email request about the ETA of this issue (WORDSNET-6857), I am afraid this issue has now been postponed till a later date due to some other important issues and new features. We will inform you as soon as there are any further developments.
I am afraid due to some technical difficulties, the issue PDFNEWNET-34204 (HTML to PDF conversion using Aspose.Pdf for .NET) is not yet resolved. Nevertheless the team is still working on resolving these issues and as soon as we have made some progress towards its resolution, we would be more than happy to update you with the status of correction.
Your patience and comprehension is greatly appreciated in this regard.
I am afraid this issue WORDSNET-6857 has now been postponed till a later date due to some other important issues and new features. We will inform you as soon as there are any further developments.
I was facing similar issue and I think I have work around for you.
I’ve attached sample html (input file), doc and pdf files.
Doc and pdf files are converted from html file and its working for me.
Thanks to you as I’ve used your method (documentbuilder code) and then had a look into object structure of document class. Try using inline css in your html.
Hi Dharmesh
Thanks for taking the time to respond. Unfortunately I’m not able to view or download your attachment. On my screen there is a message saying it is “Present (inaccessible)”. Would you be able to change this so I can look at the attachment?
Thanks!
Mark.
Hi Dharmesh
I’m currently logged in to the forums but I’m still getting the same issue. Would it be possible for you to email the files to me at mark.baxter@equiniti-ics.com?
Thanks,
Mark.
Hi Dharmesh
I’m currently logged in but still unable to see the attached files. Would it be possible for you to email the files to mark.baxter@equiniti-ics.com ?
Thanks
Mark.
Thanks for the files Dharmesh.
I’ve checked through them and tried to apply some formatting to the tables in my document to see if it makes a difference but unfortunately it does not.
I’ve attached the file.
I have also tested the shared workaround by Dharmesh, it do not work. We will update you via this forum thread once this issue WORDSNET-6857 is resolved.
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.