tips:pdfexport
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:pdfexport [2012-07-18 23:00] – remove old referers Klap-in | tips:pdfexport [2015-05-06 18:02] (current) – [Issues] 12.13.14.15 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Export DokuWiki | + | ====== Export DokuWiki |
- | Several | + | Several |
- | Current pdf export | + | Plugins that export |
* [[plugin: | * [[plugin: | ||
+ | * [[plugin: | ||
* [[plugin: | * [[plugin: | ||
* [[plugin: | * [[plugin: | ||
- | You can also see: | + | Other ways to generate PDFs: |
- | * html to pdf converter: [[tips: | + | * HTML to PDF converter: [[tips: |
- | * or generate OpenOffice | + | * 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 39: | 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: | ||
} | } | ||
</ | </ | ||
Line 73: | Line 122: | ||
This appears to only work with pages that allow anonymous read access. | This appears to only work with pages that allow anonymous read access. | ||
+ | GIF images are not embedded into the generated PDF, instead only the first frame is shown. | ||
---- | ---- |
tips/pdfexport.txt · Last modified: 2015-05-06 18:02 by 12.13.14.15