跳過到頁腳內容
產品比較

IronPDF與SautinSoft PDF Focus .NET的比較

IronPDF在HTML轉換為PDF方面表現優異,提供完整的網頁渲染支援,而SautinSoft PDF Focus .NET專注於將現有的PDF轉換為Word、Excel及其他格式。 根據您是否需要PDF創建或PDF提取功能來選擇。

什麼是IronPDF和SautinSoft PDF Focus .NET?

PDF代表可攜式文件格式,是一種多用途的文件格式,包含圖形、文字和其他元素。 這些元件構成了現代PDF的基礎,PDF於1990年代出現,用於不同電腦系統之間的信息交換。

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

  • IronPDF
    • SautinSoft PDF Focus .NET

這兩個程式庫都能夠在Microsoft .NET應用程式中進行PDF檔案的創建和操作,包括ASP.NET網路應用程式和傳統的Windows應用程式。 此比較檢視在轉換和操作PDF文件時的功能和效能。

兩個程式庫都支援Microsoft .NET framework

SautinSoft PDF Focus .NET 有哪些不同之處?

SautinSoft PDF Focus .NET 協助開發者建立應用程式以將PDF文件轉換為其他格式。 要在PdfFocus.dll"的參考,並撰寫3至4行C#程式碼。

SautinSoft PDF Focus .NET的主要功能:

  • 將PDF文件使用.NET Framework 轉換 從Adobe和第三方創建者處理PDF文件
  • 包括內建的PDF解析器 生成HTML5格式文件:
  • 修正 HTML 中的重複項 PDF 佈局和頁面結構
  • HTML流動使編輯和合併成為可能 簡單、可讀的HTML標記
  • 產生包含base64編碼圖片的HTML 提供完整的轉換API

IronPDF有什麼不一樣?

IronPDF 由Iron Software提供,為.NET開發者提供了一種將HTML網頁轉換為PDF格式的高效方法。 該程式庫通過最少的代碼程式化處理PDF文件生成

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

IronPDF的主要功能:

我該如何安裝這些PDF程式庫?

如何直接下載IronPDF?

IronPDF NuGet Package下載IronPDF.dll並在.NET專案中引用它。 通過 IronPdf 命名空間存取 IronPDF 類別。 如需高級安裝選項,請參閱完整的安裝指南。 該程式庫支持Windows安裝Linux部署macOS配置

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

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

Visual Studio 的安裝步驟是什麼?

如何在Visual Studio中安裝SautinSoft

  • 啟動Visual Studio 建立一個新專案(主控台應用程式) 安裝PdfFocus,使用Manage NuGet Packages:
Visual Studio Code IDE介面顯示了一個Java程式,右鍵點選處理NuGet套件選項,以便於在控制台應用程式專案中安裝套件。
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

請點選安裝以將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 顯示已在 .NET 專案中整合 IronPDF程式庫,包含 HTML 轉 PDF 的代碼範例,並且方案總管顯示成功新增的 IronPDF 參考

有哪些定價選項?

IronPDF的價格是多少?

開發無限制用於測試 具有成本效益的授權費率

IronPDF 授權比較圖表顯示三個級別:Lite($499)、Professional($999)和 Unlimited($2,999),包括每個級別的開發者限制、地理位置限制和專案允許內容的詳細資訊。

所有授權都包含30天退款保證 適用於所有環境 一年的無條件支援 一次性購買

SautinSoft PDF Focus .NET 的成本多少?

SautinSoft提供具有競爭力價格的優質轉換。 PDF Focus .NET 的成本低於競爭產品。 HTML Edition起價$299美金,Total Edition從$778起。

一次性購買,享有終身授權 一年無限支援

  • Total — 轉換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渲染器。 將PDF文件轉換為DOCX,無需依賴Microsoft Office或Adobe Acrobat。 生成的DOCX包含段落、欄、表格、超連結、圖像和分頁符。

PDF Focus .NET使用AI功能來識別並重建帶有行和單元的表格,將PDF視覺表格轉換為實際的文件表格。 對於逆向流程,IronPDF 提供DOCX 轉換為 PDF郵件合併支援。 IronPDF還提供RTF轉PDF轉換HTML轉PDF轉換功能。

哪些.NET Framework和平台受到支援?

IronPDF 支援哪些平台?

.NET Framework 4.0、4.5和4.6.1 .NET Core 2.1, 3.0, 3.1, .NET 5, 和 .NET 6 兼容於macOSLinuxWindows .NET Standard 2.0遵從性

SautinSoft PDF Focus 支援哪些平台?

.NET Framework 4.0或更高版本 .NET Framework and .NET Core 2.0

  • 用託管的C#編寫
  • 多平台相容
  • 雲端平台支援:
  • AWS Docker
    • SharePoint
  • Google Cloud Platform## 我如何實現常見的PDF任務?

如何使用IronPDF創建PDF檔案?

如何將HTML轉換為PDF?

將HTML轉換為PDF是.NET應用程式中常見的任務。 如需更複雜的情境,請參考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到PDFXAML到PDF,適用於各種文件工作流程。

每個程式庫的主要優勢是什麼?

為什麼選擇IronPDF?

為什麼選擇SautinSoft PDF Focus?

  • 需要3到4行C#代碼 提供多格式轉換的API 獨立程式庫,無需依賴 一次性付款即可終身使用 處理多頁TIFF文件 一年的免費技術支援

為什麼選擇 IronPDF 而非 SautinSoft

SautinSoft 在輸出文件中添加試用通知和隨機的"Trial"文本。 相比之下,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簽署和保護PDFAPI參考教程,並獲得詳細的實施指導。

請注意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框架,並可用於雲託管環境。

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 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。

Iron Support Team

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