Conversion from PDF to single html

Hi,

Did anything changed in latest version ? Am I able to convert pdf file in html file (with embedded images) - a single hmtl file ?
Thank you,

Hi Dragos,


Thanks for your inquiry. I am afraid the conversion of PDF to single Web Archive (MHT) is currently not supported. However we have already logged this requirement as PDFNEWNET-36340 in our issue tracking system. We will notify you via this forum thread as soon as it is implemented.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-36340) have been fixed in Aspose.Pdf for .NET 9.6.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(7)

Hi Dragos,

Thanks for your patience. As stated above your reported issue has been fixed, now you can create a single HTML file output with embedded resources using Aspose.Pdf for .NET 9.6.0. Please download the release and try using it as following.

Document doc = new Document(myDir + "36608.pdf");
HtmlSaveOptions newOptions = new HtmlSaveOptions();
// this is usage of tested feature
newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
// this is just optimozation for IE and can be omitted
newOptions.LettersPositioningMethod =HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
newOptions.RasterImagesSavingMode =HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
//
string outHtmlFile = myDir + "ExternalTestsData/36340.html";
doc.Save(outHtmlFile, newOptions);

Please feel free to contact us for any further assistance.

Best Regards,