We are using Magick.Net version 7.0 with Ghostscript 9.16. We are reading in a PDF and converting this to a tif or a jpg image. Everything is working fine when we run these through one at a time and our PDF gets converted.
This is an application that will be hit by many systems, so we put a small load test to ensure we could handle multiple requests. Everything runs great as long as we use different PDF files. If we try and run the same PDF file through multiple times (doing 5 requests at the same time with the same PDF), we encounter and error. The error we receive is PDFDelegateFailed. We are not sure why this error occurs and if we try other formats (such as tif to jpg), there are no issues.
ImageMagick.MagickDelegateErrorException:
ESBService.exe: PDFDelegateFailed [ghostscript library 9.16] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r96x96" "-sOutputFile=C:/Users/esbsvc/AppData/Local/Temp/magick-4668LPfdzdzRfLYF%d" "-fC:/Users/esbsvc/AppData/Local/Temp/magick-4668wanF98SE_8PK" "-fC:/Users/esbsvc/AppData/Local/Temp/magick-4668L3mJE6M2iUZV": (null)' @ error/pdf.c/ReadPDFImage/788 at ImageMagick.Wrapper.MagickImageCollection.HandleException(MagickException exception) at ImageMagick.Wrapper.MagickImageCollection.Read(Byte[] data, MagickReadSettings readSettings) at ImageMagick.MagickImageCollection.Read(Byte[] data, MagickReadSettings readSettings) at __DynamicCode.Typeaeb039071464a22ae6518eaa5ec46c.OnExecute(PipelineContext1 context) in c:\Users\esbsvc\AppData\Local\Temp\xp42eval.0.cs:line 112
Any help with this would be appreciated Mike H.