Skip to content

Tables do not keep their Cell Width formatting when exporting to PDF #5610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hallsie opened this issue May 15, 2025 · 3 comments
Closed

Tables do not keep their Cell Width formatting when exporting to PDF #5610

Hallsie opened this issue May 15, 2025 · 3 comments

Comments

@Hallsie
Copy link

Hallsie commented May 15, 2025

Describe the Bug

Create a table with 4 columns. The first two are simple Y/N responses in the boxes so I resize to say:
10% | 10% | 30% | 50%
with the width.
When I export the PDF they just all go:
25% | 25% | 25% | 25%
which makes the format look nasty and not really usable at that point in time.

Steps to Reproduce

  1. Make a Table
  2. Resize the columns
  3. Add some dummy data
  4. Save the page
  5. Export to PDF

Expected Behaviour

I would expect that when I make changes to the table that when it is exported the table retains those changes.

Screenshots or Additional Context

I'm at work and they have removed the ability for me to take a screenshot but it's straight forward.

Browser Details

Chrome 136.0.7103.113 (although when I checked it stated updating but it should not change this behavior)

Exact BookStack Version

v25.02

@ssddanbrown
Copy link
Member

Thanks for raising @Hallsie but I'm going to close this off as a duplicate of existing issue #1280.

@Hallsie
Copy link
Author

Hallsie commented May 15, 2025

ahhh sorry I looked and didn't see that one. I guess I searched weird and that was from 6 years ago lol.

@ssddanbrown
Copy link
Member

No worries. Just as an alternative (which I've not tested) but using the browser's print to pdf may produce good results here.
I try to ensure the printing of pages is formatted pretty well to allow such options to be used.
The table cell resizing is something we force in PDF exports styles (since manually set column sizes cause more issues without extra processing) but I don't think those apply in the browser print view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants