API PDF export -> empty pages #4852

Open
opened 2026-02-05 09:20:57 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @andreapx on GitHub (Jul 4, 2024).

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

Originally created by @andreapx on GitHub (Jul 4, 2024). ### 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
OVERLORD added the 🐛 Bug label 2026-02-05 09:20:57 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 4, 2024):

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)?

  • Otherwise, does the export work okay in the application if you export the book as PDF? IF not, what about the page?
  • 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?
@ssddanbrown commented on GitHub (Jul 4, 2024): > 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)? - Otherwise, does the export work okay in the application if you export the book as PDF? IF not, what about the page? - 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?
Author
Owner

@andreapx commented on GitHub (Jul 4, 2024):

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 on GitHub (Jul 4, 2024): > > 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.......
Author
Owner

@andreapx commented on GitHub (Jul 4, 2024):

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?

@andreapx commented on GitHub (Jul 4, 2024): 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?
Author
Owner

@ssddanbrown commented on GitHub (Jul 4, 2024):

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).

@ssddanbrown commented on GitHub (Jul 4, 2024): > 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).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4852