如何将PDF转换为BMP / PNG / JPG等 [英] how to convert PDF to BMP/PNG/JPG etc etc

查看:248
本文介绍了如何将PDF转换为BMP / PNG / JPG等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个这样的情况,我需要将PDF文件转换成最适合以特定分辨率的PNG。



我知道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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆