anastaciocintra / escpos-coffee

Java library for ESC/POS printer
https://anastaciocintra.github.io/escpos-coffee
MIT License
277 stars 72 forks source link

How to add Job Name #87

Open RafaelAthosPrime opened 6 months ago

RafaelAthosPrime commented 6 months ago

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);
fromFullStack commented 6 months ago

I created the PR to support this feature

your job name