Skip to content

Commit 1295b95

Browse files
committed
chore: update readme examples
1 parent fe8f88b commit 1295b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ bun add @libpdf/core
5858
import { PDF } from "@libpdf/core";
5959

6060
const pdf = await PDF.load(bytes);
61-
const pages = await pdf.getPages();
61+
const pages = pdf.getPages();
6262

6363
console.log(`${pages.length} pages`);
6464
```
@@ -73,7 +73,7 @@ const pdf = await PDF.load(bytes, { credentials: "password" });
7373

7474
```typescript
7575
const pdf = await PDF.load(bytes);
76-
const form = await pdf.getForm();
76+
const form = pdf.getForm();
7777

7878
form.fill({
7979
name: "Jane Doe",

0 commit comments

Comments
 (0)