Converting a PDF document in an Avenir font to HTML returns a blank document.
Hi Janet,
Hi
Janet
Hi Jenet,
Thanks for sharing your sample PDF document. I have tested the PDF to HTML scenario using the following sample code snippet with Aspose.Pdf for Java 11.3.0 and was unable to notice the reported issue. Please download the latest version of Aspose.Pdf for Java and try this sample code snippet; it will resolve the issues.
// Load source PDF file
com.aspose.pdf.Document doc = new com.aspose.pdf.Document("AlpResumeEdited.pdf");
// Instantiate HTML Save options object
HtmlSaveOptions newOptions = new HtmlSaveOptions();
// Enable option to embed all resources inside the HTML
newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
// This is just optimization for IE and can be omitted
newOptions.LettersPositioningMethod = LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
newOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
// Output file path
String outHtmlFile = "Single_output.html";
// Save the output file
doc.save(outHtmlFile, newOptions);
We are sorry for the inconvenience caused.
Best Regards,
Hi Tilal,
Hi Janet,