The width of the table columns is evenly distributed during the export #3957

Closed
opened 2026-02-05 07:58:03 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Man-in-Black on GitHub (Aug 8, 2023).

Describe the Bug

Hello,

when exporting a page as a PDF with built-in tables, the size of the columns is evenly distributed. As a result, content is unnecessarily squeezed.
It also didn't work when I put in fixed values, it automatically translates the fixed values to relative values.

Steps to Reproduce

  1. Create a table with multiple columns
  2. Column width changed so that all columns have different widths
  3. Export as PDF

Expected Behaviour

When exporting, all columns should have the same relative width as seen in Bookstack.

Screenshots or Additional Context

View in Bookstack:
image

Result after Export as PDF:
image

Browser Details

No response

Exact BookStack Version

v23.06.2

PHP Version

No response

Hosting Environment

Ubuntu 22.04
installed using official installation script

Originally created by @Man-in-Black on GitHub (Aug 8, 2023). ### Describe the Bug Hello, when exporting a page as a PDF with built-in tables, the size of the columns is evenly distributed. As a result, content is unnecessarily squeezed. It also didn't work when I put in fixed values, it automatically translates the fixed values to relative values. ### Steps to Reproduce 1. Create a table with multiple columns 2. Column width changed so that all columns have different widths 3. Export as PDF ### Expected Behaviour When exporting, all columns should have the same relative width as seen in Bookstack. ### Screenshots or Additional Context View in Bookstack: <img width="434" alt="image" src="https://github.com/BookStackApp/BookStack/assets/9048534/11ecdcc4-382e-434b-9b74-61a17951edf5"> Result after Export as PDF: <img width="397" alt="image" src="https://github.com/BookStackApp/BookStack/assets/9048534/aad87f81-9661-4828-9a4f-17f5ed2ffc3f"> ### Browser Details _No response_ ### Exact BookStack Version v23.06.2 ### PHP Version _No response_ ### Hosting Environment Ubuntu 22.04 installed using official installation script
OVERLORD added the 🐛 Bug label 2026-02-05 07:58:03 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Aug 8, 2023):

Thanks for raising @Man-in-Black, but I'm going to close this off as a duplicate as I feel #1280 covers this.

@ssddanbrown commented on GitHub (Aug 8, 2023): Thanks for raising @Man-in-Black, but I'm going to close this off as a duplicate as I feel #1280 covers this.
Author
Owner

@Man-in-Black commented on GitHub (Aug 8, 2023):

Thanks, didn't found this issue.

@Man-in-Black commented on GitHub (Aug 8, 2023): Thanks, didn't found this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3957