将pdf文件转换为图像文件 [英] convert pdf files into images files

查看:82
本文介绍了将pdf文件转换为图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何将我的pdf文件转换为图像。如果pdf文件将有5个页面,它应该转换为只有五个图像。请帮助asap。

Hi,

how i can convert my pdf file into image. if pdf file will have 5 pages, it should convert into has five images only.pls help asap.

推荐答案

你好



有人写了一篇关于此的文章。

如何使用Ghostscript API将PDF转换为图像 [ ^ ]



基本上是这样的:



Hello

Someone wrote an article about that.
How To Convert PDF to Image Using Ghostscript API[^]

Basically it is something like that:

var pdfConverter = new Converter();
pdfConverter.OutputFormat = "jpeg";
pdfConverter.JPEGQuality = 100;
pdfConverter.ResolutionX = 300;
pdfConverter.ResolutionY = 300;
pdfConverter.FirstPageToConvert = 1;
pdfConverter.LastPageToConvert = 1;
pdfConverter.Convert("source.pdf", "image.jpg");





Valery。



Valery.


这篇关于将pdf文件转换为图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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