Converting a pdf to an image with GhostScript - how do I reference gsdll32.dll?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to create an image from a pdf using GhostScript. Here is my code: GhostscriptWrapper . ConvertToBMP ( inputPDFFilePath , outputBMPFilePath ); And here's my GhostscriptWrapper class: public class GhostscriptWrapper { public static void ConvertToBMP ( string inputPath , string outputPath ) { CallAPI ( GetArgs ( inputPath , outputPath )); } private static void CallAPI ( string [] args ) { IntPtr ptr ; CreateAPIInstance ( out ptr , IntPtr . Zero ); InitAPI ( ptr , args . Length , args ); Cleanup ( ptr ); } private static