Render As PDF

Purpose

Makes a PDF from the current page.

Usage

Select RenderAsPDF action, check wanted options and click the 'Render As PDF' button.

For live example, see http://sixmen.pe.kr/index.cgi/MoinMoin/RenderAsPDF?action=RenderAsPDF

Logic

This uses DocBook and XSL.

A DocBook document is generated by the 'RenderAsDocBook' action which exists in MoinMoin. And it will be converted to PDF after passing through XSL-FO.

Currently, this uses SAXON as XSLT processor and Apache FOP as FO renderer. But you can use others (e.g, xsltproc or XEP) by modifying the plugin code.

Install

First, install SAXON, Apache FOP, and DocBook stylesheet.

And install RenderAsPDF.py to the action plugin directory.

You must modify paths(temp_direcotry, cmd_xmllint, cmd_saxon, cmd_fop and docbook_xsl) of the source to real paths.

Note

You can modify the DocBook genertor(MoinMoin/formatter/text_docbook.py) and the XSL stylesheet for better output.

License

This parser is released under the terms of the GNU GPL.

Discussion

MoinMoin: ActionMarket/RenderAsPDF (last edited 2012-02-09 08:35:26 by SixMen)