How do I capture a spool file from a Windows print queue?

I'm trying to find out if this is possible, and if so how to do it. From a machine running XP or Vista, as I understand it, when you send something to print, Windows/the print drivers render the file into a format the printer can read and understand (a spool file?). This file is sent to the printer then the local copy is deleted. I believe this file is held briefly in the "C:\WINDOWS\system32\spool\PRINTERS" folder, which is effectively the shared print queue folder. for all printers on that machine.

My question is whether you can capture this 'raw' spooler data (I've managed to copy and paste to capture the files that appear in the spool folder, but you have to be fast!), and crucially, once you've captured it, can you then somehow send it to print again?

I have a feeling this is more complicated than I think. Presumably there are different formats of spooler data etc.? Is there a utility that can do the printing/viewing of captured files?

Customer
-------------------------------------------------

How to capture a Windows Spool File?

If the application does not support "Print to file", the following method (for a Windows server) can be used:

  1. Manually power down the printer or pause the queue so printing will stay held in the queue.
  2. Print a document that demonstrates the problem (normally using a workstation).
  3. On the server, navigate to C:\Windows\System32\Spool\PRINTERS\ folder.
  4. Take a copy of the SPL and SHD files who's creation date matches the time of the print.
  5. Copy and Rename the files to a descriptive name like "testprint-3pages-2color-1bw.spl".
  6. Zip the files and email both files to support@verypdf.com for analysis.

VeryPDF
-------------------------------------------------

In troubleshooting problems, it is sometimes necessary to capture the data (spool file) being sent to the printer. Below are instructions for two different methods for capturing a spool file on a Windows computer.

The first step is to make sure that output is spooled to the printer, rather than printing directly.

  • Go to Devices and Printers, right click on the printer queue, and select "Printer Properties",
    clip_image002
  • Make sure that the setting "Spool print documents so program finishes printing faster" radio button is selected,clip_image004

Next, we pause printing to the queue so we can capture the file:

  • Right click in Devices and Printers, select See What's Printing,clip_image006
  • Select Pause Printing,clip_image008

Next, open the spool directory ( C:\Windows\System32\spool\PRINTERS\ ) to watch for the spool file after it enters the queue,

clip_image010

Print your document through the print queue,

Look for files with an extension of *.spl in the directory: 

clip_image012

Email the spool file to others,

clip_image014

Light bulb Spool File Relevant Tools:

PCL Converter: Convert PCL files to PDF, PS, EPS, TIFF, JPG, PNG, BMP, etc. formats,
http://www.verypdf.com/app/pcl-converter/index.html

Postscript to PDF Converter Command Line and SDK,
http://www.verydoc.com/ps-to-pdf.html

Postscript to Image Converter Command Line and SDK,
http://www.verydoc.com/ps-to-image.html

Postscript to Text Converter Command Line and SDK,
http://www.verydoc.com/ps-to-text.html

Spool File Page Counter SDK,
http://www.verydoc.com/spool-page-count.html

School See Also:

How to capture printer spooler file when printing and then view and/or print that spooler file again?
http://www.verypdf.com/wordpress/201607/how-to-capture-printer-spooler-file-when-printing-and-then-view-andor-print-that-spooler-file-again-42708.html

Intercepting data sent to a Windows printer
http://www.verydoc.com/blog/intercepting-data-sent-to-a-windows-printer.html

How to intercept and capture a print job and convert it to PDF & Plain Text & Image files and then print?
http://www.verydoc.com/blog/how-to-intercept-and-capture-a-print-job-and-convert-it-to-pdf-plain-text-image-files-and-then-print.html

Can I forward and redirect print jobs from one printer to another in windows?
http://www.verypdf.com/wordpress/201607/can-i-forward-and-redirect-print-jobs-from-one-printer-to-another-in-windows-42706.html

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PCL Converter, Postscript to Text/PDF/Image, Spool File Page Counter SDK, VeryPDF SDK & COM and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!