Coder Social home page Coder Social logo

Comments (2)

ThomasBarnekow avatar ThomasBarnekow commented on May 22, 2024

@Nautigsam and @EricWhiteDev I'd say it's a good idea.

What exactly do you mean with your first point ("identify a section as a class ...")? The SectionProperties class represents a section. However, it certainly doesn't identify a section like the Paragraph class identifies a paragraph, because a SectionProperties instance does not contain the elements of a section. The w:sectPr element represented by a SectionProperties instance just marks the end of a section. Thus, "getting the paragraphs that compose a section" would add value.

Testing "if the section is a final section or not" is very straightforward. If it is contained in a w:pPr element (ParagraphProperties instance), it's not a final section. The final section is represented by a w:sectPr element the parent of which is the w:body element (Body instance).

from open-xml-sdk.

EricWhiteDev avatar EricWhiteDev commented on May 22, 2024

Have you seen the functionality, SplitOnSections in DocumentBuilder.cs? You pass it an open WordprocessingDocument, and it returns N documents, each document containing one section from the source document.

From a philosophical point of view, we are going to be very careful before adding markup specific functionality into the SDK. Markup specific functionality might be better put in Open-Xml-PowerTools. (git repo coming soon). We're thinking of what to add to the SDK, but right now we have more than enough work getting some core issues addressed that apply to all of Open XML as a whole.

from open-xml-sdk.

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.