Click or drag to resize

DocumentUploadingEventArgs.MaxPdfPageHeight Property

Gets or sets a value indicating the maximum height of a page which this document can contain.

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

Property Value

Type: Int32
The maximum height of a page, in pixels, allowed to be appended; otherwise NoMaxPdfPageHeight for no maximum. The default value is NoMaxPdfPageHeight.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionMaxPdfPageHeight can not be less than 0.
Remarks

Setting this property to NoMaxPdfPageHeight (default) will allow a PDF with any height to be loaded.

As this value is in pixels, the value of RenderDpi should be considered. For example, if MaxPdfPageHeight is 1000 and RenderDpi is 100, loading a document with an 11 inch height would cause an exception to be thrown. (Because 11 * 100 = 1100, which is greater than 1000.) But if MaxPdfPageHeight is 1000 and RenderDpi is 72, loading that same document with an 11 inch height would not cause an exception to be thrown. (Because 11 * 100 = 792, which is less than 1000.)

If the document contains a page with more vertical pixels than MaxPdfPageHeight, an exception will be thrown.

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!