IsPdfFile

PdfFileInfo.IsPdfFile property

检查源输入是否是有效的 PDF 文件。

public bool IsPdfFile { get; }

也可以看看