Giter Site home page Giter Site logo

Section breaks about docx HOT 5 CLOSED

dolanmiu avatar dolanmiu commented on May 9, 2024
Section breaks

from docx.

Comments (5)

dolanmiu avatar dolanmiu commented on May 9, 2024

Do you mean a page break?

so that it forces the text to be on a new page?

from docx.

dolanmiu avatar dolanmiu commented on May 9, 2024

I think I get what you mean, theres multiple types of section breaks like in this picture:

image

from docx.

dolanmiu avatar dolanmiu commented on May 9, 2024

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:

h4buli#10

from docx.

AntonKrutikov avatar AntonKrutikov commented on May 9, 2024

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.

dolanmiu avatar dolanmiu commented on May 9, 2024

Section type is added in: #780

from docx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.