Resolving PDFium Dependency Errors

This article was translated from English: Does it need improvement?
Translated
View the article in English

Google PDFIUM は、IronPDF のコアコードの重要なコンポーネントであり、PDF 編集やPDF ドキュメントを画像に変換するための様々な機能に利用されています。 プロジェクトフォルダからPDFIUM バイナリが欠如している場合、実行時に以下のエラーが発生します。

Unhandled exception. IronSoftware.Exceptions.IronSoftwareDeploymentException: Error while deploying Pdfium for IronPdf: 'Unable to locate 'IronPdfInterop'

プロジェクトにIronPdf.Native.PdfModel パッケージをインストールすることで、通常この問題は解決されます。

Windows では、対象のオペレーティングシステムにVisual C++ ランタイムがインストールされていることを確認するのも良い考えです。

それでも解決しない場合はどうすればいいですか?

それでも問題が解決しない場合には、私たちがお手伝いします。互換性は私たちのエンジニアリングチームにとって高い優先事項です。 バグレポートはsupport@ironsoftware.comまでメールで送信してください。 すべての互換性問題は、熟練したエンジニアによって徹底的にレビューされます。

特にAWSやAzureなどのクラウドプラットフォームでデプロイされる場合は、オペレーティングシステム/プラットフォームを必ずお知らせください。

IronPDF でネイティブログを有効にする方法

ログファイルをバグレポートに添付すると、問題を特定し、迅速に解決する確率が倍以上になります。

IronPDF メソッドを実行する前に、コードの最初にこれを置きます (2021.3.1以降のすべてのバージョン)。

// Enable debugging to generate detailed log files for troubleshooting.
IronPdf.Logging.Logger.EnableDebugging = true;

// Set the path for the log file. You can specify a directory name or a full file path.
IronPdf.Logging.Logger.LogFilePath = "Default.log";

// Set the logging mode to log all events.
IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All;
// Enable debugging to generate detailed log files for troubleshooting.
IronPdf.Logging.Logger.EnableDebugging = true;

// Set the path for the log file. You can specify a directory name or a full file path.
IronPdf.Logging.Logger.LogFilePath = "Default.log";

// Set the logging mode to log all events.
IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All;
' Enable debugging to generate detailed log files for troubleshooting.
IronPdf.Logging.Logger.EnableDebugging = True

' Set the path for the log file. You can specify a directory name or a full file path.
IronPdf.Logging.Logger.LogFilePath = "Default.log"

' Set the logging mode to log all events.
IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All
$vbLabelText   $csharpLabel

IronPDFによって作成されるログファイルは、プロジェクトのDLLが配置される/binディレクトリに見つかります:

  • default.log (デプロイメントプロセス)
  • cef.log (レンダリング)
  • IronSoftwareCefSubprocess.log (レンダリング & スレッド)
  • IronSoftwareEngine.log ("PDFの生成エラーから始まる例外のデバッグに役立ちます)

クラウドサーバーには、ログファイルの特定の場所があることがよくあります。 We have guides for generating log files in Azure and AWS.

Curtis Chau
テクニカルライター

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

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

準備はいいですか?
Nuget ダウンロード 16,154,058 | バージョン: 2025.11 ただ今リリースされました