PdfPageEditor.GetPageRotation

PdfPageEditor.GetPageRotation method

Returns the rotation of specified page.

public int GetPageRotation(int page)
ParameterTypeDescription
pageInt32Page index. Document pages are numbered from 1.

Return Value

Page rotation in degrees.

Examples

The following example demonstrates how to get page rotation:

PdfPageEditor editor = new PdfPageEditor();
editor.BindPdf("sample.pdf");
int rotation = editor.GetPageSize(1);
Console.WriteLine("Rotation of 1st page : " + rotation + " degrees");        

See Also