php-lpr/examples/simple.php

14 lines
208 B
PHP

<?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();