php-lpr/examples/simple.php

14 lines
208 B
PHP
Raw Normal View History

2017-10-31 17:10:39 +00:00
<?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();