Click or drag to resize

DocumentAppendingEventArgsMaxPdfPageWidth Property

Gets or sets a value indicating the maximum width of a page 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 MaxPdfPageWidth { get; set; }

Property Value

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

This property will be ignored if AllowFindMatchingPdf is true and the document to be appended was previously loaded.

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

As this value is in pixels, the value of RenderDpi should be considered. For example, if MaxPdfPageWidth is 1000 and RenderDpi is 100, loading a document with an 11 inch width would cause an exception to be thrown. (Because 11 * 100 = 1100, which is greater than 1000.) But if MaxPdfPageWidth is 1000 and RenderDpi is 72, loading that same document with an 11 inch width 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 horizontal pixels than MaxPdfPageWidth, an exception will be thrown.

This property has no effect unless AppendType is Data.

See Also