English 中文(简体)
使用PCL将XML打印为PDF
原标题:Print XML as PDF using PCL
  • 时间:2010-10-26 19:11:34
  •  标签:
  • java
  • xml
  • pdf

我有一个xml文件,我想使用PCL将其打印为PDF。我是PCL的新手。我可以使用PCL直接将xml打印成PDF格式吗?还是应该有一些中间过程来创建PDF文件,然后使用PCL将其打印成PDF?

问题回答

If you have a xml, there are two ways to recieve PDF file. 1. Create stylesheet for your xml, and use XEP or 2. use just your xml and VisualXSL, which will help you create your pdf for print.

更多附加信息:如果您要创建xsl样式表,您可以通过XEP格式化许多类型的PDF,例如PDF/1A或其他级别

Both XEP and VisualXSL are Renderx products(http://www.renderx.com/tools/index.html) and they have trial versions, that you can use:). I have used both products many times, and was satisfied. You can also visit the forum where you can find answers about how to use and how usefull are products described above. http://cooltools.renderx.com

PCL是一种打印机控制语言。换句话说,您发送到(通常是HP)打印机的命令字节,然后将其转换为页面上的墨水。这通常不是你生成PDF的方式,因为太多的原始信息会丢失。

您通常希望将XML转换为描述您想要的实际打印的内容。对此,一个合理的选择是XSL-FOXML方言,但是,手工操作并不是很好。然后,您可以选择将XML转换为DocBookXML,而DocBookXML又有非常好的样式表,可以进一步转换为XSL-FO和其他格式。

然后,您可以使用ApacheFOP将XSL-FO转换为多种格式,其中一种是PDF。这允许您在FOP变得太小的情况下,在以后用几个商业XSL_FO渲染引擎中的一个来替换。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签