Atalasoft Knowledge Base

HOWTO: Specify a Custom Extraction location for Atalasoft.Pdfium.dll (resolve PdfDecoder issue)



This article applies to version 11.0 and newer as the Pdfium engine has additional dlls that are auto exttacted from Atalasoft.dotImage.PdfReader.dll 

If you're running into issues in either a web or console or desktop app where there is an error about temp file access / missing Atalasoft.Pdfium.dll, this may be a permissions issue where the process is unable to extract due to insufficient rights. This almost never affects desktop users or other processes running under an interactive domain or user account as the default location is in the user temp directory

However, for process that run as a system service, the "user temp directory" doesn't apply and those may try to use restricted system temp locations. This is especially problematic for web processes.

How To Manually Specify Extraction Location

Controlling where the PdfIum dll extracts to is sometimes required

This is known behavior:


TempFile Extraction for Atalasoft.PdfIum.dll

The good news is that in newer versions ( and newer) there is an explicit way to configure where to look..

Check out the PdfDecoder API reference:

To configure Pdfium library location, you should add the next line to app.config file:


<PdfDecoder PdfiumLocation="C:\Folder\Subfolder\SubSubFolder"/>

<!-- Components sections -->



You can also use a relative path


<PdfDecoder PdfiumLocation="..\Another\Sub\Folder"/>

<!-- Components sections -->



you'll need to update your web.config to point it at a valid location where it can extract under the web process's credentials.. the sample here was for app.config.. it needs to be altered for web.config.. this is a general guidance based on


<?xml version="1.0"?> 
        <section name="Atalasoft" type="Atalasoft.Shared.AtalasoftConfigSection, Atalasoft.Shared"/> 
        <gcServer enabled="true"/> 
        <PdfDecoder PdfiumLocation="C:\SomePath\SimpleWDVwithWDT\SimpleWDVwithWDT\bin"/> 
        ... removed for brevity here... 

Last Modified: 4 Months Ago
Last Modified By: Tananda
Article not rated yet.
Article has been viewed 161 times.
Also In This Category