Table of Contents

Method Pages

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Pages(Action<PageLayout>)

Adds layout for one or multiple pages.

public Document Pages(Action<PageLayout> handler)

Parameters

handler Action<PageLayout>

The generator of page content.

Returns

Document

The updated document layout.

Remarks

A page layout might lead to creation of one page or multiple pages depending on generated content.

This method can be called multiple times for a single document to produce pages with different properties.

The How to layout PDF pages article provides detailed information on working with pages.

Exceptions

ArgumentNullException

handler is null.