GetPageRotation

PdfPageEditor.GetPageRotation method

返回指定页面的旋转。

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");        

也可以看看