PsDocument.NumberOfPages

PsDocument.NumberOfPages property

返回生成的 PDF 文档中的页数。

public int NumberOfPages { get; }

也可以看看