Previous Next Chapter

printtofile.device

This device driver acts as a replacement for parallel.device". But instead of sending all data written to it to the parallel port, this driver will store it in a file the user is prompted to choose.

How to use it?

In the Printer preferences editor, click on the Use custom device" button and enter printtofile.device" as the Port Device". Note that printer units cannot share a single printtofile.device unit number. Thus, for two printer units to print to a file, choose different printtofile.device unit numbers. Any number between 0 and 9 will do.

What happens when printing starts?

Each time the printer.device is opened and starts sending data to the output device, printtofile.device will open a file requester, prompting the user to enter the name of the file the data is to be stored in. This happens both for text output and for graphics dumps.

If the selected file already exists, the user will be prompted to choose the action to follow: the file can be overwritten, the new data can be appended to it, a new file name can be selected or printer output can be cancelled altogether.

Top Previous Next Chapter