[DllImport(@"C:\bin\pdf2image.dll", CharSet = CharSet.Auto)]
static extern uint PDFToImageConverter(
[MarshalAs(UnmanagedType.LPStr)] string FileName,
[MarshalAs(UnmanagedType.LPStr)] string OutputName,
IntPtr UserPassword, IntPtr OwnPassword,
int xresolution, int yresolution, int bitcount,
int compression, int quality, int grayscale,
int multipage, int firstPage, int lastPage);
result = PDFToImageConverter(FileIn, _FileOut, UserPassword, OwnPassword, 300, 300, 1,
COMPRESSION_LZW, 70, FALSE, TRUE, -1, -1);
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
So, again, the solution is fairly easy... you just configure IIS to run the the "32-bit emulation mode". Windows 2008 allows you configure the 32-bit emulation separately for each "application pool". Note: For the previous version (ie. Windows Server 2003) the conversion to the the 32-bit emulation mode was an "all or nothing" proposition... not so with Windows Server 2008. That means you won't have to convert all of you web applications to 32-bit... you can just convert this one.
http://learn.iis.net/page.aspx/201/32-bit-mode-worker-processes/