PdfPageEditor.GetPageRotation

PdfPageEditor.GetPageRotation 方法

返回指定页面的旋转。

public int GetPageRotation(int page)
参数类型描述
pageInt32页面索引。文档页面从 1 开始编号。

返回值

页面旋转角度(以度为单位)。

示例

以下示例演示如何获取页面旋转:

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

另请参阅