Added examples, tweaked print job

This commit is contained in:
2017-10-31 18:10:39 +01:00
parent d03428a2e4
commit 0c684980da
3 changed files with 36 additions and 0 deletions

View File

@ -94,6 +94,12 @@ class PrintJob
*/
public function submit()
{
if (!file_exists($this->document)) {
throw new LprException(
sprintf("The document could not be printed because the file could not be found: %s", $this->document)
);
}
$options = [];
if ($this->server !== null) {
$options[] = "-H";