简体   繁体   中英

How can i print pdf file in Java Swing

我想单击JButton后将直接弹出打印机窗口以打印pdf文件,而无需显示该文件,这可能吗?

Multiple ways to do it ,

  1. 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 .

  2. Else you can use plenty of java pdf libraries available to do the pdf creation part too

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM