GetPageRotation
PdfPageEditor.GetPageRotation method
返回指定页面的旋转。
public int GetPageRotation(int page)
范围 | 类型 | 描述 |
---|---|---|
page | Int32 | 页面索引。文档页从 1 开始编号。 |
返回值
页面旋转度数。
例子
以下示例演示如何获取页面旋转:
PdfPageEditor editor = new PdfPageEditor();
editor.BindPdf("sample.pdf");
int rotation = editor.GetPageSize(1);
Console.WriteLine("Rotation of 1st page : " + rotation + " degrees");
也可以看看
- class PdfPageEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF