Skip to content
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

exmaple/31-tables creates table with no cell width #2723

Closed
shyamayadav154 opened this issue Sep 11, 2024 · 3 comments
Closed

exmaple/31-tables creates table with no cell width #2723

shyamayadav154 opened this issue Sep 11, 2024 · 3 comments

Comments

@shyamayadav154
Copy link

image
@anti-the-social
Copy link
Contributor

Open it in Word :)

@shyamayadav154
Copy link
Author

shyamayadav154 commented Sep 12, 2024

The file works in Microsoft Word, but not in Google Docs or Apple Pages. Does this library not support these two platforms? However, if I modify the file in MS Word and then open it in Google Docs or Apple Pages, it displays correctly with correct cell width.

@anti-the-social
Copy link
Contributor

anti-the-social commented Sep 12, 2024

They are not as smart as Word. Word does re-calculate width values for you in the background.
So if you re-save with Word then width will be fixed and tables openable in other editors.

There is tonns of issues opened concerning that in the past.
e.g. #1947 #2712

To my knowledge such recalculation isn't planned to be as a part of docxjs library due to technical reasons.

To make tables work in every editor you have to set absolute widths.

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

No branches or pull requests

3 participants