lejeune wrote:
> 
> I have somes problems to convert graphics (eps, pdf) in xmlEditor.
> For the other (jpg, png, tiff, svg, bmp) it's ok
> 
> I 'm under Mac Os X.4.9
> Ghostscript 8.54 is installed and is in my path
> 
> here, is the message what appears
> ------------------------------------------------------------------------
> 
> 
> and when i made the sh cmd in a terminal, it works fine.
> My customize.xxe file have a ref to imageToolkits.incl
> 
> Have you an idea please ?. Think's for your help
> 

The screen shot clearly shows that there is no command called gs in your
PATH (despite what you have said).

You can either:

* make sure that gs is in your PATH

* OR modify the plug-in using a text editor:

The image toolkit plug-in for PostScript and PDF graphics is defined in
sample_customize_xxe_INSTALL_DIR/imagetoolkits.incl:

---
  <imageToolkit name="Ghostscript">
    <description>Converts EPS and PDF graphics to PNG.
Important: requires Ghostscript 8+.</description>

    <converter>
      <input extensions="eps epsf ps pdf" magicStrings="%!PS %PDF"/>
      <output extensions="png"/>

      <shell command='gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m
                 -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop
                 %A "-sOutputFile=%O" "%I"'
             platform="Unix"/>

      <shell command='gswin32c -q -dBATCH -dNOPAUSE -sDEVICE=png16m
                 -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop
                 %A "-sOutputFile=%O" "%I"'
             platform="Windows"/>
    </converter>
  </imageToolkit>
---

Simply change "command='gs..." to something like
"command='/my/absolute/path/gs...".



---
PS: On the Mac, applications are often contained in package bundles. May
be your Ghostscript is contained in something like Ghostscript.app/. In
such case, it is not Ghostscript.app which must be added to the PATH but
Ghostscript.app/Contents/MacOS/.../gs.



Reply via email to