laravel-printing

Basic Usage

PrintJob

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.

Rawilk\Printing\Contracts\PrintJob


?CarbonInterface

The date the job was created.


int|string

The ID of the job. Some drivers like CUPS may return a uri to the job instead.


?string

If reported by the driver, the name of the print job.


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.


?string

If reported by the driver, the name of the printer the job was sent to.


?string

The reported status of the job.


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.

Previous
Printer