When I use aspose-pdf-10.4.1.java to convert the attached pdf to html, the resulting html has background. The conversion code is simple.
I’ve had the same issue with some other pdf file in past. I’ve asked a colleague who has some knowledge of pdf to take a look. His remark about the problematic pdfs is that “they are highly compressed and have mixing of RGB and CMYK file types”.
Hi there,
ahong:
When I use aspose-pdf-10.4.1.java to convert the attached pdf to html, the resulting html has background. The conversion code is simple.// Generate html from the pdf// ByteArrayInputStream inStream = new ByteArrayInputStream(pdfBytes); com.aspose.pdf.Document doc = new com.aspose.pdf.Document(inStream); int pageCount = doc.getPages().size(); logger.info("pdf pageCount: " + pageCount); com.aspose.pdf.HtmlSaveOptions saveOptions = new com.aspose.pdf.HtmlSaveOptions(); saveOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats; doc.save(docName, saveOptions); %%
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-35008 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
ahong:
I've had the same issue with some other pdf file in past. I've asked a colleague who has some knowledge of pdf to take a look. His remark about the problematic pdfs is that "they are highly compressed and have mixing of RGB and CMYK file types".-An
The issues you have found earlier (filed as PDFJAVA-35008) have been fixed in Aspose.PDF for Java 25.9.