Comments (5)
Do you mean a page break?
so that it forces the text to be on a new page?
from docx.
I think I get what you mean, theres multiple types of section breaks like in this picture:
from docx.
This feature is now done:
Check out how to do it here:
https://github.com/dolanmiu/docx/blob/master/demo/demo16.js
The thread is here:
from docx.
Can't find section "type" property which can control duplex printing by sections in class SectionProperties.
http://officeopenxml.com/WPsection.php
Specifies the section type. It determines how the contents of the section will be placed relative to the previous section. E.g., <w:type w:val="nextPage"/> There are five different types, corresponding to the five possible values of the val attribute.
continuous - Begins the section on the next paragraph. Certain page-level section properties cannot be specified, as they are inherited from the previous section. If a footnote occurs of the same page as a section of this kind, the new section begins on the following page.
evenPage - The section begins on the next even-numbered page, leaving the next odd page blank if necessary.
nextColumn - The section begins on the following column on the page.
nextPage - The section begins on the following page.
oddPage - The section begins on the next odd-numbered page, leaving the next even page blank if necessary.
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference ยง 17.10.22.
from docx.
Section type is added in: #780
from docx.
Related Issues (20)
- Text size Reduce font size by twice HOT 1
- How can I convert latex to Word format HOT 6
- Can open in libre, not in word. OOXML-Validator has a bunch of errors HOT 8
- Adding a validator HOT 4
- Patcher does not replace content in Footer HOT 2
- Repeat header in row HOT 1
- Attempted import error: 'Packer' is not exported from 'docx' (imported as 'Packer'). HOT 7
- Packer.toBuffer error in browser: nodebuffer not supported by this platform HOT 1
- Lists - instance not working with level greater than 0
- ExternalHyperlink renders empty line HOT 3
- tableHeader repeats row only if declared on the first row in a table
- el.elements not iterable when patching comments
- can not set indent by chars HOT 2
- Adding different numbering within the same line of paragraph HOT 12
- Field Codes in SimpleField Formulas HOT 1
- Corrupt Word document from patching with an XML attribute with an ampersand HOT 3
- After Patching, Following Text is Wrong Font Family HOT 1
- Possibility of adding hanging without affecting left indent of the paragraph.
- `PageNumber.TOTAL_PAGES_IN_SECTION` not documented and not functional, but within TS enum HOT 2
- Colors are not showing properly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docx.