NAME

Business::Bof::Server::Docprint -- Handles printing of documents

SYNOPSIS

use Business::Bof::Server::Docprint

my $prt = new Business::Bof::Server::Docprint($serverSettings);

my $result = $prt -> printFile($data, $userInfo);
...

DESCRIPTION

Business::Bof::Server::Docprint handles the job of administrating the printing of documenents for BOF. It is not meant to be called directly, only from Business::Bof::Server::CLI, which will be the user's primary interface to printing.

Methods

Docprint has four methods:

printFile

Prints a file according to the provided data

$data = { type => 'doc' or 'print', file => $filename, queue => $queuename };

$result = $prt -> printFile($data, $userInfo);

User applications are expected to print to the doc directory. Docprint will find the file there or in the print directory and print it. It will move any printed file from the doc to the print directory. You can have any number of queues.

getFile

Returns the requested file.

my $result = $prt -> getFile($data, $userInfo);

getPrintfilelist

Returns a list of files in either the doc or the print directory.

my $result = $prt -> getFilelist($data, $userInfo);

getQueuelist

Returns a list of queues in the doc or the print directory.

my $result = $prt -> getQueuelist($data, $userInfo);

AUTHOR

Kaare Rasmussen <kar at kakidata.dk>