Click or drag to resize

PdfLiteSettings.MaxPdfPages Property

Namespace:  RadPdf.Lite
Assembly:  RadPdfStandard (in RadPdfStandard.dll) Version: 4.5.0.0 (4.5.0.0)
Syntax
public int MaxPdfPages { get; set; }

Property Value

Type: Int32
The maximum number of pages allowed to be loaded; 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 loaded.

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.

See Also
This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!