Beseitigung von PDFium-Abhängigkeitsfehlern
Das Google PDFIUM ist eine wesentliche Komponente des Kerncodes von IronPDF, das für verschiedene Funktionen im Zusammenhang mit der Bearbeitung von PDFs und der Umwandlung von PDF-Dokumenten in Bilder verwendet wird. Wenn die PDFIUM-Binärdatei im Projektordner fehlt, wird zur Laufzeit der folgende Fehler ausgelöst.
Unhandled exception. IronSoftware.Exceptions.IronSoftwareDeploymentException: Error while deploying Pdfium for IronPdf: 'Unable to locate 'IronPdfInterop'
Die Installation des IronPdf.Native.PdfModel Pakets im Projekt wird normalerweise das Problem beheben.
Unter Windows ist es auch ratsam, sicherzustellen, dass das Zielbetriebssystem Visual C++ Runtimes installiert hat.
Was tun, wenn das das Problem nicht löst?
Wenn das Problem nicht behoben ist, sind wir hier, um zu helfen. Kompatibilität hat für unser Ingenieurteam hohe Priorität. Bitte senden Sie einen Fehlerbericht per E-Mail an support@Iironsoftware.com. Alle Kompatibilitätsprobleme werden von einem leitenden Ingenieur ernsthaft geprüft.
Teilen Sie uns unbedingt mit, auf welchem Betriebssystem/Plattform eingesetzt wird, insbesondere wenn es sich um eine Cloud-Plattform wie AWS oder Azure handelt.
Wie man das native Logging in IronPDF aktiviert
Das Anhängen von Log-Dateien an einen Fehlerbericht erhöht die Wahrscheinlichkeit, dass wir das Problem isolieren und schnell lösen können, erheblich.
Platzieren Sie dies am Anfang Ihres Codes, bevor Sie eine IronPDF-Methode ausführen (alle Versionen nach 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
Die von IronPDF erstellten Protokolldateien befinden sich im Verzeichnis /bin Ihres Projekts, in dem Ihre DLLs bereitgestellt sind:
default.log(Bereitstellungsprozess)cef.log(Rendering)IronSoftwareCefSubprocess.log(Rendering & Threading)IronSoftwareEngine.log(Nützlich zum Debuggen von Ausnahmen, die mit "Fehler beim Generieren der PDF-Datei aus..." beginnen)
Cloud-Server haben oft spezifische Speicherorte für Log-Dateien. Wir haben Anleitungen zur Generierung von Log-Dateien in Azure und AWS.

