dokuwiki-plugin-dw2pdf icon indicating copy to clipboard operation
dokuwiki-plugin-dw2pdf copied to clipboard

Fontawesome icons do not appear in PDF

Open fama opened this issue 5 years ago • 1 comments

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.

fama avatar May 25 '20 23:05 fama

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 avatar Feb 17 '21 10:02 Klap-in

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

Let's continue the discussion in #445.

Klap-in avatar Oct 12 '22 19:10 Klap-in