While we appreciate comments from our users, please follow our posting guidelines. Have you tried the Cyotek Forums for support from Cyotek and the community?
Styling with Markdown is supported
24 May 2016 Reply
My name is jaid ahmed i am using PdfToImage dll but there is problem using PdfToImage to gsdll32.dll for 64 bot os, i want PdfToImage to gsdll64.dll. because in metafile of PDFconverter there is mention gsdll32.dll so i want i want PdfToImage to gsdll64.dll. can you help me please.
25 May 2016 Reply
As Ghostscript is a traditional Win32 DLL, in order to use it from .NET you have to use something called platform invoke. If you check the source code for this article, in the NativeMethods.cs file are a bunch of declarations decorated with the DllImport attribute - these say which DLL to use, in this case gsdll32.dll. Assuming that the 32bit and 64bit versions are identical (I have no idea myself), then simply replacing all those occurrences with the 64bit DLL name will be enough. You would also need to ensure that your client application is set to run in 64bit mode, otherwise it probably won't work.
If you need more help with p/invoke, you can refer to the MSDN article I linked at the start of this comment.