harwey / cups4j

Cups4j Java printing library for CUPS/IPP
http://cups4j.org
GNU Lesser General Public License v3.0
130 stars 64 forks source link

printer.getName() return null #36

Closed samvel-malintsyan closed 4 years ago

samvel-malintsyan commented 4 years ago

I suppose it's not a cups4j issue, but because I can't find a solution I decided to ask here.

//some code here CupsPrinter cupsPrinter = cupsClient.getPrinter(printerURL); System.err.println(cupsPrinter.getName()); //some code here

why cupsPrinter.getName() returns null? (cupsClient.getPrinters() returns available printer list) I think it's related to cupsd.conf permissions. (OS ubuntu)

It works correctly in the local mac os system.

Can anyone help?

Regards, Samvel

samvel-malintsyan commented 4 years ago

Fixed.