PageSize

Overview

PageSize is a class in Aspose.PDF FOSS for C++.

PageSize.Width() and Height() get or set the page dimensions, while IsLandscape() indicates orientation.

This class provides 18 methods for working with PageSize objects in C++ programs. Available methods include: A0, A1, A2, A3, A4, A5, A6, B5, Height, IsLandscape, P11x17, PageLedger, and 3 additional methods. All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.

Methods

SignatureDescription
A0()PageSizeCalls A0 on this PageSize instance.
A1()PageSizeCalls A1 on this PageSize instance.
A2()PageSizeCalls A2 on this PageSize instance.
A3()PageSizeCalls A3 on this PageSize instance.
A4()PageSizeProvides a preset PageSize object configured for ISO A4 dimensions
A5()PageSizeCalls A5 on this PageSize instance.
A6()PageSizeCalls A6 on this PageSize instance.
B5()PageSizeCalls B5 on this PageSize instance.
PageLetter()PageSizeCalls PageLetter on this PageSize instance.
PageLegal()PageSizeCalls PageLegal on this PageSize instance.
PageLedger()PageSizeCalls PageLedger on this PageSize instance.
P11x17()PageSizeReturns a PageSize preset for 11×17 inch paper
Width()floatAnd Height() get or set the page dimensions, while IsLandscape() indicates orientation
Width(value: float)Calls Width(value) on this PageSize instance.
Height()floatCalls Height on this PageSize instance.
Height(value: float)Calls Height(value) on this PageSize instance.
IsLandscape()boolReturns true if landscape is set.
IsLandscape(value: bool)Reports whether the page is in landscape orientation; setting IsLandscape(true) swaps width and height

See Also