0
我需要将PDF转换为透明度的GIF。我在official site上发现了一些代码示例,但结果与预期不符。常见的问题是透明度下降。AbcPdf pdf保持透明度的GIF转换
我尝试下面的代码:
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();
}
请帮助,如果任何人有这样的经验研究。谢谢
我不专注于AbcPdf。我需要转换可能的任何其他工具或库。 – alex