[Bug Report]: Image positioning problem with PDF export #3363

Open
opened 2026-02-05 06:29:35 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Namron10410 on GitHub (Nov 24, 2022).

Describe the Bug

The positioning of the images with the PDF export is superimposed with the text.
Perhaps, an adjustment problem with the page format!
The problem and random, it occurs after several manipulations:
Resizing / Alignment

Steps to Reproduce

Go to "https://demo.bookstackapp.com/books/bookstack-demo-site/page/mixed-content-example-page#bkmrk-full-width-image"
Cliquez sur Exporter
Sélectionnez PDF
Vérifier le PDF téléchargé

Expected Behaviour

2022-11-24 11_33_55-Mixed Content Example   _ BookStack Demo

Screenshots or Additional Context

2022-11-24 11_33_44-Mixed Content Example Page

Browser Details

No response

Exact BookStack Version

v22.10.2

PHP Version

7.4.26

Hosting Environment

wampserveur 3.2.6 - 64 bit

Originally created by @Namron10410 on GitHub (Nov 24, 2022). ### Describe the Bug The positioning of the images with the PDF export is superimposed with the text. Perhaps, an adjustment problem with the page format! The problem and random, it occurs after several manipulations: Resizing / Alignment ### Steps to Reproduce Go to "https://demo.bookstackapp.com/books/bookstack-demo-site/page/mixed-content-example-page#bkmrk-full-width-image" Cliquez sur Exporter Sélectionnez PDF Vérifier le PDF téléchargé ### Expected Behaviour ![2022-11-24 11_33_55-Mixed Content Example _ BookStack Demo](https://user-images.githubusercontent.com/111966314/203764035-d55ae482-33db-4712-8b8f-6dcbfd90a356.png) ### Screenshots or Additional Context ![2022-11-24 11_33_44-Mixed Content Example Page](https://user-images.githubusercontent.com/111966314/203764068-daecfe0a-a0f0-483c-82af-bbe4bdc0a63f.png) ### Browser Details _No response_ ### Exact BookStack Version v22.10.2 ### PHP Version 7.4.26 ### Hosting Environment wampserveur 3.2.6 - 64 bit
OVERLORD added the 🐛 Bug label 2026-02-05 06:29:35 +03:00
Author
Owner

@TheRazvy commented on GitHub (Feb 14, 2023):

There is a problem with the pdf export, it does not respect the page structure at all when it comes to how the images are aligned.

@TheRazvy commented on GitHub (Feb 14, 2023): There is a problem with the pdf export, it does not respect the page structure at all when it comes to how the images are aligned.
Author
Owner

@babbitt commented on GitHub (Feb 20, 2023):

Just adding a +1 to this Bug.
PHP V8.0.22, Bookstack V23.01.1
Here's an example of a right aligned image being rendered improperly.
image

Workaround for now: I've been exporting the document as a contained .html file and then "printing" to PDF. Chrome's renderer has no issues with the images but you lose the creature comforts of easy export and custom footer/page numbers.

@babbitt commented on GitHub (Feb 20, 2023): Just adding a +1 to this Bug. PHP V8.0.22, Bookstack V23.01.1 Here's an example of a right aligned image being rendered improperly. ![image](https://user-images.githubusercontent.com/10392896/220195939-5c6e6ee7-3250-4930-90a6-c97c941115f9.png) **Workaround for now**: I've been exporting the document as a contained `.html` file and then "printing" to PDF. Chrome's renderer has no issues with the images but you lose the creature comforts of easy export and custom footer/page numbers.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3363