[PdfFileInfo.IsPdfFile property 检查源输入是否是有效的 PDF 文件。 public bool IsPdfFile { get; } 也可以看看 class PdfFileInfo 命名空间 Aspose.Pdf.Facades 部件 Aspose.PDF]