smalot / cups-ipp

CUPS Implementation of IPP - PHP Client API
GNU General Public License v2.0
106 stars 56 forks source link

Select printer tray #6

Open kasperdeboerdev opened 6 years ago

kasperdeboerdev commented 6 years ago

Sorry for a second issue within 24 hours but Im curious if its possible to select a printer tray with your package. I found out that I have to set $job->addAttribute('media-source','tray-2'); but the response i get is : Property not found: "media-source".

c-scholz-acribit commented 5 years ago

in case anyone's wondering:

check your printer's supported attributes with: $printer->getAttributes();

if attribute you need exists: edit job.yml and add entry you need

e.g. for color-mode selection add print-color-mode: tag: 'keyword'

to find out which tag-type you need to add refer to RFC8011 [IPP1.1]