Add a PdfPage to a PdfDocument that is landscape

Is there a way to change the orientation of a PdfPage from Portrait to landscape? I looked at PdfPage.Size which has Height and Width but they are read only.

Tim Hayes

I figured it out using PdfPage.SetMediaBox