Gradient does not applying while converting pdf to html

Hello,


During evaluating Aspose.PDF we identified that it remove gradient background when we convert pdf to html.

Following code block I am using with attached pdf.

Document doc = new Document(inputFileName);
HtmlSaveOptions option = new HtmlSaveOptions();
option.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
option.LettersPositioningMethod = HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
option.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
option.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
doc.Save(outputFileName, option);


Regards,

Hi Muhammad,

Thanks for your inquiry. I have tested your scenario with shared PDF document using Aspose.Pdf for .NET 11.0.0 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-39710 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

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