[英]Ghostscript with C# using dll
我想使用ghostscript將PDF轉換為圖像。 在C#中使用Process類非常簡單。 我想要的是在C#中使用gsdll32.lib或gsdll32.dll,並能夠使用gswin32c執行以下在命令行上運行的命令
gs9.14\\bin\\gswin32c -Igs9.14\\lib;fonts -dSAFER -dNumRenderingThreads=2 -dBATCH -dUseCropBox -dNOPAUSE -sPDFPassword=\"\" -sDEVICE=png16m -r200 -sOutputFile=\"output\"
是否有可用的包裝器或任何其他可用的方式,因為當我只是嘗試在C#項目中添加gsdll32.dll的引用時,出現以下錯誤:
The reference could not be added. Please make sure that the file is accesible, and that it is a valid assembly or COM component.
在我建議您查看Josip Habjan的Ghostscript.NET之前,您已經簽了IRC。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.