Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to define page border offset #2720

Unanswered
atypical-atip asked this question in Q&A
Discussion options

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!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /