在 PHP 中获取 PDF 文件信息
Contents
[
Hide
]
Aspose.PDF - 获取 PDF 文件信息
要使用 Aspose.PDF Java for PHP 获取 PDF 文档的文件信息,只需调用 GetPdfFileInfo 类。
PHP 代码
# Open a pdf document.
$doc = new Document($dataDir . "input1.pdf");
# Get document information
$doc_info = $doc->getInfo();
# Show document information
print "Author:-" . $doc_info->getAuthor();
print "Creation Date:-" . $doc_info->getCreationDate();
print "Keywords:-" . $doc_info->getKeywords();
print "Modify Date:-" . $doc_info->getModDate();
print "Subject:-" . $doc_info->getSubject();
print "Title:-" . $doc_info->getTitle();
下载运行代码
下载 获取 PDF 文件信息 (Aspose.PDF) 来自以下提及的社交编码站点: