COMPARACIóN DE PRODUCTOS

Comparación entre IronPDF y SelectPDF

Actualizado mayo 16, a. m.
Compartir:

Introducción

Cuando trabaje con documentos PDF, elegir la herramienta adecuada para sus necesidades es un primer paso importante. ¿Busca simplemente convertir contenido HTML en documentos PDF? ¿O su proyecto PDF requiere herramientas más complejas como el cifrado y la aplicación de firmas digitales? Hoy veremos dos bibliotecas PDF, IronPDF y SelectPdf, y examinaremos cómo se pueden utilizar estas bibliotecas para elevar su espacio de trabajo PDF.

Visión general de IronPDF y SelectPdf

IronPDF está diseñado para ser una solución integral para todas las tareas relacionadas con PDF en el ecosistema .NET. Es compatible con HTML, CSS, JavaScript y múltiples formatos de imagen, por lo que es extremadamente adaptable a las aplicaciones basadas en web. Con una gran variedad de funciones, como generar archivos PDF, editarlos o firmarlos y cifrarlos, IronPDF es una gran herramienta para añadir a tu arsenal.

SelectPdf proporciona un conversor flexible de HTML a PDF para aplicaciones .NET que puede ejecutarse tanto en la plataforma .NET Framework como en .NET Core. Ofrece numerosas funciones para crear archivos PDF y manipular documentos PDF existentes, lo que lo hace adecuado para diversos escenarios empresariales y personales.

Compatibilidad multiplataforma

IronPDF:

IronPDF es compatible con una amplia gama de plataformas, lo que garantiza que pueda trabajar en su entorno preferido. Aquí tienes un desglose de su compatibilidad:

  • Versiones .NET:

    -  (C#, VB.NET, F#)
    
    - .NET Core (8, 7, 6, 5 y 3.1+.)
    
    - .NET Standard (2.0+)
    
    - .NET Framework (4.6.2+)
  • Entornos de aplicación: IronPDF funciona en entornos como Windows, Linux, Mac, Docker, Azure y AWS

  • **Trabaja con IDEs como Microsoft Visual Studio y JetBrains Rider & ReSharper

  • SO y procesadores: Compatible con varios sistemas operativos y procesadores, como Windows, Mac, Linux, x64, x86 y ARM

    Para más información, visite Compatibilidad con IronPDF.

SeleccionePdf

  • Versiones .NET:

    • .NET Framework 4.0 o superior

    • .NET Core 2.1 o superior

      • .NET Standard 2.0
  • Entornos de aplicación: SelectPdf sólo funciona con el sistema operativo Windows, sin embargo, también funciona con entornos basados en la nube como Azure.

Comparación de características clave: Funcionalidad PDF en IronPDF vs. SelectPdf

IronPDF

  • Conversión de HTML a PDF: IronPDF puede gestionar la conversión de HTML a PDF, con su total compatibilidad con los estándares web modernos, puede estar seguro de que IronPDF devolverá de forma consistente PDFs con píxeles perfectos a partir de su contenido HTML.

  • Conversión de archivos PDF: ¿Necesita convertir formatos de archivo distintos de HTML a PDF? Convierta DOCX a PDF, RTF a PDF, imágenes a PDF, URL a PDF e incluso PDF a HTML, todo ello manteniendo la estructura deseada del documento, con IronPDF.

  • Funciones de seguridad: Con IronPDF, siempre puede estar seguro de que los archivos PDF confidenciales están protegidos gracias a sus funciones de seguridad. Utilice IronPDF para establecer la configuración de seguridad de sus archivos PDF, establecer contraseñas y establecer permisos para sus archivos PDF.

  • Funciones de edición de PDF: Con IronPDF puede editar documentos existentes con facilidad. IronPDF ofrece funciones de edición como la posibilidad de añadir encabezados y pies de página, estampar texto e imágenes en las páginas PDF, combinar y dividir documentos PDF, añadir marcas de agua personalizadas al PDF y trabajar con formularios PDF.

    Para obtener información detallada sobre las funciones que ofrece IronPDF, visite Características de IronPDF.

SeleccionePdf

  • Generación de PDF: Genere documentos PDF desde cero, o genere PDF a partir de contenido HTML, como una cadena HTML sin procesar, una página web, etc.

  • Manipule documentos PDF: Añada, fusione y divida páginas PDF, y extraiga páginas de archivos PDF existentes.

  • Configuración PDF: Configura las páginas PDF, como la orientación, el tamaño y los márgenes. Establezca las preferencias del visor de PDF y las propiedades del documento PDF.

  • Seguridad PDF: Configura la seguridad de tus documentos PDF, cifra tus archivos PDF con contraseñas y edita los permisos de tus archivos PDF.

Comparación de las funciones más destacadas con ejemplos de código entre IronPDF y SelectPdf

Conversión de HTML a 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#

SeleccionarPdf:

// 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#

Tanto si desea convertir varias páginas web en el mismo documento PDF como una única cadena HTML, IronPDF proporciona archivos PDF de alta fidelidad gracias al uso de ChromePdfRenderer y a su compatibilidad con los estándares web modernos. Con IronPDF, puede convertir HTML a PDF con unas pocas líneas de código. La herramienta de conversión de HTML a PDF de SelectPdf es concisa y rápida de implementar, pero puede que no produzca la misma salida de alta calidad. pdf. convertir

Si desea obtener más información sobre la herramienta de conversión de HTML a PDF de IronPDF, consulte nuestro útil cómo guías.

Cifrar archivos 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");
<br>
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 &amp; 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");
<br>
IRON VB CONVERTER ERROR developers@ironsoftware.com
VB   C#

SeleccionarPdf:

// 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#

Si desea codificar tus documentos PDF, tanto IronPDF como SelectPdf ofrecen una herramienta de cifrado integrada. La función de cifrado de IronPDF es muy amplia, y le ofrece un gran control sobre las distintas opciones de seguridad sin dejar de ser fácil de usar. La función de cifrado de SelectPdf es concisa y sencilla y es fácil de implementar en sus proyectos.

Para obtener más información sobre cómo añadir contraseñas y permisos a sus archivos PDF, visite la útil página de IronPDF cómo guía.

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

SeleccionarPdf:

SelectPdf no admite la redacción directa.

IronPDF proporciona un PDF conciso pero potente herramienta de redacción que es capaz de redactar el contenido especificado con sólo unas líneas de código. SelectPdf, por otra parte, carece de una función de redacción integrada.

Firma digital de PDF

IronPDF:

using IronPdf;
using IronPdf.Signing;
using System.Security.Cryptography.X509Certificates;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("&lt;h1&gt;foo&lt;/h1&gt;");
// 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("&lt;h1&gt;foo&lt;/h1&gt;");
// 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("&lt;h1&gt;foo&lt;/h1&gt;")
' 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#

SeleccionarPdf:

// 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#

Con IronPDF, la aplicación de firmas digitales a tus archivos PDF es fácil con su sencilla y robusta herramienta de firma de PDF. SelectPdf también puede aplicar firmas digitales a sus PDF, aunque requiere más configuración y un enfoque más manual.

Si desea ver más sobre la herramienta de firma digital de IronPDF en acción, visite su sitio web cómo guía sobre esta herramienta

Aplicación de marcas de agua personalizadas

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("&lt;h2 style='color:red'&gt;SAMPLE&lt;/h2&gt;", 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("&lt;h2 style='color:red'&gt;SAMPLE&lt;/h2&gt;", 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("&lt;h2 style='color:red'&gt;SAMPLE&lt;/h2&gt;", 30, IronPdf.Editing.VerticalAlignment.Middle, IronPdf.Editing.HorizontalAlignment.Center)
pdf.SaveAs("C:\Path\To\Watermarked.pdf")
VB   C#

SeleccionarPdf:

// 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#

La función integrada de IronPDF herramienta de marca de agua hace uso de HTML y CSS para proporcionar una forma sencilla de aplicar marcas de agua a sus páginas PDF, a la vez que le ofrece un control total sobre todo el proceso, todo ello utilizando sólo unas pocas líneas de código. SelectPdf también tiene una herramienta de marcas de agua para PDF, con la que puedes añadir marcas de agua personalizadas a tus PDF, sin embargo, el proceso es más largo y puede no ser tan fácil de implementar.

Estampar imágenes y texto en PDF

IronPDF:

using IronPdf;
using IronPdf.Editing;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("&lt;h1&gt;Example HTML Document!&lt;/h1&gt;");
// 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");
<br>
using IronPdf;
using IronPdf.Editing;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("&lt;h1&gt;Example HTML Document!&lt;/h1&gt;");
// 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");
<br>
Imports IronPdf
Imports IronPdf.Editing
Private renderer As New ChromePdfRenderer()
Private pdf As PdfDocument = renderer.RenderHtmlAsPdf("&lt;h1&gt;Example HTML Document!&lt;/h1&gt;")
' 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")
'INSTANT VB TODO TASK: The following line uses invalid syntax:
'<br>
VB   C#

SeleccionarPdf:

// 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 ofrece una sólida herramienta para estampar texto e imágenes en sus documentos PDF. El método de aplicación de los sellos de texto o imagen se asemeja a HTML y CSS, lo que significa que tendrás un control total sobre el proceso de estampación. El método de SelectPdf es más largo y requiere más trabajo manual.

Si desea obtener más información sobre las herramientas de estampación de IronPDF, no deje de consultar su práctico sitio web cómo guía.

Conversión de DOCX a 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");
<br>
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");
<br>
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")
'INSTANT VB TODO TASK: The following line uses invalid syntax:
'<br>
VB   C#

SeleccionarPdf:

SelectPdf no admite la conversión directa de DOCX a PDF.

IronPDF admite la conversión directa de Archivos DOCX a PDF. Con esta función, puede convertir DOCX a PDF en sólo un par de líneas, sin perder ni un ápice de la calidad del archivo. SelectPdf, sin embargo, no ofrece soporte integrado para DOCX a PDF.

Para obtener más información sobre la función de conversión de DOCX a PDF de IronPDF, consulte la página cómo guía sobre este tema.

Resumen de la comparación de características

Comparación entre IronPDF y SelectPDF: Figura 1

Para ver ejemplos de código detallados, visite Ejemplos de IronPDF.

Precios y licencias: IronPDF frente a SelectPdf

Precios y licencias de IronPDF

IronPDF tiene diferentes niveles y funciones adicionales por la compra de una licencia. Los promotores también pueden comprar IronSuite que, le da acceso a todos los productos de IronSoftware al precio de dos. Si no está preparado para comprar una licencia, IronPDF le ofrece una prueba gratuita que dura 30 días.

  • Licencias perpetuas: Ofrece una gama de licencias perpetuas en función del tamaño de su equipo, las necesidades de su proyecto y el número de ubicaciones. Cada tipo de licencia incluye asistencia por correo electrónico.

  • Licencia Lite: Esta licencia cuesta 749 $ y admite un desarrollador, una ubicación y un proyecto.

  • Licencia Plus: Con capacidad para tres desarrolladores, tres ubicaciones y tres proyectos, es el siguiente paso desde la licencia Lite y cuesta 1.499 dólares. La Licencia Plus ofrece soporte por chat y teléfono, además de soporte básico por correo electrónico.

  • Licencia profesional: Esta licencia es adecuada para equipos más grandes, con soporte para diez desarrolladores, diez ubicaciones y diez proyectos por 2.999 dólares. Ofrece los mismos canales de asistencia de contacto que los niveles anteriores, pero también ofrece asistencia de pantalla compartida.

  • Redistribución sin derechos de autor: La licencia de IronPDF también ofrece cobertura de redistribución sin derechos de autor por 1.999 dólares más

  • Soporte ininterrumpido del producto: IronPDF ofrece acceso a actualizaciones continuas del producto, mejoras de las funciones de seguridad y soporte de su equipo de ingenieros por 999 $ al año o por una única compra de 1.999 $ para una cobertura de 5 años.

  • IronSuite: Por 1.498 dólares, tendrá acceso a todos los productos de Iron Software, incluidos IronPDF, IronOCR, IronWord, IronXL, IronBarcode, IronQR, IronZIP, IronPrint e IronWebScraper.

    Comparación entre IronPDF y SelectPDF: Figura 2

SeleccionePdf

SelectPdf ofrece una gama de niveles de licencia perpetua que incluyen un plan de mantenimiento de un año.

  • Licencia única para desarrolladores: 499 $, admite un desarrollador y una máquina de despliegue

  • Licencia OEM para un solo desarrollador: 799 $, admite un desarrollador y un número ilimitado de máquinas de implantación

  • Licencia para 5 desarrolladores: 799 $, admite hasta cinco desarrolladores y hasta 10 máquinas de despliegue

  • Licencia OEM para 5 desarrolladores: 1.099 $, admite hasta cinco desarrolladores y un número ilimitado de máquinas de implantación

  • Licencia para empresas: 1.199 $, admite un número ilimitado de desarrolladores y hasta cien máquinas de implantación

  • Licencia OEM para empresas: 1.599 $, admite un número ilimitado de desarrolladores y un número ilimitado de máquinas de implantación

Documentación y Soporte: IronPDF frente a SelectPdf

IronPDF

IronPDF destaca por su amplia documentación y asistencia:

  • Documentación completa: Documentación extensa y fácil de usar que cubre todas las funciones.

  • Asistencia 24/5 horas: Asistencia técnica activa disponible.

  • Videotutoriales: En YouTube hay disponibles guías de vídeo paso a paso.

  • Foro comunitario: Comunidad comprometida para apoyo adicional.

  • Actualizaciones periódicas: Actualizaciones mensuales del producto para garantizar las últimas funciones y parches de seguridad.

    Si desea más información, consulte la extensa página de IronPDF documentacióny visite la página Canal YouTube de IronSoftware.

Documentación y asistencia de SelectPdf

  • Documentación detallada: Cubre todos los aspectos de las características que SelectPdf tiene para ofrecer, junto con ejemplos de código.

  • Asistencia por correo electrónico: Disponible para consultas técnicas y sobre licencias.

  • Servicios profesionales: Asistencia de pago para implantaciones complejas, como sus planes de mantenimiento de un año

Conclusión

Disponer de la biblioteca PDF adecuada para las necesidades de su proyecto PDF es esencial cuando se trabaja con archivos PDF. Hoy hemos visto IronPDF y SelectPdf en acción y hemos echado un vistazo más de cerca a estas dos bibliotecas. SelectPdf ofrece una sólida gama de funciones para trabajar con PDF, pero muchas de ellas pueden requerir más trabajo de implementación que sus homólogas de IronPDF.

IronPDF destaca como una solución versátil y completa para desarrolladores .NET que necesiten funcionalidades PDF robustas. Sus amplias funciones, su compatibilidad con los marcos .NET modernos y su excelente soporte lo convierten en una potente herramienta para añadir a su kit de herramientas de desarrollador.

< ANTERIOR
Comparación entre IronPDF y Devexpress PDF Viewer
SIGUIENTE >
Comparación entre IronPDF y EVOPDF

¿Listo para empezar? Versión: 2024.8 acaba de salir

Descarga gratuita de NuGet Descargas totales: 10,439,034 Ver licencias >