Skip to content

[Bug Report]: PDF Generation - Images In Table Not Formatting Correctly #3190

@zshannonmec

Description

@zshannonmec

Describe the Bug

Images that are added to tables within Bookstack pages seem to not size properly when exported as PDF. Instead of mirroring the HTML view the images are overlapping and giant in size making it illegible.

Steps to Reproduce

  1. Create a table on a page
  2. Insert pictures into table cells
  3. Save page
  4. Export page as PDF

Expected Behaviour

Pictures should be formatted in the same way they are in HTML.

Screenshots or Additional Context

I've attached two sample images. One of what it should look like (HTML/Editor) and what is produced by the export (PDF).

HTML / Editor Example
ImagesInTable-Bookstack-EditorPreview

Export (PDF) Example
ImagesInTable-Bookstack-PDFPreview

Exact BookStack Version

v21.12.2

PHP Version

7.4

Hosting Environment

Ubuntu 20.04.3 LTS - Installed using official installation script

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions