Why are the page width and height returned by PDFKit.NET and PDFRasterizer.NET different?

  • Reference KB000074
  • Type Q&A
  • Category -
  • Created 7/16/2010

Why are the page width and height returned by PDFKit.NET 3.0 and PDFRasterizer.NET 3.0 different?

This is by design. In PDFKit.NET 3.0 we provide the non rotated values (which can be set as well), to receive the rotated values, please use page.VisualOverlay.Width and .Height. In PDFRasterizer.NET 3.0, we provide the already rotated values. We know that this difference isn't clear at first, but we cannot change this behavior anymore because this would break existing code.