Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序中有 pdf 文件。我需要在浏览器中显示 pdf。并且还需要为该页面提供打印选项以打印在servlet中如何可能。我正在生成pdf但如何为生成的pdf提供打印选项
我认为javascript应该帮助你。
javascript
利用window.print()
window.print()
参考:http ://www.w3schools.com/jsref/met_win_print.asp