English 中文(简体)
DOM(XML)物体的印刷文件——PHP?
原标题:Printing (physically) documents from a DOM (XML) object - PHP?

我很想知道,购买力平价中是否有任何特征(主要是因为这是我知道的唯一东西),因此很容易以XML(DOM物体)的内容制作纸面表格或文件。 我在谷歌周围进行搜索,但Im在体印方面没有取得许多成功。 XML基本上由客户发出命令。 我愿在每一页上打印每张订单。

如果没有这样的特征,我就能够用纸上打印的浏览器和印刷。 我不敢肯定,但没有任何条件做这样的事情,以便我能更好地研究谷歌吗? 我在浏览器上找回“印”。

任何建议或评论? TIA!

最佳回答

你们需要首先把你的XML转化为可以打印的内容。 这一例子表明如何将其改为。 页: 1

You ll also want to make sure you re using a @media print CSS to correctly format your doc for printing.

问题回答

您可使用XSL分机将源XML改为XSL-FO文件通过。 之后,您可使用Saxon Apache FOP或能够将XSL-FO档案提供给PDF的任何其他处理器。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签