English 中文(简体)
• 如何迫使网站内容填满A4印刷网页?
原标题:How to force web content to fill an A4 printed page?

目前,我为管理一个小型组织做了准备。 该信的功能之一是印制给各位成员的每月信袋。 其运作方式是,我从亚洲开发银行提取有关该成员的数据(姓名、地址、日期等),然后填入一个字母模板,把所有细节的持有人变量都列入其中。

在所有这些信件都有人问世后,我需要让用户选择打印整个信函。 这就是我的问题所在。 我想这样,每封信将印在一份纸面上,内容放在正本页的中间位置并一致。

I ve attempted to make a Print Media stylesheet and inject the content into a div which I then style to fill the page, but this solution doesn t seem to work properly mainly due to layout issues.

我是否应该以另一种形式这样做? 我是否应该把这个问题寄给Word或PDF,以便进行适当的处理,或者这种事情是否能够用超文本处理,中央安全局?

注:使用一米的 st是标准LC/PHP,而我可以安装我可能需要的另外3个第三方图书馆。

任何想法?

最佳回答

HTML isn t very good for this job, especially if you have a single HTML page with many letters (i.e. you want each letter to start on a new page).

有许多用于PHP的PDF生成工具,而人民抵抗力量实际上对印刷布局非常好。

PDF将允许你控制印刷的细微部分,例如把碎块放在一起,何时开设新网页,而且更远!

哪一种是PHP最佳的PDF-API?

问题回答

暂无回答




相关问题
Very basic WPF layout question

How do I get this listbox to be maxiumum size, i.e. fill the group box its in. I ve tried width="auto" Height="auto", width="stretch" Height="stretch" annoyingly at the moment, it dynamicly sizes to ...

How to align the text to top of TextView?

How to align the text to top of a TextView? Equivalent Android API for Swings setInsets()? that is top of text should start be in (0,0) of TextView <?xml version="1.0" encoding="utf-8"?> <...

Centring a flow in Shoes

Can I center the contents of a flow in Shoes? I know that a paragraph can be centred like: para Centred paragrpah , :align=> center However, this does not work with flows: flow(:align=> ...

Overlaying with CSS

I want to load a website in an iframe, and overlay the website with some hints about the website that is shown. However, i got stuck at the point that the website has a variable passive white space at ...

How do you normally make a program look beautiful? [closed]

How can I make an Application look nice and not like an amateur pulled it together? I mean graphic-wise. Is there some sort of book you can read regarding beautiful program layouts, etc? I put this ...

热门标签