Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Not finding Ghostscript? [1203]

$
0
0
I installed the latest verson of Ghostscript (took defaults), as recommend in the docs here: (https://magick.codeplex.com/wikipage?title=Convert%20PDF&referringTitle=Documentation)

This code fails with the following error:

```
// "document" is a byte[] of a pdf, already read from disk elsewhere
// preprocess doc into bitmap
MagickReadSettings settings = new MagickReadSettings();
settings.Density = new MagickGeometry(600, 600);

var ms = new MemoryStream();

using (MagickImageCollection images = new MagickImageCollection())
{
images.Read(document, settings);

MagickImage vertical = images.AppendVertically();
vertical.Write(ms);
}
```

Error is:

```
ImageMagick.MagickDelegateErrorException: Magick: Postscript delegate failed `C:\Users\JAMIE~1.TIL\AppData\Local\Temp\magick-106767tiLZ5l001zR': No such file or directory @ error/pdf.c/ReadPDFImage/713
Result StackTrace:
at ImageMagick.MagickImageCollection.HandleReadException(MagickException exception)
at ImageMagick.MagickImageCollection.Read(Byte[] data, MagickReadSettings readSettings)
[...]
```

I could use some help figuring out why the Postscript delegate fails. Is there some undocumented thing I have to do to help Magick.NET find Ghostscript?

A quick observation: The temp file mentioned in the error is not there, but another temp file is created when I run the code. It is 0 bytes long. I have confirmed via debug that the byte[] being passed in is not empty.
Comments: ** Comment from web user: dlemstra **

The 32/64 bit problem should be resolved. You should be able to have both installed. Magick.NET should pick the best version. If you use the 32 bit version of Magick.NET it will prefer the 32 bit version of Ghostscript. Can you reproduce the problem if you install the 64-bit version of Ghostscript again?


Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>