English 中文(简体)
哪一种最佳方式是播种可能占支配地位的印刷特征
原标题:what is the best way to pop-up a print feature of may dom-pdf output

谨请你以更不清的方式印制一份出版物。

我用鸡场生成了“冰箱”内容,它只是带有一个标志的所有文本。

然后,我有一顿子,当我点击我的Sphp的文字时,它将在我的服务器夹上拯救pdf,然后当用户被转往最后一页时,就会发生什么情况。

? 是否有自动印刷javascript / jquery功能在不翻译的情况下自动印刷。

还是将展示,但正在印制。

问题回答

请审判国防军 合成材料中可以选择打印PDF文件的观点部分,也可以使用它显示MVC应用中的PDF文件。 www.syncfusion.com

- 保障

dompdf (0.6 beta) can embed javascript (see example Script > Javascript) that will print the PDF. In order to print it without displaying it, you can create an invisible iframe, and put the ID of this iframe in the "target" attribute of the link to the PDF.

<iframe style="position: absolute; left: -10000px" id="pdf-iframe" name="pdf"></iframe>

<a href="dompdf.php?foo=bar=baz" target="pdf-iframe">Print PDF!</a>

Note that I didn t put display: none on the iframe as this make the iframe "unusable" in certain browsers. I think this is how the Google Docs print system works.





相关问题
How to render a printable image from a SWF

I m working on a project at the moment where the client uses an off-the-shelf Flash library to display data against a map. It s a SWF that we feed some XML data and it renders it in various ways, such ...

Html printed page resolution (or size in pixels)

Does anybody know what is the resolution that will be used to render a printed HTML page. I d like to know what size (in centimeters or inches) will be a printed image of say 500x500pixels. I know ...

How can I select a different printer in a web application?

I have a Web application programmed in C#. There are several printers and I want to choose any of them and execute the action, I would like some kind of Form to load all printers. I found this for ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

热门标签