This project has moved. For the latest updates, please go here.

Convert MagickImage to XPS

Mar 8 at 6:43 PM
Hello,

I am trying to convert a MagickImage object to an XPS format.
MagickNET.SetTempDirectory(@"D:\temp");
            MagickNET.SetGhostscriptDirectory(@"D:\GhostScriptLib");

            MagickImage img = new MagickImage(doc.Doc);
            img.Format = MagickFormat.Xps;

            img.Write(@"d:\temp\testsingle.xps");
It fails with an MagickMissingDelegateErrorException: no encode delegate for this image format `XPS'

After some researching I realized there is an extension library ghostscript called ghostxps.
Is this one needed here and how/where do I install it?

Thank you al lot.
Coordinator
Mar 11 at 7:39 AM
Only reading XPS is supported. You cannot write a xps file. You probably want to use another library for this.