Set up full offline mode
To set up full offline mode, install the LGS on a machine without internet access, and configure it for offline use. For the CLI workflow, also install the Pdftools Licensing Shell (ptl) on a machine with internet access.
Full offline mode needs a license key that supports it, and isn’t available for free trial license keys. For details, refer to Before you start. For Docker deployments, refer to Full offline mode in Docker.
Install the LGS
Install the LGS to set up fully offline configuration. Download and install the package on a machine in your network that is not connected to the internet.
- The Conversion Service comes with the LGS preinstalled on Windows. Installing the LGS on such a machine for the second time may render the Conversion Service unusable. For more details, review the implementation of the Licensing Gateway Service in the Conversion Service licensing documentation.
- The full offline mode is available in the Conversion Service version 6+. Configure the full offline mode using steps described in Full offline mode license activation section.
If you want to install the LGS on another machine than the one where you run the Conversion Service, follow the steps in this section Install the LGS, and then continue with Full offline mode license activation section.
- Windows
- Linux
- Download the LicensingGatewayService.msi package.
- Run the installer.
The installer also creates a Windows service that acts as an agent to regularly synchronize the LGS with the Pdftools Licensing Server.
The LGS is available for Linux in the following formats:
- Snap
- DEB package
- RPM package
- Archive
None of the formats needs an internet connection to install. The following steps install the snap. For the other formats, refer to Linux DEB and RPM packages and Linux archive without root.
The snap requires glibc 2.34+.
- Download the licgwy_amd64.snap package.
- Install the snap package:
snap install licgwy_amd64.snap --classic --dangerous
The installer also creates a service that acts as an agent to regularly synchronize the LGS with the Pdftools Licensing Server.
Configure the LGS for offline use
To configure the LGS:
-
Find the LGS configuration file
appsettings.json:- Windows
- Snap
- DEB and RPM
- Archive
For Windows, the configuration file is in the installation folder, for example:
C:\Program Files\Pdftools\Licensing Gateway Service\appsettings.jsonFor the snap, the configuration file is in the
$SNAP_DATAdirectory, for example:/var/snap/licgwy/current/appsettings.jsonFor the DEB and RPM packages, the configuration file is:
/etc/pdftools/lgs/appsettings.jsonFor the archive, the configuration file is in the program folder, for example:
/opt/pdftools-lgs/current/appsettings.jsonExample configuration file:
{"LicensingServicePortNumber": 9999,"LogFilePath": "C:/logs/pdftls/log.txt","LogRetentionDays": 7,"Endpoints": []} -
Enable offline mode in the LGS. Update the configuration file so that the
IsOfflineModeproperty is set totrue.Example configuration file after update:
{"LicensingServicePortNumber": 9999,"LogFilePath": "C:/logs/pdftls/log.txt","LogRetentionDays": 7,"IsOfflineMode": true,"Endpoints": []} -
Optionally, you can configure these options:
- Licensing Service Port number: Set the port number used by the service. The default value is
9999. - Log file path: Specify the desired path of the log files. For the DEB and RPM packages and the archive, keep the path that the installation sets.
- Log retention: Define the number of days the log files remain.
- Endpoints: An array of stored LGS endpoint URLs for batch commands. Managed through
ptl endpoints-addandptl endpoints-remove, but you can also edit this field manually.
- Licensing Service Port number: Set the port number used by the service. The default value is
-
Restart the service after modifying the
appsettings.jsonfile so the changes take effect.
Install the Pdftools Licensing Shell on the online machine
To use the CLI-based activation and deactivation workflows, install the Pdftools Licensing Shell (ptl) on a machine in your network that is connected to the internet.
The online machine runs the same ptl CLI as the offline machine. Install the package that contains only the CLI, as described in the following steps.
- Windows
- Linux
- Download the LicensingShell.msi package.
- Run the installer.
- Download the ptl_amd64.snap package.
- Install the snap package:
snap install ptl_amd64.snap --classic --dangerous
The Pdftools Licensing Shell is also available as DEB and RPM packages, described in Install the Pdftools Licensing Shell on its own. If the online machine doesn’t allow system packages, unpack the LGS archive and run ptl from it, as described in Use full offline mode.
After the setup, activate your license keys as described in Activate license keys offline.