OCR Module Add-On error in kubernetes environment

Product: PdfTron OCR Module Linux for .Net Core

Product Version:
Latest OCR Module Linux from Apryse Developer Portal
.Net Core 6
PDFTron.NET.x64 Version=“”

Please give a brief summary of your issue:
(Think of this as an email subject)
GetOCRJsonFromPDF works fine when run locally with docker in Visual Studio, however when run GetOCRJsonFromPDF in the kubernetes environment we receive the following error message from the pdftron OCR module. Is there anything you could tell me from the error message?
Liscence key is for the following platform codes: WL+:AMS

pdftron.Common.PDFNetException: Exception:
      	 Message: Error using OCR module Add-On. Exit code: 0XFF
Page conversion failed.
      	 Conditional expression: false
      	 Version      : 9.5.0-1bc49d6
      	 Platform     : Linux
      	 Architecture : AMD64
      	 Filename     : OCRModule.cpp
      	 Function     : GetOCRJsonFromPDF
      	 Linenumber   : 110
         at pdftron.Common.PDFNetException.REX(IntPtr result)
         at pdftron.PDF.OCRModule.GetOCRJsonFromImage(PDFDoc dst, String src, OCROptions options)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Running GetOCRJsonFromPDF in a kubernetes enviroment?

Please provide a link to a minimal sample where the issue is reproducible:


Can you please let us know the exact Linux Distro you are using?

The error is likely a missing dependency. Please view the following page for more info:

You will need to call
directly to check the dependencies.


sorry for the late reply. The Linux Distro used is Debian 11.
Does the OCR module contain shared object dependencies not available by default on Debian 11, and should we call ldd OCRModule to check them instead? When we call ldd OCRModule inside the container and ocr module package/lib we get the following response:

ldd OCRModule
        linux-vdso.so.1 (0x00007ffccc546000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd9f105f000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd9f1059000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd9f1037000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd9f0ef3000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd9f0d1e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd9f106d000)


Sometimes you can be missing certain dependencies as they are not by default available, but from your screenshot it appears that you aren’t missing any.

It may be a permissions issue instead, can you run the OCR module directly from the command line using ./OCRModule?

Yes, it seems permissions were the issue. Got permission denied when running from the command line.