Click or drag to resize

DocumentAppendingEventArgsMaxPdfPages Property

Gets or sets a value indicating the maximum number of pages which this document can contain after the DataToAppend is appended.

Namespace:  RadPdf.Integration
Assembly:  RadPdf (in RadPdf.dll) Version: 3.48.0.0 (3.48.0.0)
Syntax
public int MaxPdfPages { get; set; }

Property Value

Type: Int32
The maximum number of pages allowed in the PDF document, after DataToAppend is appended; otherwise NoMaxPdfPages for no maximum. The default value is NoMaxPdfPages.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionMaxPdfPages can not be less than 0.
Remarks

Setting this property to NoMaxPdfPages (default) will allow a PDF with any number of pages to be the result after DataToAppend is appended.

If ThrowMaxPagesException is true and the document contains more than MaxPdfPages, an exception will be thrown.

If ThrowMaxPagesException is false and the document contains more than MaxPdfPages, the document will be truncated and all pages in excess of MaxPdfPages will be deleted.

This property has no effect unless AppendType is Data.

See Also