English 中文(简体)
传真:提供可打印报告的途径
原标题:HTML5 Rich app: a way to deliver printable reports

页: 1

我需要从申请中向用户提供打印(A4格式)报告。 因此,用户可以看到其预审版本,然后打印。

我必须做些什么选择?

最佳回答

目前,我们正通过机构联合组织这样做,并一直在研究一些图书馆/服务,例如:

  • WickedPDF (ruby)
  • DocRaptor (SaaS with multi-lingual api wrappers)
  • Prawn (ruby)

We have decided to go with Wicked PDF and using css page-break properties

这样,我们就掌握了如何使pdf成为可能。 用户然后可以下载PDF作为报告,然后向打印机发送,如果他们希望打印。

问题回答

两种完全不同的方法:

  • Try to create "printable" HTML, deal with all cross-browser issues (I mean the printing-related ones, that go on top of the "usual" ones), lose control over page headers etc.
  • Use something, that is "electronic paper" - PDF being the most prominent suspect. There are many libraries to facilitate this approach.

你也许能够引用我喜欢的那版。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签