我想单击JButton后将直接弹出打印机窗口以打印pdf文件,而无需显示该文件,这可能吗?
Multiple ways to do it ,
You can get access to printers installed , this requires how the printers are configured etc and then you require some print plugin to write it to pdf file .
Else you can use plenty of java pdf libraries available to do the pdf creation part too
请参阅Desktop.print(File) 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.