This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
forked from howtomakeaturn/pdfinfo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Re-arrange structure * Compatibility with version 4.0 (mac OS) * Readme update
- Loading branch information
Showing
14 changed files
with
187 additions
and
306 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.* | ||
!.gitignore | ||
vendor/* | ||
composer.phar | ||
composer.lock |
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
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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
{ | ||
"name": "howtomakeaturn/pdfinfo", | ||
"name": "apilayer/pdfinfo", | ||
"type": "library", | ||
"description": "simple php wrapper for pdfinfo", | ||
"description": "pdfinfo PHP wrapper", | ||
"keywords": ["pdf", "pdfinfo"], | ||
"license": "MIT", | ||
"require-dev": { | ||
"filp/whoops": "1.1.4" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Howtomakeaturn\\PDFInfo": "src/" | ||
"psr-4": { | ||
"apilayer\\PDFInfo\\": "src/" | ||
} | ||
} | ||
} |
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,22 @@ | ||
<?php | ||
require_once('../vendor/autoload.php'); | ||
|
||
use apilayer\PDFInfo\PDFInfo; | ||
|
||
$pdf = new PDFInfo('files/Sample.pdf'); | ||
|
||
echo 'Title: ', $pdf->title, '<hr />', PHP_EOL; | ||
echo 'Author: ', $pdf->author, '<hr />', PHP_EOL; | ||
echo 'Creator: ', $pdf->creator, '<hr />', PHP_EOL; | ||
echo 'Producer: ', $pdf->producer, '<hr />', PHP_EOL; | ||
echo 'Creation date: ', $pdf->creationDate, '<hr />', PHP_EOL; | ||
echo 'Last modified date: ', $pdf->modDate, '<hr />', PHP_EOL; | ||
echo 'Tagged: ', $pdf->tagged, '<hr />', PHP_EOL; | ||
echo 'Form: ', $pdf->form, '<hr />', PHP_EOL; | ||
echo 'Pages: ', $pdf->pages, '<hr />', PHP_EOL; | ||
echo 'Encrypted: ', $pdf->encrypted, '<hr />', PHP_EOL; | ||
echo 'Page size: ', $pdf->pageSize, '<hr />', PHP_EOL; | ||
echo 'Page rotation: ', $pdf->pageRot, '<hr />', PHP_EOL; | ||
echo 'File size: ', $pdf->fileSize, '<hr />', PHP_EOL; | ||
echo 'Optimized: ', $pdf->optimized, '<hr />', PHP_EOL; | ||
echo 'PDF Version: ', $pdf->PDFVersion, '<hr />', PHP_EOL; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...DFInfo/Exceptions/OpenOutputException.php → src/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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace Howtomakeaturn\PDFInfo\Exceptions; | ||
namespace apilayer\PDFInfo\Exceptions; | ||
|
||
use \Exception; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...n/PDFInfo/Exceptions/OpenPDFException.php → src/Exceptions/OpenPDFException.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace Howtomakeaturn\PDFInfo\Exceptions; | ||
namespace apilayer\PDFInfo\Exceptions; | ||
|
||
use \Exception; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...urn/PDFInfo/Exceptions/OtherException.php → src/Exceptions/OtherException.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace Howtomakeaturn\PDFInfo\Exceptions; | ||
namespace apilayer\PDFInfo\Exceptions; | ||
|
||
use \Exception; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...nfo/Exceptions/PDFPermissionException.php → src/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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace Howtomakeaturn\PDFInfo\Exceptions; | ||
namespace apilayer\PDFInfo\Exceptions; | ||
|
||
use \Exception; | ||
|
||
|
Oops, something went wrong.