Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions api/document-scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ interface DocumentResultViewConfig {
const documentScanner = new Dynamsoft.DocumentScanner({
license: "YOUR_LICENSE_KEY_HERE", // Replace this with your actual license key
resultViewConfig: {
onDone: async (result) =>
onDone: async (result) =>
{
const canvas = result.correctedImageResult.toCanvas();
resultContainer.appendChild(canvas);
Expand Down Expand Up @@ -332,14 +332,14 @@ Create a scan region with a height-to-width ratio of 3:2, translated upwards by
```javascript
scanRegion {
ratio: {
width: 2;
height: 3;
};
regionBottomMargin: 20;
width: 2,
height: 3,
},
regionBottomMargin: 20,
style: {
strokeWidth: 3;
strokeColor: "green";
};
strokeWidth: 3,
strokeColor: "green",
},
}
```

Expand All @@ -354,7 +354,7 @@ A simplified configuration type for toolbar buttons.
export type ToolbarButtonConfig = Pick<"icon" | "label" | "isHidden">;
```

#### Properties
#### Properties

| Property | Type | Description |
| ---------- | -------------------- | ----------------------------------- |
Expand Down Expand Up @@ -448,4 +448,4 @@ interface EngineResourcePaths {
"ddv"?: string | PathInfo;
"dwt"?: string | DwtInfo;
}
```
```