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

Commented Issue: 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 **

I fixed another bug in the 32/64 bit detection. This will be fixed in the next release of Magick.NET.


Viewing all articles
Browse latest Browse all 1011

Trending Articles



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