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

13
examples/simple.php Normal file
View File

@ -0,0 +1,13 @@
<?php
require_once __DIR__."/../vendor/autoload.php";
use NoccyLabs\Lpr\PrintJob;
$job = new PrintJob("image.png");
// Configure
$job->setPrinter("PDF");
// Invoke lpr to print the image
$job->submit();