Is it possible to convert pdf to single page html embedding all resources (images, fonts etc).
Thanks
Is it possible to convert pdf to single page html embedding all resources (images, fonts etc).
Hi Balu,
Thank you for the message. Will wait for the version 9.6 , is there any way we are allowed to try some beta version that has this feature.
Hi Balu,
Hi Balu,
Thanks for your patience.
We are pleased to share that the feature requested earlier to Create a single HTML file output with embedded resources is implemented and pre-release (Beta) version of Aspose.Pdf for .NET 9.6.0 (we have named it 9.5.1) is ready for testing. Please download the release and try using it. In case you encounter any issue, please feel free to contact.
[C#]
Document doc = new Document(@“F:\ExternalTestsData\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 = @"F:\ExternalTestsData\36340.html";
doc.Save(outHtmlFile, newOptions);
The issues you have found earlier (filed as PDFNEWNET-36340) have been fixed in Aspose.Pdf for .NET 9.6.0.