PdfNUpOptions Class

The options of PdfImposition.CreateNUp.

public sealed class PdfNUpOptions

Constructors

NameDescription
PdfNUpOptions()

PdfNUpOptions()

PdfNUpOptions.cs
public PdfNUpOptions()

No documentation is available.

Properties

NameDescription
ColumnsGets the number of pages across a sheet. The default is 2.
DrawBordersGets a value indicating whether a thin gray border is drawn around each page. The default is false.
MarginGets the margin around the grid, in points. The default is 0.
OrderGets the order of the pages on a sheet. The default is PdfNUpOrder.Horizontal.
RowsGets the number of pages down a sheet. The default is 1.
SheetSizeGets the size of the sheets, or null (the default) for a grid of cells of the size of the first page.
SpacingGets the space between the cells, in points. The default is 0.

Gets the number of pages across a sheet. The default is 2.

public int Columns { get; init; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 1 and 100.

DrawBorders

PdfNUpOptions.cs

Gets a value indicating whether a thin gray border is drawn around each page. The default is false.

public bool DrawBorders { get; init; }

Property value

bool

Gets the margin around the grid, in points. The default is 0.

public double Margin { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is negative.

Gets the order of the pages on a sheet. The default is PdfNUpOrder.Horizontal.

public PdfNUpOrder Order { get; init; }

Property value

PdfNUpOrder

Gets the number of pages down a sheet. The default is 1.

public int Rows { get; init; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 1 and 100.

Gets the size of the sheets, or null (the default) for a grid of cells of the size of the first page.

public PdfSize? SheetSize { get; init; }

Property value

PdfSize?

Gets the space between the cells, in points. The default is 0.

public double Spacing { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is negative.