Convert pdf to html with wrong text color

Hi

I was trying to convert a pdf file to html file with Aspose Pdf 10.1.0
But the text color of the result is different from the original pdf file.

Here is my code:

byte[] fileContent = System.IO.File.ReadAllBytes("…/…/data/PDF_textColor.pdf");
Document doc = new Document(new MemoryStream(fileContent));
doc.Save("…/…/1.html"), SaveFormat.Html);

I have the pdf and the result in the attachment, Please help me to fix this problem, thanks :slight_smile:

Your Inquiry Regarding Our API’s

Thank you for using our API’s.

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38232. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

Hi


Is there an ETA or this fix?

Hi Craig,


Thanks for your patience.

I am afraid the earlier reported issue is still not resolved as the team has been busy fixing other previously reported issues. However I have intimated the product team to share the possible ETA. As soon as we have some further updates, we will let you know.

We are sorry for this delay and inconvenience.

Hi there


This issue exists in Java version 11.5.0 as well.
Is there any fix for this issue?

Craig
Hi Craig,

Thanks for your patience.

The issue was reported in Aspose.Pdf for .NET and its still under investigation and is not yet resolved. However I have inquired the latest updates from product team and as soon as we have some definite updates, we will let you know.

Furthermore, please note that Aspose.Pdf for Java is auto-ported from Aspose.Pdf for .NET, so unless the problem is resolved in Aspose.Pdf for .NET, we may not be able to exclusively fix the problem in Aspose.Pdf for Java.

The issues you have found earlier (filed as PDFNET-38232) have been fixed in Aspose.PDF for .NET 19.7.