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

DW2PDF 2021-07-22 Failed to load document

Open BRBProg opened this issue 4 years ago • 6 comments

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

BRBProg avatar Dec 03 '21 12:12 BRBProg

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

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

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 avatar Jan 30 '23 13:01 torjin-dot

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

  • [[otherwiki>side]] (is in dokuwiki/conf/interwiki.local.conf defined)
  • official like [[doku>Interwiki]]

urls and internal links are working

torjin-dot avatar Jan 30 '23 14:01 torjin-dot

Which php version are you using?

Klap-in avatar Jan 30 '23 20:01 Klap-in

php-8.1.12

torjin-dot avatar Jan 31 '23 08:01 torjin-dot

looks fixed with Dw2Pdf 2023-02-28

torjin-dot avatar Mar 20 '23 15:03 torjin-dot