How To Use PageSize? #1134
Answered
by
CohenLockwood
CohenLockwood
asked this question in
Q&A
-
I'm learning how to use the docx api today and have trouble getting the PageSize to work. I can't manage to change the document's page size. Am I doing it wrong? If so, how should it be done? let doc = new Document({
sections: [{
children: [new PageSize(sheetWidth + 'in', sheetHeight + 'in', PageOrientation.LANDSCAPE)],
}]
}); |
Beta Was this translation helpful? Give feedback.
Answered by
CohenLockwood
Sep 5, 2021
Replies: 1 comment
-
Never mind, I'm just dumb for not reading the examples. Solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CohenLockwood
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind, I'm just dumb for not reading the examples. Solution.