How can i print pdf file in Java Swing
I want to like after click a JButton will directly pop out a printer window to print the pdf f开发者_如何转开发ile no need to show the file, is it possible?
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
See Desktop.print(File).
精彩评论