Page 1 of 1
converting pdf text pages to images
Posted: 2013-01-12T10:18:46-07:00
by VanGog
Pls,
Code: Select all
convert exner.pdf -density 250 -quality 100% exner.jpg
this prints report "no decode dellegate for this image format 'exner.pdf'
can IM convert pdf? I forgot.
Re: converting pdf text pages to images
Posted: 2013-01-12T11:58:08-07:00
by fmw42
Yes, IM can convert PDFs, but it uses Ghostscript. Most likely you do not have it installed or not installed properly or where IM expects to find it.
Also the density should be set before reading any vector image such as pdf.
Re: converting pdf text pages to images
Posted: 2013-01-12T13:17:17-07:00
by VanGog
I have set the path and restart. The gswin32 program works now. But still I have problem with this:
Code: Select all
convert -density 250 -quality 100 exner.pdf exner.jpg
convert.exe: RegistryKeyLookupFailed `CoderModulesPath' @ error/module.c/GetMagickModulePath/673.
convert.exe: no decode delegate for this image format `exner.pdf' @ error/constitute.c/ReadImage/544.
convert.exe: no images defined `exner.jpg' @ error/convert.c/ConvertImageCommand/3021.
Do you think I need to use ghostscript installer? I can run the ghostscript console, so I could try to write some command, if you know it. I do not know how to use GS... I belive It should run from the directory where it is... Lets try console
Re: converting pdf text pages to images
Posted: 2013-01-12T13:40:20-07:00
by snibgo
The first error is "RegistryKeyLookupFailed", so it seems IM can't find something in the registry. I suggest you re-install IM.
Re: converting pdf text pages to images
Posted: 2013-01-12T15:27:12-07:00
by VanGog
I can yet trsy different version : ImageMagick-6.7.5-Q8
convert -density 250 -quality 100 exner.pdf exner.jpg
convert.exe: no decode delegate for this image format `exner.pdf' @ error/constitute.c/ReadImage/532.
convert.exe: missing an image filename `exner.jpg' @ error/convert.c/ConvertImageCommand/3016.
Re: converting pdf text pages to images
Posted: 2013-01-12T17:44:17-07:00
by fmw42
run
convert -list configure
Look at the line starting with DELEGATES. If it does not have gs or ghostscript listed, then IM cannot find it or it is not installed or not installed correctly.
Re: converting pdf text pages to images
Posted: 2013-01-13T00:27:08-07:00
by VanGog
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
Good tip. Thanks
So I will reinstall gs definately
Re: converting pdf text pages to images
Posted: 2013-01-13T01:27:01-07:00
by VanGog
I've just install gs (gs904w32.exe) but the command still does not show gs delegate.
I read the manual of gs:
http://ghostscript.com/doc/current/Install.htm
They write
"To install a self-extracting Ghostscript archive on Windows, you need just this self-extracting archive file. Run this file to install Ghostscript. "
Also I can see the registry key:
HKEY_CURRENT_USER\Software\GPL Ghostscript
with two items:
image
text
and (standard) contains nothing
... Maybe is there some problem with the registry, coz there is in the manual something about GS version item in registry, which I dont see:
If Ghostscript fails to find an environment variable, it looks for a registry value of the same name under the key
HKEY_CURRENT_USER\Software\GPL Ghostscript\#.##
or if that fails, under the key
HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\#.##
where #.## is the Ghostscript version number."
Re: converting pdf text pages to images
Posted: 2013-01-13T12:45:31-07:00
by fmw42
You have to re-install IM after installing a delegate, at least on unix. I am not sure about windows.