フッターコンテンツにスキップ
IRONPDFの使用

IronPDF を使ったASP.NET Core MVC PdfViewerの作り方

IronPDF の Chrome ベースのレンダリング エンジンを使用して ASP.NET Core MVC PDF ビューアーを作成し、ブラウザーで PDF ファイルをインラインで表示したり、HTML コンテンツから動的な PDF を生成したり、ユーザーがドキュメントを表示またはダウンロードするかどうかを制御したりすることができます。これらはすべて外部プラグインや依存関係なしで実行できます。

最近のブラウザにはPDFビューアが内蔵されており、ウェブアプリケーションが正しいMIMEタイプでPDFファイルを提供すると自動的に起動します。 これにより、サードパーティのツールやプラグインが不要になり、ユーザーはブラウザで直接PDF文書を表示できるようになります。 頻繁に更新される .NET PDF ライブラリであるIronPDF を使用すると、ASP.NET Core MVC アプリケーション内で PDF ファイルを簡単に生成、レンダリング、表示できます。

この記事では、IronPDF のChrome ベースのレンダリング エンジンを使用して ASP.NET Core MVC PDF ビューアー Web アプリケーションを作成する方法を説明します。 このガイドの主な焦点は、高いパフォーマンスを維持しながらピクセルパーフェクトな結果を達成することです。

今IronPDFを始めましょう。
green arrow pointer

最近のブラウザーはPDFファイルをどのように表示しますか

Chrome、Firefox、Edge、Safariなどの最新ブラウザには、ネイティブのPDFビューア機能が含まれています。 .NET Coreアプリケーションがapplication/pdfコンテンツタイプのファイルを返すと、ブラウザはAdobe Acrobatや外部プラグインを必要とせずにPDFドキュメントをインラインでレンダリングします。 このビルトインPDFビューアは、テキスト選択、印刷、ズームコントロール、しおり、ページナビゲーションなどの重要な機能をサポートし、完全なドキュメント閲覧体験を作り出します。

既存のファイルを安全に提供するには、開発環境と本番環境の間で変わる可能性のあるディレクトリ パスに頼るのではなく、ホスティング環境を使用してファイルを見つけるのがベスト プラクティスです。 さらに、多くの場合、ファイル ストリームを使用すると、大きなドキュメントのバイト配列全体を読み込むよりもメモリ効率が高くなります。

using Microsoft.AspNetCore.Mvc;
public class DocumentController : Controller
{
    public IActionResult ViewPdf()
    {
        // Path to an existing PDF file in the wwwroot folder
        string path = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "documents", "sample.pdf");
        byte[] fileBytes = System.IO.File.ReadAllBytes(path);
        // Return file for inline browser display
        return File(fileBytes, "application/pdf");
    }
}
using Microsoft.AspNetCore.Mvc;
public class DocumentController : Controller
{
    public IActionResult ViewPdf()
    {
        // Path to an existing PDF file in the wwwroot folder
        string path = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "documents", "sample.pdf");
        byte[] fileBytes = System.IO.File.ReadAllBytes(path);
        // Return file for inline browser display
        return File(fileBytes, "application/pdf");
    }
}
Imports Microsoft.AspNetCore.Mvc

Public Class DocumentController
    Inherits Controller

    Public Function ViewPdf() As IActionResult
        ' Path to an existing PDF file in the wwwroot folder
        Dim path As String = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "documents", "sample.pdf")
        Dim fileBytes As Byte() = System.IO.File.ReadAllBytes(path)
        ' Return file for inline browser display
        Return File(fileBytes, "application/pdf")
    End Function
End Class
$vbLabelText   $csharpLabel

このシンプルなアプローチは、サーバー上に保存されている静的な PDF ファイルを提供する場合に効果的に機能します。 より高度なシナリオでは、メモリまたはAzure Blob Storageから PDF を読み込むことで、スケーラビリティを向上させ、サーバーのストレージ要件を削減することができます。

ブラウザで表示される PDF はどのように見えるでしょうか?

! "PDFとは何か?"に関するPDF文書が、localhost:7162/Pdf/ViewPdfのWebブラウザに表示され、ズームコントロールとナビゲーションオプションを備えたPDFビューアインターフェースでフォーマットされたテキストコンテンツが表示されています。

上のコードは、サーバーから既存のPDFファイルを読み込み、ブラウザに返します。 File()メソッドは、バイト配列とコンテンツ・タイプを受け取り、ブラウザのドキュメント・ビューワにコンテンツをインラインでレンダリングするよう指示します。このアプローチは、デスクトップとモバイルデバイスの両方のすべてのモダンブラウザで機能し、すべてのユーザーに一貫したエクスペリエンスを提供します。

開発者はどのようにPDFドキュメントを動的に生成できますか?

静的なPDFファイルは便利ですが、多くのWebアプリケーションでは動的に生成されたドキュメントが必要です。 IronPDFのChromePdfRendererクラスはHTMLコンテンツをプロフェッショナルにレンダリングされたPDFファイルに変換します。 開始するには、Visual Studio でNuGet パッケージ経由で IronPDF をインストールします。

特定のテーマの CSSグラフの JavaScriptなどの外部アセットを HTML 文字列に直接含めることができます。 レンダリング エンジンは、CSS3、JavaScript ES6+、 Web フォントなどの最新の Web 標準をサポートしています。

using IronPdf;
using Microsoft.AspNetCore.Mvc;
public class ReportController : Controller
{
    public IActionResult GenerateReport()
    {
        var renderer = new ChromePdfRenderer();
        // HTML content with CSS styling
        string html = @"
            <html>
            <head>
                <style>
                    body { font-family: Arial, sans-serif; padding: 40px; }
                    h1 { color: #2c3e50; }
                    .report-body { line-height: 1.6; }
                </style>
            </head>
            <body>
                <h1>Monthly Sales Report</h1>
                <div class='report-body'>
                    <p>Generated: " + DateTime.Now.ToString("MMMM dd, yyyy") + @"</p>
                    <p>This report contains the latest sales figures.</p>
                </div>
            </body>
            </html>";
        PdfDocument pdf = renderer.RenderHtmlAsPdf(html);
        return File(pdf.BinaryData, "application/pdf");
    }
}
using IronPdf;
using Microsoft.AspNetCore.Mvc;
public class ReportController : Controller
{
    public IActionResult GenerateReport()
    {
        var renderer = new ChromePdfRenderer();
        // HTML content with CSS styling
        string html = @"
            <html>
            <head>
                <style>
                    body { font-family: Arial, sans-serif; padding: 40px; }
                    h1 { color: #2c3e50; }
                    .report-body { line-height: 1.6; }
                </style>
            </head>
            <body>
                <h1>Monthly Sales Report</h1>
                <div class='report-body'>
                    <p>Generated: " + DateTime.Now.ToString("MMMM dd, yyyy") + @"</p>
                    <p>This report contains the latest sales figures.</p>
                </div>
            </body>
            </html>";
        PdfDocument pdf = renderer.RenderHtmlAsPdf(html);
        return File(pdf.BinaryData, "application/pdf");
    }
}
Imports IronPdf
Imports Microsoft.AspNetCore.Mvc

Public Class ReportController
    Inherits Controller

    Public Function GenerateReport() As IActionResult
        Dim renderer As New ChromePdfRenderer()
        ' HTML content with CSS styling
        Dim html As String = "
            <html>
            <head>
                <style>
                    body { font-family: Arial, sans-serif; padding: 40px; }
                    h1 { color: #2c3e50; }
                    .report-body { line-height: 1.6; }
                </style>
            </head>
            <body>
                <h1>Monthly Sales Report</h1>
                <div class='report-body'>
                    <p>Generated: " & DateTime.Now.ToString("MMMM dd, yyyy") & "</p>
                    <p>This report contains the latest sales figures.</p>
                </div>
            </body>
            </html>"
        Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf(html)
        Return File(pdf.BinaryData, "application/pdf")
    End Function
End Class
$vbLabelText   $csharpLabel

PDF 生成後、HTML コンテンツはどのように表示されますか?

! PDF ビューアは、フォーマットされたヘッダーテキストと生成日を含む月次売上レポートを表示し、IronPDF を通じてカスタム CSS スタイルを適用した HTML から PDF への変換をデモンストレーションします。

この例では、IronPDF がHTML 文字列を PDF ドキュメントに変換する方法を示します。 ChromePdfRenderer は Chromium ベースのエンジンを使用しており、正確な CSS レンダリングと JavaScript サポートを保証します。 生成された PDF では HTML で定義されたすべてのスタイルが維持されるため、一貫した書式設定が必要なレポート請求書、その他のドキュメントの作成に最適です。 コントローラーはリクエストを処理し、レンダリングされた出力をユーザーに返します。

HTML から PDF への変換に関する追加情報とコード例については、IronPDF の包括的なドキュメントを参照してください。 CSHTML Razor ビューURL 、さらにはMarkdown コンテンツから PDF を生成することもできます。

インライン表示とダウンロードにはどのようなオプションがありますか?

ユーザーは、PDFファイルをブラウザで表示するのではなく、ダウンロードする必要があります。 ホームページに、ユーザーをこれらのレポートに誘導するリンクがあるかもしれません。 ブラウザが応答を処理する方法はContent-Dispositionヘッダーによって異なります。 この違いを理解することは、適切なユーザー エクスペリエンスを提供するために非常に重要です。

using IronPdf;
using Microsoft.AspNetCore.Mvc;
public class PdfController : Controller
{
    public IActionResult DisplayInline()
    {
        var renderer = new ChromePdfRenderer();
        // Configure rendering options for better output
        renderer.RenderingOptions.PaperOrientation = PdfPaperOrientation.Portrait;
        renderer.RenderingOptions.MarginTop = 25;
        renderer.RenderingOptions.MarginBottom = 25;

        PdfDocument pdf = renderer.RenderUrlAsPdf("___PROTECTED_URL_42___");
        // Display PDF inline in browser
        return File(pdf.BinaryData, "application/pdf");
    }

    public IActionResult DownloadPdf()
    {
        var renderer = new ChromePdfRenderer();
        // Set additional options for downloaded PDFs
        renderer.RenderingOptions.PaperSize = PdfPaperSize.Letter;
        renderer.RenderingOptions.EnableJavaScript = true;

        PdfDocument pdf = renderer.RenderUrlAsPdf("___PROTECTED_URL_43___");
        // Prompt download with specified filename
        return File(pdf.BinaryData, "application/pdf", "webpage-report.pdf");
    }
}
using IronPdf;
using Microsoft.AspNetCore.Mvc;
public class PdfController : Controller
{
    public IActionResult DisplayInline()
    {
        var renderer = new ChromePdfRenderer();
        // Configure rendering options for better output
        renderer.RenderingOptions.PaperOrientation = PdfPaperOrientation.Portrait;
        renderer.RenderingOptions.MarginTop = 25;
        renderer.RenderingOptions.MarginBottom = 25;

        PdfDocument pdf = renderer.RenderUrlAsPdf("___PROTECTED_URL_42___");
        // Display PDF inline in browser
        return File(pdf.BinaryData, "application/pdf");
    }

    public IActionResult DownloadPdf()
    {
        var renderer = new ChromePdfRenderer();
        // Set additional options for downloaded PDFs
        renderer.RenderingOptions.PaperSize = PdfPaperSize.Letter;
        renderer.RenderingOptions.EnableJavaScript = true;

        PdfDocument pdf = renderer.RenderUrlAsPdf("___PROTECTED_URL_43___");
        // Prompt download with specified filename
        return File(pdf.BinaryData, "application/pdf", "webpage-report.pdf");
    }
}
Imports IronPdf
Imports Microsoft.AspNetCore.Mvc

Public Class PdfController
    Inherits Controller

    Public Function DisplayInline() As IActionResult
        Dim renderer As New ChromePdfRenderer()
        ' Configure rendering options for better output
        renderer.RenderingOptions.PaperOrientation = PdfPaperOrientation.Portrait
        renderer.RenderingOptions.MarginTop = 25
        renderer.RenderingOptions.MarginBottom = 25

        Dim pdf As PdfDocument = renderer.RenderUrlAsPdf("___PROTECTED_URL_42___")
        ' Display PDF inline in browser
        Return File(pdf.BinaryData, "application/pdf")
    End Function

    Public Function DownloadPdf() As IActionResult
        Dim renderer As New ChromePdfRenderer()
        ' Set additional options for downloaded PDFs
        renderer.RenderingOptions.PaperSize = PdfPaperSize.Letter
        renderer.RenderingOptions.EnableJavaScript = True

        Dim pdf As PdfDocument = renderer.RenderUrlAsPdf("___PROTECTED_URL_43___")
        ' Prompt download with specified filename
        Return File(pdf.BinaryData, "application/pdf", "webpage-report.pdf")
    End Function
End Class
$vbLabelText   $csharpLabel

ダウンロードの代わりにインライン表示を使用する必要があるのはどのような場合ですか?

! Wikipedia のメインページを PDF 形式に変換し、ブラウザウィンドウにインラインで表示したスクリーンショット。ズーム、ページナビゲーション、印刷オプションなどの PDF ビューアコントロールも表示されます。

これら2つのコントローラアクションの違いは、File()メソッドの3番目のパラメータにあります。 ファイル名を指定すると、ASP.NET Core は自動的にContent-Disposition: attachmentヘッダーを追加し、ユーザーにファイルのダウンロードを促します。ファイル名パラメータを省略すると、デフォルトのインライン表示モードが使用されます。

この柔軟性により、アプリはユーザーのニーズやプロジェクト要件に基づいて両方の表示シナリオをサポートできます。 制御を強化するために、カスタム ヘッダーを実装したり、用紙のサイズ向きの設定を構成したりすることもできます。

どのように Razor Pages を .NET Core PDF 生成と統合できますか?

ASP.NET Core MVC の Razor Pages は、.NET PDF ビューアーを実装するための別のアプローチを提供します。 ページモデルは同じIronPDFの機能を使ってPDFファイルを生成して返すことができます。 このパターンは、アーキテクチャにすでに Razor Pages を使用しているアプリケーションに特に適しています。

using IronPdf;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
public class InvoiceModel : PageModel
{
    public IActionResult OnGet(int id)
    {
        var renderer = new ChromePdfRenderer();
        // Configure rendering options
        renderer.RenderingOptions.MarginTop = 20;
        renderer.RenderingOptions.MarginBottom = 20;
        renderer.RenderingOptions.PaperSize = PdfPaperSize.A4;

        // Add header and footer
        renderer.RenderingOptions.TextHeader.CenterText = "Invoice Document";
        renderer.RenderingOptions.TextFooter.RightText = "Page {page} of {total-pages}";
        renderer.RenderingOptions.TextFooter.FontSize = 10;

        string html = $@"
            <html>
            <head>
                <style>
                    body {{ font-family: 'Segoe UI', Arial, sans-serif; padding: 40px; }}
                    h1 {{ color: #1a5490; border-bottom: 2px solid #1a5490; padding-bottom: 10px; }}
                    .invoice-details {{ margin: 20px 0; }}
                    table {{ width: 100%; border-collapse: collapse; }}
                    th, td {{ padding: 10px; text-align: left; border-bottom: 1px solid #ddd; }}
                </style>
            </head>
            <body>
                <h1>Invoice #{id}</h1>
                <div class='invoice-details'>
                    <p><strong>Date:</strong> {DateTime.Now:yyyy-MM-dd}</p>
                    <p><strong>Due Date:</strong> {DateTime.Now.AddDays(30):yyyy-MM-dd}</p>
                </div>
                <table>
                    <tr>
                        <th>Description</th>
                        <th>Amount</th>
                    </tr>
                    <tr>
                        <td>Professional Services</td>
                        <td>$1,500.00</td>
                    </tr>
                </table>
                <p style='margin-top: 40px;'>Thank you for your business!</p>
            </body>
            </html>";

        PdfDocument pdf = renderer.RenderHtmlAsPdf(html);
        return File(pdf.BinaryData, "application/pdf");
    }
}
using IronPdf;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
public class InvoiceModel : PageModel
{
    public IActionResult OnGet(int id)
    {
        var renderer = new ChromePdfRenderer();
        // Configure rendering options
        renderer.RenderingOptions.MarginTop = 20;
        renderer.RenderingOptions.MarginBottom = 20;
        renderer.RenderingOptions.PaperSize = PdfPaperSize.A4;

        // Add header and footer
        renderer.RenderingOptions.TextHeader.CenterText = "Invoice Document";
        renderer.RenderingOptions.TextFooter.RightText = "Page {page} of {total-pages}";
        renderer.RenderingOptions.TextFooter.FontSize = 10;

        string html = $@"
            <html>
            <head>
                <style>
                    body {{ font-family: 'Segoe UI', Arial, sans-serif; padding: 40px; }}
                    h1 {{ color: #1a5490; border-bottom: 2px solid #1a5490; padding-bottom: 10px; }}
                    .invoice-details {{ margin: 20px 0; }}
                    table {{ width: 100%; border-collapse: collapse; }}
                    th, td {{ padding: 10px; text-align: left; border-bottom: 1px solid #ddd; }}
                </style>
            </head>
            <body>
                <h1>Invoice #{id}</h1>
                <div class='invoice-details'>
                    <p><strong>Date:</strong> {DateTime.Now:yyyy-MM-dd}</p>
                    <p><strong>Due Date:</strong> {DateTime.Now.AddDays(30):yyyy-MM-dd}</p>
                </div>
                <table>
                    <tr>
                        <th>Description</th>
                        <th>Amount</th>
                    </tr>
                    <tr>
                        <td>Professional Services</td>
                        <td>$1,500.00</td>
                    </tr>
                </table>
                <p style='margin-top: 40px;'>Thank you for your business!</p>
            </body>
            </html>";

        PdfDocument pdf = renderer.RenderHtmlAsPdf(html);
        return File(pdf.BinaryData, "application/pdf");
    }
}
Imports IronPdf
Imports Microsoft.AspNetCore.Mvc
Imports Microsoft.AspNetCore.Mvc.RazorPages

Public Class InvoiceModel
    Inherits PageModel

    Public Function OnGet(id As Integer) As IActionResult
        Dim renderer As New ChromePdfRenderer()
        ' Configure rendering options
        renderer.RenderingOptions.MarginTop = 20
        renderer.RenderingOptions.MarginBottom = 20
        renderer.RenderingOptions.PaperSize = PdfPaperSize.A4

        ' Add header and footer
        renderer.RenderingOptions.TextHeader.CenterText = "Invoice Document"
        renderer.RenderingOptions.TextFooter.RightText = "Page {page} of {total-pages}"
        renderer.RenderingOptions.TextFooter.FontSize = 10

        Dim html As String = $"
            <html>
            <head>
                <style>
                    body {{ font-family: 'Segoe UI', Arial, sans-serif; padding: 40px; }}
                    h1 {{ color: #1a5490; border-bottom: 2px solid #1a5490; padding-bottom: 10px; }}
                    .invoice-details {{ margin: 20px 0; }}
                    table {{ width: 100%; border-collapse: collapse; }}
                    th, td {{ padding: 10px; text-align: left; border-bottom: 1px solid #ddd; }}
                </style>
            </head>
            <body>
                <h1>Invoice #{id}</h1>
                <div class='invoice-details'>
                    <p><strong>Date:</strong> {DateTime.Now:yyyy-MM-dd}</p>
                    <p><strong>Due Date:</strong> {DateTime.Now.AddDays(30):yyyy-MM-dd}</p>
                </div>
                <table>
                    <tr>
                        <th>Description</th>
                        <th>Amount</th>
                    </tr>
                    <tr>
                        <td>Professional Services</td>
                        <td>$1,500.00</td>
                    </tr>
                </table>
                <p style='margin-top: 40px;'>Thank you for your business!</p>
            </body>
            </html>"

        Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf(html)
        Return File(pdf.BinaryData, "application/pdf")
    End Function
End Class
$vbLabelText   $csharpLabel

PDF カスタマイズにはどのようなレンダリング オプションが利用できますか?

請求書番号20をプロフェッショナルなフォーマットで表示するPDFビューア。スタイル設定されたヘッダー、期日情報、お礼のメッセージなど、ダークテーマのブラウザインターフェースで表示されます。

この Razor Pages の例では、 OnGetハンドラーが URL パラメーターから PDF を生成する方法を示します。 RenderingOptionsプロパティを使用すると、余白、ページの向き、その他の設定をカスタマイズできます。 ヘッダーとフッターを追加したり、ページ番号を設定したり、カスタム用紙サイズを設定したりすることもできます。 追加情報については、IronPDF のレンダリング オプションのドキュメントを参照してください。

高度な機能には、透かしPDF 圧縮デジタル署名などがあります。 より複雑なドキュメント ワークフローのために、フォームの作成を実装したり、複数の PDF を結合したりすることもできます。

PDF ビューアを構築するための重要なポイントは何ですか?

PDFドキュメントのASP.NET Core MVCビューアの作成は、ブラウザネイティブの機能とIronPDFの強力な生成機能を組み合わせています。 最新のブラウザに組み込まれている PDF ビューアは、ASP.NET コントローラが正しい MIME タイプのファイルを返すと、表示、印刷、およびナビゲーション機能を自動的に処理します。 IronPDFはCSS、JavaScript、カスタムレンダリングオプションを完全にサポートし、HTML、URL、既存のファイルからプロフェッショナルなPDFドキュメントの作成を簡素化します。

ASP.NET Core で PDF を表示するために IronPDF を使用する主な利点は次のとおりです。

  • 外部ビューアプラグインは不要
  • Chromeレンダリングエンジンは正確なHTML/CSSレンダリングを保証します
  • JavaScriptと動的コンテンツのサポート
  • インライン表示とファイルダウンロードのための柔軟なオプション
  • プロフェッショナルな出力のための広範なカスタマイズオプション
  • LinuxとDockerを含むクロスプラットフォームのサポート

PDF ファイルを表示するためのシンプルなドキュメント ビューアーを構築する場合でも、完全なレポート生成システムを実装する場合でも、IronPDF はシームレスな PDF 統合に必要なツールと機能を提供します。 このライブラリは、従来の MVC コントローラーと最新の Razor Pages アプローチの両方をサポートし、ASP.NET Core Web アプリケーションとスムーズに統合されます。

実稼働環境での展開では、非同期レンダリングや適切なメモリ管理などのパフォーマンス最適化手法を検討してください。 また、長期アーカイブ用のPDF/A 準拠や機密文書のPDF セキュリティなどの高度な機能もご利用いただけます。

無料トライアルを開始してIronPDF の全機能を試すか、実稼働環境での使用のためにライセンスを購入してください。 高度な機能とベスト プラクティスの詳細については、当社の包括的なドキュメントをご覧ください。

よくある質問

ASP.NET Core MVCアプリケーションでPDFファイルを表示するには?

IronPDF を使用することで、ASP.NET Core MVCアプリケーションでPDFファイルを表示することができます。最新のビルトインPDFビューアを使用して、ブラウザで直接PDFファイルを生成、レンダリング、表示することができます。

ブラウザでPDFを表示するには、サードパーティのプラグインが必要ですか?

いいえ、最近のブラウザにはPDFビューアが内蔵されており、正しいMIMEタイプでPDFファイルを提供すると自動的に有効になります。IronPdfはあなたのPDFが正しく提供されるようにサポートします。

ASP.NET Core MVCでIronPDFを使用する利点は何ですか?

IronPDFは.NET PDFライブラリで、ASP.NET Core MVCアプリケーション内でのPDFドキュメントの生成とレンダリングのプロセスを簡素化し、生産性を高め、PDF管理を合理化します。

IronPdfは既存のブラウザーPDFビューアーと一緒に使えますか?

IronPdfは既存のブラウザのPDFビューアとシームレスに動作し、PDFはブラウザで自動的に表示されるように正しいMIMEタイプで提供されます。

IronPDFは頻繁に更新されますか?

IronPDFは頻繁に更新される.NET PDFライブラリで、ASP.NET Core MVCアプリケーションでPDFドキュメントを扱うための最新の機能と改善を提供します。

IronPdfはウェブアプリケーションでどのようにPDFを生成するのですか?

IronPdfは様々なコンテンツタイプからPDFを生成する堅牢な機能を提供し、開発者がウェブアプリケーション内でダイナミックでインタラクティブなPDFドキュメントを作成することを可能にします。

PDFファイルを提供するには、どのMIMEタイプを使用すべきですか?

ブラウザでの適切な表示を保証するために、PDFファイルはMIMEタイプ'application/pdf'で提供されるべきです。IronPdfはこの点を効率的に管理するお手伝いをします。

IronPdfでPDFレンダリングをカスタマイズできますか?

IronPDFはPDFのレンダリングに広範なカスタマイズオプションを提供しており、特定のデザインや機能要件を満たすように出力を調整することができます。

IronPDFはASP.NET Core MVCアプリケーションのみをサポートしていますか?

IronPDFはASP.NET Core MVCアプリケーションに最適ですが、他の.NETアプリケーションでPDF機能を扱うこともできます。

カーティス・チャウ
テクニカルライター

Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。

開発以外にも、CurtisはIoT(Internet of Things)への強い関心を持ち、ハードウェアとソフトウェアの統合方法を模索しています。余暇には、ゲームをしたりDiscordボットを作成したりして、技術に対する愛情と創造性を組み合わせています。