.PRN 文件生成 [英] .PRN file generation

查看:36
本文介绍了.PRN 文件生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Java 生成一个 .prn 文件.

I want to generate a .prn file using Java.

  1. 是否有任何可用的 Java api?
  2. 现在生成 .PRN 文件是否有任何价值(我的是一个基于 Web 的应用程序,试图模仿现有的客户端/服务器应用程序功能.当前的胖客户端应用程序已经很老了).
  3. 如果没有可用的 API,那么生成 .PRN 文件的策略是什么?

推荐答案

PRN 是发送到打印机以生成输出的字节流,由打印机驱动程序生成.Postscript 打印机使用 PostScript,HP 打印机通常使用 PCL 等.

A PRN is the byte stream which would be sent to the printer to generate the output, and is generated by the printer driver. Postscript printers get PostScript and HP printers usually get PCL etc.

为了复制行为,您需要 Java 打印服务中的兼容驱动程序

In order to replicate the behaviour you need a compatible driver in the Java Printing Service

http://java.sun.com/javase/technologies/desktop/打印/

参见 http://www.exampledepot.com/egs/javax.print/pkg.html 获取一些简短的示例程序,并调查您在系统上可用的打印机.

See http://www.exampledepot.com/egs/javax.print/pkg.html for some short sample programs, and investigate what printers you have available on the system.

这篇关于.PRN 文件生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆