Skip to content

Commit 7eaaaaf

Browse files
Add additional example for getDataFields()
1 parent 7682dca commit 7eaaaaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ $pdf = new Pdf('/path/my.pdf');
218218
$data = $pdf->getDataFields();
219219
echo $data; // raw string; also can directly call $data->__toString();
220220
print_r($data); // metadata as array; also can directly call $data->__toArray();
221+
$field1Value = $data[0]['FieldValue']; // array access to a field's value
221222
```
222223

223224
#### How to perform more than one operation on a PDF

0 commit comments

Comments
 (0)