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

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

Open Namron10410 opened 1 year ago

Namron10410 commented 1 year ago

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

TheRazvy commented 1 year ago

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.

babbitt commented 1 year ago

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.