免费工具或图书馆转换Tiff文件到pdf在。net

时间:2023-01-14 14:55:54

Does any one know of a free tool or library to convert multi page tiffs to pdf in Asp.Net 1.1?

有没有人知道一个免费的工具或库将多页的tiff转换为pdf在Asp。Net 1.1吗?

7 个解决方案

#1


4  

how about PDFSharp, or iTextSharp? I usually search sf.net first when looking for a free library.

那PDFSharp,还是iTextSharp呢?在寻找免费的库时,我通常先搜索sf.net。

#2


1  

Use ImageMagick.

使用ImageMagick。

convert screenshot.tiff screenshot.pdf

#3


1  

LibTiff.Net library and tiff2pdf utility (comes with the library) can be used to convert TIFF images to PDF documents in .NET

LibTiff。Net library和tiff2pdf实用程序(随库一起提供)可用于在.NET中将TIFF图像转换为PDF文档

The library and the utility use .NET 2.0 but you probably will be able to build .NET 1.1 version without modifications. The library and utility are free and open source and their code doesn't use generics and other things absent from .NET 1.1.

库和实用程序使用。net 2.0,但是您可能可以不需要修改就构建。net 1.1版本。库和实用程序是免费的、开源的,它们的代码不使用泛型和。net 1.1中没有的其他东西。

Disclaimer: I am one of the maintainers of the library.

免责声明:我是该库的维护人员之一。

#4


0  

Persist software's ASPPDFlib.dll might be of your help. http://www.asppdf.com/download.html

持续软件ASPPDFlib。dll是你的帮助。http://www.asppdf.com/download.html

#5


0  

Look into PDF Creator http://www.pdfforge.org/products/pdfcreator

查看PDF的创建者http://www.pdfforge.org/products/pdfcreator。

I know you can script it, but I don't know if you can do anything with it via ASP.NET. Either way it couldn't hurt to look.

我知道您可以编写脚本,但是我不知道您是否可以通过ASP.NET来做任何事情。不管怎样看都无妨。

#6


0  

I've had to do this in asp.net before (actually JPG to PDF but close enough...) I use ImageMagick and shell out to it. I know its not native c# code, but its free and it works brilliantly. Just run a command line like this:

我以前在asp.net中做过这个(实际上是JPG到PDF,但是已经足够接近了…)我使用ImageMagick和shell。我知道它不是本地的c#代码,但是它是免费的,而且非常出色。只需运行如下命令行:

cmd /c convert "c:\blah\original.tiff" "c:\blah\destination.pdf"

cmd / c转换“c:\ \原始。tiff”“c:\ \ destination.pdf”

The reason i use the 'cmd /c' is that without it, i have problems with System.Diagnostics.Process.Start messing up the arguments.

我使用“cmd /c”的原因是没有它,我在System.Diagnostics.Process上就有问题。开始搞砸争论。

#7


0  

Use PdfFoucs dll for converting PDF to Image, Word, Text format in 4 lines of code. No need to install any exe for that.

使用PdfFoucs dll将PDF转换为图像、Word、文本格式4行代码。不需要安装任何exe。

Code for converting in MultiTiff Image:

多tiff图像转换代码:

SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(FilePath);

if (f.PageCount > 0)
{
    f.ToMultipageTiff(FilePath);
}

Code for converting in Tiff Image based on homany pages are there in PDF:

基于homany页面的Tiff图像转换代码为PDF:

SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(FilePath);

if (f.PageCount > 0)
{
    for (int i = 0; i < f.PageCount; i++)
    {
       f.ImageOptions.Dpi = 200;
       System.Drawing.Bitmap bmp1 = (System.Drawing.Bitmap)f.ToDrawingImage(i + 1);
       bmp1.Save(Server.MapPath("~/FileUpload/") + filename + "_" + (i + 1) + ".tiff");
     }
}

Code for converting in Worrd:

在Worrd中转换的代码:

SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(FilePath);

if (f.PageCount > 0)
{
    f.ToWord(FilePath);
}

Only you need to add the DLL in your application. Trial version as well as license versions are available on sautinsoft site

只需要在应用程序中添加DLL。试用版和许可版本都可以在sautinsoft网站上找到

#1


4  

how about PDFSharp, or iTextSharp? I usually search sf.net first when looking for a free library.

那PDFSharp,还是iTextSharp呢?在寻找免费的库时,我通常先搜索sf.net。

#2


1  

Use ImageMagick.

使用ImageMagick。

convert screenshot.tiff screenshot.pdf

#3


1  

LibTiff.Net library and tiff2pdf utility (comes with the library) can be used to convert TIFF images to PDF documents in .NET

LibTiff。Net library和tiff2pdf实用程序(随库一起提供)可用于在.NET中将TIFF图像转换为PDF文档

The library and the utility use .NET 2.0 but you probably will be able to build .NET 1.1 version without modifications. The library and utility are free and open source and their code doesn't use generics and other things absent from .NET 1.1.

库和实用程序使用。net 2.0,但是您可能可以不需要修改就构建。net 1.1版本。库和实用程序是免费的、开源的,它们的代码不使用泛型和。net 1.1中没有的其他东西。

Disclaimer: I am one of the maintainers of the library.

免责声明:我是该库的维护人员之一。

#4


0  

Persist software's ASPPDFlib.dll might be of your help. http://www.asppdf.com/download.html

持续软件ASPPDFlib。dll是你的帮助。http://www.asppdf.com/download.html

#5


0  

Look into PDF Creator http://www.pdfforge.org/products/pdfcreator

查看PDF的创建者http://www.pdfforge.org/products/pdfcreator。

I know you can script it, but I don't know if you can do anything with it via ASP.NET. Either way it couldn't hurt to look.

我知道您可以编写脚本,但是我不知道您是否可以通过ASP.NET来做任何事情。不管怎样看都无妨。

#6


0  

I've had to do this in asp.net before (actually JPG to PDF but close enough...) I use ImageMagick and shell out to it. I know its not native c# code, but its free and it works brilliantly. Just run a command line like this:

我以前在asp.net中做过这个(实际上是JPG到PDF,但是已经足够接近了…)我使用ImageMagick和shell。我知道它不是本地的c#代码,但是它是免费的,而且非常出色。只需运行如下命令行:

cmd /c convert "c:\blah\original.tiff" "c:\blah\destination.pdf"

cmd / c转换“c:\ \原始。tiff”“c:\ \ destination.pdf”

The reason i use the 'cmd /c' is that without it, i have problems with System.Diagnostics.Process.Start messing up the arguments.

我使用“cmd /c”的原因是没有它,我在System.Diagnostics.Process上就有问题。开始搞砸争论。

#7


0  

Use PdfFoucs dll for converting PDF to Image, Word, Text format in 4 lines of code. No need to install any exe for that.

使用PdfFoucs dll将PDF转换为图像、Word、文本格式4行代码。不需要安装任何exe。

Code for converting in MultiTiff Image:

多tiff图像转换代码:

SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(FilePath);

if (f.PageCount > 0)
{
    f.ToMultipageTiff(FilePath);
}

Code for converting in Tiff Image based on homany pages are there in PDF:

基于homany页面的Tiff图像转换代码为PDF:

SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(FilePath);

if (f.PageCount > 0)
{
    for (int i = 0; i < f.PageCount; i++)
    {
       f.ImageOptions.Dpi = 200;
       System.Drawing.Bitmap bmp1 = (System.Drawing.Bitmap)f.ToDrawingImage(i + 1);
       bmp1.Save(Server.MapPath("~/FileUpload/") + filename + "_" + (i + 1) + ".tiff");
     }
}

Code for converting in Worrd:

在Worrd中转换的代码:

SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(FilePath);

if (f.PageCount > 0)
{
    f.ToWord(FilePath);
}

Only you need to add the DLL in your application. Trial version as well as license versions are available on sautinsoft site

只需要在应用程序中添加DLL。试用版和许可版本都可以在sautinsoft网站上找到