Table of Contents

Interface IDocumentComposer

Namespace
DocWright.Composition
Assembly
DocWright.Composition.dll

Composes a document: one or more pages, and the styles they use.

public interface IDocumentComposer

Methods

DefineStyle(string, string, Action<IStyleComposer>)

Defines a named style. A composition style is a Word style, so it survives SaveAsDocx(Stream, SaveOptions?) and behaves in Word exactly as it rendered in the PDF.

Page(Action<IPageComposer>)

Adds a page. Each page lowers to a Word section, which is how Word models a page-setup change.