Table of Contents

Constructor LayoutDocument

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

LayoutDocument(IReadOnlyList<LayoutPage>)

Initializes a layout document.

public LayoutDocument(IReadOnlyList<LayoutPage> pages)

Parameters

pages IReadOnlyList<LayoutPage>

Pages in document order.

Exceptions

ArgumentNullException

pages is null.

LayoutDocument(IReadOnlyList<LayoutPage>, string?)

Initializes a layout document with a default language.

public LayoutDocument(IReadOnlyList<LayoutPage> pages, string? language)

Parameters

pages IReadOnlyList<LayoutPage>

Pages in document order.

language string

The document's default BCP 47 language tag, or null when none was declared. A tagged PDF needs it on the catalog: assistive technology has no other way to know which language to pronounce, and guessing from the text is not something a converter should do on the reader's behalf.

Exceptions

ArgumentNullException

pages is null.