In some cases when I convert a pdf to a html I seem to lose all the images…
My code is something like:-
Document d=new Document(“well well.pdf”);
HtmlSaveOptions newOptions = new HtmlSaveOptions();
newOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
newOptions.LettersPositioningMethod = LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
newOptions.setSplitIntoPages(false);// force write HTMLs of all pages into one output document
newOptions.HtmlMarkupGenerationMode = HtmlSaveOptions.HtmlMarkupGenerationModes.WriteAllHtml;
d.save(“oo.html”,newOptions);
but you can see that oo.html doesn’t have and visible images in it, where the pdf did.
I think this happens when there is something special about the pdf, but I don’t know what.
Normally this code works ok…
Just certain pdfs it has a problem with…
I’ve renamed the html file to xml so I could attach it but you get the idea!
Hi Graham,
Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for Java 10.4.1 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWJAVA-34995 and also linked your request to it. We will keep you updated via this thread regarding the issue status.
Please feel free to contact us for any further assistance.
Best Regards,
The issues you have found earlier (filed as PDFNEWJAVA-34995) have been fixed in Aspose.Pdf for Java 11.9.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.