smalot / pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.
GNU Lesser General Public License v3.0
2.37k stars 538 forks source link

Usage.md: change example code to avoid PHP notice #644

Closed k00ni closed 1 year ago

k00ni commented 1 year ago

Type of pull request

About

Usage documentation contains buggy code. The following notice is thrown when used:

Only variables should be passed by reference

because of the following code part:

$font = reset($pdf->getFonts());

Acknowledgement

Reported by @gidzr in #619

k00ni commented 1 year ago

Ping @j0k3r