<h3 style="text-align: left; line-height: 1.5em;">We can’t promise this blog post will be a riveting read, the glimpse behind the PaperCut curtain can be a bit geeky but bear with us, it might come in useful on your next install.</h3>
&nbsp;

We recently had a valued partner install PaperCut at a large corporate customer for whom they implemented a filter within PaperCut to automatically delete print jobs that have a large spool file size.
For full disclosure we never found out why the customer wanted this and nor do we have a clue how spool files can end up so large sometimes, we like an air of mystery when it comes to print.

The customer had a healthy mix of Windows and Mac clients, the Mac’s were used for high-quality image file manipulation and the files would be sent to a very expensive printer living in the print room. The customers print server was Windows based and the Mac’s are printing via a printer shared on the Windows server.

In this particular setup/network, printing from Windows would cause the jobs to exceed a spool size of 2GB in around five minutes (pretty reasonable) and if that happened the job would be cancelled as per policy put in place.

&nbsp;

<img class="aligncenter wp-image-5261 size-full" title="spool size" src="https://staging.selectec.com/wp-content/uploads/2018/08/papercut_spool_filter.jpg" alt="spool size" width="1337" height="262" />

Now, the same image files sent from a Mac often took a little longer than 10 minutes to spool. PaperCut queues the job for release at the 10-minute mark but at that point, the job is still spooling and may not have gone over the 2Gb limit yet. In this scenario, PaperCut’s filter does not trigger (as the spool file size is below the threshold) and the job sneaks through the restriction. So, we could blame the Mac’s but we really like them and we are not about blame here, we teach.
<h3 style="text-align: left;"><strong>Get onboard our train of thought (choo-choo)</strong></h3>
<ul>
 	<li>Default support reply of – update all the things! (PaperCut, drivers, OS).</li>
 	<li>Are they using Client Side Rendering? It could be moving the processing load of print-job rendering from the print server to the client computer would help speed it up.</li>
 	<li>Get some <a href="https://www.papercut.com/kb/Main/HowToEnableDebugInNG" rel="noopener">app</a> and <a href="https://www.papercut.com/kb/Main/HowToEnableDebugInThePrintProvider" rel="noopener">print logs</a> from PaperCut, and as a bonus include <a href="https://www.papercut.com/kb/Main/LogPrintJobsInEventViewer" rel="noopener">event viewer</a> logs from the print server to see what is happening.</li>
 	<li>Consider using <a href="https://www.papercut.com/products/mobility-print/" rel="noopener">Mobility Print</a> for Mac printing, it can sometimes offer a better experience for the Mac users.</li>
</ul>
<h3></h3>
<h3 style="text-align: left;"><strong>How we fixed it</strong></h3>
During our morning <a href="https://staging.selectec.com/the-support-process-triage/" rel="noopener">triage</a> we put our heads together and via a berry flavoured <a href="https://uk.huel.com/" rel="noopener">Huel</a> moment of clarity, we remembered what to do!

As mentioned, PaperCut waits ten minutes for the print job to spool before performing any page analysis. If we had asked for and received logs, In the debug print provider logs, we would have seen something like this:
<pre class="">DEBUG: PrintMonitor.cpp:2468 - Timed out waiting for job 3 to spool (Timeout secs: 600). Try to process job.</pre>
&nbsp;

Now, the timeout setting is actually double the <strong>ParseTimeout</strong> value found in the print-provider.conf file in [install directory]\PaperCut MF\providers\print\win.

If you open up the print-provider.conf file you will see this entry:
<pre class=""># The timeout in seconds associated with parsing printer spool files.
# Default: 5 minutes.
# Unit: seconds
# Examples: 600
#
#ParseTimeout=300
</pre>
&nbsp;

As you can see, the default is set to 300 seconds, multiply that by two and you have the 600 seconds (<em>quick maths!</em>) mentioned in the log file.

The next step is to work out how long the jobs take to spool, the customer already had a fairly good idea but if not, a bit of testing and trial and error will be needed. Let us assume that the jobs take 15 minutes to spool, that is 900 seconds, then you would need to set the value to 450. Whatever value you go for you will need to restart the PaperCut Print Provider service for the change to kick in, don't worry any paused jobs will remain paused.

The print job will still be present on the server and will still occupy 2Gb of space on the machine until fully spooled. Oh and don’t worry, the setting will not impact smaller jobs, PaperCut does not currently wait 10 (or now 15) minutes for small jobs to spool.

As our man, KC famously said – <a href="https://www.youtube.com/watch?v=k_z1DBTK0Vw" rel="noopener">here endeth the lesson</a>.

&nbsp;
<h4 style="line-height: 1.5em; text-align: left;">If you need any further help with the above, or indeed have any pre/post sales problems or if you just wish to talk about Kevin Costner's contribution to cinema history, then please, do drop us a line. In case you were wondering, Robin Hood: Prince of Thieves is, in my opinion, his finest work.</h4>
&nbsp;
<h3>Get in touch today | <a href="mailto:sales@selectec.com">sales@selectec.com</a></h3>