Printers

Illustration 1 — Printers

Configuration setup

Printing on printers - module for intercepting documents sent for printing.

Enabling this module, subject to conditions, allows you to intercept:

  • a shadow copy of the document sent for printing;

  • spooler file, which the printer generates before printing;

  • A screenshot of the desktop at the time the document is sent for printing.

Automatically configure all printers to print via a spooler - the module automatically configures printers to print via a spooler. If the “Files” - “Shadow Copy” configuration parameter is enabled and printers are successfully configured to print via a spooler, an archive with an image of the document sent to the printer will be added to the print event. This image can be downloaded and view using the web interface or special programs, depending on the image format.

Automatically configure the use of the EMF data format - the module automatically converts the “Print Processor” to the NT EMF 1.008 format. This setting will help when viewing the spooler file with third-party applications.

Note

Automatic setup enables printing through a spooler, which for some printer models makes it impossible to print, so before enabling this option, you must check all printer models you use for compatibility with the Windows spooler.

Note

When you turn off print interception or stop the Agent, the printer option “Save documents after printing” is disabled. Also, when interception is turned off or the Agent is stopped, the document image format is restored to the one that was set before the Module intervened. The remaining attributes are not restored to their previous values, because They are considered to always suit users and not disrupt the printing process.

Note

The current implementation of intercepting the contents of printed documents requires saving documents in a spooler without their subsequent deletion by the operating system. This may result in a large number of print jobs accumulating in the print manager and wasting disk space on the PC where the Agent is installed. Therefore, the Agent automatically and as quickly as possible deletes successfully completed print jobs after processing them, which in turn leads to the operating system deleting the corresponding files in the spooler directory. This information may be important for those who use the printer setting to save documents after printing for purposes other than the task of intercepting printing by the Agent.

Description of the necessary conditions for full interception of documents

  1. To intercept desktop screenshots when sending a document for printing, you must enable the “Screenshots when window focus changes” module in the “Screenshots” configuration section.

  2. To intercept, you must perform automatic or manual configuration of printers. That is, in the printer properties - “Advanced” the following modules must be enabled:

  • “Use print queue

  • “Start printing after the entire job has been queued

  • “Save documents after printing

  • “Enable additional features

  1. To intercept shadow copies of documents, you must enable the “File Activity” and “Shadow Copy” modules in the configuration in the “Files” section and make the necessary printer settings.

Searching for the original file that was printed has the following disadvantages:

  • Finds a file that contains a document that does not completely correspond to the one actually printed, for example, because the user changed it and did not save the changes before printing.

  • It will not find the file if a new document was created and it has not yet been saved, or if the file with the document was deleted or moved within 30-60 seconds after printing.

  • Will not find the file if the print job name does not contain the file name.

  • Will not find the file if the printing program is not included in the pre-compiled list of monitored processes (winword.exe, excel.exe, wordpad.exe, notepad.exe, notepad++.exe, AcroRd32.exe, TOTALCMD64.EXE, TOTALCMD.EXE, SumatraPDF.exe, mspaint.exe, soffice.bin, FoxitReader.EXE, STDUViewerApp.exe, WinDjView.exe, acad.exe, SLDWORKS.exe).

Manually configuring printers to intercept print events

If the printer is networked and the agent PC does not have the ability to perform automatic setup, you can perform the setup manually. To do this, go to the printer properties and make the following settings:

Illustration 2 — Printers

The remaining parameters on the “Advanced” tab can be configured at the discretion of the PC administrator.

Viewing an image of a printed document

The image of the printed document is included in the Print Event as a zip archive with a name in the form of a number.

Illustration 3 — Printers

This archive contains 2 files, the image is stored in a file with the spl extension. Images of printed documents have a format that depends on the printer driver, so you need appropriate programs to view them.

Printers with XPS drivers

For printers with XPS drivers (these drivers usually have the abbreviation XPS in their names), document images are generated in the XPS format and can be viewed in the web interface or using the XPS Viewer program.

Note

For network printers, Windows does not use the XPS format for spl files, even if the XPS driver is installed. For such intercepted spl files, you must use other programs or reprint.

View in the Server web interface

Starting from Server version 4.6. To view the captured image, you can use the additional content menu (the wrench icon in the upper right corner when you hover over a cell with content) by selecting “Export to PDF”.

Illustration 4 — Printers

If the archive in the Print Event contains an spl file in XPS or PSL format, then a PDF file containing an exact copy of the image of the printed document will open in a new browser tab. If there is no archive or spl file, or if the archive contains a file not in a supported format, it will display a page describing the problem and recommendations for resolving it.

View in XPS Viewer

To do this, you need to download the archive included in the print event, unzip the file with the spl extension from it and open this file in the XPS Viewer program.

To make this easier, you can change the spl extension to the xps extension after unzipping. If XPS Viewer is not installed on your system, then there are several solutions:

  • Open a command prompt as an administrator and run the XPS Viewer installation command:

    dism /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0
    
  • XPS Viewer is included with Windows 8.1 and Windows 7.

  • Microsoft recommends installing .NET Framework 3.0 or higher, which includes this utility.

  • You can use the free STDU Viewer program, which is compatible with Microsoft Windows 2000/XP/2003/Vista/7/10.

Printers with non-XPS drivers

Unfortunately, our company cannot offer a universal tool for viewing all other image formats, but here are some links to free programs:

Reprinting a document using a spooler file

In case you tried to view a printed document in the web interface and received an error:

Converting the intercepted image to pdf is impossible, because… The printer is using a driver that does not support the XPS or PCL format.

Download the archive with spooler files and the utility for printing documents reprint.exe, a link to the program will be available in the browser page that opens.

Illustration 5 — Printers

Select the spooler archive using the “Select file” button or drag it into the program window with the mouse.

The program will offer you to print the document on a printer that has a driver similar to the original printer. You can also download a log that displays information about the spooler files and supposed drivers. Based on this information, you can check the “Show unsuitable” checkbox and select a printer that has a print driver that you think is suitable.

Warning

Printing to unsuitable printers can result in inability to print, waste of paper, and even printer failure. Be careful if you plan to print on an unsuitable printer.

Known Issues

Warning

If the Print Manager service is disabled on the computer, then print interception will not work, and the errors EnumPrinters() failed, error: [1722, RPC Server is unavailable] will appear in the log. To resolve this issue, enable the Print Spooler service and restart the agent.

Note

Printers that are distributed over the network from other computers use the spooler only on the computer to which they are directly connected. Therefore, it will not be possible to intercept print contents on PCs that send a document for printing to such a network printer. If the distributing computer has a Windows operating system, then you need to install the Agent on it, enable print interception and configure the printer properties automatically through the Agent or manually.

Note

The Windows operating system may limit the number of copies in print jobs to 9999. Some printer drivers do not allow copies to be used, such as the Microsoft XPS Document Writer printer; for such printers, the number of copies will always be 1. You should also be aware of the fact that the total number of pages in a print event is converted to 1 when it exceeds approximately 32 million, since this number for a single document is considered a failure.