DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:dw2pdf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:dw2pdf [2021-01-16 18:19] Klap-inplugin:dw2pdf [2023-11-25 23:50] (current) – version upped andi
Line 6: Line 6:
 email      : andi@splitbrain.org, klapinklapin@gmail.com  email      : andi@splitbrain.org, klapinklapin@gmail.com 
 type       : action, renderer type       : action, renderer
-lastupdate : 2020-11-12 +lastupdate : 2023-11-25 
-compatible :  !DetritusElenor Of TsortFrusterick Manners,Greebo, Hogfather # Detritus misses composer dependency random_compat+compatible : !GreeboHogfatherIgorJack Jackrum
 depends    :  depends    : 
 conflicts  conflicts 
Line 24: Line 24:
 Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-Only **PHP 5.6 and newer** are supported by dw2pdf plugin.+Only **PHP 7.4 up to PHP 8.1** are supported by dw2pdf plugin. At rather short term support for PHP 7.4 will be dropped.
  
 To export (png) images with an alpha channel (used for transparency), you need to install the GD library for PHP. For example on Debian systems: To export (png) images with an alpha channel (used for transparency), you need to install the GD library for PHP. For example on Debian systems:
  
-  sudo apt-get install php7-gd+  sudo apt-get install php-gd
  
 Also see the [[:tips:phpwithgd|PHP with gd]] tips page. Also see the [[:tips:phpwithgd|PHP with gd]] tips page.
Line 42: Line 42:
 ===== Features ===== ===== Features =====
  
-  * Uses the [[http://www.mpdf1.com/|mPDF]] PHP library. +  * Uses the [[https://mpdf.github.io|mPDF]] PHP library. 
   * Handles different languages (it bundles the large, but relatively complete Unicode font).   * Handles different languages (it bundles the large, but relatively complete Unicode font).
   * Easy customizing through headers, footers and CSS   * Easy customizing through headers, footers and CSS
Line 113: Line 113:
   * [[http://www.qem.eu/doku/doku.php|QEM srl manuals (Italian)]]   * [[http://www.qem.eu/doku/doku.php|QEM srl manuals (Italian)]]
   * [[http://kantuz.esponde.net/|Wiki Kantuz]]   * [[http://kantuz.esponde.net/|Wiki Kantuz]]
 +  * [[https://webge.fr/dokuwiki|WEBGE wikis (french)]]
  
 ===== Other info ===== ===== Other info =====
Line 127: Line 128:
 To set fixed password for generated documents, edit: To set fixed password for generated documents, edit:
  
-''dokuwiki/lib/plugins/dw2pdf/mpdf/config.php''+''dokuwiki/lib/plugins/dw2pdf/mpdf/config.php'' (warning: each plugin update overwrites these changes)
  
 and add following lines: and add following lines:
Line 139: Line 140:
  
  
 +==== Hyphenation ====
  
 +With the following setting in ''style.css'' it is possible to enable automatic hyphenation:
 +<code>
 +body {
 +   hyphens: auto;
 +}
 +</code>
 +
 +The hyphenation is of course language dependent. Normally, the wiki login language is used. If the [[translation|translation plugin]] is installed, the language selected here is used for hyphenation when creating the PDF.
  
 +==== Rendering Limitations ====
  
 +Because the rendering is done on the server side, plugins that rely on the client side to render might not do so correctly in the generated PDF.  Example: [[plugin:mermaid]]
plugin/dw2pdf.1610817574.txt.gz · Last modified: 2021-01-16 18:19 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki