tips:pdfexport
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:pdfexport [2010-11-10 15:29] – 91.91.185.208 | tips:pdfexport [2015-05-06 18:02] (current) – [Issues] 12.13.14.15 | ||
---|---|---|---|
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: | ||
} | } | ||
</ | </ | ||
Line 66: | 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.1289399383.txt.gz · Last modified: 2010-11-10 15:29 by 91.91.185.208