-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e745d80
commit 150b536
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
require_once('../vendor/autoload.php'); | ||
|
||
use \Howtomakeaturn\PDFInfo\PDFInfo; | ||
|
||
$whoops = new \Whoops\Run; | ||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); | ||
$whoops->register(); | ||
|
||
$pdf = new PDFInfo('files/not-exist.pdf'); | ||
|
||
echo $pdf->title; | ||
echo '<hr />'; | ||
echo $pdf->author; | ||
echo '<hr />'; | ||
echo $pdf->creator; | ||
echo '<hr />'; | ||
echo $pdf->producer; | ||
echo '<hr />'; | ||
echo $pdf->creationDate; | ||
echo '<hr />'; | ||
echo $pdf->modDate; | ||
echo '<hr />'; | ||
echo $pdf->tagged; | ||
echo '<hr />'; | ||
echo $pdf->form; | ||
echo '<hr />'; | ||
echo $pdf->pages; | ||
echo '<hr />'; | ||
echo $pdf->encrypted; | ||
echo '<hr />'; | ||
echo $pdf->pageSize; | ||
echo '<hr />'; | ||
echo $pdf->fileSize; | ||
echo '<hr />'; | ||
echo $pdf->optimized; | ||
echo '<hr />'; | ||
echo $pdf->PDFVersion; | ||
echo '<hr />'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
namespace Howtomakeaturn\PDFInfo\Exceptions; | ||
|
||
use \Exception; | ||
|
||
class BaseException extends Exception{}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters