escpos-coffee icon indicating copy to clipboard operation
escpos-coffee copied to clipboard

How to add Job Name

Open RafaelAthosPrime opened this issue 1 year ago • 1 comments

image

Is there any way to add the Job Name to replace the doc name "Java Printing" when the printer is not available? something like this

PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet(); 
pras.add(new JobName("your job name", Locale.getDefault())); 

docPrintJob.print(docToPrint, pras);

RafaelAthosPrime avatar Feb 25 '24 16:02 RafaelAthosPrime

I created the PR to support this feature

your job name

fromFullStack avatar Feb 26 '24 00:02 fromFullStack