Full offline mode
Use the Pdftools software fully offline with valid license keys for at least three months or more, depending on the type of your license. Your local network can stay without an internet connection, and the license keys are validated for a set period of time.
Install the LGS
Install the Licensing Gateway Service (LGS) to enable fully offline configuration, download and install the package on a machine in your network that is not connected to the internet.
Ensure you install the LGS on an offline machine in full offline mode. However, in the connected mode, you need to install the LGS on a computer that is connected to the internet.
- Windows
- Linux
- Download the LicensingGatewayService.msi package.
- Run the installer.
The installer copies the required binary files, sets up the port and environment variables, and creates and runs a Windows service that acts as an agent to regularly synchronize the LGS with the Pdftools Licensing Server.
- Download the licgwy_amd64.snap package.
- Run the installer with the following command:
snap install licgwy_amd64.snap --classic --dangerous
The installer copies the required files, sets up the port and environment variables, and creates and runs 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:
-
Locate the LGS configuration file
appsettings.json
:- Windows
- Linux
For Windows, the file is in the instalation folder, for example:
C:\Program Files\Pdftools\Licensing Gateway Service\appsettings.json
For Linux systems the file is in the
$SNAP_DATA
directory, for example:/var/snap/licgwy/current/appsettings.json
Example configuration file:
{
"LicensingServicePortNumber": 9999,
"LogFilePath": "C:/logs/pdftls/log.txt",
"LogRetentionDays": 7
} -
Enable offline mode in LGS. Update configuration file so that
IsOfflineMode
property is set totrue
.Example configuration file after update:
{
"LicensingServicePortNumber": 9999,
"LogFilePath": "C:/logs/pdftls/log.txt",
"LogRetentionDays": 7,
"IsOfflineMode": true
} -
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.
- Log retention: Define the number of days the log files are kept.
- Licensing Service Port number: Set the port number used by the service. The default value is
-
Restart the service after modifying the
appsettings.json
file for the changes to take effect.
If the machine with the LGS becomes inaccessible, the license keys are blocked and unusable offline. Consequently, you cannot activate or deactivate the blocked license key on any other machine. Contact Pdftools support to unblock the license key. Review the Support page.
Install the Licensing Gateway Activator
To start using the Licensing Gateway Activator (LGA), download and install the package on a machine in your network that is connected to the internet.
- Windows
- Linux
- Download the LicensingGatewayActivator.msi package.
- Run the installer.
The installer copies the required binary files and sets up environment variables, so that you can use LGA CLI.
- Download the licgwyactivator_amd64.snap package.
- Run the installer with the following command:
snap install licgwyactivator_amd64.snap --classic --dangerous
Offline license configuration
The following sections teach you how to manage your license keys offline using the LGS CLI and LGA CLI tools. Perform each step accurately to maintain the integrity of the licensing process. If you encounter any issues, please contact Pdftools support.
Prerequisites
To use the license keys offline, fulfill the following prerequisites:
- The Licensing Gateway Service CLI (
licgwy
) is installed on a machine that is not connected to the internet (offline machine). - The Licensing Gateway Activator CLI (
licgwyactivator
) is installed on the machine that is connected to the internet (online machine).
Activate license key offline
Follow these steps to activate or extend a license key in the offline mode:
-
On the offline machine with installed Licensing Gateway Service, run the following command to generate a license export token:
licgwy export-activation <license key>
- Replace
<license key>
with your license key.
- Replace
-
On the online machine with installed Licensing Gateway Activator, run the following command to generate a license import token:
licgwyactivator activate <export token>
- Replace
<export token>
with the token from the previous step.
- Replace
-
On the offline machine, run the following command to activate or extend the license key:
licgwy import-activation <import token>
- Replace
<import token>
with your license import token from the previous step.
- Replace
The license is now activated or extended and ready for use.
When you activate a license key in LGS, it is linked to the machine where you activated it. If you install LGS on another machine, deactivate the license key first so you can activate it again in LGS.
Deactivate license key offline
Follow these steps to deactivate a license key in the offline mode:
-
On the offline machine with installed LGS, run the following command to generate a license export token and locally deactivate the license key:
licgwy export-deactivation <license key>
- Replace
<license key>
with your license key. - You cannot generate a new activation export token for the same license key until you complete all deactivation steps.
- Replace
-
On the online machine with installed Licensing Gateway Activator, run the following command to generate a license import token:
licgwyactivator deactivate <export token>
- Replace
<export token>
with the token from the previous step.
- Replace
-
On the offline machine, run the following command to activate or extend the license key:
licgwy import-deactivation <import token>
- Replace
<import token>
with your license import token from the previous step.
- Replace
The license is now completely removed from the system. If necessary, you can generate a new activation export token for this license key.
References
The following sections list the most important LGS and Licensing Gateway Activator commands in the fully offline configuration.
LGS CLI commands
The LGS includes a command-line interface (CLI) utility for managing licenses associated with your Pdftools products.
To access a full list of available commands, use the licgwy help
command.
Command | Description |
---|---|
licgwy help | Get instructions on how to use the CLI with a full list of commands. |
licgwy version | Get the LGS version number. |
licgwy export-activation <license-key> | Export an activation request. |
licgwy import-activation <token> | Import an activation response. |
licgwy export-deactivation <license-key> | Export a deactivation request. |
licgwy import-deactivation <token> | Import a deactivation response. |
licgwy status | Check the licensing service status. |
licgwy list | Get information about added license keys and for how long they are valid. |
Licensing Gateway Activator CLI commands
The Licensing Gateway Activator is a command-line interface that you can use to get activation or deactivation tokens for your offline license keys.
To access a full list of available commands, use the licgwy help
command.
Command | Description |
---|---|
licgwy help | Get instructions on how to use the CLI with a full list of commands. |
licgwy version | Get the licensing gateway activator version number. |
licgwy activate <token> | Activate an offline token. |
licgwy deactivate <token> | Deactivate an offline token. |