将PDF转换为TIFF [英] Convert PDF to TIFF

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

问题描述

有谁知道任何免费库将PDF转换为TIFF文件?

或者如何编程?

我发现abcPDF.dll这样做并且工作正常但是是一个有执照的图书馆

我正在寻找一个免费的解决方案。

提前谢谢

Juan

Hi, anyone knows any free library to convert PDF into TIFF files?
or how do it programatically?
im found abcPDF.dll to do that and works fine but is a licensed library
im looking for a free solution.
Thanks in advance
Juan

推荐答案

查看此处 [ ^ ]。


很棒的thnaks!

i修改了一些代码以允许渲染全彩色图像。这是代码



Doc theDoc = new Doc();



theDoc.Read(@ C:\ TestFiles \+ String.Format({0} - {1} .pdf,name,idx + 1));

//设置渲染参数

theDoc.Rendering.ColorSpace =Color;

theDoc.Rendering.BitsPerChannel = 8;

theDoc.Rendering.DotsPerInchX = 200;

theDoc.Rendering.DotsPerInchY = 400;

//遍历页面

int n = theDoc.PageCount;

for(int i = 1; i< = n; i ++)

{

theDoc.PageNumber = i;

theDoc。 Rect.String = theDoc.CropBox.String;

theDoc.Rendering.SaveAppend =(i!= 1);

//theDoc.Rendering.SaveCompression = XRendering.Compression.G4;

theDoc.SetInfo(0,ImageCompression,4);

theDoc.Rendering.Save (@C:\ TestFiles \+ String.Format({0} - {1} .tif,name,idx + 1));

}

theDoc.Clear();
Great thnaks a lot!
i modified a bit the code to allow render full color images. and this is the code

Doc theDoc = new Doc();

theDoc.Read(@"C:\TestFiles\" + String.Format("{0}-{1}.pdf", name, idx + 1));
// set up the rendering parameters
theDoc.Rendering.ColorSpace = "Color";
theDoc.Rendering.BitsPerChannel = 8;
theDoc.Rendering.DotsPerInchX = 200;
theDoc.Rendering.DotsPerInchY = 400;
// loop through the pages
int n = theDoc.PageCount;
for (int i = 1; i <= n; i++)
{
theDoc.PageNumber = i;
theDoc.Rect.String = theDoc.CropBox.String;
theDoc.Rendering.SaveAppend = (i != 1);
//theDoc.Rendering.SaveCompression = XRendering.Compression.G4;
theDoc.SetInfo(0, "ImageCompression", "4");
theDoc.Rendering.Save(@"C:\TestFiles\" + String.Format("{0}-{1}.tif", name, idx + 1));
}
theDoc.Clear();


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

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