PdfPageEditor.GetPageRotation
PdfPageEditor.GetPageRotation method
Returns the rotation of specified page.
public int GetPageRotation(int page)
Parameter | Type | Description |
---|---|---|
page | Int32 | Page 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
- class PdfPageEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF