製品比較

IronPDFとSelectPDFの比較

更新済み 5月 16, 2022
共有:

イントロダクション

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コア (8, 7, 6, 5, および3.1+)

    • .NETスタンダード (2.0以上)
  • .NETフレームワーク (4.6.2+)
  • アプリ環境: IronPDFは、Windows、Linux、Mac、Docker、Azure、AWSを含む環境で動作します。
  • IDEs: Microsoft Visual Studio や JetBrains Rider & ReSharper などの IDEs と互換性があります
  • OSとプロセッサ: Windows、Mac、Linux、x64、x86、ARMを含む複数の異なるOSおよびプロセッサをサポート

    詳細については、こちらをご覧ください IronPDFの互換性.

セレクトPdf

  • .NET バージョン:

    • .NET Framework 4.0+

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

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

IronPDF (アイアンPDF)

  • 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生成: HTML文字列のソースやウェブページなどのHTMLコンテンツからPDF文書を生成したり、一から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
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#

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

IronPDFの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");
<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>
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 &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")
'INSTANT VB TODO TASK: The following line uses invalid syntax:
'<br>
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#

お探しの際に 暗号化 あなたの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")
VB   C#

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("&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#

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#

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("&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#

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#

IronPDFの組み込み 透かしツール HTMLとCSSを利用してPDFページに透かしを簡単に適用する方法を提供し、同時にプロセス全体を完全に制御することができます。そのすべてを、わずか数行のコードで行うことができます。 SelectPdfにもPDF透かしツールがあり、これを使用してカスタム透かしをPDFに追加できますが、プロセスが長く、実装が簡単ではないかもしれません。

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#

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は、強力なツールを提供しています テキストと画像のスタンピング 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");
<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#

SelectPdf:

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

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

IronPDFのDOCXからPDFへの変換機能の詳細については、こちらをご覧ください。 使い方 このトピックに関するガイド。

機能比較の概要

IronPDFとSelectPDFの比較: 図1

詳細なコード例については、次を参照ください IronPDFの例.

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

IronPDFの価格とライセンス

IronPDF ライセンスの購入には異なるレベルと追加機能があります。 開発者は、また、購入することができます アイアンスイート すべてのIronSoftwareの製品にアクセスできることを、2つの価格で提供します。 ライセンスを購入する準備ができていない場合、IronPDF は 無料試用 30日間持続する。

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

  • IronSuite: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 (アイアンPDF)

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

  • 包括的なドキュメント:すべての機能を網羅した分かりやすいドキュメント。
  • 24/5 サポート: エンジニアによるサポートが利用可能です。
  • ビデオチュートリアル:ステップバイステップのビデオガイドがYouTubeで利用できます。
  • コミュニティフォーラム: 追加サポートのための積極的なコミュニティ。

  • 定期的な更新: 最新機能とセキュリティパッチを確保するための月次製品アップデート。

    詳しくは、IronPDFの幅広い情報をご覧ください。 ドキュメント、そして訪問してください IronSoftware YouTubeチャネル.

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

  • 詳細なドキュメント: SelectPdfが提供するすべての機能の側面を網羅し、コード例も含まれています。
  • Email Support: 技術的およびライセンスに関する問い合わせに対応します。

  • プロフェッショナルサービス: 1年間のメンテナンスプランなどの複雑な実装のための有料サポート

結論

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

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

< 以前
IronPDF対Devexpress PDF Viewerの比較
次へ >
IronPDFとEVOPDFの比較 IronPDFとEVOPDFはどちらも、PDF操作のための強力なツールです。以下では、それぞれのツールの特徴を比較して、特にそれぞれのメリットとデメリットを考察します。 ### IronPDF - **長所**: - 簡単なインターフェースで迅速な開発が可能 - .NETフレームワークと高い互換性 - 詳細なドキュメントとサポートが豊富 - HTMLからPDFへの変換が強力 - **短所**: - 初心者にはやや複雑に感じることがある - 他の一部のツールよりも高価 ### EVOPDF - **長所**: - 高速な処理能力 - フレキシブルな価格設定 - さまざまなプラットフォームと互換性がある - **短所**: - ドキュメントやサポートが不足している場合がある - 一部の機能でIronPDFに劣る場合がある それぞれのツールが異なるニーズに応じた機能を提供しています。開発者は、自分のプロジェクトに最適な選択をするために、これらの特徴を慎重に比較検討することが重要です。

準備はできましたか? バージョン: 2024.9 新発売

無料のNuGetダウンロード 総ダウンロード数: 10,659,073 View Licenses >