Create transparent image from RTF and HTML documents using conversion API in .NET

Is there any way to create transparent PNGs or GIFs from RTF and HTML documents?

1 Like

@mrendlemindgrub

Please have a look at the supported ImageConvertOptions class properties. Can you please share your development platform (.NET or Java) and we’ll then assist you accordingly.

I am using GroupDocs for .NET in a .NET Core 3.1 application.

I don’t see any options to do with transparency for any of the ImageConvertOptions or sub-options.

1 Like

@mrendlemindgrub

Thanks for sharing the details. When converting an HTML or RTF page to Image format you cannot set transparency. However, we’ve logged a ticket in our internal issue tracking system with ID CONVERSIONNET-4012 in order to investigate the possibility to implement such a use-case. As there’s any update, you’ll be notified.

Thank you, looking forward to it.

@mrendlemindgrub

You are welcome.

@mrendlemindgrub

Using GroupDocs.Conversion for .NET 22.7, you can set the transparency.
ImageConvertOptions now have a property BackgroundColor, which can be set to any color or to Color.Transparent.