重塑pdf轮 [英] reinventing the pdf wheel

查看:57
本文介绍了重塑pdf轮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于人们对纸质副本具有亲和力,因此打印已经成为一个问题,因为我正在生成一些报告。最终用户似乎不方便

必须将方向设置为横向并将其边距设置为0.25 -

会产生漂亮的报告。他们想要一个下载pdf版本的链接

满足他们所有的需求/需要 - 存储/打印的东西没有

不得不捣乱打印机设置。


我已经看过fpdf来生成pdf本身了,但是我真的不喜欢

必须为它创建一个包含html的包装器并将其提供给

fpdf,包括应用的@media print css。那里有什么东西可以用来做这个吗?我很乐意使用ob_start回调来

将html泵送到所述包装器并完成它。


想法,建议?


如果只有你可以获得一个浏览器来兑现方向和保证金css

指令!


tia,


me

解决方案

http://sourceforge.net/projects/tcpdf/ ???


" Steve" ; < no **** @ example.comwrote in message

news:WO ************ @ newsfe12.lga ...


因为人们对纸质副本有亲和力,打印已成为一个问题,我正在生成一些报告。

最终用户似乎不方便将横向设置方向和边距设置为

0.25 - 这会产生漂亮的报告。他们想要一个链接下载一个

pdf版本,满足他们所有需要/想要的东西 - 存储/打印

,而不必捣乱打印机设置。


我已经看过fpdf来生成pdf本身了,但是我真的不喜欢

必须为它创建一个包含html的包装器并将其提供给

fpdf,包括应用的@media print css。

那里有什么东西可以做到这一点吗?我很乐意使用ob_start回调

将html抽取到所述包装器并完成它。


想法,建议?


如果只有你可以获得一个浏览器来兑现方向和保证金css

指令!



我*所以*不知道这是怎么回事。

当我使用媒体打印CSS样式表时 - 我得到正是我在

CSS文件中指定的内容。

据我所知 - 它在每台打印机上都是一样的。




" Sanders Kaufman" < bu *** @ kaufman.net写信息

新闻:RJ ******************* @ newssvr12.news.prodigy。 net ...


" Steve" < no **** @ example.comwrote in message

news:WO ************ @ newsfe12.lga ...


>由于人们对纸质副本有亲和力,因此打印已成为我正在生成的一些报告的问题。最终用户似乎不方便将横向设置方向和边距设置为0.25 - 这会产生漂亮的报告。他们想要一个链接来下载一个满足他们所有需求的pdf版本 - 存储/打印的东西,而不必捣乱打印机设置。

我''我看了一下fpdf来生成pdf本身,但是我真的很喜欢
不必为它创建一个包装器,它将把html和它提供给fpdf,包括@media print css被申请;被应用。那里有什么东西可以做到这一点吗?我很乐意使用
ob_start回调来将html泵送到所述包装器并完成它。

想法,建议?

如果只有你可以获得一个浏览器来兑现方向和边缘css
指令!



我*所以*不知道这是怎么回事。

当我使用媒体打印CSS样式表时 - 我得到正是我在

CSS文件中指定的内容。



i *所以*也没有得到它。也许我有一个类型-o或者是

引用/拼写错误的属性。你会发布你的媒体打印

样本打印景观,所有页边距为0.25"


thx


since people have an affinity to paper copies, printing has become an issue
with some reports i''m generating. it seems incovenient to the end-users to
have to set the orientation to landscape and their margins to 0.25 - which
results in a beautiful report. they want a link to download a pdf version
that fills all of their needs/wants - something to store/print without
having to muck with printer settings.

i''ve looked at fpdf for generating the pdf itself, but i''d really love not
having to create a wrapper for it that will take the html and feed it to
fpdf including the @media print css that is applied. is there something out
there that would do this already? i''d love to use an ob_start callback to
pump the html to said wrapper and be done with it.

ideas, suggestions?

if only you could get a browser to honor orientation and margin css
directives!

tia,

me

解决方案

http://sourceforge.net/projects/tcpdf/ ???


"Steve" <no****@example.comwrote in message
news:WO************@newsfe12.lga...

since people have an affinity to paper copies, printing has become an
issue with some reports i''m generating. it seems incovenient to the
end-users to have to set the orientation to landscape and their margins to
0.25 - which results in a beautiful report. they want a link to download a
pdf version that fills all of their needs/wants - something to store/print
without having to muck with printer settings.

i''ve looked at fpdf for generating the pdf itself, but i''d really love not
having to create a wrapper for it that will take the html and feed it to
fpdf including the @media print css that is applied. is there something
out there that would do this already? i''d love to use an ob_start callback
to pump the html to said wrapper and be done with it.

ideas, suggestions?

if only you could get a browser to honor orientation and margin css
directives!

I *so* don''t get how this is a problem.
When I use media-print CSS stylesheets - I get exactly what I specify in the
CSS file.
And as far as I can tell - it comes out the same on every printer.



"Sanders Kaufman" <bu***@kaufman.netwrote in message
news:RJ*******************@newssvr12.news.prodigy. net...

"Steve" <no****@example.comwrote in message
news:WO************@newsfe12.lga...

>since people have an affinity to paper copies, printing has become an
issue with some reports i''m generating. it seems incovenient to the
end-users to have to set the orientation to landscape and their margins
to 0.25 - which results in a beautiful report. they want a link to
download a pdf version that fills all of their needs/wants - something to
store/print without having to muck with printer settings.

i''ve looked at fpdf for generating the pdf itself, but i''d really love
not having to create a wrapper for it that will take the html and feed it
to fpdf including the @media print css that is applied. is there
something out there that would do this already? i''d love to use an
ob_start callback to pump the html to said wrapper and be done with it.

ideas, suggestions?

if only you could get a browser to honor orientation and margin css
directives!


I *so* don''t get how this is a problem.
When I use media-print CSS stylesheets - I get exactly what I specify in
the CSS file.

i *so* don''t get it either. maybe i''ve got a type-o or am
referencing/misspelling the attribute. would you post your media print
sample to print landscape with all margins at 0.25"

thx


这篇关于重塑pdf轮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆