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

DW2PDF 2021-07-22 Failed to load document #447

Open BRBProg opened 2 years ago

BRBProg commented 2 years ago

Hello dear developers, First of all, I would like to send you all my congratulations on this excellent software! I installed the latest version of DokuWiki [2021-11-28] and manually installed the latest version of DW2Pdf [2021-07-22] in the [lib \ plugins] directory. The latter has been recognized by DokuWiki. When I click on the DW2Pdf icon, the document is created but when I want to open the document then an error appears: Failed to load PDF document. Thank you for your reply. Best regards, Bruno

Klap-in commented 2 years ago

Please try to open in a text editor, and check if there are error message on the start of the file.

torjin-dot commented 1 year ago

I have a similar issue with dw2pdf and bookcreator under Igor. Maybe it helps. The PDF has that in the head of the file:

<br />
<b>Warning</b>:  Undefined array key 1 in <b>/PATHTO/dokuwiki/lib/plugins/dw2pdf/vendor/mpdf/mpdf/src/Mpdf.php</b> on line <b>6882</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>/PATHTO/dokuwiki/lib/plugins/dw2pdf/vendor/mpdf/mpdf/src/Mpdf.php</b> on line <b>6882</b><br />
%PDF-1.4
%▒▒▒▒
3 0 obj
.....
torjin-dot commented 1 year ago

it seems, it doesn't work with Interwiki links like:

urls and internal links are working

Klap-in commented 1 year ago

Which php version are you using?

torjin-dot commented 1 year ago

php-8.1.12

torjin-dot commented 1 year ago

looks fixed with Dw2Pdf 2023-02-28