Skip to main content

Full offline mode

Use the Pdftools software fully offline with valid license keys for at least three months or more, depending on your license. Your local network can stay without an internet connection, and license keys are validated for a set period of time.

Limitations of full offline mode

The full offline mode isn’t available in the following cases:

  • For the free trial license keys created in the Pdftools Portal.
  • To Docker users. If you are using the Pdftools SDK or the Conversion Service within a Docker container, you can use:
    • The default license consumption reporting. For more details, review Direct connection to the PLS.
    • A connected mode that can be described as a partially offline mode. For more information, review  Connected mode .
    • A containerized mode designed for Docker containers. For more information, review Containerized mode.

Before you start

Ensure your license key supports the full offline mode. Whether you can enable the offline mode depends on the order form and quote you accepted from Pdftools. If you require an upgrade to get this feature, reach out through the Contact form.

Install the LGS

Install the LGS to enable fully offline configuration. Download and install the package on a machine in your network that is not connected to the internet.

LGS is installed with the Conversion Service on Windows Server
  • 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. Skip to Configure the LGS for offline use if you installed the Conversion Service on a Windows Server machine.
  • The full offline mode is available in the Conversion Service version 6+, not in the previous versions.
note

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.

  1. Download the LicensingGatewayService.msi package.
  2. 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.

Configure the LGS for offline use

To configure the LGS:

  1. Locate the LGS configuration file appsettings.json:

    For Windows, the configuration file is in the installation folder, for example:

    C:\Program Files\Pdftools\Licensing Gateway Service\appsettings.json

    Example configuration file:

    {
    "LicensingServicePortNumber": 9999,
    "LogFilePath": "C:/logs/pdftls/log.txt",
    "LogRetentionDays": 7
    }
  2. Enable offline mode in LGS. Update the configuration file so that the IsOfflineMode property is set to true.

    Example configuration file after update:

    {
    "LicensingServicePortNumber": 9999,
    "LogFilePath": "C:/logs/pdftls/log.txt",
    "LogRetentionDays": 7,
    "IsOfflineMode": true
    }
  3. 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 remain.
  4. Restart the service after modifying the appsettings.json file so the changes take effect.

Install the Licensing Gateway Activator

Download and install the Licensing Gateway Activator (LGA) on a machine in your network that is connected to the internet.

  1. Download the LicensingGatewayActivator.msi package.
  2. Run the installer.

Offline license configuration

The following sections explain how to manage your license keys offline using the LGS CLI and LGA CLI tools or online using a combination of the LGS CLI and Pdftools Portal.

You can activate your license in the full offline mode by following the procedures in the following sections:

You can deactivate your license in the full offline mode by following the procedures in the following sections:

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).
  • Optional: The Licensing Gateway Activator CLI (licgwyactivator) is installed on the machine that is connected to the internet (online machine). This is only necessary in the procedures that involve license key activation and deactivation using the Licensing Gateway Activator CLI.

License key activation

Activate license key in the Pdftools Portal

Activate your license key in the full offline mode in the Pdftools Portal by following these steps:

  1. On the offline machine with the installed Licensing Gateway Service, run the following command to generate an offline activation token:

    licgwy export-activation "LICENSE_KEY_VALUE"
    • Replace LICENSE_KEY_VALUE with your license key.
  2. Copy the generated offline activation token.

  3. Log in to the Pdftools Portal.

  4. Go to Licenses tab.

  5. Paste the offline activation token into the field marked as Insert your token here….

    Screenshot of the Pdftools Portal with the Offline Activation / Deactivation page and the 'insert your token here...' field description.
  6. Click Activate, and then click Continue.

  7. Copy the generated license activation token.

  8. On the offline machine, run the following command to activate or extend the license key:

    licgwy import-activation "LICENSE_ACTIVATION_TOKEN"
    • Replace LICENSE_ACTIVATION_TOKEN with your license activation token from the previous step.

The license is now activated or extended and ready for use.

note

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.

Activate license key using the Licensing Gateway Activator CLI

Activate your license key in the full offline mode using the Licensing Gateway Activator CLI by following these steps:

  1. On the offline machine with the installed Licensing Gateway Service, run the following command:

    licgwy export-activation "LICENSE_KEY_VALUE"
    • Replace LICENSE_KEY_VALUE with your license key.
  2. Copy the generated offline activation token.

  3. On the online machine with the installed Licensing Gateway Activator, run the following command:

    licgwyactivator activate "OFFLINE_ACTIVATION_TOKEN"
    • Replace OFFLINE_ACTIVATION_TOKEN with the offline activation token from the previous step.
  4. Copy the generated license activation token.

  5. On the offline machine, run the following command to activate or extend the license key:

    licgwy import-activation "LICENSE_ACTIVATION_TOKEN"
    • Replace LICENSE_ACTIVATION_TOKEN with your license activation token from the previous step.

The license is now activated or extended and ready for use.

note

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.

License key deactivation

Why deactivate a license key? If a machine with a license key activated in an LGS becomes inaccessible, the license key will be blocked and unusable. Unfortunately, you won’t be able to activate or deactivate the blocked license key and move it to another machine. This often happens with discontinued servers or removed virtual machines where our customers did not deactivate their license key in LGS before removing the machine itself.

info

If your license key became blocked, contact Pdftools support to unblock the license key. Review the Support page.

If you want to remove a machine where you have activated license keys in LGS:

  1. Deactivate the license key.
  2. Remove the machine.
  3. Activate the license key on another machine with LGS.

Deactivate license key in the Pdftools Portal

Deactivate your license key in the full offline mode in the Pdftools Portal by following these steps:

  1. On the offline machine with the installed LGS, run the following command to locally deactivate the license key:

    licgwy export-deactivation "LICENSE_KEY_VALUE"
    • Replace LICENSE_KEY_VALUE with your license key.
    • You cannot generate a new activation request token for the same license key until you complete all deactivation steps.
  2. Copy the generated license deactivation request token.

  3. Log in to Pdftools Portal.

  4. Go to the Licenses tab.

  5. Click Deactivate.

  6. Paste the license deactivation request token into the field marked as Insert your token here….

    Screenshot of the Pdftools Portal with the Offline Activation / Deactivation page with the deactivation tab and the 'insert your token here...' field description.
  7. Click Deactivate, and then click Continue.

  8. Copy the generated license deactivation token.

  9. On the offline machine, run the following command to deactivate the license key:

    licgwy import-deactivation "LICENSE_DEACTIVATION_TOKEN"
    • Replace LICENSE_DEACTIVATION_TOKEN with your license deactivation token from the previous step.

The license has now been completely removed from the system. If necessary, you can generate a new activation request token for this license key.

Deactivate license key using the Licensing Gateway Activator CLI

Deactivate your license key in the full offline mode using the Licensing Gateway Activator CLI by following these steps:

  1. On the offline machine with the installed LGS, run the following command to locally deactivate the license key:

    licgwy export-deactivation "LICENSE_KEY_VALUE"
    • Replace LICENSE_KEY_VALUE with your license key.
    • You cannot generate a new activation request token for the same license key until you complete all deactivation steps.
  2. Copy the generated license deactivation request token.

  3. On the online machine with the installed Licensing Gateway Activator, run the following command:

    licgwyactivator deactivate "OFFLINE_DEACTIVATION_TOKEN"
    • Replace OFFLINE_DEACTIVATION_TOKEN with the token from the previous step.
  4. Copy the generated license deactivation token.

  5. On the offline machine, run the following command to deactivate the license key:

    licgwy import-deactivation "LICENSE_DEACTIVATION_TOKEN"
    • Replace LICENSE_DEACTIVATION_TOKEN with your license deactivation token from the previous step.

The license has now been completely removed from the system. If necessary, you can generate a new activation request 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.

CommandDescription
licgwy helpGet instructions on how to use the CLI with a full list of commands.
licgwy versionGet the LGS version number.
licgwy export-activation LICENSE_KEY_VALUEExport an activation request.
licgwy import-activation LICENSE_ACTIVATION_TOKENImport an activation response.
licgwy export-deactivation LICENSE_KEY_VALUEExport a deactivation request.
licgwy import-deactivation LICENSE_DEACTIVATION_TOKENImport a deactivation response.
licgwy statusCheck the licensing service status.
licgwy listGet 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.

CommandDescription
licgwyactivator helpGet instructions on how to use the CLI with a full list of commands.
licgwyactivator versionGet the licensing gateway activator version number.
licgwyactivator activate LICENSE_REQUEST_TOKENActivate an offline token.
licgwyactivator deactivate LICENSE_REQUEST_TOKENDeactivate an offline token.

Full offline mode with Pdftools OCR Service

If you configured the full offline mode with the Pdftools OCR Service, update your worker nodes configuration. Follow the steps described in Configuration in connected mode and full offline mode section.