Advanced Usage

Print Jobs

{note} You're browsing the documentation for an old version of laravel-printing. Consider upgrading your project to v3. Check your version with the following command:

composer show rawilk/laravel-printing

If you need the details of a print job after it was created on your print server, can have access that from the return of send() on PrintTask.

$printJob = Printing::newPrintTask()
    ->file('path/to/file.pdf')
    ->printer($printerId)
    ->send();

echo $printJob->id();

More info on the PrintJob can be found in the api reference.

Previous
Raw Content Printing
Caught a mistake? Suggest an edit on GitHub