Open Hativ opened 6 years ago
I second this request. Often, pdf exports serve somewhat "official" purposes, and they should look good. :-)
There are more issues with linebreaks.
We need to test which html (or special mpdf syntax) is working fine in mpdf. Then we can add to e.g. xbr and to the wrap plugins some dw2pdf specific code that ensure that the right line breaks are fed to mpdf. (mpdf is a bit picky and limited in the html/css it accepts)
Seems to work for wrap plugin. See #99 and #149
Hello,
I use the xbr render plugin and the line breaks are not in the pdf export. Could support for this be integrated?
I hacked something really dirty in action.php's p_wiki_dw2pdf() function:
Or maybe someone can tell me where I can get the page text so early like the render plugin so that
str_replace("\n","<br />\n", $text)
is enough, without the hack above.Relevant code in the xbr render plugin: https://github.com/Chris--S/dokuwiki-plugin-xbr/blob/master/renderer.php