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

The displayed aspect ratio is incorrect #146

Closed
thuongvovan opened this issue Jan 21, 2025 · 1 comment
Closed

The displayed aspect ratio is incorrect #146

thuongvovan opened this issue Jan 21, 2025 · 1 comment
Labels

Comments

@thuongvovan
Copy link

Describe the bug
When rendering a portrait A4 page using the docxjs library, the displayed aspect ratio (height/width) is incorrect. Specifically, the page appears with an aspect ratio of up to 2.1 instead of the standard 1.414 for A4 paper.

Document
any

Expected behavior
The A4 page should display with the correct aspect ratio of 1:√2 (approximately 1.414), ensuring accurate representation of the document’s layout.

Screenshots
no

Desktop (please complete the following information):
any

Additional context
no

@VolodymyrBaydalka
Copy link
Owner

VolodymyrBaydalka commented Jan 22, 2025

Most likely content of "page" extended height of "page". MS Word (or other application) checks if content fits page and move to next page (does a page breaking). This library does not do it due to complexity and perfomence issue.

Duplicate of #39

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

No branches or pull requests

2 participants