How does PaperCut Work? A behind the scenes look!

KB Home   |   How does PaperCut Work? A behind the scenes look!

A few customers have asked “how does PaperCut track printing”? This knowledge base article gives a quick overview of the process and explains what’s happening behind the scenes.

  1. A user at a workstation selects Print… from their application. The application renders the job and it gets sent to the server’s queue.
  2. The print job arrives in the print queue and begins spooling.
  3. PaperCut detects the event using standard Operating System APIs (Windows, Novell or CUPS on Mac and Linux).
  4. PaperCut pauses the job (to prevent printing until analysis is complete).
  5. Analysis is conducted by reading the spool file. On Windows these are always located on the server in:
    C:\Windows\System32\Spool\Printers
  6. The process that conducts the analysis (the Print Provider) calls across to the Application Server (the central “brains”).
  7. The Application Server makes a decision if the job should proceed. It factors in details such as:
    1. The effects of printer filters such as maximum job size
    2. The balance in the user’s account
    3. Other access rules
  8. The Print Provider will either unpause the job (allow it to print) or delete if from the queue accordingly.

As a general rule on all platforms, PaperCut works by interfacing with the Operating System’s standard print queueing system rather than attempting to replace it. This approach means that you don’t loose any of the functionality provided by the underlying OS and in most cases can benefit from your existing setup and queues (e.g. AD driver deployment, existing permissions, etc.)

Client Software:

PaperCut does include optional client software, however this is not involved in the print analysis process. The client software is optional and at the simplest level can be thought of as a viewing tool. It simply acts on the direction of the server to say show the user their account balance, ask them to select an account or confirm a print, or show messages such as low balance warnings. The client software is required to use some advanced features such as popup account selection.

Multi-server Environments:

PaperCut is designed according to the Service Oriented Architecture (SOA) principle and has full support for a multi-server and multi-operating system environments. In a standard setup, one server is nominated as the “Primary PaperCut Server” and this hosts the main Application Server. Other servers are called Secondary Servers. Secondary servers run a lightweight monitoring component and communicate with the primary server via XML Web Services over HTTP. PaperCut is a fully cross-platform print management software solution. It is possible to mix server operating systems (Windows, Linux, Mac and Novell) and have them all working together as one.

PaperCut may be hosted in a clustered environment.

Multi-Site Environments:

PaperCut offers two solutions,

These servers act as an extension of the Application servers’ print provider, they carry out the instructions of the application server, analysing and controlling print jobs. These servers have 3 simple failure modes should the network between them and the Application server be severed. Read more on these modes in the manual.

To add enhanced resiliency to the PaperCut system Sites servers run a copy of the Application servers database which is replicated constantly to minimise the impact on the network. These servers can be standalone or print servers on the site, and allow the majority of the application server functions to be carried out (including hold release and MFD Embedded functions used in PaperCut MF), while the site is cut off from the Application server. Read more about site servers in the manual.

Other Notes:

  • No modification is made to the job at all (unless watermarking, or print attribute modification such as forcing grayscale or duplex, is enabled).
  • All queue integration is done via standard APIs and/or reading standard spool files.
  • No special driver or driver interaction occurs.
  • All analysis is server-side and no client-side printing interaction occurs.

There is some more discussion on the architecture here in the manual:


Categories: Architecture


Keywords: design, function, internals, workings, technical details, system architecture

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on June 08, 2016, at 12:26 PM
Printable View   |   Article History   |   Edit Article