diff --git a/DEVELOPER.md b/DEVELOPER.md index d33bb60b..d5d69b17 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -38,3 +38,20 @@ To check coding styles run: To run a static code analysis use: > make run-phpstan + +## Base64 encoded PDFs + +If working with [Base64](https://en.wikipedia.org/wiki/Base64) encoded PDFs you might want to parse the PDF without saving the file on disk. This sample will parse the Base64 encoded PDF and extract text from each page. + +```php +parseContent(base64_decode($base64PDF)); + +$text = $pdf->getText(); +echo $text; +``` diff --git a/README.md b/README.md index 057204a3..ac12721a 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,9 @@ There is no active development by the author of this library (at the moment), bu Original PDF References files can be downloaded from this url: http://www.adobe.com/devnet/pdf/pdf_reference_archive.html -**For developers**: Please read [DEVELOPER.md](DEVELOPER.md) for more information about local development of the PDFParser library. +### For developers + +Please read [DEVELOPER.md](DEVELOPER.md) for more information about local development of the PDFParser library. Here you will also find information about how to handle Base63 encoded PDFs. ## Installation