-
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.
Add exceptions for the official exit codes.
- Loading branch information
1 parent
150b536
commit a623291
Showing
6 changed files
with
66 additions
and
3 deletions.
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/EEE.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 />'; |
6 changes: 6 additions & 0 deletions
6
src/Howtomakeaturn/PDFInfo/Exceptions/OpenOutputException.php
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 OpenOutputException 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
namespace Howtomakeaturn\PDFInfo\Exceptions; | ||
|
||
use \Exception; | ||
|
||
class OpenPDFException 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
use \Exception; | ||
|
||
class BaseException extends Exception{}; | ||
class OtherException extends Exception{}; |
6 changes: 6 additions & 0 deletions
6
src/Howtomakeaturn/PDFInfo/Exceptions/PDFPermissionException.php
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 PDFPermissionException 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