I use the following code:
using (MagickImageCollection images = new MagickImageCollection())
{
images.Read(@"C:\Header.pdf");
}
But I get ever the exception "No such file or directory @ error/pdf.c/ReadPDFImage/682",
but the file exists.
Also Load from stream or load a byte array do not work.
I use the 32 Bit Library Magick.NET-x86.dll. Are there some problems?
Thank you for help.
Greetings
Comments: ** Comment from web user: jitudavda **
The issue persists after installing latest Ghostscript. (64bit version, with latest Magick.NET-x64.dll 6.8.8.901 of 23March2014)
```
Magick: Postscript delegate failed `C:\CCP\CCP_363.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/713
at ImageMagick.MagickImageCollection.HandleReadException(MagickException exception)
at ImageMagick.MagickImageCollection.Read(String fileName, MagickReadSettings readSettings)
```
Problem starts after once read timeout and thread abort in ASP.NET application. Its already kept to 300ms timeout.
Subsequent try gets following.
```
Magick: unable to create temporary file `C:\CCP\CCP_363.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/400
at ImageMagick.MagickImageCollection.HandleReadException(MagickException exception)
at ImageMagick.MagickImageCollection.Read(String fileName, MagickReadSettings readSettings)
```