Skip to content

Commit c76d91f

Browse files
Merge pull request #250 from dynamsoft-docs/preview
update to internal commit 72e7a9f3
2 parents 692d442 + ebf4cb9 commit c76d91f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/interface/idocument/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ A Promise object which will be resolved with a boolean value.
240240
**Code Snippet**
241241

242242
```typescript
243-
const updateFirstPage = {
244-
fileIndex: 1, // using the second page of new file.
243+
const updatePageOptions = {
244+
fileIndex: 1, // Using the second page of the new multi-page file, such as PDF or TIFF.
245245
};
246246

247247
const fileData = /*sample blob*/,
248248

249-
await firstDoc.updatePage(firstDoc.pages[0], fileData, updateFirstPage);
249+
await firstDoc.updatePage(firstDoc.pages[0], fileData, updatePageOptions);
250250
```
251251

252252
**Promise Exception**

api/interface/idocument/updatepageoptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface UpdatePageOptions {
2727

2828
### fileIndex
2929

30-
Specify the page index of the file.
30+
Specify the page index of the multi-page file, such as a PDF or TIFF.
3131

3232
If it is not specified, the first page in the file will be the updated page.
3333

0 commit comments

Comments
 (0)