I am converting PDF to HTML.
Hi Yehuday,
my purpose was not to convert to MHT.
…
…
yehuday:my purpose was not to convert to MHT.my question was if I have option to get the CSS values by In-page Style Tags or inline style attributein the html file instead of external css file ( )Tיק Desired result:
....
....
The issues you have found earlier (filed as PDFNEWNET-36608) have been fixed in Aspose.Pdf for .NET 9.6.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Yehuday,
//
load source PDF file<o:p></o:p>
Document doc = new Document(@"F:\ExternalTestsData\36608.pdf");
// instanatiate HTML Save options object
HtmlSaveOptions newOptions = new HtmlSaveOptions();
// this is usage of tested feature
newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedCssOnly;
// 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;
// output file path
string outHtmlFile = @"F:\ExternalTestsData\36340.html";
doc.Save(outHtmlFile, newOptions);