I have a case here which I will need to convert PDF files to preferably PNG's at specified resolution.
I know imagemagick have some kind of conversion using convert.exe but this crashes for me everytime, I am using Windows 7 x64.
the prefered method to convert would be something integrated in the delphi 7 components, but I can also use commandline if that is what is needed to make this work.
My main concern is that I don't want th开发者_开发知识库is to just crash for people with a similar message http://elhombre.members.winisp.net/vista_watson01.png
To extract from PDFs from Imagemagick you must have Ghostscript properly installed and a key set in the Windows Registry (HKLM\Software\GPL Ghostscript
); on 64bit machines an additional Wow6432Node
level stands inside this path.
Otherwise use pdftoppm
from xpdf and then use imagemagick to convert it to your raster format, if imagemagick fails. xpdf does not rely on delegates (like Ghostscript for PDF) for extracting from PDFs.
You might also want to check out QuickPDF. It's an all Delphi solution, is really easy to use, has an enthusiastic user group, and an extensive manual of its hundreds of functions and is supported by Karl De Abrew whose name I have seen in PDF circles for lots of years. With its RenderPageToStream function with options for output in 8 different graphic formats, I made my own PDF viewer in about an hour.
精彩评论