Skip to content

Commit a7fd52e

Browse files
authored
Merge pull request #532 from dynamsoft-docs/preview
Preview
2 parents 956a5d1 + d4698ea commit a7fd52e

File tree

5 files changed

+57
-30
lines changed

5 files changed

+57
-30
lines changed

info/api/Addon_PDF.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -278,58 +278,58 @@ interface PDFWSettings {
278278
/**
279279
* Specify the author.
280280
*/
281-
author: string;
281+
author?: string;
282282
/**
283283
* Specify the compression type.
284284
*/
285-
compression: Dynamsoft.DWT.EnumDWT_PDFCompressionType | number;
285+
compression?: Dynamsoft.DWT.EnumDWT_PDFCompressionType | number;
286286
/**
287287
* Specify the page type.
288288
* Allowed values are 0: Original, 2: A4, 6: letter, 8: legal
289289
*/
290-
pageType: number;
290+
pageType?: number;
291291
/**
292292
* Specify the creator.
293293
*/
294-
creator: string;
294+
creator?: string;
295295
/**
296296
* Specify the creation date.
297297
* Note that the argument should start with 'D:' like 'D:20181231'.
298298
*/
299-
creationDate: string;
299+
creationDate?: string;
300300
/**
301301
* Specify the key words.
302302
*/
303-
keyWords: string;
303+
keyWords?: string;
304304
/**
305305
* Specify the modified date.
306306
* Note that the argument should start with 'D:' like 'D:20181231'.
307307
*/
308-
modifiedDate: string;
308+
modifiedDate?: string;
309309
/**
310310
* Specify the producer.
311311
*/
312-
producer: string;
312+
producer?: string;
313313
/**
314314
* Specify the subject.
315315
*/
316-
subject: string;
316+
subject?: string;
317317
/**
318318
* Specify the title.
319319
*/
320-
title: string;
320+
title?: string;
321321
/**
322322
* Specify the PDF version. For example, 1.5. The allowed values are 1.1 ~ 1.7.
323323
* NOTE: If the compression type is PDF_JBig2, the lowerest version is 1.4
324324
* If the compression type is PDF_JP2000, the lowerest version is 1.5
325325
*/
326-
version: number;
326+
version?: string;
327327
/**
328328
* Specify the quality of the images in the file.
329329
* The value ranges from 0 to 100.
330330
* Only valid when the {compression} is 'JPEG' or 'JPEG2000'.
331331
*/
332-
quality: number;
332+
quality?: number;
333333
}
334334
```
335335

info/api/Dynamsoft_WebTwainEnv.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ interface DWTInitialConfig {
202202
Host ? : string,
203203
Port ? : string,
204204
PortSSL ? : string,
205-
UseLocalService? : boolean
206205
}
207206
```
208207

info/api/WebTwain_Acquire.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ OpenSourceAsync(): Promise<boolean>;
597597
* Return all available data sources (scanners, etc.) and optionally all detailed information about them.
598598
* @param bIncludeDetails Whether to return more details about the data sources or just their names.
599599
*/
600-
GetSourceNames(bIncludeDetails: boolean): string[] | SourceDetails[];
600+
GetSourceNames(bIncludeDetails?: boolean): string[] | SourceDetails[];
601601

602602
interface SourceDetails {
603603
/**
@@ -4204,23 +4204,23 @@ interface CapabilityDetails {
42044204
/**
42054205
* The container type of the Capability
42064206
*/
4207-
conType: ValueAndLabel;
4207+
conType?: ValueAndLabel;
42084208
/**
42094209
* The index for the current value of the Capability
42104210
*/
4211-
curIndex: number;
4211+
curIndex?: number;
42124212
/**
42134213
* The current value of the Capability
42144214
*/
4215-
curValue: ValueAndLabel;
4215+
curValue?: ValueAndLabel;
42164216
/**
42174217
* The index for the default value of the Capability
42184218
*/
4219-
defIndex: number;
4219+
defIndex?: number;
42204220
/**
42214221
* The operation types that are supported by the Capability. Types include {"get", "set", "reset" "getdefault", "getcurrent"}
42224222
*/
4223-
query: string[];
4223+
query?: string[];
42244224
/**
42254225
* The value type of the Capability. Value types include
42264226
TWTY_BOOL: 6
@@ -4237,22 +4237,22 @@ interface CapabilityDetails {
42374237
TWTY_UINT16: 4
42384238
TWTY_int: 5
42394239
*/
4240-
valueType: ValueAndLabel;
4240+
valueType?: ValueAndLabel;
42414241
/**
42424242
* The available values of the Capability
42434243
*/
4244-
values: ValueAndLabel[];
4244+
values?: ValueAndLabel[];
42454245
}
42464246

42474247
interface ValueAndLabel {
42484248
/**
42494249
* Numeric representation of the item
42504250
*/
4251-
value: Dynamsoft.DWT.EnumDWT_Cap | Dynamsoft.DWT.EnumDWT_CapType | Dynamsoft.DWT.EnumDWT_CapValueType | number;
4251+
value?: Dynamsoft.DWT.EnumDWT_Cap | Dynamsoft.DWT.EnumDWT_CapType | Dynamsoft.DWT.EnumDWT_CapValueType | number;
42524252
/**
42534253
* Label or name of the item
42544254
*/
4255-
label: string;
4255+
label?: string;
42564256
}
42574257
```
42584258

info/api/WebTwain_IO.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3588,6 +3588,30 @@ Print(useOSPrintWindow ? : boolean): boolean;
35883588

35893589
`useOSPrintWindow`: Whether to use the print feature of the operating system instead.
35903590

3591+
**Availability**
3592+
3593+
<div class="availability">
3594+
<table>
3595+
3596+
<tr>
3597+
<td align="center">ActiveX</td>
3598+
<td align="center">H5(Windows)</td>
3599+
<td align="center">H5(macOS/TWAIN)</td>
3600+
<td align="center">H5(macOS/ICA)</td>
3601+
<td align="center">H5(Linux)</td>
3602+
</tr>
3603+
3604+
<tr>
3605+
<td align="center">v6.0+ </td>
3606+
<td align="center">v10.0+ </td>
3607+
<td align="center">v11.0+ </td>
3608+
<td align="center">v11.0+ </td>
3609+
<td align="center">v12.1+ </td>
3610+
</tr>
3611+
3612+
</table>
3613+
</div>
3614+
35913615
**Usage Notes**
35923616

35933617
The parameter only works in Windows Service mode.

info/api/WebTwain_Viewer.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ DWObject.Viewer.clearSelectedAreas();
172172
* Generate an independent CustomElement object.
173173
* @param element Specify the HTMLDivElement.
174174
* @param location Define where to place the custom element. The allowed values are "left" and "right", and the default value is "right".
175-
* @param bCover The default value is `false`, that is, the created CustomElement is displayed according to the set area. If set to true, the main viewer will be covered by the CustomElement.
175+
* @param ifFull The default value is `false`, that is, the created CustomElement is displayed according to the set area. If set to true, the main viewer will be covered by the CustomElement.
176176
*/
177177
createCustomElement(
178178
element: HTMLDivElement,
179179
location?: string,
180-
bCover?: boolean
180+
ifFull?: boolean
181181
): CustomElement;
182182

183183
interface CustomElement {
@@ -193,6 +193,10 @@ interface CustomElement {
193193
* Remove the custom element.
194194
*/
195195
dispose(): boolean;
196+
/**
197+
* Return the created element.
198+
*/
199+
element?: any;
196200
};
197201
```
198202

@@ -573,7 +577,7 @@ interface ThumbnailViewerSettings {
573577
*/
574578
autoChangeIndex?: boolean;
575579
checkbox?: {
576-
visibility?: string; //"visible":hidden", default: "hidden"
580+
visibility?: string; //"visible":hidden", default: "hidden"
577581
width?: number | string; //default: "24px",number unit: px, string value: "24px"/"10%", relative to parent container
578582
height?: number | string; //default: "24px",number unit: px, string value: "24px"/"10%", relative to parent container
579583
background?: string; //default: "#ffffff"
@@ -591,7 +595,7 @@ interface ThumbnailViewerSettings {
591595
translateY?: number | string //default: "", number unit: px, string value: "10px"/"10%", relative to itself
592596
};
593597
pageNumber?: {
594-
visibility?: string; //"visible": hidden", default: "hidden"
598+
visibility?: string; //"visible": hidden", default: "hidden"
595599
width?: number | string; //default: "24px", number unit: px, string value: "24px"/"10%", relative to parent container
596600
height?: number | string; //default: "24px", number unit: px, string value: "24px"/"10%", relative to parent container
597601
background?: string; //default: "#ffffff"
@@ -622,16 +626,16 @@ interface ViewMode {
622626
/**
623627
* Specify the number of images per row.
624628
*/
625-
columns: number;
629+
columns?: number;
626630
/**
627631
* Specify the number of images per column.
628632
*/
629-
rows: number;
633+
rows?: number;
630634
/**
631635
* Set or return whether the pages are arranged vertically or horizontally.
632636
* Default: "vertical". Allowed values are "vertical" and "horizontal".
633637
*/
634-
scrollDirection: string;
638+
scrollDirection?: string;
635639
}
636640
```
637641
```typescript

0 commit comments

Comments
 (0)