Page 1 of 1

Error with converting certain pdf's to jpg's

Posted: 2009-04-03T07:38:45-07:00
by Tuur
Hi there,

Maybe someone can shed some light at this:
I'm trying a simpel convert from pdf to jpg, this worked before with other pdf's.

Code: Select all

convert folder1.pdf test.jpg


The result is:

Code: Select all

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased {134 0 resolveR}] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
convert: Postscript delegate failed `folder1.pdf': No such file or directory.
convert: missing an image filename `test.jpg'.
I know for sure that the file is there and that the rights are set ok.

This is the same command with -debug all:

Code: Select all

2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: utility.c/unknown/809/Configure
  Command line: convert {-debug} {all} {folder1.pdf} {test.jpg}
2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/config/coder.xml"
2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.4.1/config/coder.xml"
2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.1/coder.xml"
2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/coder.xml"
2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/home/admin/.magick/coder.xml"
2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "coder.xml"
2009-04-03T16:41:22+02:00 0:01 0.000u 6.4.1 Configure convert[3488]: coder.c/unknown/634/Configure
  Loading coder map "/usr/local/share/ImageMagick-6.4.1/config/coder.xml" ...
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Module convert[3488]: module.c/unknown/1077/Module
  Searching for module "PDF" using filename "pdf.la"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Module convert[3488]: module.c/unknown/479/Module
  Searching for coder module file "pdf.la" ...
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Module convert[3488]: module.c/unknown/1097/Module
  Opening module at path "/usr/local/lib/ImageMagick-6.4.1/modules-Q16/coders/pdf.la"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Module convert[3488]: module.c/unknown/1131/Module
  Method "RegisterPDFImage" in module "PDF" at address 0x2aaaab3db4a0
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Module convert[3488]: module.c/unknown/1146/Module
  Method "UnregisterPDFImage" in module "PDF" at address 0x2aaaab3db460
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Blob convert[3488]: blob.c/unknown/2356/Blob
    read 3 magic header bytes
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Cache convert[3488]: cache.c/unknown/2192/Cache
  destroy
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/config/magic.xml"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.4.1/config/magic.xml"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.1/magic.xml"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/magic.xml"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/home/admin/.magick/magic.xml"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "magic.xml"
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Configure convert[3488]: magic.c/unknown/679/Configure
  Loading magic map "/usr/local/share/ImageMagick-6.4.1/config/magic.xml" ...
2009-04-03T16:41:22+02:00 0:01 0.010u 6.4.1 Blob convert[3488]: blob.c/unknown/2356/Blob
    read 3 magic header bytes
2009-04-03T16:41:22+02:00 0:01 0.020u 6.4.1 Cache convert[3488]: cache.c/unknown/2192/Cache
  destroy
2009-04-03T16:41:22+02:00 0:01 0.020u 6.4.1 Blob convert[3488]: blob.c/unknown/2356/Blob
    read 3 magic header bytes
2009-04-03T16:41:22+02:00 0:01 0.020u 6.4.1 Resource convert[3488]: resource.c/unknown/402/Resource
<</OPM 1/BM/Normal/CA 0.910004/OP falseÿÿÿÿ0 R>>>>/Type/Page>>
2009-04-03T16:41:22+02:00 0:01 0.020u 6.4.1 Exception convert[3488]: configure.c/unknown/228/Exception
  no such element in list `MAGICK_TEMPORARY_PATH'
2009-04-03T16:41:22+02:00 0:01 0.020u 6.4.1 Resource convert[3488]: resource.c/unknown/430/Resource
  /tmp/magick-XXZzSp8t
2009-04-03T16:41:22+02:00 0:01 0.020u 6.4.1 Resource convert[3488]: resource.c/unknown/887/Resource
  /tmp/magick-XXZzSp8t
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Resource convert[3488]: resource.c/unknown/402/Resource
  à¸V
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Exception convert[3488]: configure.c/unknown/228/Exception
  no such element in list `MAGICK_TEMPORARY_PATH'
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Resource convert[3488]: resource.c/unknown/430/Resource
  /tmp/magick-XXv3hRAC
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/config/delegates.xml"
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.4.1/config/delegates.xml"
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.1/delegates.xml"
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/delegates.xml"
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "/home/admin/.magick/delegates.xml"
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Configure convert[3488]: configure.c/unknown/528/Configure
  Searching for configure file: "delegates.xml"
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Configure convert[3488]: delegate.c/unknown/1166/Configure
  Loading delegate map "/usr/local/lib/ImageMagick-6.4.1/config/delegates.xml" ...
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Resource convert[3488]: resource.c/unknown/402/Resource
  folder1.pdf
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Exception convert[3488]: configure.c/unknown/228/Exception
  no such element in list `MAGICK_TEMPORARY_PATH'
2009-04-03T16:41:22+02:00 0:01 0.050u 6.4.1 Resource convert[3488]: resource.c/unknown/430/Resource
  /tmp/magick-XXzdDB3K

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased {134 0 resolveR}] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****

   **** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
2009-04-03T16:41:23+02:00 0:03 0.050u 6.4.1 Resource convert[3488]: resource.c/unknown/887/Resource
  /tmp/magick-XXv3hRAC
2009-04-03T16:41:23+02:00 0:03 0.050u 6.4.1 Resource convert[3488]: resource.c/unknown/887/Resource
  /tmp/magick-XXzdDB3K
2009-04-03T16:41:23+02:00 0:03 0.050u 6.4.1 Resource convert[3488]: resource.c/unknown/887/Resource
  /tmp/magick-XXZzSp8t
2009-04-03T16:41:23+02:00 0:03 0.050u 6.4.1 Exception convert[3488]: pdf.c/unknown/591/Exception
  Postscript delegate failed `folder1.pdf': No such file or directory
2009-04-03T16:41:23+02:00 0:03 0.050u 6.4.1 Exception convert[3488]: convert.c/unknown/2651/Exception
  missing an image filename `test.jpg'
convert: Postscript delegate failed `folder1.pdf': No such file or directory.
convert: missing an image filename `test.jpg'.
Version: ImageMagick 6.4.1

Thanks in advance.

Re: Error with converting certain pdf's to jpg's

Posted: 2009-04-03T09:05:15-07:00
by magick
Post a URL to your PDF so we can download and reproduce the problem.

Re: Error with converting certain pdf's to jpg's

Posted: 2009-04-06T05:19:14-07:00
by Tuur
magick wrote:Post a URL to your PDF so we can download and reproduce the problem.
http://www.alt146.net/pdftest/folder1.pdf

Thanks for the fast response.

Re: Error with converting certain pdf's to jpg's

Posted: 2009-04-06T05:55:06-07:00
by magick
The problem is most likely your version of Ghostscript. We're using Ghostscript version 8.64 and ImageMagick 6.5.1-0 and your PDF converted without complaint.