製品比較

IronPDFとSelectPDFの比較

イントロダクション

PDFドキュメントを扱う際には、ニーズに合った適切なツールを選ぶことが重要な第一歩です。HTMLコンテンツをPDFドキュメントに変換するだけをお望みですか? それとも、PDFプロジェクトに暗号化やデジタル署名の適用などのより高度なツールが必要ですか? 今日は、IronPDFとSelectPdfという2つのPDFライブラリを見て、それらがどのようにあなたのPDFワークスペースを向上させるかを検討します。

IronPDFとSelectPdfの概要

IronPDFについて詳しく学ぶ は、.NET エコシステム内のすべての PDF 関連のタスクに対するワンストップソリューションとして設計されています。 HTML、CSS、JavaScriptおよび複数の画像形式をサポートしているため、Webベースのアプリケーションに非常に適応性があります。 さまざまな機能を備え、PDFの生成、編集、署名や暗号化ができるIronPDFは、アーセナルに追加する素晴らしいツールです。

SelectPdfは、.NET Frameworkおよび.NET Coreプラットフォームの両方で実行できる.NETアプリケーション用の柔軟なHTMLからPDFへのコンバーターを提供します。 それはPDFファイルの作成および既存のPDFドキュメントの操作に豊富な機能を提供し、さまざまなビジネスおよび個人のシナリオに適しています。

クロスプラットフォーム互換性

IronPDF:

IronPDFは幅広いプラットフォームをサポートしており、お好みの環境で作業できるようにしています。 互換性の内訳は以下の通りです:

  • .NET バージョン:

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

    • .NET Core(8、7、6、5、および3.1+)。

    • .NET Standard (2.0+)
  • .NET Framework (4.6.2+)
  • アプリ環境: IronPDFは、Windows、Linux、Mac、Docker、Azure、およびAWSを含む環境で動作します。
  • IDEs: Microsoft Visual Studio や JetBrains Rider & ReSharper などの IDE と連携します
  • OSとプロセッサ: Windows、Mac、Linux、x64、x86、ARMを含む様々なOSとプロセッサをサポート

    詳細については、IronPDF Compatibility Detailsをご覧ください。

セレクトPdf

  • .NET バージョン:

    • .NET Framework 4.0+

    • .NET Core 2.1以上
  • .NET Standard 2.0
  • アプリ環境: SelectPdf は Windows OS でのみ動作し、Azure などのクラウドベースの環境では動作しません。

キーフィーチャー比較: IronPDF 対 SelectPdfのPDF機能

IronPDF

  • HTMLからPDFへの変換:IronPDFはHTMLからPDFへの変換を行うことができ、最新のウェブ標準に完全対応しているため、HTMLコンテンツから常にピクセルパーフェクトなPDFを返すことが保証されます。
  • PDFファイル変換:HTML以外のファイル形式をPDFに変換する必要がありますか? IronPDFを使用して、DOCXをPDFに変換、RTFをPDFに変換、画像をPDFに変換、URLをPDFに変換、さらにはPDFをHTMLに変換し、希望の文書構造を維持することができます。
  • セキュリティ機能: IronPDFでは、セキュリティ機能のおかげで、機密性の高いPDFファイルが常に安全であることを確信できます。 IronPDFを使用してPDFのセキュリティ設定を行い、パスワードを設定し、PDFファイルの権限を設定します。
  • PDF編集機能: IronPDFを使用すると、既存のドキュメントを簡単に編集できます。 IronPDFは、ヘッダーとフッターの追加、テキストや画像をPDFページにスタンプ、PDF文書の結合と分割、カスタム透かしの追加、PDFフォームの操作などの編集機能を提供します。

    IronPDF が提供する機能の詳細情報については、高度な IronPDF 機能をご覧ください。

セレクトPdf

  • PDF生成:ゼロからPDFドキュメントを生成するか、生のHTML文字列、ウェブページなどのHTMLコンテンツからPDFを生成します。
  • PDFドキュメントを操作する: PDFページを追加、結合、分割し、既存のPDFファイルからページを抽出します。
  • PDF設定: PDFページの設定では、ページの向き、サイズ、余白などを設定できます。 PDFビューアの設定およびPDFドキュメントのプロパティ。
  • PDFセキュリティ: PDFドキュメントのセキュリティ設定を設定し、PDFファイルをパスワードで暗号化し、PDFファイルの権限を編集します。

IronPDFとSelectPdfの主要ハイライト機能のコード例を比較

HTMLを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
$vbLabelText   $csharpLabel

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
$vbLabelText   $csharpLabel

複数のウェブページを同じPDFドキュメントに変換したい場合でも、単一のHTML文字列を変換したい場合でも、IronPDFはChromePdfRendererの使用と現代ウェブ標準のサポートにより、高忠実度のPDFファイルを提供します。 IronPDFを使用すると、わずか数行のコードで高忠実度のHTMLをPDFに変換できます。 SelectPdfのHTMLからPDFへの変換ツールは簡潔で実装が迅速ですが、高品質な出力を生成しない場合があります。

IronPDFのHTMLからPDFへの変換ツールについて詳しく知りたい場合は、便利なHTMLからPDFへの変換ガイドをご覧ください。

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")
$vbLabelText   $csharpLabel

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
$vbLabelText   $csharpLabel

PDFを効率的に暗号化したい場合、IronPDFとSelectPdfの両方に組み込みの暗号化ツールが用意されています。 IronPDFの暗号化機能は非常に充実しており、さまざまなセキュリティ設定を自由に制御できるうえ、使いやすさも兼ね備えています。 SelectPdfの暗号化機能は簡潔かつシンプルで、プロジェクトへの実装が容易です。

PDFファイルへのパスワードと権限の追加に関する詳細については、IronPDFの便利なパスワードと権限の追加ガイドをご覧ください。

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")
$vbLabelText   $csharpLabel

SelectPdf:

SelectPdfは直接的に墨消しをサポートしていません。

IronPDFは、指定されたコンテンツを数行のコードで編集できる、簡潔でありながら強力なPDF編集ツールを提供します。 一方、SelectPdfには組み込みの墨消し機能が欠けています。

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

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()
$vbLabelText   $csharpLabel

IronPDFを使用すると、シンプルで堅牢なPDF署名ツールにより、PDFファイルにデジタル署名を簡単に適用できます。 SelectPdfは、PDFにデジタル署名を適用することもできますが、設定に手間がかかり、手動での操作が多くなります。

IronPDFのデジタル署名ツールの詳細を見たい場合は、このツールのデジタル署名ツールガイドを訪問してください。

カスタム透かしの適用

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

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()
$vbLabelText   $csharpLabel

IronPDFの内蔵ウォーターマークツールは、わずか数行のコードでPDFページにウォーターマークを適用する簡単な方法を提供しつつ、プロセス全体を完全にコントロールするためにHTMLとCSSを使用します。 SelectPdfにもPDF透かしツールがあり、これを使用してカスタム透かしをPDFに追加できますが、プロセスが長く、実装が簡単ではないかもしれません。

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")
$vbLabelText   $csharpLabel

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()
$vbLabelText   $csharpLabel

IronPDFは、PDFドキュメントにテキストや画像をスタンプするための強力なツールを提供します。 テキストまたは画像のスタンプを適用する方法はHTMLおよびCSSに似ているため、スタンピングプロセスを完全に制御することができます。 SelectPdfのアプローチはより長く、プロセスに手作業が多く含まれています。

IronPDFのスタンピングツールについて詳しく知りたい場合は、便利なテキストと画像のスタンピングガイドをぜひご覧ください。

DOCXから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")
$vbLabelText   $csharpLabel

SelectPdf:

SelectPdfは直接的なDOCXからPDFへの変換に対応していません。

IronPDFはDOCXファイルをPDFに直接変換することをサポートしています。 この機能を使用すると、ファイルの品質を損なうことなく、わずか数行でDOCXをPDFに変換できます。 しかし、SelectPdfには、DOCXからPDFへのネイティブサポートがありません。

IronPDFのDOCXからPDFへの変換機能についての詳細は、DOCX to PDF変換ガイドをご覧ください。

機能比較の概要

IronPDFとSelectPDFの比較: 図1

詳しいコード例については、IronPDFの例のページをご覧ください。

価格とライセンス: IronPDF vs. SelectPdf

IronPDFの価格とライセンス

IronPDFのライセンスおよび価格設定には、ライセンス購入のための異なるレベルおよび追加機能があります。 開発者は、Iron Suite を購入することもでき、Iron Software のすべての製品に2つの価格でアクセスできます。 ライセンスを購入する準備ができていない場合、IronPDFは30日間の無料試用オプションを提供しています。

  • 永久ライセンス: チームの規模、プロジェクトのニーズ、そして拠点の数に応じて、さまざまな永久ライセンスを提供します。 各ライセンスタイプにはメールサポートが含まれています。
  • Liteライセンス: このライセンスは$749で、1人の開発者、1つの場所、1つのプロジェクトをサポートします。
  • Plusライセンス: 3人の開発者、3つの場所、3つのプロジェクトをサポートするこのライセンスは、Liteライセンスからの次のステップであり、$1,499の費用がかかります。Plusライセンスは、基本的なメールサポートに加えて、チャットサポートと電話サポートを提供します。
  • Professional License: このライセンスは、より大きなチームに適しており、10 人の開発者、10 の拠点、10 のプロジェクトを$2,999でサポートします。前の階層と同じ連絡先サポートチャネルを提供するだけでなく、画面共有サポートも提供します。
  • ロイヤリティフリーの再配布: IronPDFのライセンスは、追加料金$1,999でロイヤリティフリーの再配布カバレッジも提供します。
  • 中断のない製品サポート: IronPDF は、年間 $999 または一度の購入で 5 年間のカバレッジとして $1,999 で、継続的な製品更新、セキュリティ機能のアップグレード、エンジニアリングチームからのサポートへのアクセスを提供します。
  • Iron Suite: $1,498で、IronPDF、IronOCR、IronWord、IronXL、IronBarcode、IronQR、IronZIP、IronPrint、IronWebScraperを含むすべてのIron Software製品にアクセスできます。

    IronPDFとSelectPDFの比較: 図2

セレクトPdf

SelectPdfは、1年間のメンテナンスプランを含む永久ライセンスを複数提供しています。

  • シングル開発者ライセンス: $499、1人の開発者と1台のデプロイメントマシンをサポート
  • シングルデベロッパーOEMライセンス: $799、1人の開発者をサポートし、無制限に展開できるマシンをサポートします
  • 5-開発者ライセンス: $799、最大5人の開発者と最大10台のデプロイメントマシンをサポート
  • 5名の開発者向けOEMライセンス: $1,099、最大5名の開発者と無制限のデプロイマシンをサポート
  • Enterpriseライセンス: $1,199、無制限の開発者をサポートし、最大100台のデプロイメントマシンをサポートします。
  • エンタープライズOEMライセンス: $1,599、無制限の開発者と無制限のデプロイメントマシンをサポート

ドキュメントとサポート:IronPDF vs. SelectPdf

IronPDF

IronPDFは、充実したドキュメントとサポートを提供することに優れています。

  • 包括的なドキュメント: すべての機能を網羅した広範でユーザーフレンドリーなドキュメント。
  • 24/5 サポート: アクティブなエンジニアサポートが利用可能です。
  • ビデオチュートリアル:YouTubeでステップバイステップのビデオガイドが利用可能です。
  • コミュニティフォーラム: 追加サポートに積極的なコミュニティ。
  • 定期更新: 最新の機能とセキュリティパッチを確保するための毎月の製品更新。

    詳細については、IronPDFの充実したドキュメントライブラリを確認し、IronSoftware YouTube チャンネルを訪問してください。

SelectPdf ドキュメントとサポート

  • 詳細なドキュメント: SelectPdf が提供するすべての機能について、コード例と共にカバーしています。
  • メールサポート: 技術的およびライセンスに関する問い合わせに利用可能です。
  • プロフェッショナルサービス: 複雑な実装のための有料サポート、例えば1年間の保守計画など

結論

PDFプロジェクトに適したPDFライブラリを用意することは、PDFを扱う際に不可欠です。 今日は、IronPDFとSelectPdfを使った動作を見て、これら二つのライブラリを詳しく調べました。 SelectPdfは、PDFを操作するための堅実な機能を幅広く提供していますが、多くの場合、それらを実装するのにIronPDFよりも多くの作業が必要になることがあります。

IronPDFは、堅牢なPDF機能を必要とする.NET開発者にとって、汎用性が高く包括的なソリューションとして際立っています。 その広範な機能、最新の .NET フレームワークとの互換性、そして優れたサポートにより、開発者のツールキットに追加するための強力なツールとなります。

30日間の無料トライアルを試して、利用可能な機能を確認できます。

チペゴ
ソフトウェアエンジニア
チペゴは優れた傾聴能力を持ち、それが顧客の問題を理解し、賢明な解決策を提供する助けとなっています。彼は情報技術の学士号を取得後、2023年にIron Softwareチームに加わりました。現在、彼はIronPDFとIronOCRの2つの製品に注力していますが、顧客をサポートする新しい方法を見つけるにつれて、他の製品に関する知識も日々成長しています。Iron Softwareでの協力的な生活を楽しんでおり、さまざまな経験を持つチームメンバーが集まり、効果的で革新的な解決策を提供することに貢献しています。チペゴがデスクを離れているときは、良い本を楽しんだり、サッカーをしていることが多いです。
< 以前
IronPDF対Devexpress PDF Viewerの比較
次へ >
IronPDFとEvoPdfの比較