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
constdoc=newDocument({sections: [{properties: {page:{borders:{pageBorderBottom: {style: BorderStyle.SINGLE,size: 2*8,//2pt;color: '000000',},pageBorderLeft: {style: BorderStyle.SINGLE,size: 1*8,//1pt;color: '000000',},pageBorderRight: {style: BorderStyle.SINGLE,size: 1*8,//1pt;color: 'FF00AA',},pageBorderTop: {style: BorderStyle.SINGLE,size: 1*8,//1pt;color: '000000',},pageBorders: {display: "allPages",//https://docx.js.org/api/enums/PageBorderDisplay.htmloffsetFrom: "text",//https://docx.js.org/api/enums/PageBorderOffsetFrom.htmlzOrder: "front"//https://docx.js.org/api/enums/PageBorderZOrder.html}}},},children: [newParagraph({children: [newTextRun({text: `Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.`})]}),newParagraph({children: [newTextRun({text: `Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.`})]})]}],});
The text was updated successfully, but these errors were encountered:
Related to #1256
https://github.com/dolanmiu/docx/blob/master/demo/71-page-borders-2.ts
@dolanmiu, could you check this problem? I check it in use page app, google document.
docx version
8.5.0
The text was updated successfully, but these errors were encountered: