-
Notifications
You must be signed in to change notification settings - Fork 476
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
How to get the page size for a Word doc? #500
Comments
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, |
You need to use function |
Thanks for the clarification! I'll try this out and respond |
Hi @sampila Thanks, your suggestion worked. I have a question, so this program works
And the output it prints is
I suppose 12240 is the width of any page of the document in twips and 15840 is the height of any page in the document in twips? But if I try to print |
the when you are print the
|
Oh I see my bad, makes sense thanks! |
You are welcome. |
Description
demo.docx
I want to be able to get the page size of a word doc using Unidoc.
Expected Behavior
This code is supposed to print the page size of the document.
Note: Please find the demo.docx attached.
Actual Behavior
The code above returns nil for page size. In fact, it returns a nil for each and every field in the struct https://apidocs.unidoc.io/unioffice/v1.21.0/github.com/unidoc/unioffice/schema/soo/wml/#CT_SectPr
The text was updated successfully, but these errors were encountered: