0

我創建了帶有nuget添加的iTextsharp庫的Windows 8應用程序。我實施了更改,測試了應用程序,一切正常,但是當我運行「Windows應用程序認證套件」時,我收到很多錯誤,iTextsharp所使用的許多API在此類應用程序中不受支持。 例如:使用不受支持的API的itextsharp

API System.ICloneable in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. itextsharp.dll calls this API. 

API System.IO.FileSystemInfo in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. itextsharp.dll calls this API. 

API System.IO.FileInfo in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. itextsharp.dll calls this API. 

API System.Drawing.Color in SYSTEM.DRAWING, PUBLICKEYTOKEN=B03F5F7F11D50A3A is not supported for this application type. itextsharp.dll calls this API. 

有沒有人在微軟商店中發佈的Windows應用程序與iTextSharp的?

+0

官方的iTextSharp二進制文件(我無法說出NuGet上的內容)有一個名爲「itextsharp-dll-core-wo_Drawing」的DLL,它完全基於名稱聽起來像沒有System.Drawing引用了名稱空間。其他物品也可能已被刪除,所以我會先看看那裏。否則,如果您在商店中銷售某種商品,那麼這將很好地利用您的付費支持合同。您的第三個選擇是僅僅下載源代碼並刪除這些實例,可能不會花太長時間。 –

+0

我不知道任何免費的PDF庫的Windows應用商店。如果您有資格獲得愛好者優惠,Syncfusion的圖書館並不昂貴。 –

回答

0

我試過'wo_Drawing',但仍然有不受支持的API。我從sourceforge下載了代碼並開始了重寫庫。