跳至頁尾內容
產品對比

IronPDF 與 `SautinSoft` PDF Focus .NET 的對比

IronPDF 擅長將HTML 轉換為 PDF,並提供完整的 Web 渲染支持,而SautinSoft PDF Focus .NET 則專門用於將現有 PDF 轉換為 Word、Excel 和其他格式。 根據您需要建立 PDF還是提取 PDF 功能進行選擇。

IronPDF 和SautinSoft PDF Focus .NET 是什麼?

PDF 代表可攜式文件格式,是一種用途廣泛的文件格式,可包含圖形、文字和其他元素。 這些組件構成了現代 PDF 的基礎,現代 PDF 出現於 20 世紀 90 年代,旨在實現不同電腦系統之間的資訊交換。

本文比較了兩個流行的用於 .NET 開發的 PDF 庫:

  • IronPDF
  • SautinSoft PDF Focus .NET

這兩個程式庫都支援在 Microsoft .NET 應用程式(包括ASP.NET Web 應用程式和傳統 Windows 應用程式)中建立和操作 PDF 檔案。 本文比較分析了它們在轉換和處理 PDF 文件時的功能和性能。

這兩個函式庫都支援 Microsoft .NET 框架

SautinSoft PDF Focus .NET 有何不同之處?

SautinSoft PDF Focus .NET 可協助開發人員建立將 PDF 文件轉換為其他格式的應用程式。 若要在WinForms或 WPF 應用程式中將 PDF 轉換為 Word,請新增對" SautinSoft " PdfFocus引用,並編寫 3-4 行 C# 程式碼。

SautinSoft PDF Focus .NET 的主要功能:

  • 使用.NET Framework轉換 PDF 文檔
  • 處理來自 Adobe 和第三方創建者的 PDF 文件
  • 內建PDF 解析器
  • 產生 HTML5 格式文件:
    • 修正了 HTML 中重複的 PDF 佈局及其頁面結構
    • HTML Flowing 支援編輯和合併
  • 建立簡潔易讀的 HTML 標記
  • 產生包含base64 編碼影像的HTML
  • 提供完整的轉換 API

IronPDF 的獨特之處是什麼?

Iron Software 的IronPDF為 .NET 開發人員提供了將 HTML 網頁轉換為 PDF 格式的有效方法。 該庫以程式方式處理PDF 文件生成,程式碼量極少。

IronPDF 使開發人員能夠為 PDF 添加各種元素,包括頁首、頁尾浮水印書籤

IronPDF 的主要特點:

*將圖像轉換為 PDF ,反之亦然

如何安裝這些PDF庫?

如何直接下載 IronPDF?

IronPDF NuGet 套件下載 IronPDF.dll,並在 .NET 專案中引用它。 透過IronPdf命名空間存取 IronPDF 類別。 有關進階安裝選項,請參閱完整安裝指南。 該程式庫支援Windows 安裝Linux 部署macOS 配置

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

從官方網站下載SautinSoft . PdfFocus包,並在 .NET 專案中引用它們。 使用SautinSoft . PdfFocus物件進行文件轉換。

Visual Studio 的安裝步驟有哪些?

如何在 Visual Studio 中安裝SautinSoft

  • 啟動 Visual Studio
  • 建立一個新專案(控制台應用程式)
  • 使用 NuGet 套件管理器安裝PdfFocus SautinSoft
Visual Studio Code IDE 介面顯示了一個 Java 程序,右鍵單擊上下文功能表突出顯示了
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
  • 按一下"安裝PdfFocusSautinSoft新增至專案:
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 顯示了整合到 .NET 專案中的 IronPDF 庫,其中包含 HTML 到 PDF 轉換的程式碼範例,解決方案資源管理器顯示 IronPDF 引用已成功新增。

有哪些定價方案?

IronPDF 的價格是多少?

IronPDF 許可對比表,展示了三個級別:Lite 版(499 美元)、Professional 版(999 美元)和 Unlimited 版(2,999 美元),並詳細說明了每個級別的開發者限制、地域限制和專案限額。

所有許可證均包含 30 天退款保證

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

SautinSoft提供價格極具競爭力的高品質轉換服務。 PDF Focus .NET 的價格低於同類產品。 HTML 版起價 299 美元,完整版起價 778 美元。

一次購買,終身授權

  • 一年無限次支持
  • 總計 — 將 PDF 轉換為所有格式(778 美元起)
  • Office — 將 PDF 轉換為 Word/Excel/文字(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 渲染器。 無需依賴 Microsoft Office 或 Adobe Acrobat,即可將 PDF 文件轉換為 DOCX 格式。 產生的 DOCX 檔案包含段落、列、表格、超連結、圖像和分頁符號。

PDF Focus .NET 利用 AI 功能識別並重新建立包含行和儲存格的表格,將 PDF 視覺化表格轉換為實際文件表格。 對於反向過程,IronPDF 提供DOCX 到 PDF 的轉換,並支援郵件合併。 IronPDF 也提供RTF 轉 PDFHTML 轉 PDF 的功能。

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

IronPDF 支援哪些平台?

SautinSoft PDF Focus 支援哪些平台?

  • .NET Framework 4.0 或更高版本
  • .NET Framework 和 .NET Core 2.0
  • 使用託管 C# 撰寫
  • 多平台相容
  • 雲端平台支援:
    • AWS
    • Docker
    • SharePoint
    • Google Cloud Platform## 如何實作常見的 PDF 任務?

如何使用 IronPDF 建立 PDF 文件?

如何將HTML轉換為PDF?

在 .NET 應用程式中,將 HTML 轉換為 PDF 是一項常見的任務。 如需更複雜的場景,請參考HTML 渲染設定像素級完美渲染指南。 IronPDF 也支援HTML 文件轉 PDF以及HTML 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 渲染文件。

如何將網址轉換為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 儲存影像。 該庫還支援處理嵌入式圖像點陣圖

// 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 轉 PDFMarkdown 轉 PDFXAML 轉 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 可以將 .NET 應用程式中的 Web 表單、HTML 頁面和 Web 內容轉換為 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。

與 SautinSoft PDF Focus 相比,IronPDF 有哪些優勢?

IronPDF 提供更具成本效益的定價、卓越的性能、輸出上無試用標籤,以及豐富的功能,例如易於安裝、更好的支持,以及處理複雜佈局和 JavaScript 的能力。

如何在.NET專案中安裝IronPDF?

IronPDF 可以透過 Visual Studio 中的 NuGet 套件管理器安裝。只需搜尋 IronPDF,並將其新增為項目引用即可開始使用其功能。

IronPDF是否支援跨平台功能?

是的,IronPDF相容於macOS、Linux和Windows系統。它支援多種.NET框架,並且可以在雲端託管環境中使用。

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擁有卡爾頓大學電腦科學學士學位,專長於前端開發,精通Node.js、TypeScript、JavaScript和React。他熱衷於打造直覺美觀的使用者介面,喜歡使用現代框架,並擅長撰寫結構清晰、視覺效果出色的使用者手冊。

除了開發工作之外,柯蒂斯對物聯網 (IoT) 也抱有濃厚的興趣,致力於探索硬體和軟體整合的創新方法。閒暇時,他喜歡玩遊戲和製作 Discord 機器人,將他對科技的熱愛與創造力結合。