Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrintServiceLookup is not working in Doppio #505

Open
santha6693 opened this issue Jan 4, 2018 · 3 comments
Open

PrintServiceLookup is not working in Doppio #505

santha6693 opened this issue Jan 4, 2018 · 3 comments

Comments

@santha6693
Copy link

PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
System.out.println("Number of print services: " + printServices.length);
for (PrintService printer : printServices) {
System.out.println("Printer: " + printer.getName());
}
While Executing the above code the doppio through the following Exception.

java.lang.UnsatisfiedLinkError: Native method 'sun.print.CUPSPrinter.initIDs()Z' not implemented.

@jvilk
Copy link
Member

jvilk commented Jan 4, 2018

Looks like we need to stub some printer-related native methods to act as if no printers exist. I'll accept pull requests that implement these.

@santha6693
Copy link
Author

Even Printer is connected also the Exception is Throwing.

Can you please tell me how to send the text file to Printer using Doppio.

@jvilk
Copy link
Member

jvilk commented Jan 8, 2018

Doppio does not currently support printers, and we do not have plans to add support.

To add printer support, I imagine someone would need to write or compile a printer driver to JavaScript that produces postscript or a PDF, and instruct the browser to print it.

(I'm happy to accept any pull requests moving us in this direction, but cannot commit any resources to it myself.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants