-
-
Notifications
You must be signed in to change notification settings - Fork 566
How to define page border offset #2720
Unanswered
atypical-atip
asked this question in
Q&A
-
Hi! I;ve encountered a problem and couldn't find an answer either in docs or in demos nor in code. How can I define page border offset?
My code:
properties: {
page: {
margin: {
top: convertMillimetersToTwip(15),
right: convertMillimetersToTwip(15),
bottom: convertMillimetersToTwip(15),
left: convertMillimetersToTwip(15),
},
borders: {
pageBorderBottom: {
style: BorderStyle.THIN_THICK_THIN_SMALL_GAP,
size: 3 * 8,
color: "000000",
},
pageBorderLeft: {
style: BorderStyle.THIN_THICK_THIN_SMALL_GAP,
size: 3 * 8,
color: "000000",
},
pageBorderRight: {
style: BorderStyle.THIN_THICK_THIN_SMALL_GAP,
size: 3 * 8,
color: "000000",
},
pageBorderTop: {
style: BorderStyle.THIN_THICK_THIN_SMALL_GAP,
size: 3 * 8,
color: "000000",
},
pageBorders: {
display: PageBorderDisplay.FIRST_PAGE,
offsetFrom: PageBorderOffsetFrom.PAGE,
zOrder: PageBorderZOrder.FRONT,
},
},
},
},
children: [...]
When I add page border it appears on page edeges but I want it to appear according to page margins. T
pageborder
hanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment