GetPages

PdfPageEditor.GetPages method

返回总页数。

public int GetPages()

返回值

页数。

例子

下面的例子演示了 GetPages() 方法的使用:

PdfPageEditor editor = new PdfPageEditor();
editor.BindPdf("sample.pdf");
Console.WriteLine("Document has: " + editor.GetPages());

也可以看看