特定のページにヘッダー/フッターを追加
IronPDF には、既存の PDF ファイルにヘッダーとフッターを追加する機能があります。
また、IronPDF のメソッドを使用して、古いまたは新しい PDF ドキュメントにカスタマイズされたヘッダーとフッターを追加することもできます。 これを行うには、次の方法を使用して PDF がレンダリングされるまで待機します。
- IronPDFを使ってテキストヘッダーを追加するは
IronPdf.PdfDocument.AddHeaders_IronPdf_TextHeaderFooter_System_Boolean_System_Collections_Generic_IEnumerable_System_Int32__">IronPDFを使ってテキストヘッダーを追加するを使います。PdfDocument.AddHeaders(IronPdf.TextHeaderFooter,System.Boolean,System.Collections.Generic.IEnumerable)を使います。 - IronPDFを使ってテキストフッターを追加するは
IronPdf.PdfDocument.AddFooters_System_Boolean_System_Collections_Generic_IEnumerable_System_Int32__">IronPDFを使ってテキストフッターを追加するを使います。PdfDocument.AddFooters(IronPdf.TextHeaderFooter,System.Boolean,System.Collections.Generic.IEnumerable)を使います。 - IronPDFを使ってHTMLヘッダーを追加するは
IronPdf.PdfDocument.AddHTMLHeaders_IronPdf_HtmlHeaderFooter_System_Boolean_System_Collections_Generic_IEnumerable_System_Int32__">IronPDFを使ってHTMLヘッダーを追加するを使います。PdfDocument.AddHTMLHeaders(IronPdf.HtmlHeaderFooter,System.Boolean,System.Collections.Generic.IEnumerable)を使います。 - IronPDFを使ってHTMLフッターを追加するは
IronPdf.PdfDocument.AddHTMLFooters_System_Boolean_System_Collections_Generic_IEnumerable_System_Int32__">IronPDFを使ってHTMLフッターを追加するを使います。PdfDocument.AddHTMLFooters(IronPdf.HtmlHeaderFooter,System.Boolean,System.Collections.Generic.IEnumerable)を使います。
GitHubで見る
コード
https://github.com/irondarrius/IronPdf.Examples/tree/main/examples/adding-headers-and-footers-advanced
準備はできましたか?
Nuget ダウンロード 17,012,929 | バージョン: 2025.12 リリース





