Added examples, tweaked print job
This commit is contained in:
		
							
								
								
									
										13
									
								
								examples/simple.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								examples/simple.php
									
									
									
									
									
										Normal 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();
 | 
			
		||||
		Reference in New Issue
	
	Block a user