tips:pdfexport
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tips:pdfexport [2012-07-18 23:00] – remove old referers Klap-in | tips:pdfexport [2015-04-26 10:25] – 81.65.61.129 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Export DokuWiki Page to PDFs ====== | ||
- | Several users proposed a way how to convert your HTML wiki pages to PDFs. | ||
- | |||
- | Current pdf export plugins: | ||
- | * [[plugin: | ||
- | * [[plugin: | ||
- | * [[plugin: | ||
- | |||
- | You can also see: | ||
- | * html to pdf converter: [[tips: | ||
- | * or generate OpenOffice documents from your wiki using [[plugin: | ||
- | |||
- | ===== 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: \\ | ||
- | |||
- | * Add an //Export to PDF// button by editing '' | ||
- | <div class=" | ||
- | <div class=" | ||
- | <?php tpl_button(' | ||
- | <?php tpl_button(' | ||
- | <?php print html_btn(' | ||
- | </ | ||
- | |||
- | * Add a new string to '' | ||
- | $lang[' | ||
Line 39: | Line 14: | ||
}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