BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
14.37k stars 1.82k forks source link

API PDF export -> empty pages #5098

Open andreapx opened 1 week ago

andreapx commented 1 week ago

Describe the Bug

When I export the books in PDF with the API, all the pages al empty. All the other exports (markdown, HTML, plaintext) works

Steps to Reproduce

  1. execute the API with the URL http://bookstack:6875/api/books/17/export/pdf
  2. a PDF with all the pages white is received

Expected Behaviour

A PDF with the book is downloaded.

Screenshots or Additional Context

In the docker logs when Bookstack starts I see that the version is the latest:

Linuxserver.io version: v24.05.2-ls152
Build-date: 2024-07-01T18:27:53+00:00

But in the UI I see v22.11.1, do you know why?

Browser Details

No response

Exact BookStack Version

v24.05.2-ls152

ssddanbrown commented 1 week ago

But in the UI I see v22.11.1, do you know why?

That's odd, If you click the profile menu in the header do you see "My account" or do you see "Edit Profile" (or similar)?

andreapx commented 1 week ago

But in the UI I see v22.11.1, do you know why?

That's odd, If you click the profile menu in the header do you see "My account" or do you see "Edit Profile" (or similar)? I see "Edit Profile"

* Otherwise, does the export work okay in the application if you export the book as PDF? IF not, what about the page?

This works, the PDFs are ok

  • If you go directly to http://bookstack:6875/api/books/17/export/pdf in the browser as a user with API pemission, does the browser download a book export okay? Even in this way it works. That's so strange.......
andreapx commented 1 week ago

Damn, damn, damn! It's another problem not related to BookStack. As soon as the PDFs are created I upload them to DropBox with the APIs. The problem lies there because I've just checked the local temp files and they are ok. I'm sorry!

I still have the problem about the version. Am I using the latest or am I stuck at V22?

ssddanbrown commented 1 week ago

Am I using the latest or am I stuck at V22?

Sounds like you're currently stuck at v22.11.1. Are you sure you're not accidentally running multiple containers at one? (old and new).