Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BRBProg opened this issue Dec 3, 2021 · 6 comments
Open

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

BRBProg opened this issue Dec 3, 2021 · 6 comments
Labels

Comments

@BRBProg
Copy link

BRBProg commented Dec 3, 2021

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
Copy link
Collaborator

Klap-in commented Oct 8, 2022

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

@torjin-dot
Copy link

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
Copy link

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

@Klap-in
Copy link
Collaborator

Klap-in commented Jan 30, 2023

Which php version are you using?

@torjin-dot
Copy link

php-8.1.12

@torjin-dot
Copy link

looks fixed with Dw2Pdf 2023-02-28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants