Click or drag to resize
Pdf Library for .NET

PdfPageOrientation Property

Gets or sets the orientation of the page.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public PdfPageOrientation Orientation { get; set; }

Property Value

PdfPageOrientation
Remarks
Setting the orientation reshapes the page: the page keeps its dimensions but they are swapped so the longer edge runs along the requested axis. Setting it is only supported on a page of a document created from scratch — the pages of a loaded document keep the geometry they were saved with.
See Also