You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- CM_RENDERALL (1): All the content in the target PDF file will be rasterized.
152
-
- CM_IMAGEONLY (2): The PDF Rasterizer is turned off.
153
-
- CM_AUTO (3): The library automatically detect whether a file needs to be rasterized or not and then process the file accordingly.
154
-
- CM_RENDERALLWITHANNOTATION (4): Support loading PDF file with annotation.
146
+
**Parameters**
155
147
156
-
Use this method before you import a PDF into the viewer with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#loadimage"target="_blank">`LoadImage()`</a> , <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`HTTPDownload()`</a> and <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`FTPDownload()`</a>.
148
+
`mode`: Specify the mode. The default value is 3 (Dynamsoft.DWT.EnumDWT_ConvertMode.CM_AUTO)
157
149
158
150
**Availability**
151
+
159
152
<divclass="availability">
160
153
<table>
161
154
@@ -178,25 +171,35 @@ Use this method before you import a PDF into the viewer with methods such as <a
178
171
</table>
179
172
</div>
180
173
174
+
**Usage notes**
175
+
176
+
There are four conversion modes
177
+
178
+
- CM_RENDERALL (1): All the content in the target PDF file will be rasterized.
179
+
- CM_IMAGEONLY (2): The PDF Rasterizer is turned off.
180
+
- CM_AUTO (3): The library automatically detect whether a file needs to be rasterized or not and then process the file accordingly.
181
+
- CM_RENDERALLWITHANNOTATION (4): Support loading PDF file with annotation.
182
+
183
+
Use this method before you import a PDF into the viewer with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#loadimage"target="_blank">`LoadImage()`</a> , <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`HTTPDownload()`</a> and <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`FTPDownload()`</a>.
184
+
181
185
---
182
186
183
187
## SetPassword
184
188
189
+
Set the password for reading encrypted PDF files.
190
+
185
191
**Syntax**
186
192
187
193
```typescript
188
-
/**
189
-
* Set the password for reading encrypted PDF files.
190
-
* @parampassword Specify the password.
191
-
*/
192
194
SetPassword(password: string): boolean;
193
195
```
194
196
195
-
**Usage notes**
197
+
**Parameters**
196
198
197
-
Use this method before you import a PDF into the viewer with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#loadimage"target="_blank">`LoadImage()`</a> , <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`HTTPDownload()`</a> and <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`FTPDownload()`</a>.
199
+
`password`: Specify the password.
198
200
199
201
**Availability**
202
+
200
203
<divclass="availability">
201
204
<table>
202
205
@@ -218,27 +221,29 @@ Use this method before you import a PDF into the viewer with methods such as <a
218
221
219
222
</table>
220
223
</div>
224
+
225
+
**Usage notes**
226
+
227
+
Use this method before you import a PDF into the viewer with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#loadimage"target="_blank">`LoadImage()`</a> , <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`HTTPDownload()`</a> and <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`FTPDownload()`</a>.
228
+
221
229
---
222
230
223
231
## SetResolution
224
232
233
+
Set the resolution for rasterizing.
234
+
225
235
**Syntax**
226
236
227
237
```typescript
228
-
/**
229
-
* Set the resolution for rasterizing.
230
-
* @paramresolution Specify the resolution.
231
-
*/
232
238
SetResolution(resolution: number): boolean;
233
239
```
234
240
235
-
**Usage notes**
236
-
237
-
The default resolution for the conversion is 200. We recommend that you set a value smaller than 300, otherwise it might slow down the program or cause the process to fail.
241
+
**Parameters**
238
242
239
-
Use this method before you import a PDF into the viewer with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#loadimage"target="_blank">`LoadImage()`</a> , <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`HTTPDownload()`</a> and <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`FTPDownload()`</a>.
243
+
`resolution`: Specify the resolution.
240
244
241
245
**Availability**
246
+
242
247
<divclass="availability">
243
248
<table>
244
249
@@ -261,17 +266,21 @@ Use this method before you import a PDF into the viewer with methods such as <a
261
266
</table>
262
267
</div>
263
268
269
+
**Usage notes**
270
+
271
+
The default resolution for the conversion is 200. We recommend that you set a value smaller than 300, otherwise it might slow down the program or cause the process to fail.
272
+
273
+
Use this method before you import a PDF into the viewer with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#loadimage"target="_blank">`LoadImage()`</a> , <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`HTTPDownload()`</a> and <ahref="{{site.info}}api/WebTwain_IO.html#httpdownload"target="_blank">`FTPDownload()`</a>.
274
+
264
275
---
265
276
266
277
## Write.Setup()
267
278
279
+
Set up the PDF writing engine.
280
+
268
281
**Syntax**
269
282
270
283
```typescript
271
-
/**
272
-
* Set up the PDF writing engine.
273
-
* @paramsettings Configures how the PDF is generated.
274
-
*/
275
284
Write.Setup(settings: PDFWSettings): void;
276
285
277
286
interfacePDFWSettings {
@@ -333,13 +342,12 @@ interface PDFWSettings {
333
342
}
334
343
```
335
344
336
-
**Usage notes**
345
+
**Parameters**
337
346
338
-
Use this method before you create a PDF with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#httpupload"target="_blank">`HTTPUpload()`</a>, <ahref="{{site.info}}api/WebTwain_IO.html#saveaspdf"target="_blank">`SaveAsPDF()`</a>, and <ahref="{{site.info}}api/WebTwain_IO.html#saveallaspdf"target="_blank">`SaveAllAsPDF()`</a>
339
-
340
-
Only the core module license is required to use this method.
347
+
`settings`: Configures how the PDF is generated.
341
348
342
349
**Availability**
350
+
343
351
<divclass="availability">
344
352
<table>
345
353
@@ -361,3 +369,9 @@ Only the core module license is required to use this method.
361
369
362
370
</table>
363
371
</div>
372
+
373
+
**Usage notes**
374
+
375
+
Use this method before you create a PDF with methods such as <ahref="{{site.info}}api/WebTwain_IO.html#httpupload"target="_blank">`HTTPUpload()`</a>, <ahref="{{site.info}}api/WebTwain_IO.html#saveaspdf"target="_blank">`SaveAsPDF()`</a>, and <ahref="{{site.info}}api/WebTwain_IO.html#saveallaspdf"target="_blank">`SaveAllAsPDF()`</a>
376
+
377
+
Only the core module license is required to use this method.
0 commit comments