Setting Size or Orientation on PdfPageSettings swaps Width and Height.
How can we turn off this behaviour?
Sometimes we need Portrait orientation enum, but behaving as Landscape by specifying wider Width than Height.
section.PageSettings.Size = new SizeF(956, 800);
section.PageSettings.Orientation = PdfPageOrientation.Portrait;
results in Size being W:800, H:956