Document.Pages Method

Adds layout for one or multiple pages.

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public Document Pages(
	Action<PageLayout> handler
)
VB
Public Function Pages ( 
	handler As Action(Of PageLayout)
) As Document

Parameters

handler
Type: System.Action<PageLayout>
The generator of page content.

Return Value

Type: Document
The updated document layout.

Exceptions

ExceptionCondition
ArgumentNullExceptionhandler is null.

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.

See Also