<?php // Copyright (c) 2021 ActivePDF, Inc. // ActivePDF Toolkit 2018 // Example generated 03/06/21 ?> <?php // Get current path $strPath = dirname(__FILE__) . "\\"; // Instantiate Object $oTK = new COM("APToolkit.Object"); // Specify the file to retrieve information about $oTK->GetPDFInfo($strPath . "PDF.pdf"); // Retrieve various information about the PDF $strAuthor = $oTK->Author; $strTitle = $oTK->Title; $strSubject = $oTK->Subject; $strKeywords = $oTK->Keywords; $strProducer = $oTK->Producer; $strCreator = $oTK->Creator; $strCreateDate = $oTK->CreateDate; $strModDate = $oTK->ModDate; // Close the PDF as it's no longer needed $oTK->CloseInputFile(); // Release Object $oTK = null; // Process Complete echo "Done!"; ?>