So for the most part I’m having trouble getting inline styling for my conversion. The HTML page that is being produced from the PDF is linking to an external style sheet.
Here’s what I have:
Aspose.Pdf.Document document = new Aspose.Pdf.Document(@“d:\pdffiles\adobe.pdf”);
document.Save(@“d:\pdffiles\myFile.html”, SaveFormat.Html);
myfile.html is linking to an external style sheet within its directory I would much rather this didn’t happen and the styling either be inline or existing on the myfile.html. Any advice or suggestions would be great. Thanks.
Hi Faraji,
Thanks for using our products.
I am very sorry to share with you that there is no option available in Aspose.Pdf for .NET for inserting style sheet content within the resultant HTML file. We are really sorry for this inconvenience.
Thanks & Regards,
Hello
Is this issue resolved now?
I need a SINGLE pdf to html converted document, with images + style. Not in separate folder.
Regards
Rajeev
Hi Ranjeev,
Aspose.Pdf for .NET supports the feature to convert PDF files to HTML format and as per standards of HTML, the CSS formatting and images referenced inside HTML are stored in separate folder, so if required, a folder is created which contains these resources. I am afraid currently we do not support the conversion of PDF to .htm format. You may consider visiting the following link for further information on Convert PDF file into HTML format
In case of any further query, please feel free to contact.
Hello CodeWarior
I am Rajeev.
Your response states that PDF to HTML is supported, which I appreciate. It also states that PDF to htm is not supported, which I fail to understand.
Anyway, what I am curious to know is the issue which was raised a year ago, is resolved, or not?
While converting a PDF to HTML, I need a SINGLE file with images + style.
(Presently it offers images & style in a separate folder.)
Regards
Rajeev
Is the option to get a single html file now available ?, Can I convert PDF to HTML without needing external css file ?
Hi Parasad,
Thanks for your inquiry. You can easily convert a PDF to a single HTML with embedded resources. Please check following documentation link for details, hopefully it will help you to accomplish the task.
Please feel free to contact us for any further assistance.
Best Regards,