與其他組件的比較 ZXing解碼器與IronBarcode的比較 Jordi Bardia 更新日期:8月 20, 2025 Download IronBarcode NuGet 下載 DLL 下載 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article 條碼無處不在。 條碼掃描實作被作者用來簽署其產品,大多數書籍簽名由條碼掃描實作提供支持。 然而,對於我們的應用程式來說,條碼掃描器可能並不總是合適的。 您可能有條碼的數位圖像和影片,並且想知道它們在英文文本中代表什麼。 此外,只有 1-D 條碼,這些條碼只能用於 Windows RT 類別庫且數據量有限,才能被條碼掃描器讀取。 2-D 條碼,也稱為 QR 碼,如今被廣泛使用,能夠在其數據矩陣中存儲更多數據。 ZXing(Zebra Crossing)是用 Java 實現的開源多格式 1D/2D 條碼圖像處理庫,已移植到其他語言中。 它可以讀取和寫入多種不同的條碼格式,包括計算機上的 QR 碼和 UPC 碼。 IronBarcode 是一款 C# .NET 軟體庫,允許開發人員使用 ZXing 庫讀取和寫入條碼圖像,用於網頁應用程式測試。 它被設計為簡單易用,容易整合到任何 .NET 應用程式中,並且可以與 Windows Forms、WPF 和 ASP.NET 框架一起使用。 IronBarcode 的庫提供了一個簡單的 API 用於讀取和寫入條碼圖像,使開發人員可以輕鬆地為他們的軟體添加條碼掃描和生成功能。 IronBarcode 支持讀取和寫入多種不同的條碼格式,包括 QR 碼、UPC 碼、UPC-A 碼、EAN 碼、RSS 擴展等,這些格式用於簽署產品。 class="content-img-align-center"> class="content__image-caption">Supported Barcode Formats 該庫具有完善的文檔和範例代碼,顯示了如何入門 IronBarcode,如何掃描和解碼條碼,如何生成和編碼條碼,以及如何自定義讀寫過程。 IronBarcode 的一大重要功能是它支持從 PDF 文件或圖像文件中識別條碼和 QR 碼,並且能夠從文件路徑或位圖對象中讀取條碼。 IronBarcode 易用、功能強大且快速,是需要將條碼掃描或生成功能添加到其軟體的人的一個很好的工具。 此外,由於它建立在流行且可靠的 ZXing 庫之上,您可以放心它是一個可靠且高品質的解決方案。 class="content-img-align-center"> class="content__image-caption">IronBarcode C# Library & its Features How IronBarcode was Created from ZXing Decoder IronBarcode 是一款商業的第三方 .NET 庫,用於在 C# 和 VB.NET 中解碼條碼,使用開源的 ZXing 庫作為其底層引擎。該庫提供了簡化、易於使用的 API 處理條碼,並提供了額外功能如能從圖像和 PDF 中讀取條碼的能力,以及創建各種格式條碼的能力。 IronBarcode 由一組開發人員創建,他們想為 .NET 生態系統建立一個更友好且功能豐富的條碼解碼庫。 他們利用成熟的 ZXing 庫,這是一個支持多種條碼格式的開源庫,作為他們庫的基礎。 然後他們在 ZXing 代碼庫之上構建了自己的自定義包裝器,提供了更簡單和一致的 API 供開發人員使用,並提供了額外的功能如支持從圖像和 PDF 中讀取條碼。 Comparing IronBarcode to ZXing Decoder IronBarcode 和 ZXing 都是用於解碼條碼圖像的庫,但它們之間有一些重要差異,使得 IronBarcode 成為更先進和多功能的選擇。 IronBarcode 提供了比 ZXing 更廣泛支持的 Web 條碼格式範圍。 IronBarcode 能夠解碼支持的格式如 QR 碼、Code 39、Code 128、EAN-8、EAN-13、UPC-A、UPC-E、Codabar、ITF、Data Matrix、PDF-417、RSS 擴展等。 Android 用戶不包括在外; IronBarcode 可以很容易地集成到移動應用程序中,讓 Android 用戶更容易進行條碼掃描。 ZXing 支持多數相同的格式,但不完全支持某些格式如 ITF 和 Codabar,也不支持某些 2D 條碼格式如 PDF-417。 // Example showing how to generate a simple QR Code image and save it as a PNG file // using IronBarcode in C#. var qrCode = IronBarCode.QRCodeWriter.CreateQrCode("hello world", 500, QRCodeWriter.QrErrorCorrectionLevel.Medium); qrCode.SaveAsPng("MyQR.png"); // Example showing how to generate a simple QR Code image and save it as a PNG file // using IronBarcode in C#. var qrCode = IronBarCode.QRCodeWriter.CreateQrCode("hello world", 500, QRCodeWriter.QrErrorCorrectionLevel.Medium); qrCode.SaveAsPng("MyQR.png"); ' Example showing how to generate a simple QR Code image and save it as a PNG file ' using IronBarcode in C#. Dim qrCode = IronBarCode.QRCodeWriter.CreateQrCode("hello world", 500, QRCodeWriter.QrErrorCorrectionLevel.Medium) qrCode.SaveAsPng("MyQR.png") $vbLabelText $csharpLabel class="content-img-align-center"> class="content__image-caption">Generating a Simple QR Code Image using IronBarcode IronBarcode 的另一個優勢是其更友好的 Web API。 該庫被設計為簡單易用,容易集成到現有項目中,並提供了一個高級的 Web API,抽象掉了許多條碼解碼的複雜細節。 IronBarcode 比 ZXing 擁有更好的性能。 該庫是用 C# 開發的,能夠使用平行處理來更快地解碼條碼。 此外,IronBarcode 能夠讀取 ZXing 不支持的條碼圖像文件類型,如 GIF、TIFF 和 JPEG-XR。 class="content-img-align-center"> class="content__image-caption">Generating a Simple QR Code Image using IronBarcode 總結而言,IronBarcode 是比 ZXing 更先進更多功能的條碼解碼庫。 它提供了更廣泛的支持條碼格式、更友好的 API 和更好的性能,是使用 .NET 框架開發人員的好選擇。 How to use ZXing Decoder and IronBarcode in C# ZXing .NET 是 ZXing 庫的一個移植版本,這是一個用於處理多種格式的 1D/2D 條碼的開源庫,最初用 Java 實現。 它已經被移植到 C# 並可以通過 NuGet 包管理器獲得。 IronBarcode 是一個可以讀寫條碼的 C# .NET 庫。 它是 ZXing 庫的包裝器,也可通過 NuGet 獲得。 在本教程中,我們將使用在線 ZXing 解碼器和 IronBarcode 來解碼 C# .NET Web 應用中的條碼。 我們將使用 Visual Studio 進行本教程,但這些概念應適用於任何 C# 開發環境。 步驟 1: 在 Visual Studio 中創建一個新的 C# .NET 項目 通過到 File > New > Project 中在 Visual Studio 創建一個新的 C# 項目。 選擇"Windows Forms App"並給您的項目命名。 步驟 2: 安裝 ZXing .NET 和 IronBarcode NuGet 包 在解決方案資源管理器中你所選擇的項目上點右鍵,選擇 "管理 NuGet 包"。 搜索 ZXing.NET 和 "IronBarcode" 並將它們安裝到項目中。 步驟 3: 向表單中添加一個 PictureBox 和一個 Button 在 Design 視圖中的 Form 中添加一個 PictureBox 和一個 Button。 PictureBox 將用於顯示我們將要解碼的圖像,Button 將用於啟動解碼過程。 步驟 4: 在 Form 的代碼頂部添加以下 using 語句: using IronBarCode; using ZXing; using IronBarCode; using ZXing; Imports IronBarCode Imports ZXing $vbLabelText $csharpLabel 步驟 5: 處理 Button 的點擊事件 雙擊 Design 視圖中的 Button 來創建一個點擊事件處理程序。 在處理程序中,添加以下代碼以打開 OpenFileDialog 並讓用戶選擇一個要解碼的圖像: private void button1_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Images (*.BMP;*.JPG;*.GIF;*.PNG)|*.BMP;*.JPG;*.GIF;*.PNG|All files (*.*)|*.*"; ofd.FilterIndex = 1; if (ofd.ShowDialog() == DialogResult.OK) { pictureBox1.Image = Image.FromFile(ofd.FileName); // Decode the barcode from the image here } } private void button1_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Images (*.BMP;*.JPG;*.GIF;*.PNG)|*.BMP;*.JPG;*.GIF;*.PNG|All files (*.*)|*.*"; ofd.FilterIndex = 1; if (ofd.ShowDialog() == DialogResult.OK) { pictureBox1.Image = Image.FromFile(ofd.FileName); // Decode the barcode from the image here } } Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Dim ofd As New OpenFileDialog() ofd.Filter = "Images (*.BMP;*.JPG;*.GIF;*.PNG)|*.BMP;*.JPG;*.GIF;*.PNG|All files (*.*)|*.*" ofd.FilterIndex = 1 If ofd.ShowDialog() = DialogResult.OK Then pictureBox1.Image = Image.FromFile(ofd.FileName) ' Decode the barcode from the image here End If End Sub $vbLabelText $csharpLabel 步驟 6: 解碼圖像中的條碼 在下面這一行之後: pictureBox1.Image = Image.FromFile(ofd.FileName); pictureBox1.Image = Image.FromFile(ofd.FileName); pictureBox1.Image = Image.FromFile(ofd.FileName) $vbLabelText $csharpLabel 添加以下代碼塊來解碼在按鈕點擊事件處理程序中的圖像條碼。 // Create a BarcodeReader instance from ZXing.NET and decode the image. var BarcodeReader = new BarcodeReader(); var Result = BarcodeReader.Decode((Bitmap)pictureBox1.Image); if (Result != null) { MessageBox.Show(Result.Text); } else { MessageBox.Show("No barcode found."); } // Create a BarcodeReader instance from ZXing.NET and decode the image. var BarcodeReader = new BarcodeReader(); var Result = BarcodeReader.Decode((Bitmap)pictureBox1.Image); if (Result != null) { MessageBox.Show(Result.Text); } else { MessageBox.Show("No barcode found."); } ' Create a BarcodeReader instance from ZXing.NET and decode the image. Dim BarcodeReader As New BarcodeReader() Dim Result = BarcodeReader.Decode(CType(pictureBox1.Image, Bitmap)) If Result IsNot Nothing Then MessageBox.Show(Result.Text) Else MessageBox.Show("No barcode found.") End If $vbLabelText $csharpLabel 此代碼創建了一個新的 BarcodeReader ZXing.NET 的實例,然後使用 Decode 方法解碼圖像中的條碼。 Decode 方法返回一個 Result 對象,其中包含有關解碼條碼的信息。 class="content-img-align-center"> class="content__image-caption">Create QR Code with Logo Image IronBarcode's Benefits Compared to ZXIng DecoderOnline IronBarcode 和 ZXing 都是 C# 程式語言的條碼和 QR 碼讀取庫。 這兩個庫各有其優勢和劣勢,選擇哪個取決於您項目的具體需求。 IronBarcode 相對於 ZXing 的一個主要優勢是它的易用性。 IronBarcode 擁有簡單直觀的 API,讓開發人員可以輕鬆就開始處理條碼和 QR 碼。 只需幾行代碼,您便可以最小的努力讀寫條碼和 QR 碼。 相比之下,ZXing 擁有更複雜的 API,對開發人員尤其是那些對條碼和 QR 碼讀取不熟悉的人來說可能具有挑戰性。 IronBarcode 的另一個優勢是它的高性能。 IronBarcode 使用先進的算法快速讀取和解碼條碼和 QR 碼,使其比其他如 ZXing 的庫更快。 這使得它成為需要快速掃描和解碼條碼和 QR 碼的項目的好選擇。 IronBarcode 還提供了更好的讀寫來自多種影像格式條碼的支持,包括JPEG、PNG、GIF、BMP 和 TIFF。 相比之下,ZXing 對影像格式的支持更為有限,並且可能無法讀取或寫入某些類型的條碼图像。 using IronBarCode; using System; using System.Drawing; // Example of using IronBarcode to read barcodes with advanced options // such as rotation and image correction. var PhotoResult = BarcodeReader.ReadASingleBarcode("Photo.png", BarcodeEncoding.Code128, BarcodeReader.BarcodeRotationCorrection.Medium, BarcodeReader.BarcodeImageCorrection.DeepCleanPixels); string Value = PhotoResult.Value; System.Drawing.Bitmap Img = PhotoResult.BarcodeImage; BarcodeEncoding BarcodeType = PhotoResult.BarcodeType; byte[] Binary = PhotoResult.BinaryValue; Console.WriteLine(PhotoResult.Value); using IronBarCode; using System; using System.Drawing; // Example of using IronBarcode to read barcodes with advanced options // such as rotation and image correction. var PhotoResult = BarcodeReader.ReadASingleBarcode("Photo.png", BarcodeEncoding.Code128, BarcodeReader.BarcodeRotationCorrection.Medium, BarcodeReader.BarcodeImageCorrection.DeepCleanPixels); string Value = PhotoResult.Value; System.Drawing.Bitmap Img = PhotoResult.BarcodeImage; BarcodeEncoding BarcodeType = PhotoResult.BarcodeType; byte[] Binary = PhotoResult.BinaryValue; Console.WriteLine(PhotoResult.Value); Imports IronBarCode Imports System Imports System.Drawing ' Example of using IronBarcode to read barcodes with advanced options ' such as rotation and image correction. Private PhotoResult = BarcodeReader.ReadASingleBarcode("Photo.png", BarcodeEncoding.Code128, BarcodeReader.BarcodeRotationCorrection.Medium, BarcodeReader.BarcodeImageCorrection.DeepCleanPixels) Private Value As String = PhotoResult.Value Private Img As System.Drawing.Bitmap = PhotoResult.BarcodeImage Private BarcodeType As BarcodeEncoding = PhotoResult.BarcodeType Private Binary() As Byte = PhotoResult.BinaryValue Console.WriteLine(PhotoResult.Value) $vbLabelText $csharpLabel class="content-img-align-center"> class="content__image-caption">Reading a barcode from a phone camera image in C# IronBarcode 提供更多的自定義選項,例如微調條碼讀取,支持多頁文檔,以及各種條碼格式如 DataMatrix,Aztec, 和 PDF-417。 如果您需要處理不同類型的條碼或有特定要求,這可能會很有用。 另一方面,ZXing 是一個開源庫且免費使用。 這可能會對於那些預算有限的項目具有很大優勢。 總之,IronBarcode 和 ZXing 都是強大的 C# 條碼和 QR 碼處理庫,但 IronBarcode 比 ZXing 提供了多種優勢,如易用性、高性能、更好的影像格式支持和更多的自定義選項。 最好評估這兩個庫並選擇最適合您項目需求的那個。 IronBarcode 和 ZXing 是 C# 中處理條碼和 QR 碼的兩個流行庫。 這兩個庫各有其優勢和劣勢,選擇哪個取決於您項目的具體需求。 在本文中,我們將從詳細的角度來看 IronBarcode 與 ZXing 的使用優勢,並通過例子來幫助說明主要的不同之處。 IronBarcode 的一大優勢是它的易用性。 IronBarcode 具有簡單易懂的 API,讓開發人員可以快速地對條碼和 QR 碼進行處理。 通過簡單的幾行代碼,您即可實現條碼和 QR 碼的讀寫,並且努力最小化。 例如,要使用 IronBarcode 從圖像文件讀取條碼,您可以使用以下代碼: var reader = new BarcodeReader(); var result = reader.Read("image.jpg"); Console.WriteLine(result.Text); var reader = new BarcodeReader(); var result = reader.Read("image.jpg"); Console.WriteLine(result.Text); Dim reader = New BarcodeReader() Dim result = reader.Read("image.jpg") Console.WriteLine(result.Text) $vbLabelText $csharpLabel 反之,ZXing 擁有更複雜的 API,這對於開發人員尤其是那些不熟悉條碼和 QR 碼讀取的人來說可能挑戰較大。 上述提供的示例用 ZXing 實現相同結果需要更多的代碼行。 IronBarcode 的另一個優勢是它的高性能。 IronBarcode 使用先進的算法快速讀取和解碼條碼和 QR 碼,使其比其他如 ZXing 的庫更快。 這使其成為需要高速條碼和 QR 碼掃描解碼的項目的好選擇。 例如,IronBarcode 可於少於一秒內從圖像讀取和解碼一個條碼,成為大規模掃描解碼操作的理想選擇。 IronBarcode 還提供了更好的支持來讀寫各種影像格式條碼,包括 JPEG、PNG、GIF、BMP 和 TIFF。 這使得開發人員能夠輕鬆處理不同影像格式內的條碼,而不用擔心兼容性問題。 相較之下,ZXing 在影像格式支持上更為有限,可能無法從某些類型的圖片讀取或寫入條碼。 using IronBarCode; using System; using System.Drawing; // Example of reading multiple barcodes from a PDF using IronBarcode PagedBarcodeResult[] PDFResults = BarcodeReader.ReadBarcodesFromPdf("MultipleBarcodes.pdf"); // Work with the results foreach (var PageResult in PDFResults) { string Value = PageResult.Value; int PageNum = PageResult.PageNumber; System.Drawing.Bitmap Img = PageResult.BarcodeImage; BarcodeEncoding BarcodeType = PageResult.BarcodeType; byte[] Binary = PageResult.BinaryValue; Console.WriteLine("Page " + PageNum + ": " + PageResult.Value); } using IronBarCode; using System; using System.Drawing; // Example of reading multiple barcodes from a PDF using IronBarcode PagedBarcodeResult[] PDFResults = BarcodeReader.ReadBarcodesFromPdf("MultipleBarcodes.pdf"); // Work with the results foreach (var PageResult in PDFResults) { string Value = PageResult.Value; int PageNum = PageResult.PageNumber; System.Drawing.Bitmap Img = PageResult.BarcodeImage; BarcodeEncoding BarcodeType = PageResult.BarcodeType; byte[] Binary = PageResult.BinaryValue; Console.WriteLine("Page " + PageNum + ": " + PageResult.Value); } Imports IronBarCode Imports System Imports System.Drawing ' Example of reading multiple barcodes from a PDF using IronBarcode Private PDFResults() As PagedBarcodeResult = BarcodeReader.ReadBarcodesFromPdf("MultipleBarcodes.pdf") ' Work with the results For Each PageResult In PDFResults Dim Value As String = PageResult.Value Dim PageNum As Integer = PageResult.PageNumber Dim Img As System.Drawing.Bitmap = PageResult.BarcodeImage Dim BarcodeType As BarcodeEncoding = PageResult.BarcodeType Dim Binary() As Byte = PageResult.BinaryValue Console.WriteLine("Page " & PageNum & ": " & PageResult.Value) Next PageResult $vbLabelText $csharpLabel class="content-img-align-center"> class="content__image-caption">Reading Barcodes from a Multi-frame TIFF Image IronBarcode 亦提供更多自訂選項,讓開發人員能夠調整條碼讀取過程以滿足其特定需求。 例如,您可以使用 IronBarcode 來指定不同的條碼格式,如 DataMatrix,Aztec,和 PDF-417。如果您需要不同格式的條依或具特定需求的話,這可能會很有用。 此外,IronBarcode 提供支援多頁文件閱讀,讓開發人員能夠從文件的多頁中讀取和提取條碼資料。 再者,IronBarcode 改進了錯誤處理,更適用於企業級應用。 這裡有一個示例,展示如何從圖像文件中解碼多個條碼: var barcodeResults = IronBarCode.BarcodeReader.ReadMultiple("multibarcode.png"); foreach (var result in barcodeResults) { Console.WriteLine(result.Text); } var barcodeResults = IronBarCode.BarcodeReader.ReadMultiple("multibarcode.png"); foreach (var result in barcodeResults) { Console.WriteLine(result.Text); } Dim barcodeResults = IronBarCode.BarcodeReader.ReadMultiple("multibarcode.png") For Each result In barcodeResults Console.WriteLine(result.Text) Next result $vbLabelText $csharpLabel 另一方,ZXing 是一款開源庫,可免費使用。 對於預算有限的項目,這可能是個重要的優勢。 然而需要注意的是,通過使用更友好和強大的庫所節省的時間和精力可能抵消掉使用 IronBarcode 的成本。 class="content-img-align-center"> class="content__image-caption">Use C# to create an annotated and styled barcode image 總結而言,IronBarcode 和 ZXing 都是處理條碼和 QR 碼的強大庫。 然而,IronBarcode 比 ZXing 提供了多種優勢,如易用性、高性能、更好的格式支持,以及更多的自定義選項。 如果您的項目要求快速高效的條碼掃描和解碼,或您需要對條碼讀取過程有更高的控制,IronBarcode 是個不錯的選擇。 Pricing and Licensing ZXing 以 Apache 2.0 開源許可發佈,這意味著可以自由使用、分發和修改。 在您的軟體專案中使用此庫是不收費的。 然而,如果您在商用產品中使用該庫,則必須遵守 Apache 2.0 驗權要求,其中包括顯著展示許可通知和免責聲明。 IronBarcode 是提供免費開發者許可的軟體。 定價從 $liteLicense 的 Lite 套餐起,包括永久許可證、在開發、預備和生產環境的使用能力、30 天退款保證和一年軟體支持和升級。 有關 IronBarcode 定價和許可的更多信息,請訪問公司的網站。 class="content-img-align-center"> class="content__image-caption">IronBarcode Licensing Prices Why Choose IronBarcode IronBarcode 是專為 .NET 應用程式開發的,並且基於 ZXing 庫。 IronBarcode 也是完全用 C# 編寫的,如果您的應用也是用 C# 編寫並想要將其用於 .NET 生態系統,這是一個優勢。 IronBarcode 旨在提供一個更友好和易於使用的界面用於條碼的解碼和編碼,而 ZXing 主要集中在提供底層算法和庫。 IronBarcode 在 ZXing 庫的基礎上提供幾個額外的功能,例如自動更正常見的掃描錯誤、支持不同類型的條碼讀取和掃描、以及能夠直接從影像文件或位圖中讀取條碼內容。 總結而言,如果您的應用程式是用 C# 編寫的,並且您正在尋找一個易於使用,功能強大的庫,可以讀寫多種條碼格式,那麼 IronBarcode 是一個不錯的選擇。 不過如果您在尋找一個更通用、低階的庫,可用於多個語言,那麼 ZXing 可能是更好的選擇。 結論 總結來說,IronBarcode 是一個靈活且高效的軟件庫,支持多種條碼格式、符號和字符。 它兼容多種操作系統,提供可靠的許可和支持。 IronBarcode 和 ZXing 都是為 .NET 框架讀寫條碼的庫。 IronBarcode 使用 ZXing 庫作為依賴來執行條碼讀寫操作。 IronBarcode 提供了一個簡單易使用的 API,用於在 C# 和 VB.NET 中讀寫條碼,而 ZXing 是一個低級庫,提供了很多靈活性和自定義權限。 IronBarcode 使用 ZXing 執行底層條碼處理和解碼,但它為開發人員提供了一個更簡單和方便的接口。 IronBarcode 是一個 C# / VB.NET 封裝器基於 ZXing 庫,這意味著它提供將 ZXing 功能提供給 C# / VB.NET 的接口。 IronBarcode 通過提供更方便和更簡單的 API 來促進 ZXing 的使用。 與 ZXing.NET 相比,IronBarcode 提供更多功能和更快的處理時間,條碼識別和生成,並具有從各種圖像格式及 PDF 文件讀取條碼的附加能力。 class="content-img-align-center"> class="content__image-caption">Iron Suite Licensing Prices In addition, IronBarcode is available for free for early-stage development and offers a free trial for commercial use. 通過不同的定價層級,開發人員可以選擇最符合他們需求和預算的解決方案。 還提供了一項優惠,可以購買價值兩份價格的 5 個 Iron 軟件產品的套裝。總體而言,IronBarcode 比 ZXing.NET 擁有明顯的優勢。 [{i:(ZXing 是其各自所有者的註冊商標。 此站點與 ZXing 並無關聯,不由其認可或贊助。 所有產品名稱、徽標和品牌均為其各自所有者的財產。 比較僅供參考,反映撰寫時公開可用的信息。 常見問題解答 怎樣在 C# 中將 HTML 轉換為 PDF? 您可以使用 IronPDF 的 RenderHtmlAsPdf 方法將 HTML 字符串轉換為 PDF。您還可以使用 RenderHtmlFileAsPdf 將 HTML 文件轉換為 PDF。 在 C# 应用程序中使用 IronBarcode 比 ZXing 有哪些优势? IronBarcode 提供更友好的 API、更好的性能以及比 ZXing 更广泛的条码格式支持。此外,它支持从 PDF 文档和图像文件(包括 GIF、TIFF 和 JPEG-XR)进行条码识别。 IronBarcode 可以从 PDF 文档读取条码吗? 是的,IronBarcode 能够从 PDF 文档读取条码,提供比 ZXing 更灵活的应用,ZXing 主要专注于图像文件。 IronBarcode 支持哪些图像格式用于条码读取? IronBarcode 支持从多种图像格式(包括 GIF、TIFF 和 JPEG-XR)读取条码,从而在处理不同类型的媒体时增强了其多功能性。 IronBarcode 提供哪些定制选项? IronBarcode 提供定制选项,例如从多页文档中读取条码以及高级图像校正功能,如旋转和像素深度清理。 IronBarcode 如何处理二维条码格式? IronBarcode 有效地处理 2D 条码格式,例如 QR 码和数据矩阵,它们可以存储比传统 1D 条码更多的数据。 IronBarcode 有免費版提供嗎? 是的,IronBarcode 提供免费的开发者许可证,允许访问其功能但有一些限制。还有具有高级功能的付费选项可供商业用途。 IronBarcode 的主要引擎是什么? IronBarcode 利用 ZXing 库作为其核心引擎,但通过自定义包装器增强了它,提供了更友好的界面和附加功能。 为什么开发人员可能会为 .NET 应用程序选择 IronBarcode? 开发人员可能会选择 IronBarcode 以其易用性、快速部署以及对多种条码格式的支持,这使其成为 .NET 框架内企业级应用程序的理想选择。 Jordi Bardia 立即與工程團隊聊天 軟體工程師 Jordi 在 Python、C# 和 C++ 上最得心應手,當他不在 Iron Software 展現技術時,便在做遊戲編程。在分担产品测测试,产品开发和研究的责任时,Jordi 为持续的产品改进增值。他说这种多样化的经验使他受到挑战并保持参与, 而这也是他与 Iron Software 中工作一大乐趣。Jordi 在佛罗里达州迈阿密长大,曾在佛罗里达大学学习计算机科学和统计学。 相關文章 更新日期 9月 25, 2025 如何在C#中選擇最佳條碼庫 在本指南中,我們將比較五個最廣泛使用的 .NET 條碼庫 — IronBarcode, http://ZXing.Net , Aspose.BarCode, BarcodeLib, 和 Dynamsoft Barcode Reader 閱讀更多 更新日期 7月 28, 2025 如何在ZXing中為C#開發人員掃描條碼 ZXing的模塊包括核心圖像解碼庫、JavaSE特定的客戶端代碼以及Android客戶端條碼掃描器。許多其他獨立的開源項目以此為基礎構建。 閱讀更多 更新日期 8月 31, 2025 ZXing.org QR碼庫和IronBarcode:全面的比較 ZXing是一個流行的開源庫,用於生成和解碼一維和二維條碼。 閱讀更多 IronBarcode與QrCoder C#的比較IronBarcode與ZXing.NET的比較
更新日期 9月 25, 2025 如何在C#中選擇最佳條碼庫 在本指南中,我們將比較五個最廣泛使用的 .NET 條碼庫 — IronBarcode, http://ZXing.Net , Aspose.BarCode, BarcodeLib, 和 Dynamsoft Barcode Reader 閱讀更多
更新日期 7月 28, 2025 如何在ZXing中為C#開發人員掃描條碼 ZXing的模塊包括核心圖像解碼庫、JavaSE特定的客戶端代碼以及Android客戶端條碼掃描器。許多其他獨立的開源項目以此為基礎構建。 閱讀更多