splitbrain / dokuwiki-plugin-dw2pdf

A fork of Luigi Micco's PDF export plugin for DokuWiki
http://www.dokuwiki.org/plugin:dw2pdf
55 stars 68 forks source link

Fontawesome icons do not appear in PDF #402

Closed fama closed 2 years ago

fama commented 4 years ago

Installed the Icons plugin: https://www.dokuwiki.org/%3Aplugin%3Aicons http://www.lotar.altervista.org/wiki/wiki/plugin/icons

The icons display correctly on the page, however they do not apper in the PDF.

I already modified the plugin»dw2pdf»usestyles and added fontawesome,fa, yet the icons do not print.

Can you please help.

Klap-in commented 3 years ago

dw2pdf plugin uses mpdf library. Fonts that are not default included in mpdf has to be added to the mpdf by the user of mpdf. At the moment dw2pdf has not a feature to add this to mpdf. With help of tutorials of mpdf you could add the fonts yourself in https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/blob/master/DokuPDF.class.php. Ensure to make an backup, as this file is typically overwritten on plugin update. Including extended font support (which configurable by wiki admin) in dw2pdf needs probably more work.

Klap-in commented 2 years ago

Example of configuration of fontawesome font: https://stackoverflow.com/a/58702825/1043588

Let's continue the discussion in #445.