We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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.

<span style=“font-size:10.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:Calibri;color:#333333;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>Best Regards,