laravel-printing
Basic Usage
PrintJob
On this page
Introduction
Each print job object returned from a Driver
should be an implementation of Rawilk\Printing\Contracts\PrintJob
. A print job represents a job that was sent to a physical printer on a print server.
Reference
Rawilk\Printing\Contracts\PrintJob
Methods
date
?CarbonInterface
The date the job was created.
id
int|string
The ID of the job. Some drivers like CUPS
may return a uri to the job instead.
name
?string
If reported by the driver, the name of the print job.
printerId
int|string|mixed
If reported by the driver, the id of the printer the job was sent to. Some drivers like CUPS
will give a uri to the printer instead.
printerName
?string
If reported by the driver, the name of the printer the job was sent to.
state
?string
The reported status of the job.
Serialization
The print job object can also be cast to array or json, and it will return the following info:
- id
- date
- name
- printerId
- printerName
- state
{note} Some drivers may serialize this slightly different.