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 -> print_file($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:

Prints a file according to the provided data

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

$result = $prt -> print_file($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.

get_file

Returns the requested file.

my $result = $prt -> get_file($data, $userinfo);

get_printfilelist

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

my $result = $prt -> get_filelist($data, $userinfo);

get_queuelist

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

my $result = $prt -> get_queuelist($data, $userinfo);

AUTHOR

Kaare Rasmussen <kar at kakidata.dk>