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