IronPDFを使用して.NET CoreでPDFファイルを生成する方法
PDFPrinting.NETからIronPDFに移行することで、PDFの機能を印刷のみのライブラリから、作成、操作、抽出、セキュリティ、印刷を含む完全なPDFライフサイクルを扱う包括的なソリューションへと拡張することができます。 このガイドでは、既存の印刷ワークフローを維持しながら、PDF生成、HTML変換、クロスプラットフォームサポート機能を追加する、完全でステップバイステップの移行パスを提供します。
PDFPrinting.NETからIronPDFに移行する理由
PDFPrinting.NETを理解する
PDFPrinting.NET (Terminalworks; NuGet PdfPrintingNet) は、Windows環境内でのサイレントPDF印刷に特化したライブラリです。 既存のPDFを静かに印刷することに専念したツールとして、ユーザーの介入なしにプログラムでドキュメントをプリンターに送るタスクを簡素化します。 新しいエントリポイントはPdfPrintクラスです; 古いコードはまだレガシーなTerminalWorks.PDFPrinting.PDFPrinterを参照しているかもしれません。
主要な強みはサイレント印刷です — 通常の印刷ダイアログウィンドウをバイパスして完全に自動化されたワークフローが無事に動作することを可能にします。
印刷中心の制限
PDFPrinting.NETは限定された操作に集中しており、新しいPDFコンテンツを作成することはありません。 その範囲は印刷、表示、基本的な編集、および既存のドキュメントのラスタライズです:
-
印刷中心: 新しいPDFコンテンツを作成しない — 既存のPDFを印刷、表示、編集、ラスタライズします。
-
Windows専用印刷: Windows印刷インフラストラクチャに縛られており、クロスプラットフォームの使用可能性を制限します。
-
HTML/URL-to-PDF APIがありません:
WebPageToPdfConverterクラスはありません — これらの機能はAPI表面には存在しません。 -
制限された操作: 基本的なマージ/分割/抽出は
PdfPrintDocumentを通じて利用可能です; ウォーターマーキングや現代のコンテンツ制作はありません。 -
包括的なテキスト抽出面がありません。
- フォーム入力やフラット化がありません。
PDFPrinting.NETとIronPDFの比較
| フィーチャー | PDFPrinting.NET | IronPDF |
|---|---|---|
| 主な機能 | サイレントPDF印刷 | 全サイクルの処理(作成、編集、印刷) |
| プラットフォームサポート | Windowsのみ | クロスプラットフォーム |
| PDF作成/操作機能 | なし | はい |
| HTMLからPDFへの変換。 | なし | はい |
| 自動ワークフローへの適合性 | 高い | 高い |
| 追加の依存関係 | Windowsプリンタに依存 | レンダリングのための内部ブラウザエンジン |
| サイレント印刷 | はい | はい |
| テキスト抽出。 | サポートされていません | サポート対象 |
| ライセンスについて | 商用 | 商用 |
IronPDFはPDFハンドリングの完全なライフサイクルに対応することで、より包括的なソリューションを提供します。 PDFドキュメントの作成、編集、変換、印刷を容易にし、統一されたAPIを通じて開発者に一連の機能を提供します。 PDFPrinting.NETとは異なり、IronPDFは異なるプラットフォーム間で展開することができ、多様な環境で動作するアプリケーションのための汎用的な選択肢となります。
最新 for .NETを利用しているチームにとって、IronPDFは完全なPDFソリューションを提供し、Windows、Linux、およびmacOS環境で動作します。
始める前に
前提条件
- .NET環境: .NET Framework 4.6.2+ または.NET Core 3.1+ / .NET 5/6/7/8/9+
- NuGetアクセス: NuGetパッケージをインストールする機能
- IronPDFライセンス: IronPDFからライセンスキーを取得します。
NuGetパッケージの変更
# Remove PDFPrinting.NET (the actual NuGet ID is PdfPrintingNet)
dotnet remove package PdfPrintingNet
# Install IronPDF
dotnet add package IronPdf
# Remove PDFPrinting.NET (the actual NuGet ID is PdfPrintingNet)
dotnet remove package PdfPrintingNet
# Install IronPDF
dotnet add package IronPdf
ライセンス構成
// Add at application startup (Program.cs or Startup.cs)
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
// Add at application startup (Program.cs or Startup.cs)
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
' Add at application startup (Program.vb or Startup.vb)
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY"
PDFPrinting.NETの使用法を特定する
# Find PDFPrinting.NET usage (newer + legacy namespaces)
grep -rE "PdfPrintingNet|TerminalWorks\.PDFPrinting|PdfPrint\b|PdfPrintDocument|PDFPrinter" --include="*.cs" .
# Find print-related code
grep -r "\.Print(\|PrinterName\|GetPrintDocument" --include="*.cs" .
# Find PDFPrinting.NET usage (newer + legacy namespaces)
grep -rE "PdfPrintingNet|TerminalWorks\.PDFPrinting|PdfPrint\b|PdfPrintDocument|PDFPrinter" --include="*.cs" .
# Find print-related code
grep -r "\.Print(\|PrinterName\|GetPrintDocument" --include="*.cs" .
完全な API リファレンス
名前空間の変更
// Before: PDFPrinting.NET
// Newer API:
using PdfPrintingNet;
// Older code may use:
using TerminalWorks.PDFPrinting;
// After: IronPDF
using IronPdf;
using IronPdf.Rendering;
using IronPdf.Printing;
// Before: PDFPrinting.NET
// Newer API:
using PdfPrintingNet;
// Older code may use:
using TerminalWorks.PDFPrinting;
// After: IronPDF
using IronPdf;
using IronPdf.Rendering;
using IronPdf.Printing;
' Before: PDFPrinting.NET
' Newer API:
Imports PdfPrintingNet
' Older code may use:
Imports TerminalWorks.PDFPrinting
' After: IronPDF
Imports IronPdf
Imports IronPdf.Rendering
Imports IronPdf.Printing
コア クラス マッピング
| PDFPrinting.NET | IronPDF |
|---|---|
PdfPrint (新しい) / PDFPrinter (レガシー) |
PdfDocument + Print() |
PdfPrintDocument |
PdfDocument |
| (HTMLからのPDFクラスは存在しません) | ChromePdfRenderer.RenderHtmlAsPdf |
| (URLからのPDFクラスは存在しません) | ChromePdfRenderer.RenderUrlAsPdf |
| 印刷設定のプロパティ | PrintSettings |
メソッド マッピングを印刷する
| PDFPrinting.NET | IronPDF |
|---|---|
pdfPrint.Print(filePath) |
pdf.Print() |
pdfPrint.PrinterName = "..."; pdfPrint.Print(path) |
pdf.Print(printerName) |
new PdfPrintDocument(...) |
pdf.GetPrintDocument() |
pdfPrint.Copies = n |
printSettings.NumberOfCopies = n |
pdfPrint.Duplex = true |
printSettings.DuplexMode = Duplex.Vertical |
pdfPrint.Collate = true |
printSettings.Collate = true |
PDFPrinting.NETでは利用できない新機能
| IronPDFの特徴 | 翻訳内容 |
|---|---|
renderer.RenderHtmlAsPdf(html) |
HTMLからPDFへの変換 |
renderer.RenderUrlAsPdf(url) |
URLからPDFへの変換 |
PdfDocument.Merge(pdfs) |
複数のPDFをマージ |
pdf.ApplyWatermark(html) |
透かしの追加 |
pdf.SecuritySettings.UserPassword |
パスワード保護 |
pdf.ExtractAllText() |
テキスト抽出 |
コード移行の例
例1: HTMLからPDFへの変換
以前の(PDFPrinting.NET): PDFPrinting.NETにはHTML-to-PDF APIがありません — HtmlToPdfConverterクラスはありません。 最も近いワークフローは、別のライブラリでPDFを生成し、その後に印刷またはファイルを引き継ぐことです:
// NuGet: Install-Package PdfPrintingNet
using PdfPrintingNet;
using System;
class Program
{
static void Main()
{
// Step 1: Produce the PDF with another library (PDFPrinting.NET cannot).
// Step 2: Print the existing PDF file.
var pdfPrint = new PdfPrint("license-owner", "license-key");
var status = pdfPrint.Print("output.pdf");
Console.WriteLine($"Printed: {status}");
}
}
// NuGet: Install-Package PdfPrintingNet
using PdfPrintingNet;
using System;
class Program
{
static void Main()
{
// Step 1: Produce the PDF with another library (PDFPrinting.NET cannot).
// Step 2: Print the existing PDF file.
var pdfPrint = new PdfPrint("license-owner", "license-key");
var status = pdfPrint.Print("output.pdf");
Console.WriteLine($"Printed: {status}");
}
}
Imports PdfPrintingNet
Imports System
Class Program
Shared Sub Main()
' Step 1: Produce the PDF with another library (PDFPrinting.NET cannot).
' Step 2: Print the existing PDF file.
Dim pdfPrint = New PdfPrint("license-owner", "license-key")
Dim status = pdfPrint.Print("output.pdf")
Console.WriteLine($"Printed: {status}")
End Sub
End Class
翻訳後(IronPDF):。
// NuGet: Install-Package IronPdf
using IronPdf;
using System;
class Program
{
static void Main()
{
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
var renderer = new ChromePdfRenderer();
string html = "<html><body><h1>Hello World</h1></body></html>";
var pdf = renderer.RenderHtmlAsPdf(html);
pdf.SaveAs("output.pdf");
Console.WriteLine("PDF created successfully");
}
}
// NuGet: Install-Package IronPdf
using IronPdf;
using System;
class Program
{
static void Main()
{
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
var renderer = new ChromePdfRenderer();
string html = "<html><body><h1>Hello World</h1></body></html>";
var pdf = renderer.RenderHtmlAsPdf(html);
pdf.SaveAs("output.pdf");
Console.WriteLine("PDF created successfully");
}
}
Imports IronPdf
Imports System
Class Program
Shared Sub Main()
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY"
Dim renderer As New ChromePdfRenderer()
Dim html As String = "<html><body><h1>Hello World</h1></body></html>"
Dim pdf = renderer.RenderHtmlAsPdf(html)
pdf.SaveAs("output.pdf")
Console.WriteLine("PDF created successfully")
End Sub
End Class
PDFPrinting.NETはPDFを全く著作しないため、移行は一対一のクラス交換ではなく、新しい機能を採用することです。 IronPDFのSaveAs()で保存する前に透かし、マージ、セキュリティなどを行えます。 Chromiumベースのエンジンを活用することで、IronPDFは最新のCSSおよびJavaScriptのレンダリングを高忠実度で再現します。 包括的な例については、HTML to PDF documentationを参照してください。
例2: URLからPDFへの変換
以前の(PDFPrinting.NET): WebPageToPdfConverterクラスは存在しません — PDFPrinting.NETはウェブページのダウンロードやレンダリングをしません。 別のライブラリが最初にURLをPDFとしてキャプチャする必要があります;その後にPDFPrinting.NETは結果のファイルを印刷できます:
// NuGet: Install-Package PdfPrintingNet
using PdfPrintingNet;
using System;
class Program
{
static void Main()
{
// Step 1: Capture the URL with another library (PDFPrinting.NET cannot).
// Step 2: Print the resulting PDF.
var pdfPrint = new PdfPrint("license-owner", "license-key");
var status = pdfPrint.Print("webpage.pdf");
Console.WriteLine($"Printed: {status}");
}
}
// NuGet: Install-Package PdfPrintingNet
using PdfPrintingNet;
using System;
class Program
{
static void Main()
{
// Step 1: Capture the URL with another library (PDFPrinting.NET cannot).
// Step 2: Print the resulting PDF.
var pdfPrint = new PdfPrint("license-owner", "license-key");
var status = pdfPrint.Print("webpage.pdf");
Console.WriteLine($"Printed: {status}");
}
}
Imports PdfPrintingNet
Imports System
Class Program
Shared Sub Main()
' Step 1: Capture the URL with another library (PDFPrinting.NET cannot).
' Step 2: Print the resulting PDF.
Dim pdfPrint As New PdfPrint("license-owner", "license-key")
Dim status = pdfPrint.Print("webpage.pdf")
Console.WriteLine($"Printed: {status}")
End Sub
End Class
翻訳後(IronPDF):。
// NuGet: Install-Package IronPdf
using IronPdf;
using System;
class Program
{
static void Main()
{
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
var renderer = new ChromePdfRenderer();
string url = "https://www.example.com";
var pdf = renderer.RenderUrlAsPdf(url);
pdf.SaveAs("webpage.pdf");
Console.WriteLine("PDF from URL created successfully");
}
}
// NuGet: Install-Package IronPdf
using IronPdf;
using System;
class Program
{
static void Main()
{
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
var renderer = new ChromePdfRenderer();
string url = "https://www.example.com";
var pdf = renderer.RenderUrlAsPdf(url);
pdf.SaveAs("webpage.pdf");
Console.WriteLine("PDF from URL created successfully");
}
}
Imports IronPdf
Imports System
Module Program
Sub Main()
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY"
Dim renderer As New ChromePdfRenderer()
Dim url As String = "https://www.example.com"
Dim pdf = renderer.RenderUrlAsPdf(url)
pdf.SaveAs("webpage.pdf")
Console.WriteLine("PDF from URL created successfully")
End Sub
End Module
IronPDFは単一のRenderUrlAsPdf()がワンコールでウェブキャプチャを処理します。 詳しくは、チュートリアルをご覧ください。
例3: ヘッダーとフッター
以前 (PDFPrinting.NET): PDFPrinting.NETはヘッダーやフッターを作成できません — HTMLやその他のソースからのPDF生成は行わず、ヘッダー/フッター構成APIも提供しません。 すでにそれらを含む場合、このライブラリは印刷できます:
// NuGet: Install-Package PdfPrintingNet
using PdfPrintingNet;
using System;
class Program
{
static void Main()
{
// Headers/footers must already be baked into the PDF.
var pdfPrint = new PdfPrint("license-owner", "license-key");
pdfPrint.Print("report.pdf");
Console.WriteLine("PDF with pre-existing headers/footers printed");
}
}
// NuGet: Install-Package PdfPrintingNet
using PdfPrintingNet;
using System;
class Program
{
static void Main()
{
// Headers/footers must already be baked into the PDF.
var pdfPrint = new PdfPrint("license-owner", "license-key");
pdfPrint.Print("report.pdf");
Console.WriteLine("PDF with pre-existing headers/footers printed");
}
}
Imports PdfPrintingNet
Imports System
Module Program
Sub Main()
' Headers/footers must already be baked into the PDF.
Dim pdfPrint As New PdfPrint("license-owner", "license-key")
pdfPrint.Print("report.pdf")
Console.WriteLine("PDF with pre-existing headers/footers printed")
End Sub
End Module
翻訳後(IronPDF):。
// NuGet: Install-Package IronPdf
using IronPdf;
using IronPdf.Rendering;
using System;
class Program
{
static void Main()
{
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
var renderer = new ChromePdfRenderer();
renderer.RenderingOptions.HtmlHeader = new HtmlHeaderFooter()
{
HtmlFragment = "<div style='text-align:center'>Company Report</div>"
};
renderer.RenderingOptions.HtmlFooter = new HtmlHeaderFooter()
{
HtmlFragment = "<div style='text-align:center'>Page {page} of {total-pages}</div>"
};
string html = "<html><body><h1>Document Content</h1></body></html>";
var pdf = renderer.RenderHtmlAsPdf(html);
pdf.SaveAs("report.pdf");
Console.WriteLine("PDF with headers/footers created");
}
}
// NuGet: Install-Package IronPdf
using IronPdf;
using IronPdf.Rendering;
using System;
class Program
{
static void Main()
{
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY";
var renderer = new ChromePdfRenderer();
renderer.RenderingOptions.HtmlHeader = new HtmlHeaderFooter()
{
HtmlFragment = "<div style='text-align:center'>Company Report</div>"
};
renderer.RenderingOptions.HtmlFooter = new HtmlHeaderFooter()
{
HtmlFragment = "<div style='text-align:center'>Page {page} of {total-pages}</div>"
};
string html = "<html><body><h1>Document Content</h1></body></html>";
var pdf = renderer.RenderHtmlAsPdf(html);
pdf.SaveAs("report.pdf");
Console.WriteLine("PDF with headers/footers created");
}
}
Imports IronPdf
Imports IronPdf.Rendering
Imports System
Module Program
Sub Main()
IronPdf.License.LicenseKey = "YOUR-LICENSE-KEY"
Dim renderer As New ChromePdfRenderer()
renderer.RenderingOptions.HtmlHeader = New HtmlHeaderFooter() With {
.HtmlFragment = "<div style='text-align:center'>Company Report</div>"
}
renderer.RenderingOptions.HtmlFooter = New HtmlHeaderFooter() With {
.HtmlFragment = "<div style='text-align:center'>Page {page} of {total-pages}</div>"
}
Dim html As String = "<html><body><h1>Document Content</h1></body></html>"
Dim pdf = renderer.RenderHtmlAsPdf(html)
pdf.SaveAs("report.pdf")
Console.WriteLine("PDF with headers/footers created")
End Sub
End Module
IronPDFはHtmlFragmentプロパティを使用します。 レンダー時に{total-pages}などのプレースホルダーが置き換えられます。
重要な移行に関する注意事項
ヘッダー/フッタープレースホルダーはIronPDF専用の機能
PDFPrinting.NETには全くヘッダーやフッターの作成APIがないため、移行するプレースホルダー構文はありません。 IronPDFは{total-pages}プレースホルダーをサポートしています:
//IronPDFplaceholders
"Page {page} of {total-pages}"
//IronPDFplaceholders
"Page {page} of {total-pages}"
ロードしてから印刷するパターン
PDFPrinting.NETはファイルパスを直接Print()に渡します;IronPDFは最初にドキュメントを読み込みます:
// PDFPrinting.NET: Direct path to Print()
pdfPrint.Print("document.pdf");
// IronPDF: Load first, then operate
var pdf = PdfDocument.FromFile("document.pdf");
pdf.Print();
// PDFPrinting.NET: Direct path to Print()
pdfPrint.Print("document.pdf");
// IronPDF: Load first, then operate
var pdf = PdfDocument.FromFile("document.pdf");
pdf.Print();
' PDFPrinting.NET: Direct path to Print()
pdfPrint.Print("document.pdf")
' IronPDF: Load first, then operate
Dim pdf = PdfDocument.FromFile("document.pdf")
pdf.Print()
印刷設定の移行
PDFPrinting.NETはPdfPrintのプロパティを使用します; IronPDFは設定オブジェクトを使用します:
// PDFPrinting.NET: Properties on PdfPrint
pdfPrint.Copies = 2;
pdfPrint.Duplex = true;
// IronPDF: Settings object
var settings = new PrintSettings
{
NumberOfCopies = 2,
DuplexMode = System.Drawing.Printing.Duplex.Vertical
};
pdf.Print(settings);
// PDFPrinting.NET: Properties on PdfPrint
pdfPrint.Copies = 2;
pdfPrint.Duplex = true;
// IronPDF: Settings object
var settings = new PrintSettings
{
NumberOfCopies = 2,
DuplexMode = System.Drawing.Printing.Duplex.Vertical
};
pdf.Print(settings);
' PDFPrinting.NET: Properties on PdfPrint
pdfPrint.Copies = 2
pdfPrint.Duplex = True
' IronPDF: Settings object
Dim settings As New PrintSettings With {
.NumberOfCopies = 2,
.DuplexMode = System.Drawing.Printing.Duplex.Vertical
}
pdf.Print(settings)
移行後の新機能
IronPDFに移行すると、PDFPrinting.NETでは提供できない機能を得ることができます:
PDFマージ
var pdf1 = PdfDocument.FromFile("document1.pdf");
var pdf2 = PdfDocument.FromFile("document2.pdf");
var merged = PdfDocument.Merge(pdf1, pdf2);
merged.SaveAs("merged.pdf");
var pdf1 = PdfDocument.FromFile("document1.pdf");
var pdf2 = PdfDocument.FromFile("document2.pdf");
var merged = PdfDocument.Merge(pdf1, pdf2);
merged.SaveAs("merged.pdf");
Dim pdf1 = PdfDocument.FromFile("document1.pdf")
Dim pdf2 = PdfDocument.FromFile("document2.pdf")
Dim merged = PdfDocument.Merge(pdf1, pdf2)
merged.SaveAs("merged.pdf")
ウォーターマーク
pdf.ApplyWatermark("<h2 style='color:red;'>CONFIDENTIAL</h2>");
pdf.ApplyWatermark("<h2 style='color:red;'>CONFIDENTIAL</h2>");
pdf.ApplyWatermark("<h2 style='color:red;'>CONFIDENTIAL</h2>")
パスワード保護
pdf.SecuritySettings.UserPassword = "userpassword";
pdf.SecuritySettings.OwnerPassword = "ownerpassword";
pdf.SecuritySettings.UserPassword = "userpassword";
pdf.SecuritySettings.OwnerPassword = "ownerpassword";
pdf.SecuritySettings.UserPassword = "userpassword"
pdf.SecuritySettings.OwnerPassword = "ownerpassword"
テキスト抽出
string text = pdf.ExtractAllText();
string text = pdf.ExtractAllText();
Dim text As String = pdf.ExtractAllText()
生成-印刷ワークフロー
IronPDFを使えば、PDFの生成と印刷を一つのワークフローで行うことができます:
var renderer = new ChromePdfRenderer();
var pdf = renderer.RenderHtmlAsPdf("<h1>Invoice</h1>");
pdf.Print("Invoice Printer");
var renderer = new ChromePdfRenderer();
var pdf = renderer.RenderHtmlAsPdf("<h1>Invoice</h1>");
pdf.Print("Invoice Printer");
Dim renderer As New ChromePdfRenderer()
Dim pdf = renderer.RenderHtmlAsPdf("<h1>Invoice</h1>")
pdf.Print("Invoice Printer")
クロスプラットフォーム印刷
PDFPrinting.NETはWindows専用です。 IronPDFはクロスプラットフォームで動作します:
Windows
pdf.Print("HP LaserJet");
pdf.Print("HP LaserJet");
pdf.Print("HP LaserJet")
Linuxについて
// Requires CUPS (Common Unix Printing System)
// Install: apt-get install cups
pdf.Print("HP_LaserJet"); // CUPS uses underscores instead of spaces
// Requires CUPS (Common Unix Printing System)
// Install: apt-get install cups
pdf.Print("HP_LaserJet"); // CUPS uses underscores instead of spaces
macOSについて
pdf.Print("HP LaserJet");
pdf.Print("HP LaserJet");
pdf.Print("HP LaserJet")
機能比較の概要
| フィーチャー | PDFPrinting.NET | IronPDF |
|---|---|---|
| サイレント印刷 | ✓ | ✓ |
| 印刷設定 | ✓ | ✓ |
| HTMLからPDFへ | ✗ | ✓ |
| URLからPDFへ | ✗ | ✓ |
| ヘッダー/フッター | 基本 | フルHTML |
| PDFのマージ | ✗ | ✓ |
| PDFの分割 | ✗ | ✓ |
| 透かし | ✗ | ✓ |
| テキスト抽出 | ✗ | ✓ |
| パスワード保護 | ✗ | ✓ |
| クロスプラットフォーム | ✗ | ✓ |
移行チェックリスト
移行前
- コードベース内のすべての PDFPrinting .NET の使用状況をインベントリします
- 現在使用されているすべてのプリンタ名を文書化する
- すべての印刷設定の構成をメモします
- クロスプラットフォームサポートが必要かどうかを特定する
- IronPDFライセンス キーの保存を計画する (環境変数を推奨)
- まずはIronPDFの試用ライセンスでテストしてください
パッケージの変更
PdfPrintingNetNuGetパッケージを削除IronPdfNuGetパッケージをインストール:dotnet add package IronPdf
コードの変更
- 名前空間のインポートを更新 (
PdfPrintingNet/ レガシーTerminalWorks.PDFPrinting→IronPdf) PdfDocument.FromFile(path).Print()パターンに変換- 印刷ごとのプロパティ (
Copies,Duplex,Collate,PrinterName) をPrintSettingsオブジェクトに移動 - 新機能の採用:HTMLとURL入力に
ChromePdfRenderer.RenderHtmlAsPdf/RenderUrlAsPdfを使用 (PDFPrinting.NETには相当機能がなかった) - ヘッダー/フッターを
HtmlFooterで設定 (新機能) - アプリケーション起動時に
IronPdf.License.LicenseKeyを設定
移行後
- すべての対象プラットフォームで印刷をテストする
- ヘッダー/フッターのレンダリングを確認する
- 動的ドキュメント用のPDF生成を追加することを検討してください
- 必要に応じて新しい機能(結合、透かし、セキュリティ)を追加します

