COMPARAISON DES PRODUITS

Comparaison entre IronPDF et SelectPDF

Mise à jour août 28, 2024
Partager:

Introduction

Lorsque vous travaillez avec des documents PDF, choisir le bon outil pour vos besoins est une première étape importante. Cherchez-vous simplement à convertir du contenu HTML en documents PDF ? Ou bien votre projet PDF nécessite-t-il des outils plus complexes tels que le cryptage et l'application de signatures numériques ? Aujourd'hui, nous allons examiner deux bibliothèques PDF, IronPDF et SelectPdf, et voir comment ces bibliothèques peuvent être utilisées pour améliorer votre espace de travail PDF.

Une vue d'ensemble de IronPDF et SelectPdf

En savoir plus sur IronPDFest conçu pour être une solution unique pour toutes les tâches liées aux PDF dans l'écosystème .NET. Il prend en charge HTML, CSS, JavaScript ainsi que plusieurs formats d'image, ce qui le rend extrêmement adaptable aux applications web. Avec une variété de fonctionnalités telles que la génération de PDF, leur édition ou leur signature et leur chiffrement, IronPDF est un excellent outil à ajouter à votre arsenal.

SelectPdf propose un convertisseur HTML en PDF flexible pour les applications .NET pouvant être exécutées sur les plateformes .NET Framework et .NET Core. Il offre des fonctions riches pour créer des fichiers PDF et manipuler des documents PDF existants, ce qui le rend adapté à diverses situations professionnelles et personnelles.

Compatibilité multiplateforme

IronPDF :

IronPDF prend en charge une large gamme de plateformes, garantissant ainsi que vous pouvez travailler dans votre environnement préféré. Voici un aperçu de sa compatibilité :

  • Versions .NET :

    • (C#, VB.NET, F#)

    • .NET Core(8, 7, 6, 5 et 3.1+)

    • standard .NET(2.0+)
  • framework .NET(4.6.2+)
  • Environnements d'application : IronPDF fonctionne dans des environnements comprenant Windows, Linux, Mac, Docker, Azure et AWS
  • IDEs : Fonctionne avec des IDEs tels que Microsoft Visual Studio et JetBrains Rider & ReSharper
  • Systèmes d'exploitation et processeurs : Prend en charge plusieurs systèmes d'exploitation et processeurs différents, y compris Windows, Mac, Linux, x64, x86, ARM

    Pour plus d'informations, visitezDétails de la compatibilité avec IronPDF.

SelectPdf

  • Versions .NET :
  • .NET Framework 4.0+
  • .NET Core 2.1+
  • .NET Standard 2.0
  • Environnements d'application : SelectPdf fonctionne uniquement avec le système d'exploitation Windows et ne fonctionne pas avec les environnements basés sur le cloud tels qu'Azure.

Comparaison des Principales Caractéristiques : Fonctionnalités PDF dans IronPDF vs. SelectPdf

IronPDF

  • Conversion HTML en PDF : IronPDF peut gérer la conversion HTML en PDF. Avec son support complet des normes web modernes, vous pouvez être assuré qu'IronPDF fournira de manière constante des fichiers PDF parfaitement fidèles à votre contenu HTML.
  • Conversion de fichier PDF: Besoin de convertir des formats de fichier autres que le HTML en PDF ? Convertissez DOCX en PDF, RTF en PDF, Image en PDF, URL en PDF et même PDF en HTML, tout en maintenant la structure du document souhaitée, avec IronPDF.
  • Fonctionnalités de sécurité : Avec IronPDF, vous pouvez toujours être assuré que tous les fichiers PDF sensibles sont sécurisés grâce à ses fonctionnalités de sécurité. Utilisez IronPDF pour définir les paramètres de sécurité de vos PDF, définir des mots de passe et définir des permissions pour vos fichiers PDF.
  • Fonctionnalités d'édition de PDF : Avec IronPDF, vous pouvez éditer des documents existants facilement. IronPDF offre des fonctionnalités d'édition telles que la possibilité d'ajouter des en-têtes et des pieds de page, d'estampiller du texte et des images sur les pages PDF, de fusionner et de diviser des documents PDF, d'ajouter des filigranes personnalisés au PDF et de travailler avec des formulaires PDF.

    Pour des informations détaillées sur les fonctionnalités offertes par IronPDF, visitezFonctionnalités avancées d'IronPDF.

SelectPdf

  • Génération de PDF : Générer des documents PDF à partir de zéro, ou générer des PDF à partir de contenu HTML tel qu'une chaîne de caractères HTML brute, une page web, et plus encore.
  • Manipuler des documents PDF : Ajouter, fusionner et diviser des pages PDF, et extraire des pages à partir de fichiers PDF existants.
  • Paramètre PDF : Définissez les paramètres de la page PDF tels que l'orientation de la page, la taille et les marges. Définir les préférences du lecteur PDF et les propriétés du document PDF.
  • Sécurité PDF: Définissez les paramètres de sécurité de vos documents PDF, cryptez vos fichiers PDF avec des mots de passe et modifiez les autorisations de vos fichiers PDF.

Comparaison des principales fonctionnalités avec des exemples de code entre IronPDF et SelectPdf

Conversion de HTML en PDF

IronPDF :

using IronPdf;

// Disable 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;

// Disable 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");
IRON VB CONVERTER ERROR developers@ironsoftware.com
VB   C#

SelectPdf :

// instantiate an HTML to PDF converter object
HtmlToPdf converter = new HtmlToPdf();

// create a new pdf document converting an url
PdfDocument doc = converter.ConvertUrl(url);

// save pdf document
doc.Save(file);

// close pdf document
doc.Close();
// instantiate an HTML to PDF converter object
HtmlToPdf converter = new HtmlToPdf();

// create a new pdf document converting an url
PdfDocument doc = converter.ConvertUrl(url);

// save pdf document
doc.Save(file);

// close pdf document
doc.Close();
IRON VB CONVERTER ERROR developers@ironsoftware.com
VB   C#

Que vous souhaitiez convertir plusieurs pages Web dans le même document PDF ou un seul string HTML, IronPDF fournit des fichiers PDF de haute fidélité grâce à l'utilisation de ChromePdfRenderer et à sa prise en charge des normes web modernes. Avec IronPDF, vous pouvez convertirHTML vers PDF avec une grande fidélité en quelques lignes de code. L'outil de conversion HTML en PDF de SelectPdf est concis et rapide à mettre en œuvre, mais peut ne pas produire la même qualité de sortie.

Si vous souhaitez en savoir plus sur l'outil de conversion HTML en PDF d'IronPDF, consultez notre pratiqueGuides de conversion de HTML en PDF.

Chiffrement des fichiers PDF

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")
VB   C#

SelectPdf :

// set document passwords
doc.Security.OwnerPassword = "test1";
doc.Security.UserPassword = "test2";

//set document permissions
doc.Security.CanAssembleDocument = false;
doc.Security.CanCopyContent = true;
doc.Security.CanEditAnnotations = true;
doc.Security.CanEditContent = true;
doc.Security.CanFillFormFields = true;
doc.Security.CanPrint = true;
// set document passwords
doc.Security.OwnerPassword = "test1";
doc.Security.UserPassword = "test2";

//set document permissions
doc.Security.CanAssembleDocument = false;
doc.Security.CanCopyContent = true;
doc.Security.CanEditAnnotations = true;
doc.Security.CanEditContent = true;
doc.Security.CanFillFormFields = true;
doc.Security.CanPrint = true;
' set document passwords
doc.Security.OwnerPassword = "test1"
doc.Security.UserPassword = "test2"

'set document permissions
doc.Security.CanAssembleDocument = False
doc.Security.CanCopyContent = True
doc.Security.CanEditAnnotations = True
doc.Security.CanEditContent = True
doc.Security.CanFillFormFields = True
doc.Security.CanPrint = True
VB   C#

Quand vous cherchez àCryptez efficacement vos PDFen outre, IronPdf et SelectPdf offrent tous deux un outil de cryptage intégré. La fonction de cryptage de IronPDF est étendue, vous offrant un contrôle important sur les différents paramètres de sécurité tout en restant facile à utiliser. La fonctionnalité de cryptage de SelectPdf est concise et simple et est facile à intégrer dans vos projets.

Pour plus d'informations sur l'ajout de mots de passe et de permissions à vos fichiers PDF, visitez le site utile d'IronPDFGuide d'ajout de mots de passe et de permissions.

Rédaction de contenu PDF

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")
VB   C#

SelectPdf :

SelectPdf ne supporte pas directement la rédaction.

IronPDF fournit un PDF concis mais puissantOutil de rédactioncapable de caviarder le contenu spécifié avec seulement quelques lignes de code. SelectPdf, en revanche, ne possède aucune fonctionnalité de rédaction intégrée.

Signature numérique des 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")
VB   C#

SelectPdf :

// create a new pdf document
PdfDocument doc = new PdfDocument();

// add a new page to the document
PdfPage page = doc.AddPage();

// get image path 
// the image will be used to display the digital signature over it
string imgFile = Server.MapPath("~/files/logo.png");

// get certificate path
string certFile = Server.MapPath("~/files/selectpdf.pfx");

// define a rendering result object
PdfRenderingResult result;

// create image element from file path 
PdfImageElement img = new PdfImageElement(0, 0, imgFile);
result = page.Add(img);

// get the #PKCS12 certificate from file
PdfDigitalCertificatesCollection certificates =
    PdfDigitalCertificatesStore.GetCertificates(certFile, "selectpdf");
PdfDigitalCertificate certificate = certificates[0];

// create the digital signature object
PdfDigitalSignatureElement signature =
    new PdfDigitalSignatureElement(result.PdfPageLastRectangle, certificate);
signature.Reason = "SelectPdf";
signature.ContactInfo = "SelectPdf";
signature.Location = "SelectPdf";
page.Add(signature);

// save pdf document
doc.Save(Response, false, "Sample.pdf");

// close pdf document
doc.Close();
// create a new pdf document
PdfDocument doc = new PdfDocument();

// add a new page to the document
PdfPage page = doc.AddPage();

// get image path 
// the image will be used to display the digital signature over it
string imgFile = Server.MapPath("~/files/logo.png");

// get certificate path
string certFile = Server.MapPath("~/files/selectpdf.pfx");

// define a rendering result object
PdfRenderingResult result;

// create image element from file path 
PdfImageElement img = new PdfImageElement(0, 0, imgFile);
result = page.Add(img);

// get the #PKCS12 certificate from file
PdfDigitalCertificatesCollection certificates =
    PdfDigitalCertificatesStore.GetCertificates(certFile, "selectpdf");
PdfDigitalCertificate certificate = certificates[0];

// create the digital signature object
PdfDigitalSignatureElement signature =
    new PdfDigitalSignatureElement(result.PdfPageLastRectangle, certificate);
signature.Reason = "SelectPdf";
signature.ContactInfo = "SelectPdf";
signature.Location = "SelectPdf";
page.Add(signature);

// save pdf document
doc.Save(Response, false, "Sample.pdf");

// close pdf document
doc.Close();
' create a new pdf document
Dim doc As New PdfDocument()

' add a new page to the document
Dim page As PdfPage = doc.AddPage()

' get image path 
' the image will be used to display the digital signature over it
Dim imgFile As String = Server.MapPath("~/files/logo.png")

' get certificate path
Dim certFile As String = Server.MapPath("~/files/selectpdf.pfx")

' define a rendering result object
Dim result As PdfRenderingResult

' create image element from file path 
Dim img As New PdfImageElement(0, 0, imgFile)
result = page.Add(img)

' get the #PKCS12 certificate from file
Dim certificates As PdfDigitalCertificatesCollection = PdfDigitalCertificatesStore.GetCertificates(certFile, "selectpdf")
Dim certificate As PdfDigitalCertificate = certificates(0)

' create the digital signature object
Dim signature As New PdfDigitalSignatureElement(result.PdfPageLastRectangle, certificate)
signature.Reason = "SelectPdf"
signature.ContactInfo = "SelectPdf"
signature.Location = "SelectPdf"
page.Add(signature)

' save pdf document
doc.Save(Response, False, "Sample.pdf")

' close pdf document
doc.Close()
VB   C#

Avec IronPDF, appliquerSignatures numériques en toute simplicitéSigner vos fichiers PDF est facile avec son outil de signature de PDF simple et robuste. SelectPdf peut également appliquer des signatures numériques à vos PDF, bien que cela nécessite plus de configuration et une approche plus manuelle.

Si vous souhaitez voir davantage l'outil de signature numérique de IronPDF en action, visitez sonGuide de l'outil de signature numérique sur cet outil.

Appliquer des filigranes personnalisés

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")
VB   C#

SelectPdf :

// create a new pdf document
PdfDocument doc = new PdfDocument();

// create a new pdf font
PdfFont font = doc.AddFont(PdfStandardFont.Helvetica);
font.Size = 24;

// add a new page to the document
PdfPage page = doc.AddPage();

// create a new text element and add it to the page
PdfTextElement text = new PdfTextElement(0, 0, Helper.SomeLongText(), font);
page.Add(text);

// get image path
string imgFile = Server.MapPath("~/files/logo.png");

// watermark all pages - add a template containing an image 
// to the bottom right of the page
// the image should repeat on all pdf pages automatically
// the template should be rendered behind the rest of the page elements
PdfTemplate template = doc.AddTemplate(doc.Pages[0].ClientRectangle);
PdfImageElement img = new PdfImageElement(
    doc.Pages[0].ClientRectangle.Width - 300,
    doc.Pages[0].ClientRectangle.Height - 150, imgFile);
img.Transparency = 50;
template.Background = true;
template.Add(img);

// save pdf document
doc.Save(Response, false, "Sample.pdf");

// close pdf document
doc.Close();
// create a new pdf document
PdfDocument doc = new PdfDocument();

// create a new pdf font
PdfFont font = doc.AddFont(PdfStandardFont.Helvetica);
font.Size = 24;

// add a new page to the document
PdfPage page = doc.AddPage();

// create a new text element and add it to the page
PdfTextElement text = new PdfTextElement(0, 0, Helper.SomeLongText(), font);
page.Add(text);

// get image path
string imgFile = Server.MapPath("~/files/logo.png");

// watermark all pages - add a template containing an image 
// to the bottom right of the page
// the image should repeat on all pdf pages automatically
// the template should be rendered behind the rest of the page elements
PdfTemplate template = doc.AddTemplate(doc.Pages[0].ClientRectangle);
PdfImageElement img = new PdfImageElement(
    doc.Pages[0].ClientRectangle.Width - 300,
    doc.Pages[0].ClientRectangle.Height - 150, imgFile);
img.Transparency = 50;
template.Background = true;
template.Add(img);

// save pdf document
doc.Save(Response, false, "Sample.pdf");

// close pdf document
doc.Close();
' create a new pdf document
Dim doc As New PdfDocument()

' create a new pdf font
Dim font As PdfFont = doc.AddFont(PdfStandardFont.Helvetica)
font.Size = 24

' add a new page to the document
Dim page As PdfPage = doc.AddPage()

' create a new text element and add it to the page
Dim text As New PdfTextElement(0, 0, Helper.SomeLongText(), font)
page.Add(text)

' get image path
Dim imgFile As String = Server.MapPath("~/files/logo.png")

' watermark all pages - add a template containing an image 
' to the bottom right of the page
' the image should repeat on all pdf pages automatically
' the template should be rendered behind the rest of the page elements
Dim template As PdfTemplate = doc.AddTemplate(doc.Pages(0).ClientRectangle)
Dim img As New PdfImageElement(doc.Pages(0).ClientRectangle.Width - 300, doc.Pages(0).ClientRectangle.Height - 150, imgFile)
img.Transparency = 50
template.Background = True
template.Add(img)

' save pdf document
doc.Save(Response, False, "Sample.pdf")

' close pdf document
doc.Close()
VB   C#

Incorporé d'IronPDFOutil de filigraneutilise HTML et CSS pour fournir un moyen simple d'appliquer des filigranes à vos pages PDF, tout en vous donnant un contrôle total sur l'ensemble du processus, le tout en utilisant seulement quelques lignes de code. SelectPdf dispose également d'un outil de filigrane PDF, avec lequel vous pouvez ajouter des filigranes personnalisés à vos PDF. Cependant, le processus est plus long et peut ne pas être aussi simple à mettre en œuvre.

Tamponner des images et du texte sur des PDF

IronPDF :

using IronPdf;
using IronPdf.Editing;

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;

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

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")
VB   C#

SelectPdf :

// create a new pdf document
PdfDocument doc = new PdfDocument();

// create a new pdf font
PdfFont font = doc.AddFont(PdfStandardFont.Helvetica);
font.Size = 24;

// add a new page to the document
PdfPage page = doc.AddPage();

// create a new text element and add it to the page
PdfTextElement text = new PdfTextElement(0, 0, Helper.SomeLongText(), font);
page.Add(text);

// get image path
string imgFile = Server.MapPath("~/files/logo.png");

// stamp all pages - add a template containing an image to the bottom right of 
// the page the image should repeat on all pdf pages automatically
PdfTemplate template = doc.AddTemplate(doc.Pages[0].ClientRectangle);
PdfImageElement img = new PdfImageElement(
    doc.Pages[0].ClientRectangle.Width - 300,
    doc.Pages[0].ClientRectangle.Height - 150, imgFile);
template.Add(img);

// save pdf document
doc.Save(Response, false, "Sample.pdf");

// close pdf document
doc.Close();
// create a new pdf document
PdfDocument doc = new PdfDocument();

// create a new pdf font
PdfFont font = doc.AddFont(PdfStandardFont.Helvetica);
font.Size = 24;

// add a new page to the document
PdfPage page = doc.AddPage();

// create a new text element and add it to the page
PdfTextElement text = new PdfTextElement(0, 0, Helper.SomeLongText(), font);
page.Add(text);

// get image path
string imgFile = Server.MapPath("~/files/logo.png");

// stamp all pages - add a template containing an image to the bottom right of 
// the page the image should repeat on all pdf pages automatically
PdfTemplate template = doc.AddTemplate(doc.Pages[0].ClientRectangle);
PdfImageElement img = new PdfImageElement(
    doc.Pages[0].ClientRectangle.Width - 300,
    doc.Pages[0].ClientRectangle.Height - 150, imgFile);
template.Add(img);

// save pdf document
doc.Save(Response, false, "Sample.pdf");

// close pdf document
doc.Close();
' create a new pdf document
Dim doc As New PdfDocument()

' create a new pdf font
Dim font As PdfFont = doc.AddFont(PdfStandardFont.Helvetica)
font.Size = 24

' add a new page to the document
Dim page As PdfPage = doc.AddPage()

' create a new text element and add it to the page
Dim text As New PdfTextElement(0, 0, Helper.SomeLongText(), font)
page.Add(text)

' get image path
Dim imgFile As String = Server.MapPath("~/files/logo.png")

' stamp all pages - add a template containing an image to the bottom right of 
' the page the image should repeat on all pdf pages automatically
Dim template As PdfTemplate = doc.AddTemplate(doc.Pages(0).ClientRectangle)
Dim img As New PdfImageElement(doc.Pages(0).ClientRectangle.Width - 300, doc.Pages(0).ClientRectangle.Height - 150, imgFile)
template.Add(img)

' save pdf document
doc.Save(Response, False, "Sample.pdf")

' close pdf document
doc.Close()
VB   C#

IronPDF propose un outil robuste pourEstampage de textes et d'images sur des PDF vos documents PDF. La méthode d'application des tampons de texte ou d'image ressemble à HTML et CSS, ce qui signifie que vous aurez un contrôle total sur le processus de tamponnage. L'approche de SelectPdf est plus longue, avec plus de travail manuel impliqué dans le processus.

Si vous souhaitez en savoir plus sur les outils de tamponnage d'IronPDF, assurez-vous de consulter son pratiqueGuide de l'estampillage de textes et d'images.

Conversion de DOCX en PDF

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")
VB   C#

SelectPdf :

SelectPdf ne prend pas en charge la conversion directe de DOCX en PDF.

IronPDF prend en charge la conversion directe deFichiers DOCX en PDF. Avec cette fonctionnalité, vous pouvez convertir des fichiers DOCX en PDF en seulement quelques lignes, sans perdre aucune qualité du fichier. Cependant, SelectPdf ne propose pas une prise en charge intégrée de la conversion de DOCX en PDF.

Pour plus d'informations sur la fonctionnalité de conversion DOCX en PDF d'IronPDF, n'hésitez pas à consulter leGuide de conversion de DOCX en PDF.

Résumé de la comparaison des fonctionnalités

Une comparaison entre IronPDF et SelectPDF : Figure 1

Pour des exemples de code détaillés, visitez le Page d'exemples IronPDF.

Tarification et licences: IronPDF vs. SelectPdf

Prix et licences d'IronPDF

Licences et prix d'IronPDFa différents niveaux et fonctionnalités supplémentaires pour l'achat d'une licence. Les développeurs peuvent également acheterIron Suitece qui vous donne accès à tous les produits d'IronSoftware au prix de deux. Si vous n'êtes pas prêt à acheter une licence, IronPDF propose unoption d'essai gratuitqui dure 30 jours.

  • Licences perpétuelles : Offre une gamme de licences perpétuelles en fonction de la taille de votre équipe, de vos besoins de projet et du nombre de sites. Chaque type de licence inclut le support par email.
  • Licence Lite : Cette licence coûte $749 et prend en charge un développeur, un emplacement et un projet.
  • Plus License : Supportant trois développeurs, trois emplacements et trois projets, il s'agit de la prochaine étape après la Lite License et coûte 1 499 $. La Plus License offre une assistance par chat et une assistance téléphonique en plus de l'assistance par e-mail de base.
  • Licence Professionnelle : Cette licence est adaptée aux grandes équipes, supportant dix développeurs, dix sites et dix projets pour 2 999 $. Elle offre les mêmes canaux de support que les niveaux précédents, mais également un support par partage d'écran.
  • Redistribution libre de droits : La licence d'IronPDF offre également une couverture de redistribution libre de droits pour un supplément de 1 999 $.
  • Assistance produit ininterrompue : IronPDF offre un accès aux mises à jour continues du produit, aux améliorations des fonctionnalités de sécurité et au support de leur équipe d'ingénieurs pour 999 $/an ou un achat unique de 1 999 $ pour une couverture de 5 ans.
  • Iron Suite : Pour 1 498 $, vous avez accès à tous les produits Iron Software, y compris IronPDF, IronOCR, IronWord, IronXL, IronBarcode, IronQR, IronZIP, IronPrint et IronWebScraper.

    Une comparaison entre IronPDF et SelectPDF : Figure 2

SelectPdf

SelectPdf offre une gamme de niveaux de licence perpétuelle qui incluent tous un plan de maintenance d'un an.

  • Licence pour un seul développeur : 499 $, prend en charge un développeur et une machine de déploiement
  • Licence OEM pour un développeur unique : 799 $, prend en charge un développeur et des machines de déploiement illimitées
  • Licence pour 5 développeurs : 799 $, supporte jusqu'à cinq développeurs et jusqu'à 10 machines de déploiement
  • Licence OEM pour 5 développeurs : 1 099 $, supporte jusqu'à cinq développeurs et des machines de déploiement illimitées
  • Licence Entreprise: 1 199 $, prend en charge un nombre illimité de développeurs et jusqu'à cent machines de déploiement
  • Licence OEM d'entreprise : 1 599 $, prend en charge des développeurs illimités et des machines de déploiement illimitées

Documentation et support : IronPDF vs. SelectPdf

IronPDF

IronPDF excelle dans la fourniture d'une documentation et d'un support étendus :

  • Documentation complète: Documentation étendue et conviviale couvrant toutes les fonctionnalités.
  • Support 24/5: Le support actif des ingénieurs est disponible.
  • Tutoriels Vidéo : Des guides vidéo pas à pas sont disponibles sur YouTube.
  • Forum Communautaire : Une communauté engagée pour un support supplémentaire.
  • Mises à jour régulières : Mises à jour mensuelles du produit pour garantir les dernières fonctionnalités et correctifs de sécurité.

    Pour plus d'informations, consultez la documentation complète d'IronPDF.Bibliothèque de documentation, et visitez leChaîne YouTube IronSoftware.

Documentation et Support SelectPdf

  • Documentation détaillée : Couvre tous les aspects des fonctionnalités que SelectPdf a à offrir, avec des exemples de code.
  • Support par e-mail : Disponible pour les questions techniques et de licence.
  • Services Professionnels : Support payant pour des implémentations complexes, telles que leurs plans de maintenance d'un an

Conclusion

Avoir la bonne bibliothèque PDF pour les besoins de votre projet PDF est essentiel lorsque vous travaillez avec des PDF. Aujourd'hui, nous avons vu IronPDF et SelectPdf en action et nous avons examiné de plus près ces deux bibliothèques. SelectPdf offre une gamme solide de fonctionnalités pour travailler avec des PDF, mais beaucoup d'entre elles peuvent nécessiter plus de travail à mettre en œuvre que leurs homologues IronPDF.

IronPDF se distingue comme une solution polyvalente et complète pour les développeurs .NET ayant besoin de fonctionnalités PDF robustes. Ses fonctionnalités étendues, sa compatibilité avec les frameworks .NET modernes et son excellent support en font un outil puissant à ajouter à la panoplie de votre développeur.

Vous pouvez essayer le essai gratuit de 30 jours pour découvrir leurs fonctionnalités disponibles.

< PRÉCÉDENT
Comparaison entre IronPDF et Devexpress PDF Viewer
SUIVANT >
IronPDF et EvoPdf : Une comparaison