tips:pdfexport
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tips:pdfexport [2010-11-10 15:29] – 91.91.185.208 | tips:pdfexport [2015-04-26 10:46] – old revision restored (2013-10-03 03:40) 2001:4dd0:ff00:8eb9:e1a5:925a:f67:907 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Export DokuWiki | + | ====== Export DokuWiki |
- | Several | + | Several |
- | You can also see this page [[tips: | + | Plugins that export directly to PDF: |
+ | * [[plugin: | ||
+ | * [[plugin: | ||
+ | * [[plugin: | ||
+ | * [[plugin: | ||
+ | |||
+ | Other ways to generate PDFs: | ||
+ | * HTML to PDF converter: | ||
+ | * Generate ODT documents from your wiki using the [[plugin: | ||
===== Common changes ===== | ===== Common changes ===== | ||
In order to export your pages to PDF you'll need to add a button to your wiki. Regardless which PDF converter you use, you need to implement the following changes: \\ | In order to export your pages to PDF you'll need to add a button to your wiki. Regardless which PDF converter you use, you need to implement the following changes: \\ | ||
- | * Add an //Export to PDF// button by editing '' | + | * Add an //Export to PDF// button by editing '' |
<div class=" | <div class=" | ||
<div class=" | <div class=" | ||
Line 32: | Line 40: | ||
}else{ | }else{ | ||
$ret .= '< | $ret .= '< | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Dokuwiki-template: | ||
+ | In order to have an export-link below the "Back to top" | ||
+ | * Add a new string (different from above) to '' | ||
+ | $lang[' | ||
+ | * Add the following line in '' | ||
+ | <div id=" | ||
+ | <h3 class=" | ||
+ | <div class=" | ||
+ | <ul> | ||
+ | <?php | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | ?> | ||
+ | </ul> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | * Edit the '' | ||
+ | case ' | ||
+ | $params[' | ||
+ | break; | ||
+ | case ' | ||
+ | break; | ||
+ | default: | ||
+ | return ' | ||
+ | break; | ||
+ | } | ||
+ | return compact(' | ||
+ | }</ | ||
+ | * Create two new '' | ||
+ | # | ||
+ | background-position: | ||
+ | } | ||
+ | # | ||
+ | margin-top: -270px; | ||
+ | } | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | background-position: | ||
} | } | ||
</ | </ |
tips/pdfexport.txt · Last modified: 2015-05-06 18:02 by 12.13.14.15