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

ttf font not found on windows server 2012

Open micgro42 opened this issue 9 years ago • 3 comments

On a new install of Windows Server 2012 the pdf export fails immeadieately with the error-message Not a TrueType font: version=0

The default DokuWiki template is used. Copying the Arial fonts from the windows fonts directory to the mpdf ttf dir did not solve the problem. Neither was the relacement of arial -> DejaVuSans successful.

Going back to the fallback version of mpdf 5.7.4/mid-2015 as described on the wikipage however did solve the problems. However now the bookcreator-plugin fails to work correctly.

micgro42 avatar Oct 21 '16 10:10 micgro42

Eventually you could catch the html with the debug option: https://www.dokuwiki.org/plugin:dw2pdf#how_to_collect_more_debug_info From that it is probably simpler to reduce the html. A newer version of mpdf is also available via composer, so simple to install for testing. I haven't had time for moving dw2pdf plugin to the composer setup.

Klap-in avatar Oct 21 '16 21:10 Klap-in

@micgro42 how is the last version of dw2pdf behaving (that is using mpdf 7 development version)?

(btw: mPDF 7.0 is recently released, do you may have the opportunity to update the mPDF library? You did some changes to the imageprocessing, could you have a look again, and see what is now the most handy approach for updating?)

Klap-in avatar Nov 20 '17 22:11 Klap-in

The bug occurred on a client's server. I no longer have access to that server, or Windows Server instances in general, so I cannot reproduce it. It might very well be fixed by the last upgrade.

As to mPDF7.0: maybe we can take a look at it in 2018.

micgro42 avatar Nov 21 '17 12:11 micgro42

Might be solved..

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