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,
Hi Dragos,
The issues you have found earlier (filed as PDFNEWNET-36340) have been fixed in Aspose.Pdf for .NET 9.6.0.
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,