网页打印媒体 - 解决方案? [英] Web pages to print media -- solutions?

查看:122
本文介绍了网页打印媒体 - 解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直是MediaWiki和类似的基于wiki的文本编辑的忠实粉丝。我喜欢快速添加文本,协作和共享的能力。但是,总是仍然需要格式良好的打印输出。诸如页眉和页脚之类的东西(表明我想让他们说什么),分页符,页边距等。

我见过的大多数解决方案都涉及到某种转换一个中间的打印媒体格式(可能是MediaWiki到Microsoft Word,或者可能是一些自定义脚本,从网页的内容中产生一个PDF(带有很多硬编码的引用)。



有没有更通用的解决方案可以解决这个问题?任何试图将HTML和web内容整体合并为一个印刷媒体输出格式的框架?

任何解决方案,讨论关于专业或con的,或任何受欢迎的。



谢谢!

更新:我认为CSS只会让我走得这么远......虽然我已经使用CSS来进行类似的输出(默认情况下,MediaWiki具有隐藏大部分导航栏内容的打印格式)想想MediaWiki文章虽然 - 想象我能够调整内容或类似的标签现在我的边距是1英寸而不是0.5英寸。这更符合我的目标。 您可能听说过 PediaPress 是一家已经完成维基印刷的公司(即PDF,也包括ODF)处理维基媒体基金会。 (请参阅Wikis Go Printable)。他们的代码旨在与MediaWiki协同工作,并且< a href =http://code.pediapress.com/ =nofollow noreferrer>开放源代码。

但是!它甚至比这更好。看看这个小书签。您可以使用它来创建任何可公开访问的MediaWiki页面的PDF或ODF(也许它也需要启用API ...)。而且,您可以将多个页面(从单个MediaWiki或多个MediaWikis)打包到单个文档中。在我的书中这真是太棒了。 :)



ETA:PediaPress已经将重要的工作放在制作看起来真的很好看的东西上。它不仅仅是MediaWiki的可打印版本转换为PDF的等价物。


I've been a big fan of MediaWiki and similar wiki-based text editors. I like the ability to quickly add text, collaborate, and share. However, there's always still the need for nicely formatted print output. Things like headers and footers (that say what I want them to say), page breaks, margins, etc.

Most solutions I've seen involve some sort of conversion to a intermediate print-media format (maybe MediaWiki to Microsoft Word or maybe some custom scripting that generates a PDF from the contents of a web page (with a lot of hard-coded references).

Is there any more generic solution that exists for this problem? Any framework that seeks to merge HTML and web content in general into a print media output format?

Any solutions, discussion regarding the pro's or con's, or whatever is welcome.

Thanks!

Update: I think CSS will only get me so far though... I've used CSS for similar type output (MediaWiki by default has a print format that hides much of the nav bar stuff). Think of a MediaWiki article though -- imagine me being able to tweak a tag in the content or something similar and now my margin is 1 inch instead of .5 inches. That's more along the lines of what I'm aiming for.

解决方案

You may have heard of PediaPress, a company that has done a "wiki to print" (i.e PDF, but also ODF) deal with the Wikimedia Foundation. (See "Wikis Go Printable".) Their code is designed to work with MediaWiki and is open source.

But! It's even better than that. Check out this bookmarklet. You can use it to create PDFs or ODFs of any publicly-accessible MediaWiki page (maybe it needs the API to be enabled too...). And you can bundle multiple pages, from a single MediaWiki or multiple MediaWikis, into a single document. It's pretty freaking awesome in my book. :)

ETA: PediaPress have put significant work into making something that looks really nice to read. It's not just the equivalent of MediaWiki's printable version converted to PDF.

这篇关于网页打印媒体 - 解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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