apply method
apply API.
Implementation
PdfPageFormat apply(PageOrientation orientation) {
return switch (orientation) {
PageOrientation.landscape => landscape,
PageOrientation.portrait => width <= height
? this
: PdfPageFormat(
height,
width,
marginAll: marginLeft,
),
PageOrientation.natural => this,
};
}