Przejdź do treści stopki
PORóWNANIA PRODUKTóW

Porównanie IronPDF i PDFreactor

PDF (Portable Document Format) files are an integral part of many different work environments, and they're often essential when it comes to tasks such as making invoices or preparing product documentation. However, nowadays there are many different PDF tools available on the market so how do you know which one is suitable for you? Today, we will compare the features, support, and licensing models of the PDF libraries: PDFreactor and IronPDF.

An Overview of IronPDF and PDFreactor

IronPDF is a robust .NET library that is designed to be a comprehensive solution for all PDF-related tasks within the .NET ecosystem. It supports HTML, CSS, JavaScript, and various image formats, making it highly adaptable for web-based applications. With a wide range of features, including PDF generation, editing, signing, and encryption, along with complete integration with modern .NET frameworks, IronPDF is a one-stop PDF solution for .NET developers.

PDFreactor, on the other hand, is a professional-grade HTML to PDF converter that excels in delivering high-quality print-ready PDFs, often used to convert documents such as data-driven documents, reports, or data sheets. It is particularly strong in handling complex CSS and JavaScript, ensuring that the resulting PDFs are true to the original web content. It is highly regarded for its ability to handle complex layouts and styling with ease, making it suitable for publishing and other industries requiring precise control over PDF output.

Cross-Platform Compatibility

IronPDF:

IronPDF supports a wide range of platforms, ensuring that you can work in your preferred environment. Here's a breakdown of its compatibility:

  • .NET versions:

    • C#, VB.NET, F#
    • .NET Core (8, 7, 6, 5, and 3.1+)
    • .NET Standard (2.0+)
    • .NET Framework (4.6.2+)
  • App environments: IronPDF works in environments including Windows, Linux, Mac, Docker, Azure, and AWS

  • IDEs: Works with IDEs such as Microsoft Visual Studio and JetBrains Rider & ReSharper

  • OS and Processors: Supports several different OS & processors including Windows, Mac, Linux, x64, x86, ARM

For more information, visit IronPDF Compatibility.

PDFreactor

  • .NET versions:

    • .NET Core 2.1+
    • .NET Framework 4.5+
  • Supports: HTML5, CSS3, JavaScript, Java, Python, Docker Image, Node.js, and more.

  • Operating systems: Works within Windows, Linux, and macOS operating systems, as well as cloud-based systems such as AWS and Azure.

Key Feature Comparison: PDF Functionality in IronPDF vs. PDFreactor

Funkcje IronPDF

  • HTML to PDF conversion: IronPDF can handle HTML to PDF conversion, with its full support for modern web standards, you can be assured that IronPDF will consistently return pixel-perfect PDFs from your HTML content.

  • PDF file conversion: Need to convert file formats other than HTML to PDF? IronPDF supports the conversion of many different file formats including; DOCX to PDF, RTF to PDF, Image to PDF, URL to PDF, and even PDF to HTML, all while maintaining the desired document structure.

  • Security features: With IronPDF, you can always be assured that any sensitive PDF files are secure thanks to its security features. Use IronPDF to encrypt your PDF files, set passwords, and set permissions for your PDF files.

  • PDF editing features: With IronPDF you can edit PDF files with ease. IronPDF offers editing features such as adding headers and footers, stamping text and images onto the PDF pages, adding custom watermarks to the PDF, working with PDF forms, and merging PDF files.

For detailed feature information about the features offered by IronPDF, visit IronPDF Features.

PDFreactor Features

  • HTML to PDF conversion: PDFreactor web service specializes in the server-side conversion of HTML to PDF, typically used in the conversion of dynamic data-driven documents (such as invoices, forms, reports, etc) and for electronic distribution of complex and high-quality PDFs.

  • Interactive support: Thanks to its support of JavaScript, PDFreactor supports embedding interactive elements such as buttons and forms, which can retain their functionality within the PDF.

  • Advanced layout design: PDFreactor offers advanced layout and design features such as control over the page layout, multi-column support, adding elements to the PDF, scaling and transforming elements, adding headers and footers, and customizable page sizes and orientations.

Zgodność z Bootstrapem i nowoczesnymi frameworkami CSS

When generating PDFs from modern web applications, Bootstrap and CSS framework support is essential. The ability to convert Bootstrap-styled web pages directly to PDF without code modification ensures design consistency and significantly reduces development time.

IronPDF: Full Bootstrap and CSS Framework Support

  • Bootstrap 5: Complete flexbox layout engine, CSS Grid, utility classes, and all component systems
  • Bootstrap 4: Full card components, navigation elements, flex utilities, and responsive breakpoints
  • Tailwind CSS: All utility-first classes render with browser accuracy
  • Foundation: Complete grid system and component library support
  • Modern CSS3: Flexbox, CSS Grid, custom properties, animations, transitions, and transforms

Real-world validation: IronPDF successfully renders the Bootstrap homepage and all official examples with pixel-perfect accuracy.

Code Example: Order Tracking Dashboard

using IronPdf;

// Set your IronPDF license key
IronPdf.License.LicenseKey = "License-Key goes here";

var renderer = new ChromePdfRenderer();
string bootstrapTracking = @"
<!DOCTYPE html>
<html>
<head>
    <link href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css' rel='stylesheet'>
</head>
<body>
    <div class='container my-5'>
        <h1 class='mb-4'>Order Tracking - #ORD-2025-0428</h1>

        <div class='row g-4 mb-4'>
            <div class='col-md-4'>
                <div class='card text-center bg-primary text-white h-100'>
                    <div class='card-body'>
                        <h3>Order Placed</h3>
                        <p class='mb-0'>April 20, 2025</p>
                    </div>
                </div>
            </div>
            <div class='col-md-4'>
                <div class='card text-center bg-info text-white h-100'>
                    <div class='card-body'>
                        <h3>Processing</h3>
                        <p class='mb-0'>April 21, 2025</p>
                    </div>
                </div>
            </div>
            <div class='col-md-4'>
                <div class='card text-center bg-light h-100'>
                    <div class='card-body'>
                        <h3 class='text-muted'>Delivered</h3>
                        <p class='mb-0 text-muted'>Est. April 25, 2025</p>
                    </div>
                </div>
            </div>
        </div>

        <div class='card shadow-sm mb-4'>
            <div class='card-header bg-white'>
                <h5 class='mb-0'>Shipping Timeline</h5>
            </div>
            <div class='card-body'>
                <ul class='list-group list-group-flush'>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Order Confirmed</strong>
                            <p class='mb-0 text-muted'>April 20, 2025 at 2:30 PM</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Payment Processed</strong>
                            <p class='mb-0 text-muted'>April 20, 2025 at 2:35 PM</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Order Shipped</strong>
                            <p class='mb-0 text-muted'>April 21, 2025 at 9:00 AM</p>
                            <small class='text-muted'>Tracking: TRK-9876543210</small>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-primary me-3'>→</span>
                        <div class='flex-grow-1'>
                            <strong>In Transit</strong>
                            <p class='mb-0 text-primary'>Currently en route to delivery location</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-secondary me-3'>○</span>
                        <div class='flex-grow-1'>
                            <strong>Out for Delivery</strong>
                            <p class='mb-0 text-muted'>Pending</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-secondary me-3'>○</span>
                        <div class='flex-grow-1'>
                            <strong>Delivered</strong>
                            <p class='mb-0 text-muted'>Est. April 25, 2025</p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>

        <div class='card shadow-sm'>
            <div class='card-header bg-primary text-white'>
                <h5 class='mb-0'>Order Details</h5>
            </div>
            <div class='card-body'>
                <div class='table-responsive'>
                    <table class='table mb-0'>
                        <thead class='table-light'>
                            <tr>
                                <th>Item</th>
                                <th>Quantity</th>
                                <th class='text-end'>Price</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><strong>Premium Widget Pro</strong></td>
                                <td>2</td>
                                <td class='text-end'>$199.98</td>
                            </tr>
                            <tr>
                                <td><strong>Standard Gadget</strong></td>
                                <td>1</td>
                                <td class='text-end'>$49.99</td>
                            </tr>
                            <tr>
                                <td colspan='2'><strong>Subtotal</strong></td>
                                <td class='text-end'><strong>$249.97</strong></td>
                            </tr>
                            <tr>
                                <td colspan='2'>Shipping</td>
                                <td class='text-end'>$12.50</td>
                            </tr>
                            <tr class='table-primary'>
                                <td colspan='2'><strong>Total</strong></td>
                                <td class='text-end'><strong>$262.47</strong></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</body>
</html>";

var pdf = renderer.RenderHtmlAsPdf(bootstrapTracking);
pdf.SaveAs("order-tracking.pdf");
using IronPdf;

// Set your IronPDF license key
IronPdf.License.LicenseKey = "License-Key goes here";

var renderer = new ChromePdfRenderer();
string bootstrapTracking = @"
<!DOCTYPE html>
<html>
<head>
    <link href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css' rel='stylesheet'>
</head>
<body>
    <div class='container my-5'>
        <h1 class='mb-4'>Order Tracking - #ORD-2025-0428</h1>

        <div class='row g-4 mb-4'>
            <div class='col-md-4'>
                <div class='card text-center bg-primary text-white h-100'>
                    <div class='card-body'>
                        <h3>Order Placed</h3>
                        <p class='mb-0'>April 20, 2025</p>
                    </div>
                </div>
            </div>
            <div class='col-md-4'>
                <div class='card text-center bg-info text-white h-100'>
                    <div class='card-body'>
                        <h3>Processing</h3>
                        <p class='mb-0'>April 21, 2025</p>
                    </div>
                </div>
            </div>
            <div class='col-md-4'>
                <div class='card text-center bg-light h-100'>
                    <div class='card-body'>
                        <h3 class='text-muted'>Delivered</h3>
                        <p class='mb-0 text-muted'>Est. April 25, 2025</p>
                    </div>
                </div>
            </div>
        </div>

        <div class='card shadow-sm mb-4'>
            <div class='card-header bg-white'>
                <h5 class='mb-0'>Shipping Timeline</h5>
            </div>
            <div class='card-body'>
                <ul class='list-group list-group-flush'>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Order Confirmed</strong>
                            <p class='mb-0 text-muted'>April 20, 2025 at 2:30 PM</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Payment Processed</strong>
                            <p class='mb-0 text-muted'>April 20, 2025 at 2:35 PM</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Order Shipped</strong>
                            <p class='mb-0 text-muted'>April 21, 2025 at 9:00 AM</p>
                            <small class='text-muted'>Tracking: TRK-9876543210</small>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-primary me-3'>→</span>
                        <div class='flex-grow-1'>
                            <strong>In Transit</strong>
                            <p class='mb-0 text-primary'>Currently en route to delivery location</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-secondary me-3'>○</span>
                        <div class='flex-grow-1'>
                            <strong>Out for Delivery</strong>
                            <p class='mb-0 text-muted'>Pending</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-secondary me-3'>○</span>
                        <div class='flex-grow-1'>
                            <strong>Delivered</strong>
                            <p class='mb-0 text-muted'>Est. April 25, 2025</p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>

        <div class='card shadow-sm'>
            <div class='card-header bg-primary text-white'>
                <h5 class='mb-0'>Order Details</h5>
            </div>
            <div class='card-body'>
                <div class='table-responsive'>
                    <table class='table mb-0'>
                        <thead class='table-light'>
                            <tr>
                                <th>Item</th>
                                <th>Quantity</th>
                                <th class='text-end'>Price</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><strong>Premium Widget Pro</strong></td>
                                <td>2</td>
                                <td class='text-end'>$199.98</td>
                            </tr>
                            <tr>
                                <td><strong>Standard Gadget</strong></td>
                                <td>1</td>
                                <td class='text-end'>$49.99</td>
                            </tr>
                            <tr>
                                <td colspan='2'><strong>Subtotal</strong></td>
                                <td class='text-end'><strong>$249.97</strong></td>
                            </tr>
                            <tr>
                                <td colspan='2'>Shipping</td>
                                <td class='text-end'>$12.50</td>
                            </tr>
                            <tr class='table-primary'>
                                <td colspan='2'><strong>Total</strong></td>
                                <td class='text-end'><strong>$262.47</strong></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</body>
</html>";

var pdf = renderer.RenderHtmlAsPdf(bootstrapTracking);
pdf.SaveAs("order-tracking.pdf");
Imports IronPdf

' Set your IronPDF license key
IronPdf.License.LicenseKey = "License-Key goes here"

Dim renderer As New ChromePdfRenderer()
Dim bootstrapTracking As String = "
<!DOCTYPE html>
<html>
<head>
    <link href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css' rel='stylesheet'>
</head>
<body>
    <div class='container my-5'>
        <h1 class='mb-4'>Order Tracking - #ORD-2025-0428</h1>

        <div class='row g-4 mb-4'>
            <div class='col-md-4'>
                <div class='card text-center bg-primary text-white h-100'>
                    <div class='card-body'>
                        <h3>Order Placed</h3>
                        <p class='mb-0'>April 20, 2025</p>
                    </div>
                </div>
            </div>
            <div class='col-md-4'>
                <div class='card text-center bg-info text-white h-100'>
                    <div class='card-body'>
                        <h3>Processing</h3>
                        <p class='mb-0'>April 21, 2025</p>
                    </div>
                </div>
            </div>
            <div class='col-md-4'>
                <div class='card text-center bg-light h-100'>
                    <div class='card-body'>
                        <h3 class='text-muted'>Delivered</h3>
                        <p class='mb-0 text-muted'>Est. April 25, 2025</p>
                    </div>
                </div>
            </div>
        </div>

        <div class='card shadow-sm mb-4'>
            <div class='card-header bg-white'>
                <h5 class='mb-0'>Shipping Timeline</h5>
            </div>
            <div class='card-body'>
                <ul class='list-group list-group-flush'>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Order Confirmed</strong>
                            <p class='mb-0 text-muted'>April 20, 2025 at 2:30 PM</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Payment Processed</strong>
                            <p class='mb-0 text-muted'>April 20, 2025 at 2:35 PM</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-success me-3'>✓</span>
                        <div class='flex-grow-1'>
                            <strong>Order Shipped</strong>
                            <p class='mb-0 text-muted'>April 21, 2025 at 9:00 AM</p>
                            <small class='text-muted'>Tracking: TRK-9876543210</small>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-primary me-3'>→</span>
                        <div class='flex-grow-1'>
                            <strong>In Transit</strong>
                            <p class='mb-0 text-primary'>Currently en route to delivery location</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-secondary me-3'>○</span>
                        <div class='flex-grow-1'>
                            <strong>Out for Delivery</strong>
                            <p class='mb-0 text-muted'>Pending</p>
                        </div>
                    </li>
                    <li class='list-group-item d-flex'>
                        <span class='badge bg-secondary me-3'>○</span>
                        <div class='flex-grow-1'>
                            <strong>Delivered</strong>
                            <p class='mb-0 text-muted'>Est. April 25, 2025</p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>

        <div class='card shadow-sm'>
            <div class='card-header bg-primary text-white'>
                <h5 class='mb-0'>Order Details</h5>
            </div>
            <div class='card-body'>
                <div class='table-responsive'>
                    <table class='table mb-0'>
                        <thead class='table-light'>
                            <tr>
                                <th>Item</th>
                                <th>Quantity</th>
                                <th class='text-end'>Price</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><strong>Premium Widget Pro</strong></td>
                                <td>2</td>
                                <td class='text-end'>$199.98</td>
                            </tr>
                            <tr>
                                <td><strong>Standard Gadget</strong></td>
                                <td>1</td>
                                <td class='text-end'>$49.99</td>
                            </tr>
                            <tr>
                                <td colspan='2'><strong>Subtotal</strong></td>
                                <td class='text-end'><strong>$249.97</strong></td>
                            </tr>
                            <tr>
                                <td colspan='2'>Shipping</td>
                                <td class='text-end'>$12.50</td>
                            </tr>
                            <tr class='table-primary'>
                                <td colspan='2'><strong>Total</strong></td>
                                <td class='text-end'><strong>$262.47</strong></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</body>
</html>"

Dim pdf = renderer.RenderHtmlAsPdf(bootstrapTracking)
pdf.SaveAs("order-tracking.pdf")
$vbLabelText   $csharpLabel

Output: Professional order tracking PDF with Bootstrap 5's grid system, card components, badges, list groups, responsive tables, and flexbox layouts—all rendering with perfect color accuracy and spacing.

PDFreactor: Good Bootstrap Support with Java Dependency

PDFreactor uses the Prince XML engine which offers solid Bootstrap support, but comes with architectural considerations:

  • Good Bootstrap 4/5 support: Prince XML handles modern frameworks reasonably well
  • Java requirement: PDFreactor runs on Java, adding deployment complexity for .NET applications
  • Server-based architecture: Requires dedicated server infrastructure
  • Licensing model: Per-server licensing rather than per-developer

Development impact: While PDFreactor handles Bootstrap effectively, the Java dependency and server requirements add operational complexity for .NET teams, requiring additional infrastructure management and cross-platform coordination.

For comprehensive Bootstrap framework guidance and CSS3 rendering capabilities, see the Bootstrap & Flexbox CSS Guide.

Comparison of Key Features Between IronPDF vs. PDFreactor

Now, let's take a closer look at some common use cases that you might find yourself facing when working with PDF files. In this section, we are taking these use cases and comparing how IronPDF and PDFreactor handle them.

Konwersja HTML do PDF

IronPDF:

using IronPdf;

// Enable local disk access or cross-origin requests
Installation.EnableWebSecurity = true;

// Instantiate Renderer
var renderer = new ChromePdfRenderer();

// Create a PDF from an HTML string using C#
var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>");

// Export to a file or Stream
pdf.SaveAs("output.pdf");

// Advanced Example with HTML Assets
// Load external html assets: images, CSS and JavaScript.
// An optional BasePath 'c:\site\assets\' is set as the file location to load assets from
var myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"c:\site\assets\");
myAdvancedPdf.SaveAs("html-with-assets.pdf");
using IronPdf;

// Enable local disk access or cross-origin requests
Installation.EnableWebSecurity = true;

// Instantiate Renderer
var renderer = new ChromePdfRenderer();

// Create a PDF from an HTML string using C#
var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>");

// Export to a file or Stream
pdf.SaveAs("output.pdf");

// Advanced Example with HTML Assets
// Load external html assets: images, CSS and JavaScript.
// An optional BasePath 'c:\site\assets\' is set as the file location to load assets from
var myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"c:\site\assets\");
myAdvancedPdf.SaveAs("html-with-assets.pdf");
Imports IronPdf

' Enable local disk access or cross-origin requests
Installation.EnableWebSecurity = True

' Instantiate Renderer
Dim renderer = New ChromePdfRenderer()

' Create a PDF from an HTML string using C#
Dim pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>")

' Export to a file or Stream
pdf.SaveAs("output.pdf")

' Advanced Example with HTML Assets
' Load external html assets: images, CSS and JavaScript.
' An optional BasePath 'c:\site\assets\' is set as the file location to load assets from
Dim myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", "c:\site\assets\")
myAdvancedPdf.SaveAs("html-with-assets.pdf")
$vbLabelText   $csharpLabel

PDFreactor:

using System.IO;
using RealObjects.PDFreactor.Webservice.Client;

PDFreactor pdfReactor = new PDFreactor("https://cloud.pdfreactor.com/service/rest") {
    Timeout = 0
};
var config = new Configuration
{
    Document = "http://www.pdfreactor.com/product/samples/textbook/textbook.html"
};

Result data = pdfReactor.Convert(config);
BinaryWriter binWriter = new BinaryWriter(new FileStream("test.pdf",
    FileMode.Create,
    FileAccess.Write));
binWriter.Write(data.Document);
binWriter.Close();
using System.IO;
using RealObjects.PDFreactor.Webservice.Client;

PDFreactor pdfReactor = new PDFreactor("https://cloud.pdfreactor.com/service/rest") {
    Timeout = 0
};
var config = new Configuration
{
    Document = "http://www.pdfreactor.com/product/samples/textbook/textbook.html"
};

Result data = pdfReactor.Convert(config);
BinaryWriter binWriter = new BinaryWriter(new FileStream("test.pdf",
    FileMode.Create,
    FileAccess.Write));
binWriter.Write(data.Document);
binWriter.Close();
Imports System.IO
Imports RealObjects.PDFreactor.Webservice.Client

Private pdfReactor As New PDFreactor("https://cloud.pdfreactor.com/service/rest") With {.Timeout = 0}
Private config = New Configuration With {.Document = "http://www.pdfreactor.com/product/samples/textbook/textbook.html"}

Private data As Result = pdfReactor.Convert(config)
Private binWriter As New BinaryWriter(New FileStream("test.pdf", FileMode.Create, FileAccess.Write))
binWriter.Write(data.Document)
binWriter.Close()
$vbLabelText   $csharpLabel

IronPDF zapewnia pliki PDF o wysokiej jakości dzięki wykorzystaniu ChromePdfRenderer i obsłudze nowoczesnych standardów internetowych. When using IronPDF for HTML to PDF conversion, you will be able to create pixel-perfect PDFs from HTML documents, web pages, and more. Chociaż PDFreactor szczyci się możliwościami konwersji HTML do PDF i zapewnia wysokiej jakości dokumenty PDF, wymaga bardziej ręcznego podejścia, co wiąże się z większą ilością kodu.

For more examples of using IronPDF for HTML to PDF conversion, visit IronPDF HTML to PDF.

Encrypting PDF Documents

IronPDF:

using IronPdf;
using System;

// Open an Encrypted File, alternatively create a new PDF from Html
var pdf = PdfDocument.FromFile("encrypted.pdf", "password");

// Edit file metadata
pdf.MetaData.Author = "Satoshi Nakamoto";
pdf.MetaData.Keywords = "SEO, Friendly";
pdf.MetaData.ModifiedDate = DateTime.Now;

// Edit file security settings
// The following code makes a PDF read only and will disallow copy & paste and printing
pdf.SecuritySettings.RemovePasswordsAndEncryption();
pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key");
pdf.SecuritySettings.AllowUserAnnotations = false;
pdf.SecuritySettings.AllowUserCopyPasteContent = false;
pdf.SecuritySettings.AllowUserFormData = false;
pdf.SecuritySettings.AllowUserPrinting = IronPdf.Security.PdfPrintSecurity.FullPrintRights;

// Change or set the document encryption password
pdf.Password = "my-password";
pdf.SaveAs("secured.pdf");
using IronPdf;
using System;

// Open an Encrypted File, alternatively create a new PDF from Html
var pdf = PdfDocument.FromFile("encrypted.pdf", "password");

// Edit file metadata
pdf.MetaData.Author = "Satoshi Nakamoto";
pdf.MetaData.Keywords = "SEO, Friendly";
pdf.MetaData.ModifiedDate = DateTime.Now;

// Edit file security settings
// The following code makes a PDF read only and will disallow copy & paste and printing
pdf.SecuritySettings.RemovePasswordsAndEncryption();
pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key");
pdf.SecuritySettings.AllowUserAnnotations = false;
pdf.SecuritySettings.AllowUserCopyPasteContent = false;
pdf.SecuritySettings.AllowUserFormData = false;
pdf.SecuritySettings.AllowUserPrinting = IronPdf.Security.PdfPrintSecurity.FullPrintRights;

// Change or set the document encryption password
pdf.Password = "my-password";
pdf.SaveAs("secured.pdf");
Imports IronPdf
Imports System

' Open an Encrypted File, alternatively create a new PDF from Html
Private pdf = PdfDocument.FromFile("encrypted.pdf", "password")

' Edit file metadata
pdf.MetaData.Author = "Satoshi Nakamoto"
pdf.MetaData.Keywords = "SEO, Friendly"
pdf.MetaData.ModifiedDate = DateTime.Now

' Edit file security settings
' The following code makes a PDF read only and will disallow copy & paste and printing
pdf.SecuritySettings.RemovePasswordsAndEncryption()
pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key")
pdf.SecuritySettings.AllowUserAnnotations = False
pdf.SecuritySettings.AllowUserCopyPasteContent = False
pdf.SecuritySettings.AllowUserFormData = False
pdf.SecuritySettings.AllowUserPrinting = IronPdf.Security.PdfPrintSecurity.FullPrintRights

' Change or set the document encryption password
pdf.Password = "my-password"
pdf.SaveAs("secured.pdf")
$vbLabelText   $csharpLabel

PDFreactor:

PDFreactor, ze względu na to, że jest znany przede wszystkim jako narzędzie do konwersji HTML na PDF, nie oferuje wbudowanej obsługi szyfrowania plików PDF.

IronPDF upraszcza szyfrowanie plików PDF dzięki przejrzystym metodom w języku C# i oferuje proste, a jednocześnie potężne narzędzie do szyfrowania plików PDF. Dzięki IronPDF będziesz mieć pełną kontrolę nad całym procesem, łącznie z ustawieniami zabezpieczeń. W przypadku PDFreactor konieczne będzie znalezienie biblioteki innej firmy, która obsługuje szyfrowanie plików PDF, ponieważ PDFreactor obecnie nie obsługuje tej funkcji.

Aby uzyskać więcej przykładów szyfrowania, zapoznaj się z poradnikiem IronPDF na ten temat.

Redacting PDF Content

IronPDF:

using IronPdf;

PdfDocument pdf = PdfDocument.FromFile("novel.pdf");

// Redact 'are' phrase from all pages
pdf.RedactTextOnAllPages("are");

pdf.SaveAs("redacted.pdf");
using IronPdf;

PdfDocument pdf = PdfDocument.FromFile("novel.pdf");

// Redact 'are' phrase from all pages
pdf.RedactTextOnAllPages("are");

pdf.SaveAs("redacted.pdf");
Imports IronPdf

Private pdf As PdfDocument = PdfDocument.FromFile("novel.pdf")

' Redact 'are' phrase from all pages
pdf.RedactTextOnAllPages("are")

pdf.SaveAs("redacted.pdf")
$vbLabelText   $csharpLabel

PDFreactor:

PDFreactor nie obsługuje bezpośrednio funkcji redagowania, ponieważ jego zestaw funkcji skupia się w większym stopniu na generowaniu dokumentów PDF z treści HTML oraz projektowaniu tych plików.

IronPDF oferuje zwięzłe i łatwe w użyciu narzędzie do redagowania, które pozwoli Ci redagować treści w dokumentach PDF za pomocą zaledwie kilku linii kodu. PDFreactor nie oferuje jednak żadnych wbudowanych narzędzi do redagowania.

Podpisywanie plików PDF

IronPDF:

using IronPdf;
using IronPdf.Signing;
using System.Security.Cryptography.X509Certificates;

ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>foo</h1>");

// Create X509Certificate2 object with X509KeyStorageFlags set to Exportable
X509Certificate2 cert = new X509Certificate2("IronSoftware.pfx", "123456", X509KeyStorageFlags.Exportable);

// Create PdfSignature object
var sig = new PdfSignature(cert);

// Sign PDF document
pdf.Sign(sig);
pdf.SaveAs("signed.pdf");
using IronPdf;
using IronPdf.Signing;
using System.Security.Cryptography.X509Certificates;

ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>foo</h1>");

// Create X509Certificate2 object with X509KeyStorageFlags set to Exportable
X509Certificate2 cert = new X509Certificate2("IronSoftware.pfx", "123456", X509KeyStorageFlags.Exportable);

// Create PdfSignature object
var sig = new PdfSignature(cert);

// Sign PDF document
pdf.Sign(sig);
pdf.SaveAs("signed.pdf");
Imports IronPdf
Imports IronPdf.Signing
Imports System.Security.Cryptography.X509Certificates

Private renderer As New ChromePdfRenderer()
Private pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>foo</h1>")

' Create X509Certificate2 object with X509KeyStorageFlags set to Exportable
Private cert As New X509Certificate2("IronSoftware.pfx", "123456", X509KeyStorageFlags.Exportable)

' Create PdfSignature object
Private sig = New PdfSignature(cert)

' Sign PDF document
pdf.Sign(sig)
pdf.SaveAs("signed.pdf")
$vbLabelText   $csharpLabel

PDFreactor:

PDFreactor nie obsługuje bezpośrednio podpisów cyfrowych.

Funkcja podpisu cyfrowego IronPDF zapewnia prosty i łatwy sposób na automatyzację podpisywania plików PDF. Natomiast PDFreactor nie oferuje żadnej obsługi nakładania podpisów cyfrowych na dokumenty PDF.

Aby dowiedzieć się więcej o stosowaniu podpisów cyfrowych w dokumentach PDF za pomocą IronPDF, zapoznaj się z instrukcją obsługi tego narzędzia.

Applying Watermarks to PDF Pages

IronPDF:

using IronPdf;

// Stamps a Watermark onto a new or existing PDF
var renderer = new ChromePdfRenderer();

var pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf/");
pdf.ApplyWatermark("<h2 style='color:red'>SAMPLE</h2>", 30, IronPdf.Editing.VerticalAlignment.Middle, IronPdf.Editing.HorizontalAlignment.Center);

pdf.SaveAs(@"C:\Path\To\Watermarked.pdf");
using IronPdf;

// Stamps a Watermark onto a new or existing PDF
var renderer = new ChromePdfRenderer();

var pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf/");
pdf.ApplyWatermark("<h2 style='color:red'>SAMPLE</h2>", 30, IronPdf.Editing.VerticalAlignment.Middle, IronPdf.Editing.HorizontalAlignment.Center);

pdf.SaveAs(@"C:\Path\To\Watermarked.pdf");
Imports IronPdf

' Stamps a Watermark onto a new or existing PDF
Private renderer = New ChromePdfRenderer()

Private pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf/")
pdf.ApplyWatermark("<h2 style='color:red'>SAMPLE</h2>", 30, IronPdf.Editing.VerticalAlignment.Middle, IronPdf.Editing.HorizontalAlignment.Center)

pdf.SaveAs("C:\Path\To\Watermarked.pdf")
$vbLabelText   $csharpLabel

PDFreactor:

PDFreactor nie obsługuje bezpośrednio znaków wodnych.

Wbudowane narzędzie do dodawania znaków wodnych w IronPDF wykorzystuje HTML i CSS, aby zapewnić łatwy sposób nakładania znaków wodnych na strony PDF, dając jednocześnie pełną kontrolę nad całym procesem, a wszystko to przy użyciu zaledwie kilku linii kodu.

Chcesz dowiedzieć się więcej o narzędziu do dodawania znaków wodnych IronPDF? Zapraszamy do zapoznania się z naszym pomocnym przewodnikiem dotyczącym tego narzędzia!

Wstawianie obrazów i tekstu do dokumentów PDF

IronPDF:

using IronPdf;
using IronPdf.Editing;
using System;

ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");

// Create text stamper
TextStamper textStamper = new TextStamper()
{
    Text = "Text Stamper!",
    FontFamily = "Bungee Spice",
    UseGoogleFont = true,
    FontSize = 30,
    IsBold = true,
    IsItalic = true,
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the text stamper
pdf.ApplyStamp(textStamper);

pdf.SaveAs("stampText.pdf");

// Create image stamper
ImageStamper imageStamper = new ImageStamper(new Uri("/img/svgs/iron-pdf-logo.svg"))
{
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0);

pdf.SaveAs("stampImage.pdf");
using IronPdf;
using IronPdf.Editing;
using System;

ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");

// Create text stamper
TextStamper textStamper = new TextStamper()
{
    Text = "Text Stamper!",
    FontFamily = "Bungee Spice",
    UseGoogleFont = true,
    FontSize = 30,
    IsBold = true,
    IsItalic = true,
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the text stamper
pdf.ApplyStamp(textStamper);

pdf.SaveAs("stampText.pdf");

// Create image stamper
ImageStamper imageStamper = new ImageStamper(new Uri("/img/svgs/iron-pdf-logo.svg"))
{
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0);

pdf.SaveAs("stampImage.pdf");
Imports IronPdf
Imports IronPdf.Editing
Imports System

Private renderer As New ChromePdfRenderer()
Private pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>")

' Create text stamper
Private textStamper As New TextStamper() With {
	.Text = "Text Stamper!",
	.FontFamily = "Bungee Spice",
	.UseGoogleFont = True,
	.FontSize = 30,
	.IsBold = True,
	.IsItalic = True,
	.VerticalAlignment = VerticalAlignment.Top
}

' Stamp the text stamper
pdf.ApplyStamp(textStamper)

pdf.SaveAs("stampText.pdf")

' Create image stamper
Dim imageStamper As New ImageStamper(New Uri("/img/svgs/iron-pdf-logo.svg")) With {.VerticalAlignment = VerticalAlignment.Top}

' Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0)

pdf.SaveAs("stampImage.pdf")
$vbLabelText   $csharpLabel

PDFreactor:

PDFreactor nie obsługuje bezpośredniego stemplowania

IronPDF oferuje solidne narzędzie do umieszczania tekstu i obrazów w dokumentach PDF. With an approach that closely resembles HTML and CSS, you will have total control over the stamping process. PDFreactor nie oferuje jednak żadnych wbudowanych narzędzi do stemplowania.

Jeśli chcesz dowiedzieć się więcej o narzędziach IronPDF do umieszczania stempli na obrazach i tekście, koniecznie zajrzyj do naszego poradnika.

DOCX to PDF Conversion

IronPDF:

using IronPdf;

// Instantiate Renderer
DocxToPdfRenderer renderer = new DocxToPdfRenderer();

// Render from DOCX file
PdfDocument pdf = renderer.RenderDocxAsPdf("Modern-chronological-resume.docx");

// Save the PDF
pdf.SaveAs("pdfFromDocx.pdf");
using IronPdf;

// Instantiate Renderer
DocxToPdfRenderer renderer = new DocxToPdfRenderer();

// Render from DOCX file
PdfDocument pdf = renderer.RenderDocxAsPdf("Modern-chronological-resume.docx");

// Save the PDF
pdf.SaveAs("pdfFromDocx.pdf");
Imports IronPdf

' Instantiate Renderer
Private renderer As New DocxToPdfRenderer()

' Render from DOCX file
Private pdf As PdfDocument = renderer.RenderDocxAsPdf("Modern-chronological-resume.docx")

' Save the PDF
pdf.SaveAs("pdfFromDocx.pdf")
$vbLabelText   $csharpLabel

PDFreactor:

PDFreactor nie obsługuje bezpośredniej konwersji plików DOCX do formatu PDF, ponieważ skupia się głównie na konwersji HTML do PDF.

Korzystając z IronPDF, możesz konwertować pliki DOCX za pomocą jego zwięzłego, łatwego w użyciu narzędzia do konwersji DOCX. Korzystając z PDFreactor, należy zainstalować bibliotekę do konwersji plików DOCX na PDF, ponieważ PDFreactor nie obsługuje tej konwersji.

Aby uzyskać bardziej szczegółowe informacje na temat narzędzia IronPDF do konwersji plików DOCX na PDF, zapoznaj się z pomocnym przewodnikiem użytkownika.

Podsumowanie porównania funkcji

Pdfreactor Html To Pdf Alternative 1 related to Podsumowanie porównania funkcji

Szczegółowe przykłady kodu można znaleźć na stronie z przykładami kodu IronPDF.

Ceny i licencje: IronPDF vs. PDFreactor

IronPDF

IronPDF has different levels and additional features for purchasing a license. Programiści mogą również kupić pakiet Iron Suite, który zapewnia dostęp do wszystkich produktów Iron Software w cenie dwóch. If you're not ready to buy a license, IronPDF provides a free trial that lasts 30 days.

  • Perpetual licenses: Offers a range of perpetual licenses depending on the size of your team, your project needs, and the number of locations. Each license type comes with email support.
  • Lite License: This license costs $799 and supports one developer, one location, and one project.
  • Plus License: Supporting three developers, three locations, and three projects, this is the next step up from the lite license and costs $1,199. The Plus license offers chat support and phone support in addition to basic email support.
  • Professional License: This license is suitable for larger teams, supporting ten developers, ten locations, and ten projects for $2,399. It offers the same contact support channels as the previous tiers but also offers screen-sharing support.
  • Royalty-free redistribution: IronPDF's licensing also offers royalty-free redistribution coverage for an extra $2,399
  • Uninterrupted product support: IronPDF offers access to ongoing product updates, security feature upgrades, and support from their engineering team for either $1,199/year or a one-time purchase of $2,399 for a 5-year coverage.
  • Iron Suite: For $1,498, you get access to all Iron Software products including IronPDF, IronOCR, IronWord, IronXL, IronBarcode, IronQR, IronZIP, IronPrint, and IronWebScraper.

Pdfreactor Html To Pdf Alternative 2 related to IronPDF

PDFreactor

  • Licencja CPU: Jest to podstawowy koszt za PDFreactor, którego cena wynosi 2950 USD. Obejmuje ona obsługę maksymalnie 4 kodów CPU oraz pierwszy rok wsparcia i konserwacji.

  • Dodatki: Oprócz licencji PDFreactor oferuje dodatki, takie jak: dodatek Raster Image Output, roczne przedłużenie wsparcia i konserwacji oraz aktualizację licencji procesora.

Dokumentacja i wsparcie: IronPDF vs. PDFreactor

IronPDF

IronPDF excels in providing extensive documentation and support:

  • Comprehensive Documentation: Extensive and user-friendly documentation covering all features.
  • 24/5 Support: Active engineer support is available.
  • Video Tutorials: Step-by-step video guides are available on YouTube.
  • Community Forum: Engaged community for additional support.
  • Regular Updates: Monthly product updates to ensure the latest features and security patches.

For more information, check out IronPDF's extensive documentation, and visit the Iron Software YouTube Channel.

PDFreactor

  1. Szczegółowa dokumentacja: Obejmuje wszystkie aspekty konwersji HTML do PDF.
  2. Wsparcie e-mail: dostępne w przypadku pytań technicznych i dotyczących licencji.
  3. Fora społecznościowe: Nawiąż kontakt z innymi użytkownikami i programistami.
  4. Baza wiedzy: Dostęp do artykułów i przewodników dotyczących rozwiązywania problemów.
  5. Usługi profesjonalne: płatne wsparcie w zakresie złożonych wdrożeń.

Wnioski

Jeśli chodzi o konwersję HTML do PDF, IronPDF i PDFreactor są silnymi konkurentami, obie są w pełni zdolne do tworzenia dokumentów PDF z treści HTML. Jeśli jednak szukasz narzędzia do obsługi plików PDF, które poradzi sobie z bardziej złożonymi zadaniami, takimi jak szyfrowanie, dodawanie znaków wodnych oraz konwersja plików innych niż HTML do formatu PDF, to IronPDF jest narzędziem dla Ciebie.

Dzięki bogatemu zestawowi funkcji, kompatybilności z nowoczesnymi frameworkami .NET Framework oraz doskonałemu wsparciu technicznemu, IronPDF jest potężnym narzędziem, które warto mieć pod ręką. PDFreactor, choć potężny w swojej niszy, nie posiada niektórych zaawansowanych funkcji i elastyczności oferowanych przez IronPDF.

You can try the 30-day free trial to check out their available features.

Zwróć uwagęPDFreactor jest zastrzeżonym znakiem towarowym odpowiedniego właściciela. Ta strona nie jest powiązana z PDFreactor, nie jest przez niego promowana ani sponsorowana. Wszystkie nazwy produktów, logo i marki są własnością ich odpowiednich właścicieli. Porównania mają charakter wyłącznie informacyjny i odzwierciedlają informacje dostępne publicznie w momencie pisania.

Często Zadawane Pytania

Jak mogę przekonwertować HTML na PDF w języku C#?

Możesz użyć metody RenderHtmlAsPdf biblioteki IronPDF do konwersji ciągów HTML na pliki PDF. Możesz również konwertować pliki HTML na pliki PDF za pomocą metody RenderHtmlFileAsPdf.

Jakie są główne różnice między IronPDF a PDFreactor?

IronPDF oferuje szeroki zakres funkcji, takich jak generowanie, edycja, podpisywanie i szyfrowanie plików PDF, a także solidną obsługę HTML, CSS, JavaScript i różnych formatów obrazów. PDFreactor koncentruje się na wysokiej jakości konwersji HTML do PDF, doskonale radząc sobie ze złożonymi arkuszami CSS i JavaScript w celu uzyskania plików PDF gotowych do druku.

Czy IronPDF może być używany na wielu platformach?

Tak, IronPDF obsługuje wiele platform, w tym Windows, Linux, macOS, Docker, Azure i AWS. Jest kompatybilny z różnymi wersjami .NET, takimi jak .NET Core, .NET Standard i .NET Framework.

Czy IronPDF oferuje możliwość dodawania podpisów cyfrowych do dokumentów PDF?

Tak, IronPDF zapewnia prosty sposób na dodawanie podpisów cyfrowych do plików PDF za pomocą swojej funkcji podpisu cyfrowego.

Jakie opcje wsparcia są dostępne dla użytkowników IronPDF?

IronPDF oferuje kompleksowe wsparcie, w tym obszerną dokumentację, pomoc inżynierów dostępną 24 godziny na dobę przez 5 dni w tygodniu, samouczki wideo, forum społecznościowe oraz regularne aktualizacje, aby pomóc użytkownikom.

Jakie rodzaje licencji oferuje IronPDF?

IronPDF oferuje różne opcje licencyjne, w tym licencje wieczyste i opcję Suite, z korzyściami takimi jak wsparcie e-mail i redystrybucja bez opłat licencyjnych.

W jaki sposób IronPDF radzi sobie ze złożonymi elementami CSS i JavaScript w plikach PDF?

IronPDF obsługuje złożone CSS i JavaScript w plikach PDF, dzięki czemu idealnie nadaje się do generowania dokumentów internetowych o skomplikowanych projektach i elementach interaktywnych.

Czy można szyfrować dokumenty PDF za pomocą IronPDF?

Tak, IronPDF zapewnia wbudowaną obsługę szyfrowania plików PDF, umożliwiając zabezpieczenie dokumentów za pomocą silnego hasła.

Jakie są możliwości konwersji IronPDF poza formatem HTML?

IronPDF obsługuje konwersję różnych formatów plików do formatu PDF, takich jak DOCX, RTF i obrazy, zachowując przy tym pożądaną strukturę dokumentu.

Czy IronPDF może nakładać znaki wodne i pieczątki na pliki PDF?

Tak, IronPDF pozwala użytkownikom dodawać znaki wodne i stemple do dokumentów PDF przy użyciu HTML i CSS, zapewniając pełną kontrolę nad wyglądem.

Curtis Chau
Autor tekstów technicznych

Curtis Chau posiada tytuł licencjata z informatyki (Uniwersytet Carleton) i specjalizuje się w front-endowym rozwoju, z ekspertką w Node.js, TypeScript, JavaScript i React. Pasjonuje się tworzeniem intuicyjnych i estetycznie przyjemnych interfejsów użytkownika, Curtis cieszy się pracą z nowoczesnymi frameworkami i tworzeniem dobrze zorganizowanych, atrakcyjnych wizualnie podrę...

Czytaj więcej

Zespol wsparcia Iron

Jestesmy online 24 godziny, 5 dni w tygodniu.
Czat
Email
Zadzwon do mnie