Pdftools OCR Service licensing
The Pdftools OCR Service validates license keys either directly or through the Licensing Gateway Service (LGS). By default, the service validates license keys directly against the Pdftools Licensing Service. This is online only and requires a network connection. To run without a continuous network connection, route licensing through the LGS. For more information, see Use the Licensing Gateway Service.
For information about using Pdftools OCR Service, review Pdftools OCR Service documentation.
Use the Licensing Gateway Service
To let the Pdftools OCR Service operate without a continuous internet connection, route licensing through the Licensing Gateway Service (LGS). Offline licensing is available only through the LGS. The LGS runs in Connected mode (partially offline) or Full offline mode.
To set up the LGS, follow these steps:
- Download and install the LGS on a machine in your network. The download page provides a Windows installer and a Linux snap. Refer to Install the LGS.
- Configure the LGS for Connected mode or Full offline mode.
- Point each worker at the LGS by setting the
LgsURLvalue, as described in Set the Licensing Gateway Service URL.
Set the Licensing Gateway Service URL
After you configure the LGS, set the LgsURL value on each worker to the machine where you configured the LGS. The location depends on your platform.
Windows
To set the URL on Windows, follow these steps:
- Open the worker’s
appsettings.json. The default path isC:\Program Files\Pdftools\Pdftools OCR Service\PdftoolsOcrWorker\appsettings.json. - Set the
LgsURLvalue:"LgsURL": "http://localhost:9999"
Docker
To set the URL in Docker, follow these steps:
- Open your
docker-compose.yamlfile. - Set the
Licensing__LgsURLenvironment variable on the worker container:- Licensing__LgsURL=http://localhost:9999
Linux
To set the URL on Linux, follow these steps:
- Open the worker’s
appsettings.jsonat/opt/pdftools/ocr-worker/appsettings.json. - Set the
LgsURLvalue:"LgsURL": "http://localhost:9999"
For more information, review Default appsettings.json in Pdftools OCR Service documentation.