DeveloperWork上分享的一篇讲解Java打印技术的文章 和 Oracle上的关于Printing的Guide : 主要用到两个包 java.awt.print and javax.print
The basic printing operations are represented in the following sections:
A Basic Printing Program – this section describes the Printable interface and presents a basic printing program.
Using Print Setup Dialogs– this sections explains how to display the Print Setup Dialog.
Printing a Multiple Page Document – this section explains how to use pagination for printing a multiple page document.
Working with Print Services and Attributes ndash; this section teaches you about print services, how to specify the print data format, and how to create print job using the javax.print package.
Prin

本文介绍了Java中的打印技术,主要涉及java.awt.print和javax.print两个包。内容包括基本的打印程序、使用打印设置对话框、打印多页文档、工作于打印服务和属性,以及如何打印用户界面。示例代码展示了一个名为HelloWorldPrinter的类,实现了Printable接口,用于简单的文本打印任务。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



