Installing SigoPDF Print Monitor – Instructions

Target Audience: IT Manager
Article #: 13349

Summary

The SigoPDF Print Monitor application monitors a specified directory to watch for the arrival of files with a PDF extension. The folder is assigned in the appsettings.json file. The instructions below will guide you through the process of installing the SigoPDF Print Monitor onto a Windows workstation.

Preparation

Before installing the print monitor, you must do the following:

  1. Locate the .Zip archive containing the installer.
  2. Unzip the files into a directory. For example: C:\Sigo\PrintMonitor
  3. Open a CMD window as an administrator and execute the SC utility to add the service where PathToFile is the directory where you unzipped the files.
  4. In the window, enter:
    sc create “Sigo PDF BackgroundPrinter” binpath= “C:\Sigo\PDFBackgroundPrinter\PDFBackgroundPrinter.exe

    sc config “Sigo PDF BackgroundPrinter” start=auto


    After you enter those command lines, the result will look like this:
  1. Next, edit the registry entries to all the Local System account to have access to the printers.
  2. Launch the Registry Editor (Regedit.exe).
  3. Select the key:
    HKEY_CURRENT_USER\Software\Microsoft|Windows NT\CurrentVersion\Devices
  4. From the Registry menu, select Export Registry File.
  1. In the File Name text box, type: c:\Devices.reg
  2. Select the key:
    HKEY_CURRENT_USER\Software\Microsoft|Windows NT\CurrentVersion\PrinterPorts
  3. From the Registry menu, select Export Registry File.
  4. In the File Name text box, type c:\PrinterPorts.reg
  5. Select the key:
    HKEY_CURRENT_USER\Software\Microsoft|Windows NT\CurrentVersion\Windows
  6. From the Registry menu, select Export Registry File.
  7. In the File Name text box, type c:\Windows.reg
  8. Open the device.reg file in a text editor.
  9. Replace the text HKEY_CURRENT_USER with HKEY_USERS\.DEFAULT
  10. Save the file then import it into the registry by double-clicking the file in Windows Explorer.
  11. Repeat steps 15 through 17 for PrinterPorts.reg and Windows.reg
  12. Select the key:
    HKEY_CURRENT_USER\Printers\Connections
  13. From the Registry menu, select Export Registry File.
  14. In the File Name box, type c:\printconns.reg
  15. Open the printconns.reg in a text editor.
  16. Replace the text HKEY_CURRENT_USER with the text HKEY_USERS\.DEFAULT.
  17. Save the file.
  18. Double-click on the file in Windows Explorer to import the file into the registry.
  19. Restart the Print Spooler service.
  20. Edit the app.settings.json file to set the appropriate directory in the InputDirectory where the PDF files will be placed.
    • If the files are to be deleted after printing, then leave the ProcessedDirectory empty.
    • If the files are to be copied to another directory after being submitted, then set the directory to where the files should be moved to.
    • The LogActions can be either Yes or No. Normally, this is set to No, but the option exists for troubleshooting issues.
      • If set to Yes, each file that is processed will have an entry in the event log.
    • Change Purge Minutes based on how long pdfs should be kept in the folder.
  21. Add the PrinterQueueDirectory into the InputDirectory. This is where files will wait to be parsed if multiple files are being sent down.

The logging script will look like this:

{
“Logging”: {
“LogLevel”: {
   “Default”: “Information”,
      “Microsoft.Hosting.Lifetime”: “Information”
    }
  },
  “AppSettings”: {
“LogActions”: “On”,
“InputDirectory”: “C:\\Sigo\\PDFFiles”,
“PrinterQueueDirectory”: “C:\\Sigo\\PDFFiles\\PrinterQueueFiles”,
“ProcessedDirectory”:  “”,
“PurgeMinutes”: “10”
  }
}

  1. Run the Services app and go to the SigoPDF service and set the recovery options as follows:
  1. Ensure that the LOCAL SYSTEM account has permissions to Read and Modify the directory where the PDF files are to be written. If the files are to be saved after they are submitted, then the target directory should also have these same permissions.

Additional Comments

If you need further assistance, please contact us.

Author


Was this article helpful?

Related Articles