You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In src/api/sizes.ts the A4 page format is defined with the dimension of 595.28 x 841.89. But what are the units? It is definitely not millimeters, nor is that in inches. When using addPage() we can specify the page dimensions as well. But in which units is that expressed?
Proposal to at least add that information to the documentation or support human-understandable standard units like millimeters or inches, similar to what jspdf-lib does.
How could this be implemented?
The documentation would need to be improved with the deeper insights.
What problem are you trying to solve?
I try to better understand where items end up on the PDF page so I can easily add some exact margin for page headers, page content and page footers.
Why does this matter to you?
When working with normal A4 paper I know the sizes and can easily setup things like 2cm margins. With the units in this library that are not documented nor intuitive I struggle to understand the relationship of the underlying units to the paper size.
Would others find this helpful?
I strongly believe that an improved documentation would help others just the same. It is a fundamental information.
Are you interested in implementing your proposal?
Yes
Why are you submitting a proposal?
I would like if the people with deep insight into this library could provide a documentation. A change of page sizes to standard units would be desired, however, I understand that there are more important issues to fix and features to implement.
Additional Notes
No response
The text was updated successfully, but these errors were encountered:
Describe your idea
In src/api/sizes.ts the A4 page format is defined with the dimension of 595.28 x 841.89. But what are the units? It is definitely not millimeters, nor is that in inches. When using addPage() we can specify the page dimensions as well. But in which units is that expressed?
Proposal to at least add that information to the documentation or support human-understandable standard units like millimeters or inches, similar to what jspdf-lib does.
How could this be implemented?
The documentation would need to be improved with the deeper insights.
What problem are you trying to solve?
I try to better understand where items end up on the PDF page so I can easily add some exact margin for page headers, page content and page footers.
Why does this matter to you?
When working with normal A4 paper I know the sizes and can easily setup things like 2cm margins. With the units in this library that are not documented nor intuitive I struggle to understand the relationship of the underlying units to the paper size.
Would others find this helpful?
I strongly believe that an improved documentation would help others just the same. It is a fundamental information.
Are you interested in implementing your proposal?
Yes
Why are you submitting a proposal?
I would like if the people with deep insight into this library could provide a documentation. A change of page sizes to standard units would be desired, however, I understand that there are more important issues to fix and features to implement.
Additional Notes
No response
The text was updated successfully, but these errors were encountered: