Closed eduardomozart closed 1 year ago
I'd tried to upgrade mPDF to 8.1.4 (#476) but this didn't seem to fix the issue.
If you can trace in the html (e.g. the big chunck of html can be retrieved with https://www.dokuwiki.org/plugin:dw2pdf#how_to_collect_more_debug_info) which specific part triggers the warnings, you could file these warnings as issue to the upstream mpdf library. Please note that filing these issues without small html examples to upstream library is not accepted there, on the other hand, with good examples they are often very helpful.
Thank you @Klap-in,
In fact, I was able to reproduce the issue when loading the HTML file directly into the mPDF engine and it seems to be related to the value of the vertical-align
CSS property for interwiki links, as "center" didn't exist as a value for this CSS property. I'd created the PR #477 that fixes this issue.
Hello, When trying to generate a PDF using DW2PDF, I'm receiving the following error message:
The
README.md
file from DW2PDF states that mPDF is compatible up to PHP 7.4, but the mPDF itself already supports PHP 8.I'm running DokuWiki Release 2022-07-31a "Igor" (stable) with PHP 8.1.
I'm attaching the markdown page (DokuWiki syntax) and the HTML page generated by the plugin as I was able to find the HTML into the
data/cache
folder.start_dw2pdf_html.txt start_markdown_dw.txt
For me, this issue seems to be related with the number of images associated with the page. There is the interlink
img
tags and the number of errors seems to be twice as the number of images into the page (removing theimg
tag from the HTML file and trying to reparse it again decreases the number of errors).