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 [2022-09-28 14:08] – [Features] Link ipdated Michaelsyplugin: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 : 2022-06-29 +lastupdate : 2023-11-25 
-compatible :  !Detritus, Elenor Of Tsort, Frusterick Manners,Greebo, Hogfather, Igor # Detritus misses composer dependency random_compat+compatible : !Greebo, Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
-conflicts mathpublish+conflicts 
 similar    : pdfex, html2pdf similar    : pdfex, html2pdf
 tags       : export, pdf tags       : export, pdf
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 140: 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.1664366912.txt.gz · Last modified: 2022-09-28 14:08 by Michaelsy

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