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,