如何将PDF转换为BMP / PNG / JPG等 [英] how to convert PDF to BMP/PNG/JPG etc etc
问题描述
我知道imagemagick使用convert.exe进行某种转换,但是每次都会崩溃,我使用的是Windows 7 x64 。 p>
转换的首选方法是集成在 delphi 7组件中的东西,但是我也可以使用命令行,如果这是需要做的工作。
我的主要关注点是我不希望这种情况对于类似消息的人来说就是崩溃了
http://elhombre.members.winisp.net/vista_watson01.png
要从Imagemagick中提取PDF,您必须正确安装Ghostscript,并在Windows注册表( HKLM\Software\GPL Ghostscript
);在64位计算机上,另外一个 Wow6432Node
级别站在此路径内。
否则使用 pdftoppm
从 xpdf ,然后使用imagemagick将其转换为您的栅格格式,如果imagemagick失败了xpdf不依赖代理(如Ghostscript for PDF)从PDF中提取。
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 this 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.
这篇关于如何将PDF转换为BMP / PNG / JPG等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!