Mendapatkan informasi file PDF di PHP

Aspose.PDF - dapatkan informasi file PDF

Untuk Mendapatkan Informasi File dokumen Pdf menggunakan Aspose.PDF Java for PHP, cukup panggil kelas GetPdfFileInfo.

Kode 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();

Mengunduh kode yang dapat dijalankan

Download Dapatkan Informasi File PDF (Aspose.PDF) dari salah satu situs coding sosial yang disebutkan di bawah ini: