Skip to content

Commit 4680580

Browse files
committed
Update README
1 parent 49dd070 commit 4680580

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ $pdf->fillForm(array(
7171
$pdf = new Pdf('form.pdf');
7272
$pdf->fillForm('data.xfdf')
7373
->saveAs('filled.pdf');
74+
75+
// Check for errors
76+
if (!$pdf->saveAs('my.pdf')) {
77+
$error = $pdf->getError();
78+
}
7479
```
7580

7681
**Note:** When filling in UTF-8 data, you should always add the `needAppearances()` option.

0 commit comments

Comments
 (0)