Unofficial PHP Wrapper for PdfTk Server toold.
Before starting work with this wrapper, you should download and install PdfTk server. https://www.pdflabs.com/tools/pdftk-server/
-
Initiating PdfTk class
// With Server Path
$pdftk=new PdfTk($serverPath);
//With Server Path and PDF File path
$pdftk=new PdfTk($serverPath,$pdfFilePath);
-
Get Bookmarks
$bookmarks=$pdftk->get_bookmarks();