Page 1 of 1

PDF to TIFF Error

Posted: 2008-10-20T12:04:15-07:00
by Thiago
Hi, I am currently running ImageMagick 6.4.3 Q8 on Windows Server 2003.

I am trying to convert a PDF with 500 pages to a TIFF image, but I keep getting the following error:

"convert: Error fetching directory count. `TIFFLinkDirectory'."

This occurs through the usage of the following command:

convert -colorspace RGB -density 300 foo.pdf foo.tiff

However, if I use a smaller density, like 150 everything works fine.
I`ve been reading the forum and I came accross an answer where it was said that I should use -limit Memory 1mb -limit Map 1mb, but this will slow down the process.

I was wondering if there is any way around this problem other than the limit solution.

Thanks in advance,

Thiago

Re: PDF to TIFF Error

Posted: 2008-10-20T17:23:29-07:00
by magick
Try this command and let us know if it works for you:
  • convert -limit memory 1mb -limit map 1mb -colorspace RGB -density 300 foo.pdf foo.tiff

Re: PDF to TIFF Error

Posted: 2008-10-21T08:37:51-07:00
by Thiago
Hi,

EDIT: I just tested that command limiting the memory and the map to 1mb and it did not work. Any suggestions?

Thanks again,

Thiago

Re: PDF to TIFF Error

Posted: 2008-10-22T10:07:13-07:00
by Thiago
I forgot to mention, for my specific problem I could also generate a TIFF per page of the original PDF.

Is there anyway how to do this in a SINGLE command?

Thanks

Re: PDF to TIFF Error

Posted: 2008-10-22T13:34:37-07:00
by magick
You could try to see if the command works with the latest ImageMagick release, 6.4.4-10 otherwise try converting one page at a time:
  • convert image.pdf[0] image0.tif
    convert image.pdf[1] image1.tif