透かしなしで本番環境でテストしてください。
必要な場所で動作します。
30日間、完全に機能する製品をご利用いただけます。
数分で稼働させることができます。
製品トライアル期間中にサポートエンジニアリングチームへの完全アクセス
優れた使いやすいPDF操作ツールは、PDFの生成および変更に関連する多くのプロセスやタスクを簡素化することができます。 .NETフレームワーク内では、IronPDFとSyncfusionは、Adobeへの依存なしにPDFドキュメントの作成、編集、変換のために使用される2つの強力なライブラリです。 この記事では、IronPDFとSyncfusionを個々の特性、ドキュメント、およびライセンス料に基づいて比較します。
IronPDFは、.NET開発者のために設計された包括的で多機能なPDFライブラリで、.NET Coreアプリケーションでもうまく機能します。 さまざまなソースからPDFドキュメントを作成、編集、およびレンダリングする機能を提供します。HTMLファイル、画像ファイル、およびURLが含まれます。
IronPDFの機能を探索する は、統合のしやすさと、CSS3、HTML5、JavaScriptなどの最新のウェブ標準をサポートする豊富な機能セットで広く使用されています。 このライブラリが他と一線を画しているのは、少ないコード行数でピクセルパーフェクトなPDFを生成できることで、PDFのような複雑なファイル形式に精通していない人にも適しています。
Syncfusion .NET Core PDFライブラリは、.NETアプリケーション向けの様々なPDF操作機能を提供します。 開発者がプログラムでPDFドキュメントを作成、読取り、編集することを可能にします。 Syncfusionは堅実な機能セットを提供しますが、IronPDFと比べると学習曲線が急である可能性があります。 このライブラリは、広範なドキュメントとコミュニティサポートで知られており、PDFソリューションを求める開発者にとって有力なオプションとなっています。
IronPDFのクロスプラットフォーム機能を表示とSyncfusionの基本的なPDFライブラリの両方は、複数のプラットフォームとの互換性が非常に高いです。 彼らは.NETフレームワーク内だけでなく、多くの異なるシステムでPDFを処理することができます。 このため、各製品がどのフレームワークやプラットフォームをサポートしているかの概要を説明します。
.NET バージョン:
(C#、VB.NET、F#)
.NET Core(8、7、6、5、および3.1+)。
Windows、Mac、Linuxをサポート
IronPDFの互換性について詳しくは、IronPDF Features Overviewをご覧ください。
IronPDFとSyncfusionはどちらもPDF操作のためのさまざまな機能を提供していますので、これらの2つのライブラリを比較する際には、それぞれのライブラリが提供する具体的な機能を確認することが重要です。 これらの機能について詳しく説明する前に、いくつかの重要な機能の概要を見てみましょう。
PDF圧縮: ユーザーはPDFドキュメントを圧縮してスペースを節約できます。
IronPDFの詳細な機能を探索してください。
HTMLからPDFへの変換の仕組みを発見し、さまざまな職場や環境でのシンプルでありながら重要な作業を体験しましょう。 以下のコード例では、IronPDFとSyncfusionがこのプロセスをどのように処理するかを比較しています。
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>");
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>");
pdf.SaveAs("output.pdf");
// Advanced Example with HTML Assets
// Load external HTML assets: images, CSS and JavaScript.
// An optional BasePath 'C:\site\assets\' is set as the file location to load assets from
var myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"C:\site\assets\");
myAdvancedPdf.SaveAs("html-with-assets.pdf");
Imports IronPdf
' Disable local disk access or cross-origin requests
Installation.EnableWebSecurity = True
' Instantiate Renderer
Dim renderer = New ChromePdfRenderer()
' Create a PDF from an HTML string using C#
Dim pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>")
pdf.SaveAs("output.pdf")
' Advanced Example with HTML Assets
' Load external HTML assets: images, CSS and JavaScript.
' An optional BasePath 'C:\site\assets\' is set as the file location to load assets from
Dim myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", "C:\site\assets\")
myAdvancedPdf.SaveAs("html-with-assets.pdf")
Syncfusion例:
using Syncfusion.Pdf;
using Syncfusion.HtmlConverter;
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
PdfDocument document = htmlConverter.Convert("http://www.syncfusion.com");
FileStream fileStream = new FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite);
document.Save(fileStream);
document.Close(true);
using Syncfusion.Pdf;
using Syncfusion.HtmlConverter;
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
PdfDocument document = htmlConverter.Convert("http://www.syncfusion.com");
FileStream fileStream = new FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite);
document.Save(fileStream);
document.Close(true);
Imports Syncfusion.Pdf
Imports Syncfusion.HtmlConverter
Private htmlConverter As New HtmlToPdfConverter()
Private document As PdfDocument = htmlConverter.Convert("http://www.syncfusion.com")
Private fileStream As New FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite)
document.Save(fileStream)
document.Close(True)
HTMLをPDFに変換する際、IronPDFはユーザーに多くの制御を提供しながら、簡単で効率的な方法を提供します。 IronPDF は最新のウェブ標準に対して優れたサポートを提供しており、ウェブページから高忠実度の PDF ドキュメントを生成することができます。 Syncfusion は、シンプルなURLおよびHTMLコンテンツの変換のための簡単なツールを提供しています。 ただし、先進的なウェブ標準には対応していません。
さまざまな職場環境でどのようにPDF暗号化と復号化が重要であるかを確認してください。 このタスクを簡単に処理できるツールは、さらに不可欠です。 次のコード例でIronPDFとSyncfusionがどのように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")
Syncfusion例:
using Syncfusion.Pdf;
PdfLoadedDocument document = new PdfLoadedDocument("input.pdf");
PdfSecurity security = document.Security;
security.UserPassword = "syncfusion";
security.Algorithm = PdfEncryptionAlgorithm.AES;
security.KeySize = PdfEncryptionKeySize.Key256Bit;
security.Permissions = PdfPermissionsFlags.Print
document.Save("encrypted.pdf");
document.Close(true);
using Syncfusion.Pdf;
PdfLoadedDocument document = new PdfLoadedDocument("input.pdf");
PdfSecurity security = document.Security;
security.UserPassword = "syncfusion";
security.Algorithm = PdfEncryptionAlgorithm.AES;
security.KeySize = PdfEncryptionKeySize.Key256Bit;
security.Permissions = PdfPermissionsFlags.Print
document.Save("encrypted.pdf");
document.Close(true);
Imports Syncfusion.Pdf
Private document As New PdfLoadedDocument("input.pdf")
Private security As PdfSecurity = document.Security
security.UserPassword = "syncfusion"
security.Algorithm = PdfEncryptionAlgorithm.AES
security.KeySize = PdfEncryptionKeySize.Key256Bit
security.Permissions = PdfPermissionsFlags.Print document.Save("encrypted.pdf")
document.Close(True)
IronPDF は、ユーザーに強力でありながら簡潔でわかりやすい暗号化ツールを提供します。 これを使用すると、ユーザーは暗号化されたPDFのセキュリティ設定を管理しながら、簡単にPDFを暗号化することができます。 Syncfusion の暗号化ツールは直感的ではなく、2種類の暗号化を提供しています。これは最終的にユーザーに暗号化のニーズに合わせたより多くのオプションを提供しますが、それはまた、このツールを使用する前にユーザーがより多くの作業と調査を行う必要があることも意味しています。
時には、プライベートまたは機密データを扱う際に、PDF ドキュメントの一部をPDF のテキストを編集したいことがあります。 以下のコードサンプルでは、IronPDFとSyncfusionを使用してどのように編集を実現できるかを見ていきます。
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")
Syncfusion例:
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
PdfRedaction textRedaction = new PdfRedaction(new RectangleF(10, 40, 30, 30), Color.Black);
loadedDocument.Pages[0].Redactions.Add(textRedaction);
loadedDocument.Save("redacted.pdf");
loadedDocument.Close(true);
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
PdfRedaction textRedaction = new PdfRedaction(new RectangleF(10, 40, 30, 30), Color.Black);
loadedDocument.Pages[0].Redactions.Add(textRedaction);
loadedDocument.Save("redacted.pdf");
loadedDocument.Close(true);
Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Private loadedDocument As New PdfLoadedDocument("input.pdf")
Private textRedaction As New PdfRedaction(New RectangleF(10, 40, 30, 30), Color.Black)
loadedDocument.Pages(0).Redactions.Add(textRedaction)
loadedDocument.Save("redacted.pdf")
loadedDocument.Close(True)
IronPDF は、PDFコンテンツの修正に対して直接的かつ簡潔なアプローチを取ります。 シンプルで直感的なAPIを備えており、ユーザーがプログラムでコンテンツを再編集できるため、作業領域の効率が向上します。 Syncfusion は、PDFコンテンツの編集、削除、編集済み領域にテキストを表示する方法、および上記のように編集済み領域に画像を描画する方法を提供します。 Syncfusionの赤字ツールはプロセスに対して多くの制御を提供しますが、より手動のプロセスが含まれ、学習曲線が急になる可能性があります。
PDFドキュメントの電子署名プロセスを自動化することで、大幅な時間の節約になります。ここに、IronPDFとSyncfusionのドキュメント署名における比較を示すコードサンプルがあります。
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")
Syncfusion例:
using Syncfusion.Pdf;
using System.Drawing;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
PdfCertificate certificate = new PdfCertificate("Syncfusion.pfx", "password");
PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0], certificate, "Signature");
signature.Bounds = new RectangleF(0, 0, 100, 50);
loadedDocument.Save("signed.pdf");
loadedDocument.Close(true);
using Syncfusion.Pdf;
using System.Drawing;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
PdfCertificate certificate = new PdfCertificate("Syncfusion.pfx", "password");
PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0], certificate, "Signature");
signature.Bounds = new RectangleF(0, 0, 100, 50);
loadedDocument.Save("signed.pdf");
loadedDocument.Close(true);
Imports Syncfusion.Pdf
Imports System.Drawing
Private loadedDocument As New PdfLoadedDocument("input.pdf")
Private certificate As New PdfCertificate("Syncfusion.pfx", "password")
Private signature As New PdfSignature(loadedDocument, loadedDocument.Pages(0), certificate, "Signature")
signature.Bounds = New RectangleF(0, 0, 100, 50)
loadedDocument.Save("signed.pdf")
loadedDocument.Close(True)
IronPDF は、PDF ドキュメントにデジタル署名を適用するための簡単な方法を提供し、より少ない行のコードを必要とするため、プロセスを迅速かつ簡単にします。 比較すると、Syncfusion はより多くのコード行を必要とするため、より効率的でないオプションとなります。
プログラムを使用してPDFファイルにPDFウォーターマークを追加およびカスタマイズする機能は、機密文書を扱う際に、機密性の保護や著作権保護、ブランディングなどのタスクに非常に役立ちます。 以下は、PDFドキュメントにウォーターマークを追加する際のIronPDFとSyncfusionの比較です。
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")
Syncfusion例:
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using System.Drawing;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Add a page to the document pdfpage page
PdfPageBase page = loadedDocument.Pages[0];
PdfGraphics graphics = page.Graphics;
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
PdfGraphicsState state = graphics.Save();
graphics.SetTransparency(0.25f);
graphics.DrawString("Watermark", font, PdfPens.Blue, PdfBrushes.Blue, new PointF(100, 100));
graphics.Restore(state);
loadedDocument.Save("watermarked.pdf");
loadedDocument.Close(true);
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using System.Drawing;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Add a page to the document pdfpage page
PdfPageBase page = loadedDocument.Pages[0];
PdfGraphics graphics = page.Graphics;
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
PdfGraphicsState state = graphics.Save();
graphics.SetTransparency(0.25f);
graphics.DrawString("Watermark", font, PdfPens.Blue, PdfBrushes.Blue, new PointF(100, 100));
graphics.Restore(state);
loadedDocument.Save("watermarked.pdf");
loadedDocument.Close(true);
Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Imports System.Drawing
Private loadedDocument As New PdfLoadedDocument("input.pdf")
'Add a page to the document pdfpage page
Private page As PdfPageBase = loadedDocument.Pages(0)
Private graphics As PdfGraphics = page.Graphics
Private font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20)
Private state As PdfGraphicsState = graphics.Save()
graphics.SetTransparency(0.25F)
graphics.DrawString("Watermark", font, PdfPens.Blue, PdfBrushes.Blue, New PointF(100, 100))
graphics.Restore(state)
loadedDocument.Save("watermarked.pdf")
loadedDocument.Close(True)
IronPDF のシンプルで効果的なAPIは、ユーザーがHTML/CSSを使用することでPDFドキュメントにすばやくウォーターマークを適用し、プロセス全体をより制御することを可能にします。 この機能により、ユーザーは要件に応じてパーソナライズされた透かしを追加することが簡単になります。 しかし、Syncfusionは、その透かしツールの複雑さのために効率が劣る可能性があります。 Syncfusionの場合、初心者はすべてを手作業で行う必要があるため、そのような作業に関するこのソフトウェアの学習曲線が急であることを考慮すると、仕組みを理解するまでに時間がかかります。
ウォーターマークを適用する場合と同様に、PDFページに何かをスタンプする必要があるときもあります。 さて、IronPDFとSyncfusionが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");
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");
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")
using IronPdf;
using IronPdf.Editing;
using System;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");
// Create image stamper
ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg"))
{
VerticalAlignment = VerticalAlignment.Top,
};
// Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0);
pdf.SaveAs("stampImage.pdf");
using IronPdf;
using IronPdf.Editing;
using System;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");
// Create image stamper
ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg"))
{
VerticalAlignment = VerticalAlignment.Top,
};
// Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0);
pdf.SaveAs("stampImage.pdf");
Imports IronPdf
Imports IronPdf.Editing
Imports System
Private renderer As New ChromePdfRenderer()
Private pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>")
' Create image stamper
Private imageStamper As New ImageStamper(New Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg")) With {.VerticalAlignment = VerticalAlignment.Top}
' Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0)
pdf.SaveAs("stampImage.pdf")
Syncfusion例:
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using System.Drawing;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
PdfPageBase page = loadedDocument.Pages[0];
PdfGraphics graphics = page.Graphics;
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12);
graphics.DrawString("Hello, World!", font, PdfBrushes.Black, new PointF(10, 10));
loadedDocument.Save("stamped.pdf");
loadedDocument.Close(true);
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using System.Drawing;
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
PdfPageBase page = loadedDocument.Pages[0];
PdfGraphics graphics = page.Graphics;
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12);
graphics.DrawString("Hello, World!", font, PdfBrushes.Black, new PointF(10, 10));
loadedDocument.Save("stamped.pdf");
loadedDocument.Close(true);
Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Imports System.Drawing
Private loadedDocument As New PdfLoadedDocument("input.pdf")
Private page As PdfPageBase = loadedDocument.Pages(0)
Private graphics As PdfGraphics = page.Graphics
Private font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12)
graphics.DrawString("Hello, World!", font, PdfBrushes.Black, New PointF(10, 10))
loadedDocument.Save("stamped.pdf")
loadedDocument.Close(True)
IronPDF は、ユーザーがテキストと画像でPDFドキュメントにスタンプを押すことを非常に柔軟かつカスタマイズ可能な方法で行うことを可能にします。 それは、全体のプロセスを彼らの管理下に置くことによって彼らに力を与えます。 APIは、特にHTML/CSSの知識を持っている人にとって、理解しやすく使いやすいです。 Syncfusionのスタンピングプロセスは、テキストよりも画像に重点を置いており、より複雑ですが、それでもユーザーにはプロセスに対する多くの制御が提供されます。しかし、このツールにはかなり急な学習曲線が伴う可能性があります。
PDFを作成する際、異なる形式から変更する必要がある場合があります。 この場合、DOCXからPDFへの変換を見て、IronPDFとSyncfusionがこのプロセスをどのように処理するかを比較します。
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")
Syncfusion例:
using System.IO;
using Syncfusion.DocIO.DLS;
using Syncfusion.DocIORenderer;
using Syncfusion.OfficeChart;
using Syncfusion.Pdf;
WordDocument document = new WordDocument("sample.docx", FormatType.Docx);
DocToPDFConverter converter = new DocToPDFConverter();
document.ChartToImageConverter = new ChartToImageConverter();
PdfDocument pdf = converter.ConvertToPDF(document);
pdf.Save("output.pdf");
pdf.Close(true);
wordDocument.Close();
using System.IO;
using Syncfusion.DocIO.DLS;
using Syncfusion.DocIORenderer;
using Syncfusion.OfficeChart;
using Syncfusion.Pdf;
WordDocument document = new WordDocument("sample.docx", FormatType.Docx);
DocToPDFConverter converter = new DocToPDFConverter();
document.ChartToImageConverter = new ChartToImageConverter();
PdfDocument pdf = converter.ConvertToPDF(document);
pdf.Save("output.pdf");
pdf.Close(true);
wordDocument.Close();
Imports System.IO
Imports Syncfusion.DocIO.DLS
Imports Syncfusion.DocIORenderer
Imports Syncfusion.OfficeChart
Imports Syncfusion.Pdf
Private document As New WordDocument("sample.docx", FormatType.Docx)
Private converter As New DocToPDFConverter()
document.ChartToImageConverter = New ChartToImageConverter()
Dim pdf As PdfDocument = converter.ConvertToPDF(document)
pdf.Save("output.pdf")
pdf.Close(True)
wordDocument.Close()
IronPDFは、DOCXファイルをPDFに変換するためのシンプルで分かりやすい方法を使用します。 これは、さまざまな種類のドキュメントから高品質なPDFを生成するChromePdfRendererを使用して行われます。 すべてがIronPDFライブラリに統合されているため、異なるファイル形式をPDFに変換する際や、変換後に保存する際に追加のインストールは必要ありません。 Syncfusion PDF、ただし、単独ではこの種類の変換を実行できません; プロジェクトに対してそのような変換を完了する前に、事前にSyncfusion Wordをインストールしておく必要があります。
IronPDFライセンスオプションを探ることで、ライセンスを購入するためのさまざまなレベルと追加機能が提供されます。 開発者は、すべての製品のIron Suiteライセンスオプションを購入することもできます。これにより、Iron Softwareのすべての製品に、2つの価格でアクセスできます。 ライセンスを購入する準備ができていない場合、IronPDFでは30日間の無料トライアルを提供しています。
Iron Suite: $1,498で、IronPDF、IronOCR、IronWord、IronXL、IronBarcode、IronQR、IronZIP、IronPrint、IronWebScraperを含むすべてのIron Software製品にアクセスできます。
Syncfusionは、さまざまな開発者のニーズに合わせて、さまざまなライセンスと階層を提供しています。 どのライセンスタイプにも、24時間サポート、リモートサポートへのアクセス、無制限のバグおよび機能リクエスト、オンラインサポートシステムが付属しています。
Team Licenses: チームライセンスは開発者チーム向けのライセンスで、この範囲内に3つの階層があります。
最大5人の開発者チーム: 月額$395
Unlimited License: これらのライセンスタイアには固定価格がなく、見積もりシステムで運用されています。
プロジェクトライセンス: 1 つの指定されたプロジェクトまたはアプリケーション
リソース: Syncfusionは電子書籍、ウェビナー、技術的なFAQなどを提供しています。
IronPDF のドキュメントとサポートの詳細については、IronPDF ドキュメント と IronPDF YouTube チャンネル をご覧ください。
結論として、.NET CoreのPDF操作ライブラリを選ぶ際には、IronPDFが優れたオプションとして浮上します。 その豊富な機能セット、使いやすさ、そして充実したサポートとドキュメントにより、開発者にとって理想的な選択肢です。 IronPDFは、HTMLからPDFへの変換、暗号化、編集禁止、デジタル署名、透かしなど、さまざまな側面で優れており、これらのタスクに対して効率的なソリューションを提供します。 さらに、IronPDFの価格設定とライセンスオプションはより明確であり、さまざまなチームサイズやプロジェクトのニーズに対応しているため、多くの開発者にとってコスト効果の高い選択肢となっています。
一方、Syncfusion PDF for .NET Coreは優れたライブラリですが、同様のタスクを実行するには学習曲線が急で、より多くの手動操作が必要になることが多いです。 Syncfusionは堅実な機能群を提供していますが、IronPDFの直感的な使いやすさと柔軟性には欠けています。 ただし、Syncfusionの他のツールと組み合わせて使用することで、そのスキルセットをさらに拡張することができます。例えば、ASP.NET PDF ViewerやSyncfusion Wordなどです。
.NETフレームワーク内で信頼性が高く、強力で使いやすいPDFライブラリを探している方には、IronPDFが明確な選択肢として際立っています。その堅牢な機能、ユーザーサポート、柔軟なライセンスオプションの組み合わせにより、PDFを扱う開発者にとってかけがえのないツールとなっています。
30日間の無料トライアルを試して、利用可能な機能を確認できます。