Hi
Hello Cheng,
Document pdfDocument = new Document(dataDir + @“testPDF2.pdf”);<o:p></o:p>
string outHtmlFile = dataDir + @"testPDF2.html";
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
saveOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.AlwaysSaveAsWOFF;
saveOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
saveOptions.LettersPositioningMethod = HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
saveOptions.SplitIntoPages = (false);
pdfDocument.Save(outHtmlFile, saveOptions);
Hi Asad.Ali
Hello Cheng,
Thanks for your patience.
We are pleased to share that the issue reported earlier as PDFJAVA-36826, is resolved in latest release of Aspose.Pdf for Java 17.7. Please try using the latest release version and in case you encounter any issue or you have any further query, please feel free to contact.