跳至页脚内容
产品比较

IronPDF 与 SautinSoft PDF Focus .NET

IronPDF凭借完善的网页渲染支持,在HTML到PDF转换方面表现出色,而SautinSoft PDF Focus .NET专注于将现有的PDF转换为Word、Excel和其他格式。 选择基于您是否需要PDF创建或PDF提取功能。

什么是IronPDF和SautinSoft PDF Focus .NET?

PDF是指可移植文档格式,这是一种包含图形、文本和其他元素的多功能文件格式。 这些组件构成了现代PDF的基础,它们在20世纪90年代出现,用于在不同计算机系统间交换信息。

这篇文章比较了两个用于.NET开发的流行PDF库:

  • IronPDF
  • SautinSoft PDF Focus .NET

这两个库都可以在Microsoft .NET应用程序中创建和操作PDF文件,包括ASP.NET网页应用程序和传统的Windows应用程序。 本比较考察了它们在转换和操作PDF文件时的功能和性能。

这两个库都支持Microsoft .NET框架

SautinSoft PDF Focus .NET有何不同?

SautinSoft PDF Focus .NET帮助开发者构建将PDF文档转换为其他格式的应用程序。 要在PdfFocus.dll"的引用,并编写3-4行C#代码。

SautinSoft PDF Focus .NET的主要特点:

  • 使用.NET框架转换PDF文档
  • 处理来自Adobe和第三方创建者的PDF
  • 包含内置PDF解析器
  • 生成HTML5格式文档:
    • HTML Fixed复制PDF版面及页面结构
    • HTML Flowing支持编辑和合并
  • 创建简单、可读的HTML标记
  • 生成带有Base64编码图像的HTML
  • 提供完整的转换API

是什么让 IronPDF 与众不同?

IronPDF来自Iron Software,为.NET开发者提供了一种高效方法,将HTML网页转为PDF格式。 该库通过最小的代码量,以编程方式处理PDF文档生成

IronPDF使开发者可以添加各种元素到PDF中,包括页眉、页脚水印,以及书签

IronPDF的关键特性:

如何安装这些PDF库?

如何直接下载IronPDF?

IronPDF NuGet包下载IronPDF.dll并在.NET项目中引用。 通过IronPdf命名空间访问IronPDF类。 有关高级安装选项,请查阅完整的安装指南。 该库支持Windows安装Linux部署,和macOS配置

如何直接下载SautinSoft PDF Focus .NET?

从官网下载PdfFocus包并在.NET项目中引用。 使用PdfFocus对象进行文档转换。

Visual Studio的安装步骤是什么?

如何在Visual Studio中安装SautinSoft

  • 启动Visual Studio
  • 创建一个新项目(控制台应用程序) 使用NuGet包管理器安装PdfFocus
Visual Studio Code IDE界面显示一个Java程序,右键菜单高亮显示'Manage NuGet Packages'选项,便于在控制台应用程序项目中安装包
NuGet Package Manager showing `sautinsoft.pdffocus` version 8.2.1.18, a commercial PDF conversion library for .NET with detailed package information, dependencies, and pricing details displayed
  • 点击Install将PdfFocus.dll添加到项目中:
Visual Studio `IntelliSense` dropdown showing `SautinSoft` namespace components with PDFocus class selected for PDF processing and code completion assistance

如何在Visual Studio中安装IronPDF?

按照相同步骤操作,但寻找IronPDF。 请查看安装指南以获取详细说明。 对于特定平台,请查看有关WindowsLinuxmacOSDocker部署的指南。 该库还支持Azure部署AWS Lambda函数

Visual Studio中的NuGet包管理器显示IronPDF及其相关包的版本号和下载计数,便于比较选择

将IronPDF添加为项目引用:

Visual Studio IDE显示IronPDF库已集成到.NET项目中,并提供HTML到PDF转换的代码示例,解决方案资源管理器中显示IronPDF引用已成功添加

有哪些定价选项?

IronPDF的价格是多少?

IronPDF许可比较图显示了三个级别:Lite($499),Professional($999),和Unlimited($2,999),详细说明了每个级别的开发者限制、位置限制和项目允许项

SautinSoft PDF Focus .NET的价格是多少?

SautinSoft提供高质量的转换,价格具有竞争力。 PDF Focus .NET比竞争产品便宜。 HTML版本起价为299美元,总版价格为778美元起。

  • 一次性购买,终身许可证
  • 一年无限支持
  • Total——转换PDF为所有格式($778+)
  • Office——转换PDF为Word/Excel/Text($599+)
  • Picasso——转换PDF为图像($599+)
  • HTML——转换PDF为HTML/XML($299+)

IronPDF支持哪些HTML到PDF功能?

支持哪些HTML技术?

有哪些配置选项?

SautinSoft提供了哪些PDF转换功能?

PDF到文本转换如何工作?

PDF Focus .NET高效地从PDF文档中提取文本。 从整个文档或单个页面中提取。 该库提供高质量文本,没有单词间额外空格,并支持Unicode。 文本布局保持RTF外观,具有正确的换行符和列。 在IronPDF中实现相似功能,请参阅文本提取指南PDF解析教程。 IronPDF也支持UTF-8编码,适用国际语言。

PDF到DOCX转换如何工作?

SautinSoft PDF Focus包含其自己的PDF阅读器和DOCX渲染器。 将PDF文档转换为DOCX无需依赖Microsoft Office或Adobe Acrobat。 生成的DOCX包含段落、列、表格、超链接、图像和分页符。

PDF Focus .NET利用AI技术识别并重建具有行和单元格的表格,将PDF视觉表格转换为实际文档表格。 对于反向过程,IronPDF提供DOCX到PDF转换邮件合并支持。 IronPDF还提供RTF到PDF转换HTML到PDF转换的功能。

支持哪些.NET框架和平台?

IronPDF支持哪些平台?

SautinSoft PDF Focus支持哪些平台?

  • .NET框架4.0或更高版本
  • .NET框架和.NET Core 2.0
  • 以托管C#编写
  • 跨平台兼容
  • 云平台支持:
    • AWS
    • Docker
    • SharePoint
    • Google Cloud Platform##如何实现常见的PDF任务?

如何使用IronPDF创建PDF?

如何将HTML转换为PDF?

在.NET应用程序中将HTML转换为PDF是一项普遍任务。 对于更复杂的情况,请参阅HTML渲染设置像素级别渲染指南。 IronPDF还支持将HTML文件转换为PDFHTML ZIP文件处理

// PM> Install-Package IronPdf

using IronPdf;

var Renderer = new IronPdf.ChromePdfRenderer();
// Render HTML string as a PDF document and save it
Renderer.RenderHtmlAsPdf("<h1>Test HTML with images</h1>").SaveAs("test_image.pdf");

/****** Advanced ******/

// Render HTML and external assets into a PDF
// BasePath is used to resolve relative paths to assets like images and styles
var PDF = Renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"C:\site\assets\");
PDF.SaveAs("html-with-assets.pdf");
// PM> Install-Package IronPdf

using IronPdf;

var Renderer = new IronPdf.ChromePdfRenderer();
// Render HTML string as a PDF document and save it
Renderer.RenderHtmlAsPdf("<h1>Test HTML with images</h1>").SaveAs("test_image.pdf");

/****** Advanced ******/

// Render HTML and external assets into a PDF
// BasePath is used to resolve relative paths to assets like images and styles
var PDF = Renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"C:\site\assets\");
PDF.SaveAs("html-with-assets.pdf");
$vbLabelText   $csharpLabel

有关更多示例,请参见HTML字符串到PDF指南文件到PDF教程响应式HTML渲染文档。

如何将URL转换为PDF?

将网页转换为PDF对于归档、报告和文档编制很有用。 对于需要身份验证的页面,请参阅登录凭证指南TLS认证教程。 IronPDF支持Kerberos认证HTTP请求标头

// PM> Install-Package IronPdf

using IronPdf;

// Create a new renderer instance
IronPdf.ChromePdfRenderer Renderer = new IronPdf.ChromePdfRenderer();

// Configure rendering options for better output
Renderer.RenderingOptions.PrintHtmlBackgrounds = true;
Renderer.RenderingOptions.PaperOrientation = PdfPrintOptions.PdfPaperOrientation.Portrait;
Renderer.RenderingOptions.MarginTop = 20;
Renderer.RenderingOptions.MarginBottom = 20;

// Render a PDF from a URL
var Pdf = Renderer.RenderUrlAsPdf("___PROTECTED_URL_259___");

// Save the PDF file
Pdf.SaveAs("url.pdf");  
// see also Pdf.Stream for handling PDF data directly from memory
// PM> Install-Package IronPdf

using IronPdf;

// Create a new renderer instance
IronPdf.ChromePdfRenderer Renderer = new IronPdf.ChromePdfRenderer();

// Configure rendering options for better output
Renderer.RenderingOptions.PrintHtmlBackgrounds = true;
Renderer.RenderingOptions.PaperOrientation = PdfPrintOptions.PdfPaperOrientation.Portrait;
Renderer.RenderingOptions.MarginTop = 20;
Renderer.RenderingOptions.MarginBottom = 20;

// Render a PDF from a URL
var Pdf = Renderer.RenderUrlAsPdf("___PROTECTED_URL_259___");

// Save the PDF file
Pdf.SaveAs("url.pdf");  
// see also Pdf.Stream for handling PDF data directly from memory
$vbLabelText   $csharpLabel

有关高级URL渲染选项,请参阅URL到PDF指南渲染选项文档,和URL转换示例

如何将图像转换为PDF?

将图像转换为PDF非常适合创建照片册、作品集或文档档案。 IronPDF支持多帧TIFF转换Azure Blob Storage图像。 该库还可以处理嵌入式图像位图

// PM> Install-Package IronPdf
using IronPdf;
using System.IO;
using System.Linq;

// Get all image files (.jpg or .jpeg) from a specific directory
var ImageFiles = Directory.EnumerateFiles(@"C:\project\test").Where(f => f.EndsWith(".jpg") || f.EndsWith(".jpeg"));

// Convert the images to a single PDF document and save it
ImageToPdfConverter.ImageToPdf(ImageFiles).SaveAs(@"C:\project\testing.pdf");

// Use PdfDocument.RasterizeToImageFiles() to flatten a PDF back into images or thumbnails
// PM> Install-Package IronPdf
using IronPdf;
using System.IO;
using System.Linq;

// Get all image files (.jpg or .jpeg) from a specific directory
var ImageFiles = Directory.EnumerateFiles(@"C:\project\test").Where(f => f.EndsWith(".jpg") || f.EndsWith(".jpeg"));

// Convert the images to a single PDF document and save it
ImageToPdfConverter.ImageToPdf(ImageFiles).SaveAs(@"C:\project\testing.pdf");

// Use PdfDocument.RasterizeToImageFiles() to flatten a PDF back into images or thumbnails
$vbLabelText   $csharpLabel

有关更多图像处理,请查看图像到PDF指南栅格化教程图像优化示例

如何使用SautinSoft转换PDF?

如何将PDF转换为Word文档?

在保持格式的同时将PDF转换为Word文档:

using System;
using System.IO;

string pdfFile = @"c:\test.pdf";
MemoryStream docxStream = new MemoryStream();

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

// Open a PDF file from disk into a FileStream
using (FileStream pdfStream = new FileStream(pdfFile, FileMode.Open, FileAccess.Read))
{
    f.OpenPdf(pdfStream);

    if (f.PageCount > 0)
    {
        // Set conversion options
        f.WordOptions.Format = SautinSoft.PdfFocus.CWordOptions.eWordDocument.Docx;
        f.WordOptions.RenderMode = SautinSoft.PdfFocus.CWordOptions.eRenderMode.Flowing;

        // Convert the PDF to a Word document and store it in docxStream
        int res = f.ToWord(docxStream);

        // Save the DOCX to disk if conversion was successful
        if (res == 0)
        {
            string docxFile = Path.ChangeExtension(pdfFile, ".docx");
            File.WriteAllBytes(docxFile, docxStream.ToArray());
            System.Diagnostics.Process.Start(docxFile);
        }
    }
}
using System;
using System.IO;

string pdfFile = @"c:\test.pdf";
MemoryStream docxStream = new MemoryStream();

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

// Open a PDF file from disk into a FileStream
using (FileStream pdfStream = new FileStream(pdfFile, FileMode.Open, FileAccess.Read))
{
    f.OpenPdf(pdfStream);

    if (f.PageCount > 0)
    {
        // Set conversion options
        f.WordOptions.Format = SautinSoft.PdfFocus.CWordOptions.eWordDocument.Docx;
        f.WordOptions.RenderMode = SautinSoft.PdfFocus.CWordOptions.eRenderMode.Flowing;

        // Convert the PDF to a Word document and store it in docxStream
        int res = f.ToWord(docxStream);

        // Save the DOCX to disk if conversion was successful
        if (res == 0)
        {
            string docxFile = Path.ChangeExtension(pdfFile, ".docx");
            File.WriteAllBytes(docxFile, docxStream.ToArray());
            System.Diagnostics.Process.Start(docxFile);
        }
    }
}
$vbLabelText   $csharpLabel

IronPDF通过内存流导出功能提供类似的文档处理。

如何将PDF转换为图像?

将PDF转换为图像可以生成缩略图并提供预览功能。 IronPDF提供类似功能,包括PDF栅格化质量保持、和内存流处理

using System;
using SautinSoft;

PdfFocus f = new PdfFocus();
f.OpenPdf(@"C:\Computer\testpdf");

if (f.PageCount > 0)
{
    // Set conversion options for images
    f.ImageOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;
    f.ImageOptions.Dpi = 200;
    f.ImageOptions.JpegQuality = 90;

    // Save all PDF pages as JPEG images
    for (int page = 1; page <= f.PageCount; page++)
    {
        f.ToImage(@"C:\Pictures\page_" + page + ".jpg", page);
    }
}
using System;
using SautinSoft;

PdfFocus f = new PdfFocus();
f.OpenPdf(@"C:\Computer\testpdf");

if (f.PageCount > 0)
{
    // Set conversion options for images
    f.ImageOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;
    f.ImageOptions.Dpi = 200;
    f.ImageOptions.JpegQuality = 90;

    // Save all PDF pages as JPEG images
    for (int page = 1; page <= f.PageCount; page++)
    {
        f.ToImage(@"C:\Pictures\page_" + page + ".jpg", page);
    }
}
$vbLabelText   $csharpLabel

IronPDF提供高级的图像处理功能,包括PDF到图像转换PDF扁平化位图绘制

如何将PDF转换为HTML?

有关在IronPDF中将PDF转换为HTML的详细信息,请参阅PDF到HTML指南转换示例

using System;
using SautinSoft;

PdfFocus f = new PdfFocus();
f.OpenPdf(@"c:\test.pdf");

if (f.PageCount > 0)
{
    // Set HTML conversion options
    f.HtmlOptions.IncludeImageInHtml = true;
    f.HtmlOptions.Title = "Converted from PDF";
    f.HtmlOptions.RenderMode = PdfFocus.CHtmlOptions.eHtmlRenderMode.Flowing;

    // Convert PDF to HTML
    int result = f.ToHtml(@"c:\output.html");

    // Open the resulting HTML document in the default browser
    if (result == 0)
    {
        System.Diagnostics.Process.Start(@"c:\output.html");
    }
}
using System;
using SautinSoft;

PdfFocus f = new PdfFocus();
f.OpenPdf(@"c:\test.pdf");

if (f.PageCount > 0)
{
    // Set HTML conversion options
    f.HtmlOptions.IncludeImageInHtml = true;
    f.HtmlOptions.Title = "Converted from PDF";
    f.HtmlOptions.RenderMode = PdfFocus.CHtmlOptions.eHtmlRenderMode.Flowing;

    // Convert PDF to HTML
    int result = f.ToHtml(@"c:\output.html");

    // Open the resulting HTML document in the default browser
    if (result == 0)
    {
        System.Diagnostics.Process.Start(@"c:\output.html");
    }
}
$vbLabelText   $csharpLabel

IronPDF还支持XML到PDF转换Markdown到PDF转换,和XAML到PDF转换以应对各种文档工作流。

每个库的关键优势是什么?

为何选择IronPDF?

为什么选择SautinSoft PDF Focus?

  • 只需3-4行C#代码
  • 提供多个格式转换的API
  • 独立库,无需依赖
  • 一次性付费,终身使用
  • 处理多页TIFF文件
  • 提供一年免费技术支持

为什么选择IronPDF而不是SautinSoft

SautinSoft在输出文档中添加试用通知和随机"试用"文字。 相比之下,IronPDF提供无限制的试用功能,无水印。

IronPDF的价格约为类似SautinSoft许可证的一半。 有关与其他竞争对手的详细价格比较,请参阅关于Aspose替代选项iText替代选项Syncfusion替代选项QuestPDF比较Apryse评估的页面。

比较两个库后显示IronPDF在价格上占优势,几乎是对方的一半,并且拥有更好的支持和更多的功能。 IronPDF提供完整的文档代码示例教程API参考以覆盖所有功能。

此外,IronPDF提供:

您应该选择哪个 PDF 库?

此比较检查了IronPDF和SautinSoft PDF Focus .NET。 IronPDF将网页表单、HTML页面和网页内容转换为.NET应用程序中的PDF。 SautinSoft PDF Focus将现有PDF转换为DOCX、图像和HTML等格式。 测试结果表明,IronPDF提供无限制试用功能,输出上没有产品标签。

IronPDF为处理便携文档格式的开发人员提供了卓越的性能和广泛的功能。 该库包含完整的支持和文档,以改进功能的使用。 有关更多信息,请访问功能页面,尝试实时演示,或浏览更新日志以获取最新信息。 查看里程碑包括Chrome渲染兼容性改进PDF/A支持PDFium DOM,以及稳定性增强。 针对具体问题,请参阅故障排除指南或请求工程支持

探索教程,包括创建PDF编辑PDF转换PDF组织PDF签名和安全PDF,以及API参考以获取详细的实施指导。

请注意SautinSoft PDF Focus .NET是其各自所有者的注册商标。 此站点与SautinSoft PDF Focus .NET无关,也未获得其认可或赞助。 所有产品名称、徽标和品牌均为各自所有者的财产。 比较仅供参考,反映撰写时公开可用的信息。)}]

常见问题解答

如何在C#中将HTML转换为PDF?

您可以使用 IronPDF 的 RenderHtmlAsPdf 方法将 HTML 字符串转换为 PDF。此外,您还可以使用 RenderHtmlFileAsPdf 方法将整个 HTML 文件转换为 PDF。

使用 IronPDF 相较于 SautinSoft PDF Focus 的优势是什么?

IronPDF 提供更具成本效益的定价,卓越的性能,输出中无试用标签,并具备广泛的功能,如易安装、更好的支持,以及处理复杂布局和 JavaScript 的能力。

如何在 .NET 项目中安装 IronPDF?

IronPDF 可以通过 Visual Studio 中的 NuGet 包管理器安装。只需搜索 IronPDF,并将其添加为项目引用即可开始使用其功能。

IronPDF 是否支持跨平台功能?

是的,IronPDF 兼容 macOS、Linux 和 Windows。它支持各种 .NET Framework,并可以在云托管环境中使用。

IronPDF 提供哪些 HTML 转 PDF 功能?

IronPDF 支持 HTML4、HTML5、CSS3、JavaScript、Angular、React、自适应布局和外部样式表,实现全面的 HTML 转 PDF 转换。

SautinSoft PDF Focus 的关键功能是什么?

SautinSoft PDF Focus 允许将 PDF 转换为多种格式,如 Word、Excel 和 HTML。它支持高质量的文本提取,并保持布局完整性。

使用 SautinSoft PDF Focus 的一个显著缺点是什么?

SautinSoft PDF Focus 的试用版在输出中添加试用通知,这对于寻求干净输出的开发者来说是一个限制。而 IronPDF 没有这种限制。

IronPDF 的定价结构是什么?

IronPDF 提供具有竞争力的价格,无限制用于开发,有 30 天退款保证和一年的免费支持,使其成为具有成本效益的选择。

Curtis Chau
技术作家

Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。

除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。

Iron Support Team

We're online 24 hours, 5 days a week.
Chat
Email
Call Me