[PsDocument.NumberOfPages property 返回生成的 PDF 文档中的页数。 public int NumberOfPages { get; } 也可以看看 class PsDocument 命名空间 Aspose.Page.EPS 部件 Aspose.Page]