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)**В를 아래에 언급된 소셜 코딩 사이트 중 하나에서 다운로드하세요.