开发者

How does wikipedia generates PDF

I would like to know on how wikipedia (http://en.wikipedia.org/) creates PDF? It seem to be using some application at the back-end. Could a开发者_如何学运维nyone please let me know on how this is done?

Thanks

Srikanth


Wikipedia runs Mediawiki.
A Google check tells me that they have two PDF extensions.
This one is the one who's still mantained: PDF_Writer

It doesn't use a PHP HTML→PDF generator, (though there are some)
It actually does something trickier and more clever.

The PDF Writer uses the Python Reportlab libraries to generate PDF based on a DOM derived from parsing mediawiki-markup using the mwlib parser.


To confirm ZJR's answer, these are the document properties:

How does wikipedia generates PDF

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜