PmWiki2PDF-v2
Questions answered by this recipe
Description
PmWiki2PDF v2 : Generate a PDF by PmWiki Pages.
Installation
Download the archive from: https://github.com/hucste/PmWiki2PDF/archive/master.zip
Once the archive is downloaded, you must decompress it. Rename the main folder to "pmwiki2pdf-v2" and then upload it to your webspace hosting your pmwiki in the directory /cookbook/.
Configuration
Templates
=> Modify [your template].tmpl to include this code:
<a href="$PageUrl?action=pdf" title="Read this web page on format .pdf" > <acronym title="Portable Document Format" lang="en">PDF</acronym> </a>
or
=> Modify your GroupHeader, or GroupFooter, or your page by editing, and add this code:
%right% '-[[{$FullName}?action=pdf | PDF]]-'
==> or upload an icone pdf (please, view in package): %right% '-[[{$FullName}?action=pdf | Attach:acrobat.png]]-'
Config file pmwiki
You need to add in the file config pmwiki, the following `PHP code:
include_once('cookbook/pmwiki2pdf-v2/pmwiki2pdf.php');
and this - since the element 'dl' is not supported:
DisableMarkup('dl');
This is being done, save your config file and upload it again on the web space on your PmWiki.
Config file cookbook PmWiki2PDF
The file config.php is really intended to set certain options.
Options to:
- Management pdf file - used to generate it, obtaining the necessary information.
- display the copyright included in the pdf
- other possible actions.
Other Files
It is also possible to modify the following files:
- page_header.html: Managing the HTML in PDF page's header.
- page_footer.html: Managing the HTML in PDF page's bottom.
- style_css.html...
Usage
Notes
Change log / Release notes
See also
- Cookbook /
- BackupHTMLZip Export your wiki to static HTML then optionally compress/zip it (Experimental)
- EPUBCreation Assembles wiki page collections into an EPUB e-book file (EPUB output is ready for beta testing)
- ExportHTML Export PmWiki pages as "static" HTML pages
- ExportHTMLWiki Create a wiki using static HTML pages as front end for visitors (stable)
- GeneratePDF Generate PDF versions of pages (?action=pdf) (Stable)
- PrintGroup Export WikiGroup pages to one large HTML file, and/or to PDF (Experimental)
- PublishPDF Typesets wiki page collections into PDF (finalist: New Zealand open source awards 2008) (Stable, reliable and substantially complete, php 5.5 compliant)
- PublishWikiTrail Provide the ability to publish the pages of a wiki trail as a single web page, formatted for printing
- WikiConversion Recipes for converting other wikis from and to PmWiki
Contributors
Comments
See discussion at PmWiki2PDF-v2-Talk
User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.