I need to convert PDF into GIF with transparency. I've found some example of code on the official site, but result doesn't match expected. The common issue is transparency loosing.
The code I tried below:
using (var doc = new Doc()) {
doc.Read(source);
doc.Rendering.SaveAlpha = true;
// the following lines from the official site.
// And this is showing blue background if I set this.
// But I don't need this blue background.
// Do not set anything special won't give good result.
//doc.Color.SetRgb(0, 0, 255); // blue background ...
//doc.FillRect(); // ... so you can see transparency
doc.Rendering.Save(destination);
doc.Clear();
}
Please help if anyone have an expierence with this. Thanks