'iText7 missing GetPageSizeWithRotation and GetOverContent

In iText7 I dont see a GetPageSizeWithRotation or GetOverContent method. Is there another way to do this ?

New Code

PdfPage pdfPage = pdfDocument.GetPage(i);
Rectangle pageSizeWithRotation = pdfPage.GetPageSizeWithRotation();
PdfCanvas canvas = new PdfCanvas(pdfPage);

Old Code

Rectangle pageSizeWithRotation = pdfReader.GetPageSizeWithRotation(i);
PdfContentByte overContent = pdfStamper.GetOverContent(i);
float n3 = pageSizeWithRotation.Height - 10F;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source