@pdftron/webviewer 11.9.0-20250920 → 11.9.0-20250921
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/core/legacyOffice/WebB2XOfficeWorker.br.js.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorker.br.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorker.gz.js.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorker.gz.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.br.wasm +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.js.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.wasm +0 -0
- package/public/core/office/WebOfficeWorker.br.js.mem +0 -0
- package/public/core/office/WebOfficeWorker.br.mem +0 -0
- package/public/core/office/WebOfficeWorker.gz.js.mem +0 -0
- package/public/core/office/WebOfficeWorker.gz.mem +0 -0
- package/public/core/office/WebOfficeWorkerWasm.br.js.mem +0 -0
- package/public/core/office/WebOfficeWorkerWasm.br.wasm +0 -0
- package/public/core/office/WebOfficeWorkerWasm.gz.js.mem +0 -0
- package/public/core/office/WebOfficeWorkerWasm.gz.wasm +0 -0
- package/public/core/office/WebOfficeWorkerWasm.js +1 -1
- package/public/core/officeEditor/OfficeEditorWorkerWasm.br.wasm +0 -0
- package/public/core/pdf/PDFNet.js +196 -196
- package/public/core/pdf/PDFNet.prod.js +1 -1
- package/public/core/pdf/full/PDFNetC.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetC.br.mem +0 -0
- package/public/core/pdf/full/PDFNetC.gz.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/full/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.js +1 -1
- package/public/core/pdf/full/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.js +1 -1
- package/public/core/pdf/full/optimized/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/lean/PDFNetC.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetC.br.mem +0 -0
- package/public/core/pdf/lean/PDFNetC.gz.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.js +1 -1
- package/public/core/pdf/lean/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.js +1 -1
- package/public/core/pdf/lean/optimized/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/webviewer-core.min.js +1 -1
- package/types.d.ts +0 -6
|
@@ -237,202 +237,202 @@ function(filepath){apiFunctionCheck("FDFDoc.setPDFFileName",arguments.length,1,"
|
|
|
237
237
|
[[field_name,"string"]]);return PDFNet.sendWithPromise("FDFDoc.getFieldIterator",{doc:this.id,field_name:field_name}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"FDFField")})};PDFNet.FDFDoc.prototype.getField=function(field_name){apiFunctionCheck("FDFDoc.getField",arguments.length,1,"(string)",[[field_name,"string"]]);return PDFNet.sendWithPromise("FDFDoc.getField",{doc:this.id,field_name:field_name}).then(function(id){return new PDFNet.FDFField(id)})};PDFNet.FDFDoc.prototype.fieldCreate=
|
|
238
238
|
function(field_name,type,field_value){"undefined"===typeof field_value&&(field_value=new PDFNet.Obj("0"));apiFunctionCheck("FDFDoc.fieldCreate",arguments.length,2,"(string, number, PDFNet.Obj)",[[field_name,"string"],[type,"number"],[field_value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("FDFDoc.fieldCreate",{doc:this.id,field_name:field_name,type:type,field_value:field_value.id}).then(function(id){return new PDFNet.FDFField(id)})};PDFNet.FDFDoc.prototype.fieldCreateFromString=function(field_name,
|
|
239
239
|
type,field_value){apiFunctionCheck("FDFDoc.fieldCreateFromString",arguments.length,3,"(string, number, string)",[[field_name,"string"],[type,"number"],[field_value,"string"]]);return PDFNet.sendWithPromise("FDFDoc.fieldCreateFromString",{doc:this.id,field_name:field_name,type:type,field_value:field_value}).then(function(id){return new PDFNet.FDFField(id)})};PDFNet.FDFDoc.prototype.getSDFDoc=function(){apiFunctionCheck("FDFDoc.getSDFDoc");return PDFNet.sendWithPromise("FDFDoc.getSDFDoc",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,
|
|
240
|
-
id)})};PDFNet.FDFDoc.createFromXFDF=function(file_name){apiFunctionCheck("FDFDoc.createFromXFDF",arguments.length,1,"(string)",[[file_name,"string"]]);return PDFNet.sendWithPromise("fdfDocCreateFromXFDF",{file_name:file_name}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.FDFDoc.prototype.
|
|
241
|
-
"
|
|
242
|
-
arguments.length,
|
|
243
|
-
{
|
|
244
|
-
PDFNet.FDFField.prototype.
|
|
245
|
-
|
|
246
|
-
return PDFNet.sendWithPromise("FDFField.
|
|
247
|
-
|
|
248
|
-
return PDFNet.sendWithPromise("
|
|
249
|
-
id)})};PDFNet.Filter.
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
return PDFNet.sendWithPromise("
|
|
253
|
-
id)})};PDFNet.Filter.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
{filter:this.id})};PDFNet.Filter.prototype.
|
|
257
|
-
arguments.length,1,"(number)",[[
|
|
258
|
-
PDFNet.Filter.prototype.
|
|
259
|
-
PDFNet.Filter.prototype.
|
|
260
|
-
{filter:this.id,
|
|
261
|
-
return PDFNet.sendWithPromise("Filter.
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
{reader:this.id
|
|
265
|
-
PDFNet.FilterReader.prototype.
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
return PDFNet.sendWithPromise("FilterWriter.
|
|
270
|
-
1,"(number)",[[
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
id)})};PDFNet.OCMD.prototype.
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
id)})};PDFNet.ClassMap.prototype.
|
|
310
|
-
id)})};PDFNet.ContentItem.prototype.
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return PDFNet.sendWithPromise("ContentItem.
|
|
314
|
-
functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.
|
|
315
|
-
function(){apiFunctionCheck("
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
PDFNet.SElement.prototype.
|
|
322
|
-
arguments.length,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
return PDFNet.sendWithPromise("SElement.
|
|
328
|
-
{e:this})};PDFNet.SElement.prototype.
|
|
329
|
-
id)})};PDFNet.STree.
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
PDFNet.Action.
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
function(
|
|
347
|
-
id
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
{page:this.id})};PDFNet.Page.prototype.
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
return PDFNet.sendWithPromise("
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
{
|
|
363
|
-
function(annot){apiFunctionCheck("Page.
|
|
364
|
-
function(
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
"Object",PDFNet.
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.
|
|
378
|
-
id)})};PDFNet.Annot.prototype.
|
|
379
|
-
function(
|
|
380
|
-
|
|
381
|
-
{s:s,b_width:b_width,b_hr:b_hr,b_vr:b_vr}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,id)})};PDFNet.AnnotBorderStyle.
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return PDFNet.sendWithPromise("Annot.
|
|
388
|
-
id)})};PDFNet.Annot.prototype.
|
|
389
|
-
|
|
390
|
-
{annot:this.id
|
|
391
|
-
{annot:this.id})};PDFNet.Annot.prototype.
|
|
392
|
-
function(
|
|
393
|
-
(
|
|
394
|
-
function(
|
|
395
|
-
return PDFNet.sendWithPromise("AnnotBorderStyle.
|
|
396
|
-
PDFNet.AnnotBorderStyle.prototype.
|
|
397
|
-
|
|
398
|
-
arguments.length,1,"(PDFNet.AnnotBorderStyle
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
id
|
|
403
|
-
|
|
404
|
-
function(
|
|
405
|
-
function(
|
|
406
|
-
|
|
407
|
-
{line:this.id,
|
|
408
|
-
return PDFNet.sendWithPromise("LineAnnot.
|
|
409
|
-
|
|
410
|
-
function(
|
|
411
|
-
1,"(number)",[[it,"number"]]);return PDFNet.sendWithPromise("LineAnnot.
|
|
412
|
-
function(){apiFunctionCheck("LineAnnot.
|
|
413
|
-
{line:this.id})};PDFNet.LineAnnot.prototype.
|
|
414
|
-
|
|
415
|
-
function(
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
arguments.length,
|
|
419
|
-
arguments.length,1,"(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[cr,0]]);return PDFNet.sendWithPromise("CircleAnnot.
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
{fileatt:this.id
|
|
426
|
-
{fileatt:this.id
|
|
427
|
-
function(
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
240
|
+
id)})};PDFNet.FDFDoc.createFromXFDF=function(file_name){apiFunctionCheck("FDFDoc.createFromXFDF",arguments.length,1,"(string)",[[file_name,"string"]]);return PDFNet.sendWithPromise("fdfDocCreateFromXFDF",{file_name:file_name}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.FDFDoc.prototype.saveAsXFDFAsString=function(){apiFunctionCheck("FDFDoc.saveAsXFDFAsString");return PDFNet.sendWithPromise("FDFDoc.saveAsXFDFAsString",{doc:this.id})};PDFNet.FDFDoc.prototype.saveAsXFDFAsStringWithOptions=
|
|
241
|
+
function(opts){"undefined"===typeof opts&&(opts=null);apiFunctionCheck("FDFDoc.saveAsXFDFAsStringWithOptions",arguments.length,0,"(PDFNet.OptionBase)",[[opts,"OptionBase"]],{checkThisYield:!1},[[opts,0]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("FDFDoc.saveAsXFDFAsStringWithOptions",{doc:this.id,opts:opts})};PDFNet.FDFDoc.prototype.mergeAnnots=function(command_file,permitted_user){"undefined"===typeof permitted_user&&(permitted_user="");apiFunctionCheck("FDFDoc.mergeAnnots",
|
|
242
|
+
arguments.length,1,"(string, string)",[[command_file,"string"],[permitted_user,"string"]]);return PDFNet.sendWithPromise("FDFDoc.mergeAnnots",{doc:this.id,command_file:command_file,permitted_user:permitted_user})};PDFNet.FDFField.create=function(field_dict,fdf_dict){"undefined"===typeof field_dict&&(field_dict=new PDFNet.Obj("0"));"undefined"===typeof fdf_dict&&(fdf_dict=new PDFNet.Obj("0"));apiFunctionCheck("FDFField.create",arguments.length,0,"(PDFNet.Obj, PDFNet.Obj)",[[field_dict,"Object",PDFNet.Obj,
|
|
243
|
+
"Obj"],[fdf_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fdfFieldCreate",{field_dict:field_dict.id,fdf_dict:fdf_dict.id}).then(function(id){return new PDFNet.FDFField(id)})};PDFNet.FDFField.prototype.getValue=function(){apiFunctionCheck("FDFField.getValue",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="FDFField.getValue";return PDFNet.sendWithPromise("FDFField.getValue",{field:this}).then(function(id){me.yieldFunction=
|
|
244
|
+
void 0;id.result=createPDFNetObj(PDFNet.Obj,id.result);copyFunc(id.field,me);return id.result})};PDFNet.FDFField.prototype.setValue=function(value){apiFunctionCheck("FDFField.setValue",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="FDFField.setValue";return PDFNet.sendWithPromise("FDFField.setValue",{field:this,value:value.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.FDFField.prototype.getName=
|
|
245
|
+
function(){apiFunctionCheck("FDFField.getName",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="FDFField.getName";return PDFNet.sendWithPromise("FDFField.getName",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.field,me);return id.result})};PDFNet.FDFField.prototype.getPartialName=function(){apiFunctionCheck("FDFField.getPartialName",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=
|
|
246
|
+
this;this.yieldFunction="FDFField.getPartialName";return PDFNet.sendWithPromise("FDFField.getPartialName",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.field,me);return id.result})};PDFNet.FDFField.prototype.getSDFObj=function(){apiFunctionCheck("FDFField.getSDFObj",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("FDFField.getSDFObj",{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFField.prototype.findAttribute=
|
|
247
|
+
function(attrib){apiFunctionCheck("FDFField.findAttribute",arguments.length,1,"(string)",[[attrib,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("FDFField.findAttribute",{field:this,attrib:attrib}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Filter.prototype.createASCII85Encode=function(line_width,buf_sz){apiFunctionCheck("Filter.createASCII85Encode",arguments.length,2,"(number, number)",[[line_width,"number"],[buf_sz,"number"]]);
|
|
248
|
+
return PDFNet.sendWithPromise("Filter.createASCII85Encode",{no_own_input_filter:this.id,line_width:line_width,buf_sz:buf_sz}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createMemoryFilter=function(buf_sz,is_input){apiFunctionCheck("Filter.createMemoryFilter",arguments.length,2,"(number, boolean)",[[buf_sz,"number"],[is_input,"boolean"]]);return PDFNet.sendWithPromise("filterCreateMemoryFilter",{buf_sz:buf_sz,is_input:is_input}).then(function(id){return createDestroyableObj(PDFNet.Filter,
|
|
249
|
+
id)})};PDFNet.Filter.createImage2RGBFromElement=function(elem){apiFunctionCheck("Filter.createImage2RGBFromElement",arguments.length,1,"(PDFNet.Element)",[[elem,"Object",PDFNet.Element,"Element"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBFromElement",{elem:elem.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBFromObj=function(obj){apiFunctionCheck("Filter.createImage2RGBFromObj",arguments.length,1,"(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,
|
|
250
|
+
"Obj"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBFromObj",{obj:obj.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGB=function(img){apiFunctionCheck("Filter.createImage2RGB",arguments.length,1,"(PDFNet.Image)",[[img,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("filterCreateImage2RGB",{img:img.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBAFromElement=function(elem,
|
|
251
|
+
premultiply){apiFunctionCheck("Filter.createImage2RGBAFromElement",arguments.length,2,"(PDFNet.Element, boolean)",[[elem,"Object",PDFNet.Element,"Element"],[premultiply,"boolean"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBAFromElement",{elem:elem.id,premultiply:premultiply}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBAFromObj=function(obj,premultiply){apiFunctionCheck("Filter.createImage2RGBAFromObj",arguments.length,2,"(PDFNet.Obj, boolean)",
|
|
252
|
+
[[obj,"Object",PDFNet.Obj,"Obj"],[premultiply,"boolean"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBAFromObj",{obj:obj.id,premultiply:premultiply}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBA=function(img,premultiply){apiFunctionCheck("Filter.createImage2RGBA",arguments.length,2,"(PDFNet.Image, boolean)",[[img,"Object",PDFNet.Image,"Image"],[premultiply,"boolean"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBA",{img:img.id,
|
|
253
|
+
premultiply:premultiply}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.attachFilter=function(attach_filter){apiFunctionCheck("Filter.attachFilter",arguments.length,1,"(PDFNet.Filter)",[[attach_filter,"Object",PDFNet.Filter,"Filter"]]);0!=attach_filter.id&&avoidCleanup(attach_filter.id);return PDFNet.sendWithPromise("Filter.attachFilter",{filter:this.id,no_own_attach_filter:attach_filter.id})};PDFNet.Filter.prototype.releaseAttachedFilter=function(){apiFunctionCheck("Filter.releaseAttachedFilter");
|
|
254
|
+
return PDFNet.sendWithPromise("Filter.releaseAttachedFilter",{filter:this.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getAttachedFilter=function(){apiFunctionCheck("Filter.getAttachedFilter");return PDFNet.sendWithPromise("Filter.getAttachedFilter",{filter:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getSourceFilter=function(){apiFunctionCheck("Filter.getSourceFilter");return PDFNet.sendWithPromise("Filter.getSourceFilter",
|
|
255
|
+
{filter:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getName=function(){apiFunctionCheck("Filter.getName");return PDFNet.sendWithPromise("Filter.getName",{filter:this.id})};PDFNet.Filter.prototype.getDecodeName=function(){apiFunctionCheck("Filter.getDecodeName");return PDFNet.sendWithPromise("Filter.getDecodeName",{filter:this.id})};PDFNet.Filter.prototype.begin=function(){apiFunctionCheck("Filter.begin");return PDFNet.sendWithPromise("Filter.begin",
|
|
256
|
+
{filter:this.id})};PDFNet.Filter.prototype.size=function(){apiFunctionCheck("Filter.size");return PDFNet.sendWithPromise("Filter.size",{filter:this.id})};PDFNet.Filter.prototype.consume=function(num_bytes){apiFunctionCheck("Filter.consume",arguments.length,1,"(number)",[[num_bytes,"number"]]);return PDFNet.sendWithPromise("Filter.consume",{filter:this.id,num_bytes:num_bytes})};PDFNet.Filter.prototype.count=function(){apiFunctionCheck("Filter.count");return PDFNet.sendWithPromise("Filter.count",{filter:this.id})};
|
|
257
|
+
PDFNet.Filter.prototype.setCount=function(new_count){apiFunctionCheck("Filter.setCount",arguments.length,1,"(number)",[[new_count,"number"]]);return PDFNet.sendWithPromise("Filter.setCount",{filter:this.id,new_count:new_count})};PDFNet.Filter.prototype.setStreamLength=function(bytes){apiFunctionCheck("Filter.setStreamLength",arguments.length,1,"(number)",[[bytes,"number"]]);return PDFNet.sendWithPromise("Filter.setStreamLength",{filter:this.id,bytes:bytes})};PDFNet.Filter.prototype.flush=function(){apiFunctionCheck("Filter.flush");
|
|
258
|
+
return PDFNet.sendWithPromise("Filter.flush",{filter:this.id})};PDFNet.Filter.prototype.flushAll=function(){apiFunctionCheck("Filter.flushAll");return PDFNet.sendWithPromise("Filter.flushAll",{filter:this.id})};PDFNet.Filter.prototype.isInputFilter=function(){apiFunctionCheck("Filter.isInputFilter");return PDFNet.sendWithPromise("Filter.isInputFilter",{filter:this.id})};PDFNet.Filter.prototype.canSeek=function(){apiFunctionCheck("Filter.canSeek");return PDFNet.sendWithPromise("Filter.canSeek",{filter:this.id})};
|
|
259
|
+
PDFNet.Filter.prototype.seek=function(offset,origin){apiFunctionCheck("Filter.seek",arguments.length,2,"(number, number)",[[offset,"number"],[origin,"number"]]);return PDFNet.sendWithPromise("Filter.seek",{filter:this.id,offset:offset,origin:origin})};PDFNet.Filter.prototype.tell=function(){apiFunctionCheck("Filter.tell");return PDFNet.sendWithPromise("Filter.tell",{filter:this.id})};PDFNet.Filter.prototype.truncate=function(new_size){apiFunctionCheck("Filter.truncate",arguments.length,1,"(number)",
|
|
260
|
+
[[new_size,"number"]]);return PDFNet.sendWithPromise("Filter.truncate",{filter:this.id,new_size:new_size})};PDFNet.Filter.prototype.createInputIterator=function(){apiFunctionCheck("Filter.createInputIterator");return PDFNet.sendWithPromise("Filter.createInputIterator",{filter:this.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getFilePath=function(){apiFunctionCheck("Filter.getFilePath");return PDFNet.sendWithPromise("Filter.getFilePath",{filter:this.id})};
|
|
261
|
+
PDFNet.Filter.prototype.memoryFilterGetBuffer=function(){apiFunctionCheck("Filter.memoryFilterGetBuffer");return PDFNet.sendWithPromise("Filter.memoryFilterGetBuffer",{filter:this.id})};PDFNet.Filter.prototype.memoryFilterSetAsInputFilter=function(){apiFunctionCheck("Filter.memoryFilterSetAsInputFilter");return PDFNet.sendWithPromise("Filter.memoryFilterSetAsInputFilter",{filter:this.id})};PDFNet.Filter.prototype.memoryFilterReset=function(){apiFunctionCheck("Filter.memoryFilterReset");return PDFNet.sendWithPromise("Filter.memoryFilterReset",
|
|
262
|
+
{filter:this.id})};PDFNet.FilterReader.create=function(filter){apiFunctionCheck("FilterReader.create",arguments.length,1,"(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("filterReaderCreate",{filter:filter.id}).then(function(id){return createDestroyableObj(PDFNet.FilterReader,id)})};PDFNet.FilterReader.prototype.attachFilter=function(filter){apiFunctionCheck("FilterReader.attachFilter",arguments.length,1,"(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,
|
|
263
|
+
"Filter"]]);return PDFNet.sendWithPromise("FilterReader.attachFilter",{reader:this.id,filter:filter.id})};PDFNet.FilterReader.prototype.getAttachedFilter=function(){apiFunctionCheck("FilterReader.getAttachedFilter");return PDFNet.sendWithPromise("FilterReader.getAttachedFilter",{reader:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.FilterReader.prototype.seek=function(offset,origin){apiFunctionCheck("FilterReader.seek",arguments.length,2,"(number, number)",[[offset,
|
|
264
|
+
"number"],[origin,"number"]]);return PDFNet.sendWithPromise("FilterReader.seek",{reader:this.id,offset:offset,origin:origin})};PDFNet.FilterReader.prototype.tell=function(){apiFunctionCheck("FilterReader.tell");return PDFNet.sendWithPromise("FilterReader.tell",{reader:this.id})};PDFNet.FilterReader.prototype.count=function(){apiFunctionCheck("FilterReader.count");return PDFNet.sendWithPromise("FilterReader.count",{reader:this.id})};PDFNet.FilterReader.prototype.flush=function(){apiFunctionCheck("FilterReader.flush");
|
|
265
|
+
return PDFNet.sendWithPromise("FilterReader.flush",{reader:this.id})};PDFNet.FilterReader.prototype.flushAll=function(){apiFunctionCheck("FilterReader.flushAll");return PDFNet.sendWithPromise("FilterReader.flushAll",{reader:this.id})};PDFNet.FilterReader.prototype.get=function(){apiFunctionCheck("FilterReader.get");return PDFNet.sendWithPromise("FilterReader.get",{reader:this.id})};PDFNet.FilterReader.prototype.peek=function(){apiFunctionCheck("FilterReader.peek");return PDFNet.sendWithPromise("FilterReader.peek",
|
|
266
|
+
{reader:this.id})};PDFNet.FilterWriter.create=function(filter){apiFunctionCheck("FilterWriter.create",arguments.length,1,"(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("filterWriterCreate",{filter:filter.id}).then(function(id){return createDestroyableObj(PDFNet.FilterWriter,id)})};PDFNet.FilterWriter.prototype.attachFilter=function(filter){apiFunctionCheck("FilterWriter.attachFilter",arguments.length,1,"(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,
|
|
267
|
+
"Filter"]]);return PDFNet.sendWithPromise("FilterWriter.attachFilter",{writer:this.id,filter:filter.id})};PDFNet.FilterWriter.prototype.getAttachedFilter=function(){apiFunctionCheck("FilterWriter.getAttachedFilter");return PDFNet.sendWithPromise("FilterWriter.getAttachedFilter",{writer:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.FilterWriter.prototype.seek=function(offset,origin){apiFunctionCheck("FilterWriter.seek",arguments.length,2,"(number, number)",[[offset,
|
|
268
|
+
"number"],[origin,"number"]]);return PDFNet.sendWithPromise("FilterWriter.seek",{writer:this.id,offset:offset,origin:origin})};PDFNet.FilterWriter.prototype.tell=function(){apiFunctionCheck("FilterWriter.tell");return PDFNet.sendWithPromise("FilterWriter.tell",{writer:this.id})};PDFNet.FilterWriter.prototype.count=function(){apiFunctionCheck("FilterWriter.count");return PDFNet.sendWithPromise("FilterWriter.count",{writer:this.id})};PDFNet.FilterWriter.prototype.flush=function(){apiFunctionCheck("FilterWriter.flush");
|
|
269
|
+
return PDFNet.sendWithPromise("FilterWriter.flush",{writer:this.id})};PDFNet.FilterWriter.prototype.flushAll=function(){apiFunctionCheck("FilterWriter.flushAll");return PDFNet.sendWithPromise("FilterWriter.flushAll",{writer:this.id})};PDFNet.FilterWriter.prototype.writeUChar=function(ch){apiFunctionCheck("FilterWriter.writeUChar",arguments.length,1,"(number)",[[ch,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUChar",{writer:this.id,ch:ch})};PDFNet.FilterWriter.prototype.writeInt16=
|
|
270
|
+
function(num){apiFunctionCheck("FilterWriter.writeInt16",arguments.length,1,"(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeInt16",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeUInt16=function(num){apiFunctionCheck("FilterWriter.writeUInt16",arguments.length,1,"(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUInt16",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeInt32=function(num){apiFunctionCheck("FilterWriter.writeInt32",
|
|
271
|
+
arguments.length,1,"(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeInt32",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeUInt32=function(num){apiFunctionCheck("FilterWriter.writeUInt32",arguments.length,1,"(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUInt32",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeInt64=function(num){apiFunctionCheck("FilterWriter.writeInt64",arguments.length,1,"(number)",[[num,"number"]]);
|
|
272
|
+
return PDFNet.sendWithPromise("FilterWriter.writeInt64",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeUInt64=function(num){apiFunctionCheck("FilterWriter.writeUInt64",arguments.length,1,"(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUInt64",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeString=function(str){apiFunctionCheck("FilterWriter.writeString",arguments.length,1,"(string)",[[str,"string"]]);return PDFNet.sendWithPromise("FilterWriter.writeString",
|
|
273
|
+
{writer:this.id,str:str})};PDFNet.FilterWriter.prototype.writeFilter=function(reader){apiFunctionCheck("FilterWriter.writeFilter",arguments.length,1,"(PDFNet.FilterReader)",[[reader,"Object",PDFNet.FilterReader,"FilterReader"]]);return PDFNet.sendWithPromise("FilterWriter.writeFilter",{writer:this.id,reader:reader.id})};PDFNet.FilterWriter.prototype.writeLine=function(line,eol){"undefined"===typeof eol&&(eol=13);apiFunctionCheck("FilterWriter.writeLine",arguments.length,1,"(string, number)",[[line,
|
|
274
|
+
"const char* = 0"],[eol,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeLine",{writer:this.id,line:line,eol:eol})};PDFNet.FilterWriter.prototype.writeBuffer=function(buf){apiFunctionCheck("FilterWriter.writeBuffer",arguments.length,1,"(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("FilterWriter.writeBuffer",{writer:this.id,buf:bufArrayBuffer})};PDFNet.OCG.create=function(pdfdoc,name){apiFunctionCheck("OCG.create",
|
|
275
|
+
arguments.length,2,"(PDFNet.PDFDoc, string)",[[pdfdoc,"PDFDoc"],[name,"string"]]);return PDFNet.sendWithPromise("ocgCreate",{pdfdoc:pdfdoc.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.OCG,id)})};PDFNet.OCG.createFromObj=function(ocg_dict){apiFunctionCheck("OCG.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[ocg_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ocgCreateFromObj",{ocg_dict:ocg_dict.id}).then(function(id){return createPDFNetObj(PDFNet.OCG,id)})};PDFNet.OCG.prototype.copy=
|
|
276
|
+
function(){apiFunctionCheck("OCG.copy");return PDFNet.sendWithPromise("OCG.copy",{ocg:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCG,id)})};PDFNet.OCG.prototype.getSDFObj=function(){apiFunctionCheck("OCG.getSDFObj");return PDFNet.sendWithPromise("OCG.getSDFObj",{ocg:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCG.prototype.isValid=function(){apiFunctionCheck("OCG.isValid");return PDFNet.sendWithPromise("OCG.isValid",{ocg:this.id})};PDFNet.OCG.prototype.getName=
|
|
277
|
+
function(){apiFunctionCheck("OCG.getName");return PDFNet.sendWithPromise("OCG.getName",{c:this.id})};PDFNet.OCG.prototype.setName=function(value){apiFunctionCheck("OCG.setName",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("OCG.setName",{c:this.id,value:value})};PDFNet.OCG.prototype.getIntent=function(){apiFunctionCheck("OCG.getIntent");return PDFNet.sendWithPromise("OCG.getIntent",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCG.prototype.setIntent=
|
|
278
|
+
function(value){apiFunctionCheck("OCG.setIntent",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCG.setIntent",{c:this.id,value:value.id})};PDFNet.OCG.prototype.hasUsage=function(){apiFunctionCheck("OCG.hasUsage");return PDFNet.sendWithPromise("OCG.hasUsage",{c:this.id})};PDFNet.OCG.prototype.getUsage=function(key){apiFunctionCheck("OCG.getUsage",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("OCG.getUsage",{c:this.id,
|
|
279
|
+
key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCG.prototype.getCurrentState=function(ctx){apiFunctionCheck("OCG.getCurrentState",arguments.length,1,"(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("OCG.getCurrentState",{c:this.id,ctx:ctx.id})};PDFNet.OCG.prototype.setCurrentState=function(ctx,state){apiFunctionCheck("OCG.setCurrentState",arguments.length,2,"(PDFNet.OCGContext, boolean)",[[ctx,"Object",PDFNet.OCGContext,
|
|
280
|
+
"OCGContext"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCG.setCurrentState",{c:this.id,ctx:ctx.id,state:state})};PDFNet.OCG.prototype.getInitialState=function(cfg){apiFunctionCheck("OCG.getInitialState",arguments.length,1,"(PDFNet.OCGConfig)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"]]);return PDFNet.sendWithPromise("OCG.getInitialState",{c:this.id,cfg:cfg.id})};PDFNet.OCG.prototype.setInitialState=function(cfg,state){apiFunctionCheck("OCG.setInitialState",arguments.length,2,"(PDFNet.OCGConfig, boolean)",
|
|
281
|
+
[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCG.setInitialState",{c:this.id,cfg:cfg.id,state:state})};PDFNet.OCG.prototype.isLocked=function(cfg){apiFunctionCheck("OCG.isLocked",arguments.length,1,"(PDFNet.OCGConfig)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"]]);return PDFNet.sendWithPromise("OCG.isLocked",{c:this.id,cfg:cfg.id})};PDFNet.OCG.prototype.setLocked=function(cfg,state){apiFunctionCheck("OCG.setLocked",arguments.length,2,"(PDFNet.OCGConfig, boolean)",
|
|
282
|
+
[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCG.setLocked",{c:this.id,cfg:cfg.id,state:state})};PDFNet.OCGConfig.createFromObj=function(dict){apiFunctionCheck("OCGConfig.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ocgConfigCreateFromObj",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,id)})};PDFNet.OCGConfig.create=function(pdfdoc,default_config){apiFunctionCheck("OCGConfig.create",
|
|
283
|
+
arguments.length,2,"(PDFNet.PDFDoc, boolean)",[[pdfdoc,"PDFDoc"],[default_config,"boolean"]]);return PDFNet.sendWithPromise("ocgConfigCreate",{pdfdoc:pdfdoc.id,default_config:default_config}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,id)})};PDFNet.OCGConfig.prototype.copy=function(){apiFunctionCheck("OCGConfig.copy");return PDFNet.sendWithPromise("OCGConfig.copy",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,id)})};PDFNet.OCGConfig.prototype.getSDFObj=function(){apiFunctionCheck("OCGConfig.getSDFObj");
|
|
284
|
+
return PDFNet.sendWithPromise("OCGConfig.getSDFObj",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.getOrder=function(){apiFunctionCheck("OCGConfig.getOrder");return PDFNet.sendWithPromise("OCGConfig.getOrder",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setOrder=function(value){apiFunctionCheck("OCGConfig.setOrder",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setOrder",
|
|
285
|
+
{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getName=function(){apiFunctionCheck("OCGConfig.getName");return PDFNet.sendWithPromise("OCGConfig.getName",{c:this.id})};PDFNet.OCGConfig.prototype.setName=function(value){apiFunctionCheck("OCGConfig.setName",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("OCGConfig.setName",{c:this.id,value:value})};PDFNet.OCGConfig.prototype.getCreator=function(){apiFunctionCheck("OCGConfig.getCreator");return PDFNet.sendWithPromise("OCGConfig.getCreator",
|
|
286
|
+
{c:this.id})};PDFNet.OCGConfig.prototype.setCreator=function(value){apiFunctionCheck("OCGConfig.setCreator",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("OCGConfig.setCreator",{c:this.id,value:value})};PDFNet.OCGConfig.prototype.getInitBaseState=function(){apiFunctionCheck("OCGConfig.getInitBaseState");return PDFNet.sendWithPromise("OCGConfig.getInitBaseState",{c:this.id})};PDFNet.OCGConfig.prototype.setInitBaseState=function(value){"undefined"===typeof value&&(value=
|
|
287
|
+
"ON");apiFunctionCheck("OCGConfig.setInitBaseState",arguments.length,0,"(string)",[[value,"const char* = 0"]]);return PDFNet.sendWithPromise("OCGConfig.setInitBaseState",{c:this.id,value:value})};PDFNet.OCGConfig.prototype.getInitOnStates=function(){apiFunctionCheck("OCGConfig.getInitOnStates");return PDFNet.sendWithPromise("OCGConfig.getInitOnStates",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setInitOnStates=function(value){apiFunctionCheck("OCGConfig.setInitOnStates",
|
|
288
|
+
arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setInitOnStates",{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getInitOffStates=function(){apiFunctionCheck("OCGConfig.getInitOffStates");return PDFNet.sendWithPromise("OCGConfig.getInitOffStates",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setInitOffStates=function(value){apiFunctionCheck("OCGConfig.setInitOffStates",arguments.length,
|
|
289
|
+
1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setInitOffStates",{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getIntent=function(){apiFunctionCheck("OCGConfig.getIntent");return PDFNet.sendWithPromise("OCGConfig.getIntent",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setIntent=function(value){apiFunctionCheck("OCGConfig.setIntent",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,
|
|
290
|
+
"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setIntent",{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getLockedOCGs=function(){apiFunctionCheck("OCGConfig.getLockedOCGs");return PDFNet.sendWithPromise("OCGConfig.getLockedOCGs",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setLockedOCGs=function(value){apiFunctionCheck("OCGConfig.setLockedOCGs",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setLockedOCGs",
|
|
291
|
+
{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getRBGroups=function(){apiFunctionCheck("OCGConfig.getRBGroups");return PDFNet.sendWithPromise("OCGConfig.getRBGroups",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setRBGroups=function(value){apiFunctionCheck("OCGConfig.setRBGroups",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setRBGroups",{c:this.id,value:value.id})};PDFNet.OCGContext.createFromConfig=
|
|
292
|
+
function(cfg){apiFunctionCheck("OCGContext.createFromConfig",arguments.length,1,"(PDFNet.OCGConfig)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"]]);return PDFNet.sendWithPromise("ocgContextCreateFromConfig",{cfg:cfg.id}).then(function(id){return createDestroyableObj(PDFNet.OCGContext,id)})};PDFNet.OCGContext.prototype.copy=function(){apiFunctionCheck("OCGContext.copy");return PDFNet.sendWithPromise("OCGContext.copy",{c:this.id}).then(function(id){return createDestroyableObj(PDFNet.OCGContext,id)})};
|
|
293
|
+
PDFNet.OCGContext.prototype.getState=function(grp){apiFunctionCheck("OCGContext.getState",arguments.length,1,"(PDFNet.OCG)",[[grp,"Object",PDFNet.OCG,"OCG"]]);return PDFNet.sendWithPromise("OCGContext.getState",{c:this.id,grp:grp.id})};PDFNet.OCGContext.prototype.setState=function(grp,state){apiFunctionCheck("OCGContext.setState",arguments.length,2,"(PDFNet.OCG, boolean)",[[grp,"Object",PDFNet.OCG,"OCG"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCGContext.setState",{c:this.id,grp:grp.id,
|
|
294
|
+
state:state})};PDFNet.OCGContext.prototype.resetStates=function(all_on){apiFunctionCheck("OCGContext.resetStates",arguments.length,1,"(boolean)",[[all_on,"boolean"]]);return PDFNet.sendWithPromise("OCGContext.resetStates",{c:this.id,all_on:all_on})};PDFNet.OCGContext.prototype.setNonOCDrawing=function(draw_non_OC){apiFunctionCheck("OCGContext.setNonOCDrawing",arguments.length,1,"(boolean)",[[draw_non_OC,"boolean"]]);return PDFNet.sendWithPromise("OCGContext.setNonOCDrawing",{c:this.id,draw_non_OC:draw_non_OC})};
|
|
295
|
+
PDFNet.OCGContext.prototype.getNonOCDrawing=function(){apiFunctionCheck("OCGContext.getNonOCDrawing");return PDFNet.sendWithPromise("OCGContext.getNonOCDrawing",{c:this.id})};PDFNet.OCGContext.prototype.setOCDrawMode=function(oc_draw_mode){apiFunctionCheck("OCGContext.setOCDrawMode",arguments.length,1,"(number)",[[oc_draw_mode,"number"]]);return PDFNet.sendWithPromise("OCGContext.setOCDrawMode",{c:this.id,oc_draw_mode:oc_draw_mode})};PDFNet.OCGContext.prototype.getOCMode=function(){apiFunctionCheck("OCGContext.getOCMode");
|
|
296
|
+
return PDFNet.sendWithPromise("OCGContext.getOCMode",{c:this.id})};PDFNet.OCMD.createFromObj=function(ocmd_dict){apiFunctionCheck("OCMD.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[ocmd_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ocmdCreateFromObj",{ocmd_dict:ocmd_dict.id}).then(function(id){return createPDFNetObj(PDFNet.OCMD,id)})};PDFNet.OCMD.create=function(pdfdoc,ocgs,vis_policy){apiFunctionCheck("OCMD.create",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Obj, number)",
|
|
297
|
+
[[pdfdoc,"PDFDoc"],[ocgs,"Object",PDFNet.Obj,"Obj"],[vis_policy,"number"]]);return PDFNet.sendWithPromise("ocmdCreate",{pdfdoc:pdfdoc.id,ocgs:ocgs.id,vis_policy:vis_policy}).then(function(id){return createPDFNetObj(PDFNet.OCMD,id)})};PDFNet.OCMD.prototype.copy=function(){apiFunctionCheck("OCMD.copy");return PDFNet.sendWithPromise("OCMD.copy",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCMD,id)})};PDFNet.OCMD.prototype.getSDFObj=function(){apiFunctionCheck("OCMD.getSDFObj");return PDFNet.sendWithPromise("OCMD.getSDFObj",
|
|
298
|
+
{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCMD.prototype.getOCGs=function(){apiFunctionCheck("OCMD.getOCGs");return PDFNet.sendWithPromise("OCMD.getOCGs",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCMD.prototype.getVisibilityExpression=function(){apiFunctionCheck("OCMD.getVisibilityExpression");return PDFNet.sendWithPromise("OCMD.getVisibilityExpression",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
|
|
299
|
+
id)})};PDFNet.OCMD.prototype.isValid=function(){apiFunctionCheck("OCMD.isValid");return PDFNet.sendWithPromise("OCMD.isValid",{ocmd:this.id})};PDFNet.OCMD.prototype.isCurrentlyVisible=function(ctx){apiFunctionCheck("OCMD.isCurrentlyVisible",arguments.length,1,"(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("OCMD.isCurrentlyVisible",{ocmd:this.id,ctx:ctx.id})};PDFNet.OCMD.prototype.getVisibilityPolicy=function(){apiFunctionCheck("OCMD.getVisibilityPolicy");
|
|
300
|
+
return PDFNet.sendWithPromise("OCMD.getVisibilityPolicy",{ocmd:this.id})};PDFNet.OCMD.prototype.setVisibilityPolicy=function(vis_policy){apiFunctionCheck("OCMD.setVisibilityPolicy",arguments.length,1,"(number)",[[vis_policy,"number"]]);return PDFNet.sendWithPromise("OCMD.setVisibilityPolicy",{ocmd:this.id,vis_policy:vis_policy})};PDFNet.PDFACompliance.createFromFileWithOptions=function(convert,file_path,in_options){"undefined"===typeof in_options&&(in_options=null);apiFunctionCheck("PDFACompliance.createFromFileWithOptions",
|
|
301
|
+
arguments.length,2,"(boolean, string, PDFNet.OptionBase)",[[convert,"boolean"],[file_path,"string"],[in_options,"OptionBase"]],{checkThisYield:!1},[[in_options,2]]);in_options=in_options?in_options.getJsonString():"{}";return PDFNet.sendWithPromise("pdfaComplianceCreateFromFileWithOptions",{convert:convert,file_path:file_path,in_options:in_options}).then(function(id){return createDestroyableObj(PDFNet.PDFACompliance,id)})};PDFNet.PDFACompliance.createFromBufferWithOptions=function(convert,buf,in_options){"undefined"===
|
|
302
|
+
typeof in_options&&(in_options=null);apiFunctionCheck("PDFACompliance.createFromBufferWithOptions",arguments.length,2,"(boolean, ArrayBuffer|TypedArray, PDFNet.OptionBase)",[[convert,"boolean"],[buf,"ArrayBuffer"],[in_options,"OptionBase"]],{checkThisYield:!1},[[in_options,2]]);var bufArrayBuffer=getArrayBuffer(buf,!1);in_options=in_options?in_options.getJsonString():"{}";return PDFNet.sendWithPromise("pdfaComplianceCreateFromBufferWithOptions",{convert:convert,buf:bufArrayBuffer,in_options:in_options}).then(function(id){return createDestroyableObj(PDFNet.PDFACompliance,
|
|
303
|
+
id)})};PDFNet.PDFACompliance.prototype.getErrorCount=function(){apiFunctionCheck("PDFACompliance.getErrorCount");return PDFNet.sendWithPromise("PDFACompliance.getErrorCount",{pdfac:this.id})};PDFNet.PDFACompliance.prototype.getError=function(idx){apiFunctionCheck("PDFACompliance.getError",arguments.length,1,"(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("PDFACompliance.getError",{pdfac:this.id,idx:idx})};PDFNet.PDFACompliance.prototype.getRefObjCount=function(id){apiFunctionCheck("PDFACompliance.getRefObjCount",
|
|
304
|
+
arguments.length,1,"(number)",[[id,"number"]]);return PDFNet.sendWithPromise("PDFACompliance.getRefObjCount",{pdfac:this.id,id:id})};PDFNet.PDFACompliance.prototype.getRefObj=function(id,err_idx){apiFunctionCheck("PDFACompliance.getRefObj",arguments.length,2,"(number, number)",[[id,"number"],[err_idx,"number"]]);return PDFNet.sendWithPromise("PDFACompliance.getRefObj",{pdfac:this.id,id:id,err_idx:err_idx})};PDFNet.PDFACompliance.getPDFAErrorMessage=function(id){apiFunctionCheck("PDFACompliance.getPDFAErrorMessage",
|
|
305
|
+
arguments.length,1,"(number)",[[id,"number"]]);return PDFNet.sendWithPromise("pdfaComplianceGetPDFAErrorMessage",{id:id})};PDFNet.PDFACompliance.getDeclaredConformance=function(doc){apiFunctionCheck("PDFACompliance.getDeclaredConformance",arguments.length,1,"(PDFNet.PDFDoc)",[[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("pdfaComplianceGetDeclaredConformance",{doc:doc.id})};PDFNet.PDFACompliance.prototype.saveAsFromBuffer=function(linearized){"undefined"===typeof linearized&&(linearized=!1);apiFunctionCheck("PDFACompliance.saveAsFromBuffer",
|
|
306
|
+
arguments.length,0,"(boolean)",[[linearized,"boolean"]]);return PDFNet.sendWithPromise("PDFACompliance.saveAsFromBuffer",{pdfac:this.id,linearized:linearized}).then(function(id){return new Uint8Array(id)})};PDFNet.AttrObj.create=function(dict){"undefined"===typeof dict&&(dict=new PDFNet.Obj("0"));apiFunctionCheck("AttrObj.create",arguments.length,0,"(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("attrObjCreate",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.AttrObj,
|
|
307
|
+
id)})};PDFNet.AttrObj.prototype.copy=function(){apiFunctionCheck("AttrObj.copy");return PDFNet.sendWithPromise("AttrObj.copy",{a:this.id}).then(function(id){return createPDFNetObj(PDFNet.AttrObj,id)})};PDFNet.AttrObj.prototype.getOwner=function(){apiFunctionCheck("AttrObj.getOwner");return PDFNet.sendWithPromise("AttrObj.getOwner",{obj:this.id})};PDFNet.AttrObj.prototype.getSDFObj=function(){apiFunctionCheck("AttrObj.getSDFObj");return PDFNet.sendWithPromise("AttrObj.getSDFObj",{obj:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
|
|
308
|
+
id)})};PDFNet.ClassMap.create=function(dict){"undefined"===typeof dict&&(dict=new PDFNet.Obj("0"));apiFunctionCheck("ClassMap.create",arguments.length,0,"(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("classMapCreate",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.ClassMap,id)})};PDFNet.ClassMap.prototype.copy=function(){apiFunctionCheck("ClassMap.copy");return PDFNet.sendWithPromise("ClassMap.copy",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.ClassMap,
|
|
309
|
+
id)})};PDFNet.ClassMap.prototype.isValid=function(){apiFunctionCheck("ClassMap.isValid");return PDFNet.sendWithPromise("ClassMap.isValid",{map:this.id})};PDFNet.ClassMap.prototype.getSDFObj=function(){apiFunctionCheck("ClassMap.getSDFObj");return PDFNet.sendWithPromise("ClassMap.getSDFObj",{map:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.copy=function(){apiFunctionCheck("ContentItem.copy",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
|
|
310
|
+
return PDFNet.sendWithPromise("ContentItem.copy",{c:this}).then(function(id){return new PDFNet.ContentItem(id)})};PDFNet.ContentItem.prototype.getType=function(){apiFunctionCheck("ContentItem.getType",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.getType",{item:this})};PDFNet.ContentItem.prototype.getParent=function(){apiFunctionCheck("ContentItem.getParent",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
|
|
311
|
+
var me=this;this.yieldFunction="ContentItem.getParent";return PDFNet.sendWithPromise("ContentItem.getParent",{item:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.SElement(id.result);copyFunc(id.item,me);return id.result})};PDFNet.ContentItem.prototype.getPage=function(){apiFunctionCheck("ContentItem.getPage",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="ContentItem.getPage";return PDFNet.sendWithPromise("ContentItem.getPage",
|
|
312
|
+
{item:this}).then(function(id){me.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.Page,id.result);copyFunc(id.item,me);return id.result})};PDFNet.ContentItem.prototype.getSDFObj=function(){apiFunctionCheck("ContentItem.getSDFObj",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.getSDFObj",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getMCID=function(){apiFunctionCheck("ContentItem.getMCID",
|
|
313
|
+
arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.getMCID",{item:this})};PDFNet.ContentItem.prototype.getContainingStm=function(){apiFunctionCheck("ContentItem.getContainingStm",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.getContainingStm",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getStmOwner=
|
|
314
|
+
function(){apiFunctionCheck("ContentItem.getStmOwner",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.getStmOwner",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getRefObj=function(){apiFunctionCheck("ContentItem.getRefObj",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.getRefObj",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,
|
|
315
|
+
id)})};PDFNet.RoleMap.create=function(dict){apiFunctionCheck("RoleMap.create",arguments.length,1,"(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("roleMapCreate",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.RoleMap,id)})};PDFNet.RoleMap.prototype.copy=function(){apiFunctionCheck("RoleMap.copy");return PDFNet.sendWithPromise("RoleMap.copy",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.RoleMap,id)})};PDFNet.RoleMap.prototype.isValid=
|
|
316
|
+
function(){apiFunctionCheck("RoleMap.isValid");return PDFNet.sendWithPromise("RoleMap.isValid",{map:this.id})};PDFNet.RoleMap.prototype.getDirectMap=function(type){apiFunctionCheck("RoleMap.getDirectMap",arguments.length,1,"(string)",[[type,"string"]]);return PDFNet.sendWithPromise("RoleMap.getDirectMap",{map:this.id,type:type})};PDFNet.RoleMap.prototype.getSDFObj=function(){apiFunctionCheck("RoleMap.getSDFObj");return PDFNet.sendWithPromise("RoleMap.getSDFObj",{map:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
|
|
317
|
+
id)})};PDFNet.SElement.create=function(dict){"undefined"===typeof dict&&(dict=new PDFNet.Obj("0"));apiFunctionCheck("SElement.create",arguments.length,0,"(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("sElementCreate",{dict:dict.id}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.createFromPDFDoc=function(doc,struct_type){apiFunctionCheck("SElement.createFromPDFDoc",arguments.length,2,"(PDFNet.PDFDoc, string)",[[doc,"PDFDoc"],[struct_type,"string"]]);
|
|
318
|
+
return PDFNet.sendWithPromise("sElementCreateFromPDFDoc",{doc:doc.id,struct_type:struct_type}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.prototype.insert=function(kid,insert_before){apiFunctionCheck("SElement.insert",arguments.length,2,"(PDFNet.SElement, number)",[[kid,"Structure",PDFNet.SElement,"SElement"],[insert_before,"number"]],{checkThisYield:!0,functionName:this.yieldFunction},[[kid,0]]);var me=this;this.yieldFunction="SElement.insert";kid.yieldFunction="SElement.insert";
|
|
319
|
+
return PDFNet.sendWithPromise("SElement.insert",{e:this,kid:kid,insert_before:insert_before}).then(function(id){me.yieldFunction=void 0;kid.yieldFunction=void 0;copyFunc(id.e,me);copyFunc(id.kid,kid)})};PDFNet.SElement.prototype.createContentItem=function(doc,page,insert_before){"undefined"===typeof insert_before&&(insert_before=-1);apiFunctionCheck("SElement.createContentItem",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Page, number)",[[doc,"PDFDoc"],[page,"Object",PDFNet.Page,"Page"],[insert_before,
|
|
320
|
+
"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="SElement.createContentItem";return PDFNet.sendWithPromise("SElement.createContentItem",{e:this,doc:doc.id,page:page.id,insert_before:insert_before}).then(function(id){me.yieldFunction=void 0;copyFunc(id.e,me);return id.result})};PDFNet.SElement.prototype.isValid=function(){apiFunctionCheck("SElement.isValid",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.isValid",
|
|
321
|
+
{e:this})};PDFNet.SElement.prototype.getType=function(){apiFunctionCheck("SElement.getType",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getType",{e:this})};PDFNet.SElement.prototype.getNumKids=function(){apiFunctionCheck("SElement.getNumKids",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getNumKids",{e:this})};PDFNet.SElement.prototype.isContentItem=
|
|
322
|
+
function(index){apiFunctionCheck("SElement.isContentItem",arguments.length,1,"(number)",[[index,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.isContentItem",{e:this,index:index})};PDFNet.SElement.prototype.getAsContentItem=function(index){apiFunctionCheck("SElement.getAsContentItem",arguments.length,1,"(number)",[[index,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getAsContentItem",
|
|
323
|
+
{e:this,index:index}).then(function(id){return new PDFNet.ContentItem(id)})};PDFNet.SElement.prototype.getAsStructElem=function(index){apiFunctionCheck("SElement.getAsStructElem",arguments.length,1,"(number)",[[index,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getAsStructElem",{e:this,index:index}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.prototype.getParent=function(){apiFunctionCheck("SElement.getParent",arguments.length,
|
|
324
|
+
0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getParent",{e:this}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.prototype.getStructTreeRoot=function(){apiFunctionCheck("SElement.getStructTreeRoot",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getStructTreeRoot",{e:this}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.SElement.prototype.hasTitle=
|
|
325
|
+
function(){apiFunctionCheck("SElement.hasTitle",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.hasTitle",{e:this})};PDFNet.SElement.prototype.getTitle=function(){apiFunctionCheck("SElement.getTitle",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getTitle",{e:this})};PDFNet.SElement.prototype.getID=function(){apiFunctionCheck("SElement.getID",arguments.length,
|
|
326
|
+
0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getID",{e:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SElement.prototype.hasActualText=function(){apiFunctionCheck("SElement.hasActualText",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.hasActualText",{e:this})};PDFNet.SElement.prototype.getActualText=function(){apiFunctionCheck("SElement.getActualText",
|
|
327
|
+
arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getActualText",{e:this})};PDFNet.SElement.prototype.hasAlt=function(){apiFunctionCheck("SElement.hasAlt",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.hasAlt",{e:this})};PDFNet.SElement.prototype.getAlt=function(){apiFunctionCheck("SElement.getAlt",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
|
|
328
|
+
return PDFNet.sendWithPromise("SElement.getAlt",{e:this})};PDFNet.SElement.prototype.getSDFObj=function(){apiFunctionCheck("SElement.getSDFObj",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getSDFObj",{e:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.STree.create=function(struct_dict){apiFunctionCheck("STree.create",arguments.length,1,"(PDFNet.Obj)",[[struct_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("sTreeCreate",
|
|
329
|
+
{struct_dict:struct_dict.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.STree.createFromPDFDoc=function(doc){apiFunctionCheck("STree.createFromPDFDoc",arguments.length,1,"(PDFNet.PDFDoc)",[[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("sTreeCreateFromPDFDoc",{doc:doc.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.STree.prototype.insert=function(kid,insert_before){apiFunctionCheck("STree.insert",arguments.length,2,"(PDFNet.SElement, number)",[[kid,
|
|
330
|
+
"Structure",PDFNet.SElement,"SElement"],[insert_before,"number"]],{checkThisYield:!1},[[kid,0]]);kid.yieldFunction="STree.insert";return PDFNet.sendWithPromise("STree.insert",{tree:this.id,kid:kid,insert_before:insert_before}).then(function(id){kid.yieldFunction=void 0;copyFunc(id,kid)})};PDFNet.STree.prototype.copy=function(){apiFunctionCheck("STree.copy");return PDFNet.sendWithPromise("STree.copy",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.STree.prototype.isValid=
|
|
331
|
+
function(){apiFunctionCheck("STree.isValid");return PDFNet.sendWithPromise("STree.isValid",{tree:this.id})};PDFNet.STree.prototype.getNumKids=function(){apiFunctionCheck("STree.getNumKids");return PDFNet.sendWithPromise("STree.getNumKids",{tree:this.id})};PDFNet.STree.prototype.getKid=function(index){apiFunctionCheck("STree.getKid",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("STree.getKid",{tree:this.id,index:index}).then(function(id){return new PDFNet.SElement(id)})};
|
|
332
|
+
PDFNet.STree.prototype.getRoleMap=function(){apiFunctionCheck("STree.getRoleMap");return PDFNet.sendWithPromise("STree.getRoleMap",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.RoleMap,id)})};PDFNet.STree.prototype.getClassMap=function(){apiFunctionCheck("STree.getClassMap");return PDFNet.sendWithPromise("STree.getClassMap",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.ClassMap,id)})};PDFNet.STree.prototype.getSDFObj=function(){apiFunctionCheck("STree.getSDFObj");
|
|
333
|
+
return PDFNet.sendWithPromise("STree.getSDFObj",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Action.createGoto=function(dest){apiFunctionCheck("Action.createGoto",arguments.length,1,"(PDFNet.Destination)",[[dest,"Object",PDFNet.Destination,"Destination"]]);return PDFNet.sendWithPromise("actionCreateGoto",{dest:dest.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createGotoWithKey=function(key,dest){apiFunctionCheck("Action.createGotoWithKey",
|
|
334
|
+
arguments.length,2,"(string, PDFNet.Destination)",[[key,"string"],[dest,"Object",PDFNet.Destination,"Destination"]]);return PDFNet.sendWithPromise("actionCreateGotoWithKey",{key:key,dest:dest.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createGotoRemote=function(file,page_num){apiFunctionCheck("Action.createGotoRemote",arguments.length,2,"(PDFNet.FileSpec, number)",[[file,"Object",PDFNet.FileSpec,"FileSpec"],[page_num,"number"]]);return PDFNet.sendWithPromise("actionCreateGotoRemote",
|
|
335
|
+
{file:file.id,page_num:page_num}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createGotoRemoteSetNewWindow=function(file,page_num,new_window){apiFunctionCheck("Action.createGotoRemoteSetNewWindow",arguments.length,3,"(PDFNet.FileSpec, number, boolean)",[[file,"Object",PDFNet.FileSpec,"FileSpec"],[page_num,"number"],[new_window,"boolean"]]);return PDFNet.sendWithPromise("actionCreateGotoRemoteSetNewWindow",{file:file.id,page_num:page_num,new_window:new_window}).then(function(id){return createPDFNetObj(PDFNet.Action,
|
|
336
|
+
id)})};PDFNet.Action.createURI=function(sdfdoc,uri){apiFunctionCheck("Action.createURI",arguments.length,2,"(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[uri,"string"]]);return PDFNet.sendWithPromise("actionCreateURI",{sdfdoc:sdfdoc.id,uri:uri}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createURIWithUString=function(sdfdoc,uri){apiFunctionCheck("Action.createURIWithUString",arguments.length,2,"(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[uri,"string"]]);return PDFNet.sendWithPromise("actionCreateURIWithUString",
|
|
337
|
+
{sdfdoc:sdfdoc.id,uri:uri}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createSubmitForm=function(url){apiFunctionCheck("Action.createSubmitForm",arguments.length,1,"(PDFNet.FileSpec)",[[url,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("actionCreateSubmitForm",{url:url.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createLaunch=function(sdfdoc,path){apiFunctionCheck("Action.createLaunch",arguments.length,2,"(PDFNet.SDFDoc, string)",
|
|
338
|
+
[[sdfdoc,"SDFDoc"],[path,"string"]]);return PDFNet.sendWithPromise("actionCreateLaunch",{sdfdoc:sdfdoc.id,path:path}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createHideField=function(sdfdoc,field_names_list){apiFunctionCheck("Action.createHideField",arguments.length,2,"(PDFNet.SDFDoc, Array<string>)",[[sdfdoc,"SDFDoc"],[field_names_list,"Array"]]);return PDFNet.sendWithPromise("actionCreateHideField",{sdfdoc:sdfdoc.id,field_names_list:field_names_list}).then(function(id){return createPDFNetObj(PDFNet.Action,
|
|
339
|
+
id)})};PDFNet.Action.createImportData=function(sdfdoc,path){apiFunctionCheck("Action.createImportData",arguments.length,2,"(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[path,"string"]]);return PDFNet.sendWithPromise("actionCreateImportData",{sdfdoc:sdfdoc.id,path:path}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createResetForm=function(sdfdoc){apiFunctionCheck("Action.createResetForm",arguments.length,1,"(PDFNet.SDFDoc)",[[sdfdoc,"SDFDoc"]]);return PDFNet.sendWithPromise("actionCreateResetForm",
|
|
340
|
+
{sdfdoc:sdfdoc.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createJavaScript=function(sdfdoc,script){apiFunctionCheck("Action.createJavaScript",arguments.length,2,"(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[script,"string"]]);return PDFNet.sendWithPromise("actionCreateJavaScript",{sdfdoc:sdfdoc.id,script:script}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.create=function(in_obj){"undefined"===typeof in_obj&&(in_obj=new PDFNet.Obj("0"));
|
|
341
|
+
apiFunctionCheck("Action.create",arguments.length,0,"(PDFNet.Obj)",[[in_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("actionCreate",{in_obj:in_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.prototype.copy=function(){apiFunctionCheck("Action.copy");return PDFNet.sendWithPromise("Action.copy",{in_action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.prototype.compare=function(in_action){apiFunctionCheck("Action.compare",
|
|
342
|
+
arguments.length,1,"(PDFNet.Action)",[[in_action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("Action.compare",{action:this.id,in_action:in_action.id})};PDFNet.Action.prototype.isValid=function(){apiFunctionCheck("Action.isValid");return PDFNet.sendWithPromise("Action.isValid",{action:this.id})};PDFNet.Action.prototype.getXFDF=function(){apiFunctionCheck("Action.getXFDF");return PDFNet.sendWithPromise("Action.getXFDF",{action:this.id})};PDFNet.Action.prototype.getType=function(){apiFunctionCheck("Action.getType");
|
|
343
|
+
return PDFNet.sendWithPromise("Action.getType",{action:this.id})};PDFNet.Action.prototype.getDest=function(){apiFunctionCheck("Action.getDest");return PDFNet.sendWithPromise("Action.getDest",{action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Action.prototype.getNext=function(){apiFunctionCheck("Action.getNext");return PDFNet.sendWithPromise("Action.getNext",{action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Action.prototype.getSDFObj=
|
|
344
|
+
function(){apiFunctionCheck("Action.getSDFObj");return PDFNet.sendWithPromise("Action.getSDFObj",{action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Action.prototype.getFormActionFlag=function(flag){apiFunctionCheck("Action.getFormActionFlag",arguments.length,1,"(number)",[[flag,"number"]]);return PDFNet.sendWithPromise("Action.getFormActionFlag",{action:this.id,flag:flag})};PDFNet.Action.prototype.setFormActionFlag=function(flag,value){apiFunctionCheck("Action.setFormActionFlag",
|
|
345
|
+
arguments.length,2,"(number, boolean)",[[flag,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("Action.setFormActionFlag",{action:this.id,flag:flag,value:value})};PDFNet.Action.prototype.needsWriteLock=function(){apiFunctionCheck("Action.needsWriteLock");return PDFNet.sendWithPromise("Action.needsWriteLock",{action:this.id})};PDFNet.Action.prototype.execute=function(){apiFunctionCheck("Action.execute");return PDFNet.sendWithPromise("Action.execute",{action:this.id})};PDFNet.Action.prototype.executeKeyStrokeAction=
|
|
346
|
+
function(data){apiFunctionCheck("Action.executeKeyStrokeAction",arguments.length,1,"(PDFNet.KeyStrokeEventData)",[[data,"Object",PDFNet.KeyStrokeEventData,"KeyStrokeEventData"]]);return PDFNet.sendWithPromise("Action.executeKeyStrokeAction",{action:this.id,data:data.id}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeActionResult,id)})};PDFNet.KeyStrokeActionResult.prototype.isValid=function(){apiFunctionCheck("KeyStrokeActionResult.isValid");return PDFNet.sendWithPromise("KeyStrokeActionResult.isValid",
|
|
347
|
+
{action_ret:this.id})};PDFNet.KeyStrokeActionResult.prototype.getText=function(){apiFunctionCheck("KeyStrokeActionResult.getText");return PDFNet.sendWithPromise("KeyStrokeActionResult.getText",{action_ret:this.id})};PDFNet.KeyStrokeActionResult.prototype.copy=function(){apiFunctionCheck("KeyStrokeActionResult.copy");return PDFNet.sendWithPromise("KeyStrokeActionResult.copy",{action_ret:this.id}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeActionResult,id)})};PDFNet.KeyStrokeEventData.create=
|
|
348
|
+
function(field_name,current,change,selection_start,selection_end){apiFunctionCheck("KeyStrokeEventData.create",arguments.length,5,"(string, string, string, number, number)",[[field_name,"string"],[current,"string"],[change,"string"],[selection_start,"number"],[selection_end,"number"]]);return PDFNet.sendWithPromise("keyStrokeEventDataCreate",{field_name:field_name,current:current,change:change,selection_start:selection_start,selection_end:selection_end}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeEventData,
|
|
349
|
+
id)})};PDFNet.KeyStrokeEventData.prototype.copy=function(){apiFunctionCheck("KeyStrokeEventData.copy");return PDFNet.sendWithPromise("KeyStrokeEventData.copy",{data:this.id}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeEventData,id)})};PDFNet.Page.create=function(page_dict){"undefined"===typeof page_dict&&(page_dict=new PDFNet.Obj("0"));apiFunctionCheck("Page.create",arguments.length,0,"(PDFNet.Obj)",[[page_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pageCreate",
|
|
350
|
+
{page_dict:page_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Page.prototype.copy=function(){apiFunctionCheck("Page.copy");return PDFNet.sendWithPromise("Page.copy",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Page.prototype.isValid=function(){apiFunctionCheck("Page.isValid");return PDFNet.sendWithPromise("Page.isValid",{page:this.id})};PDFNet.Page.prototype.getIndex=function(){apiFunctionCheck("Page.getIndex");return PDFNet.sendWithPromise("Page.getIndex",
|
|
351
|
+
{page:this.id})};PDFNet.Page.prototype.getTriggerAction=function(trigger){apiFunctionCheck("Page.getTriggerAction",arguments.length,1,"(number)",[[trigger,"number"]]);return PDFNet.sendWithPromise("Page.getTriggerAction",{page:this.id,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getBox=function(type){apiFunctionCheck("Page.getBox",arguments.length,1,"(number)",[[type,"number"]]);return PDFNet.sendWithPromise("Page.getBox",{page:this.id,type:type}).then(function(id){return new PDFNet.Rect(id)})};
|
|
352
|
+
PDFNet.Page.prototype.setBox=function(type,box){apiFunctionCheck("Page.setBox",arguments.length,2,"(number, PDFNet.Rect)",[[type,"number"],[box,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[box,1]]);return PDFNet.sendWithPromise("Page.setBox",{page:this.id,type:type,box:box})};PDFNet.Page.prototype.getCropBox=function(){apiFunctionCheck("Page.getCropBox");return PDFNet.sendWithPromise("Page.getCropBox",{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.setCropBox=
|
|
353
|
+
function(box){apiFunctionCheck("Page.setCropBox",arguments.length,1,"(PDFNet.Rect)",[[box,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[box,0]]);return PDFNet.sendWithPromise("Page.setCropBox",{page:this.id,box:box})};PDFNet.Page.prototype.getMediaBox=function(){apiFunctionCheck("Page.getMediaBox");return PDFNet.sendWithPromise("Page.getMediaBox",{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.setMediaBox=function(box){apiFunctionCheck("Page.setMediaBox",
|
|
354
|
+
arguments.length,1,"(PDFNet.Rect)",[[box,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[box,0]]);return PDFNet.sendWithPromise("Page.setMediaBox",{page:this.id,box:box})};PDFNet.Page.prototype.getVisibleContentBox=function(){apiFunctionCheck("Page.getVisibleContentBox");return PDFNet.sendWithPromise("Page.getVisibleContentBox",{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.getRotation=function(){apiFunctionCheck("Page.getRotation");return PDFNet.sendWithPromise("Page.getRotation",
|
|
355
|
+
{page:this.id})};PDFNet.Page.prototype.setRotation=function(angle){apiFunctionCheck("Page.setRotation",arguments.length,1,"(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("Page.setRotation",{page:this.id,angle:angle})};PDFNet.Page.addRotations=function(r0,r1){apiFunctionCheck("Page.addRotations",arguments.length,2,"(number, number)",[[r0,"number"],[r1,"number"]]);return PDFNet.sendWithPromise("pageAddRotations",{r0:r0,r1:r1})};PDFNet.Page.subtractRotations=function(r0,r1){apiFunctionCheck("Page.subtractRotations",
|
|
356
|
+
arguments.length,2,"(number, number)",[[r0,"number"],[r1,"number"]]);return PDFNet.sendWithPromise("pageSubtractRotations",{r0:r0,r1:r1})};PDFNet.Page.rotationToDegree=function(r){apiFunctionCheck("Page.rotationToDegree",arguments.length,1,"(number)",[[r,"number"]]);return PDFNet.sendWithPromise("pageRotationToDegree",{r:r})};PDFNet.Page.degreeToRotation=function(r){apiFunctionCheck("Page.degreeToRotation",arguments.length,1,"(number)",[[r,"number"]]);return PDFNet.sendWithPromise("pageDegreeToRotation",
|
|
357
|
+
{r:r})};PDFNet.Page.prototype.getPageWidth=function(box_type){"undefined"===typeof box_type&&(box_type=PDFNet.Page.Box.e_crop);apiFunctionCheck("Page.getPageWidth",arguments.length,0,"(number)",[[box_type,"number"]]);return PDFNet.sendWithPromise("Page.getPageWidth",{page:this.id,box_type:box_type})};PDFNet.Page.prototype.getPageHeight=function(box_type){"undefined"===typeof box_type&&(box_type=PDFNet.Page.Box.e_crop);apiFunctionCheck("Page.getPageHeight",arguments.length,0,"(number)",[[box_type,
|
|
358
|
+
"number"]]);return PDFNet.sendWithPromise("Page.getPageHeight",{page:this.id,box_type:box_type})};PDFNet.Page.prototype.getDefaultMatrix=function(flip_y,box_type,angle){"undefined"===typeof flip_y&&(flip_y=!1);"undefined"===typeof box_type&&(box_type=PDFNet.Page.Box.e_crop);"undefined"===typeof angle&&(angle=PDFNet.Page.Rotate.e_0);apiFunctionCheck("Page.getDefaultMatrix",arguments.length,0,"(boolean, number, number)",[[flip_y,"boolean"],[box_type,"number"],[angle,"number"]]);return PDFNet.sendWithPromise("Page.getDefaultMatrix",
|
|
359
|
+
{page:this.id,flip_y:flip_y,box_type:box_type,angle:angle}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Page.prototype.getAnnots=function(){apiFunctionCheck("Page.getAnnots");return PDFNet.sendWithPromise("Page.getAnnots",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getNumAnnots=function(){apiFunctionCheck("Page.getNumAnnots");return PDFNet.sendWithPromise("Page.getNumAnnots",{page:this.id})};PDFNet.Page.prototype.getAnnot=function(index){apiFunctionCheck("Page.getAnnot",
|
|
360
|
+
arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("Page.getAnnot",{page:this.id,index:index}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.Page.prototype.annotInsert=function(pos,annot){apiFunctionCheck("Page.annotInsert",arguments.length,2,"(number, PDFNet.Annot)",[[pos,"number"],[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotInsert",{page:this.id,pos:pos,annot:annot.id})};PDFNet.Page.prototype.annotInsertWithTagging=
|
|
361
|
+
function(pos,annot,tag_parent,options){"undefined"===typeof options&&(options=null);apiFunctionCheck("Page.annotInsertWithTagging",arguments.length,3,"(number, PDFNet.Annot, PDFNet.Obj, PDFNet.OptionBase)",[[pos,"number"],[annot,"Object",PDFNet.Annot,"Annot"],[tag_parent,"Object",PDFNet.Obj,"Obj"],[options,"OptionBase"]],{checkThisYield:!1},[[options,3]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("Page.annotInsertWithTagging",{page:this.id,pos:pos,annot:annot.id,tag_parent:tag_parent.id,
|
|
362
|
+
options:options})};PDFNet.Page.prototype.annotPushBack=function(annot){apiFunctionCheck("Page.annotPushBack",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotPushBack",{page:this.id,annot:annot.id})};PDFNet.Page.prototype.annotPushFront=function(annot){apiFunctionCheck("Page.annotPushFront",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotPushFront",{page:this.id,
|
|
363
|
+
annot:annot.id})};PDFNet.Page.prototype.annotRemove=function(annot){apiFunctionCheck("Page.annotRemove",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotRemove",{page:this.id,annot:annot.id})};PDFNet.Page.prototype.annotRemoveByIndex=function(index){apiFunctionCheck("Page.annotRemoveByIndex",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("Page.annotRemoveByIndex",{page:this.id,index:index})};PDFNet.Page.prototype.scale=
|
|
364
|
+
function(scale){apiFunctionCheck("Page.scale",arguments.length,1,"(number)",[[scale,"number"]]);return PDFNet.sendWithPromise("Page.scale",{page:this.id,scale:scale})};PDFNet.Page.prototype.flattenField=function(field_to_flatten){apiFunctionCheck("Page.flattenField",arguments.length,1,"(PDFNet.Field)",[[field_to_flatten,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[field_to_flatten,0]]);field_to_flatten.yieldFunction="Page.flattenField";return PDFNet.sendWithPromise("Page.flattenField",
|
|
365
|
+
{page:this.id,field_to_flatten:field_to_flatten}).then(function(id){field_to_flatten.yieldFunction=void 0;copyFunc(id,field_to_flatten)})};PDFNet.Page.prototype.hasTransition=function(){apiFunctionCheck("Page.hasTransition");return PDFNet.sendWithPromise("Page.hasTransition",{page:this.id})};PDFNet.Page.prototype.getUserUnitSize=function(){apiFunctionCheck("Page.getUserUnitSize");return PDFNet.sendWithPromise("Page.getUserUnitSize",{page:this.id})};PDFNet.Page.prototype.setUserUnitSize=function(unit_size){apiFunctionCheck("Page.setUserUnitSize",
|
|
366
|
+
arguments.length,1,"(number)",[[unit_size,"number"]]);return PDFNet.sendWithPromise("Page.setUserUnitSize",{page:this.id,unit_size:unit_size})};PDFNet.Page.prototype.getResourceDict=function(){apiFunctionCheck("Page.getResourceDict");return PDFNet.sendWithPromise("Page.getResourceDict",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getContents=function(){apiFunctionCheck("Page.getContents");return PDFNet.sendWithPromise("Page.getContents",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
|
|
367
|
+
id)})};PDFNet.Page.prototype.getThumb=function(){apiFunctionCheck("Page.getThumb");return PDFNet.sendWithPromise("Page.getThumb",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getSDFObj=function(){apiFunctionCheck("Page.getSDFObj");return PDFNet.sendWithPromise("Page.getSDFObj",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.findInheritedAttribute=function(attrib){apiFunctionCheck("Page.findInheritedAttribute",
|
|
368
|
+
arguments.length,1,"(string)",[[attrib,"string"]]);return PDFNet.sendWithPromise("Page.findInheritedAttribute",{page:this.id,attrib:attrib}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.create=function(doc,type,pos){apiFunctionCheck("Annot.create",arguments.length,3,"(PDFNet.SDFDoc, number, PDFNet.Rect)",[[doc,"SDFDoc"],[type,"number"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,2]]);return PDFNet.sendWithPromise("annotCreate",{doc:doc.id,type:type,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Annot,
|
|
369
|
+
id)})};PDFNet.Annot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("Annot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("annotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.Annot.prototype.copy=function(){apiFunctionCheck("Annot.copy");return PDFNet.sendWithPromise("Annot.copy",{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,
|
|
370
|
+
id)})};PDFNet.Annot.prototype.compare=function(d){apiFunctionCheck("Annot.compare",arguments.length,1,"(PDFNet.Annot)",[[d,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Annot.compare",{annot:this.id,d:d.id})};PDFNet.Annot.prototype.isValid=function(){apiFunctionCheck("Annot.isValid");return PDFNet.sendWithPromise("Annot.isValid",{annot:this.id})};PDFNet.Annot.prototype.getSDFObj=function(){apiFunctionCheck("Annot.getSDFObj");return PDFNet.sendWithPromise("Annot.getSDFObj",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
|
|
371
|
+
id)})};PDFNet.Annot.prototype.getType=function(){apiFunctionCheck("Annot.getType");return PDFNet.sendWithPromise("Annot.getType",{annot:this.id})};PDFNet.Annot.prototype.isMarkup=function(){apiFunctionCheck("Annot.isMarkup");return PDFNet.sendWithPromise("Annot.isMarkup",{annot:this.id})};PDFNet.Annot.prototype.getRect=function(){apiFunctionCheck("Annot.getRect");return PDFNet.sendWithPromise("Annot.getRect",{annot:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Annot.prototype.getVisibleContentBox=
|
|
372
|
+
function(){apiFunctionCheck("Annot.getVisibleContentBox");return PDFNet.sendWithPromise("Annot.getVisibleContentBox",{annot:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Annot.prototype.setRect=function(pos){apiFunctionCheck("Annot.setRect",arguments.length,1,"(PDFNet.Rect)",[[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,0]]);return PDFNet.sendWithPromise("Annot.setRect",{annot:this.id,pos:pos})};PDFNet.Annot.prototype.resize=function(newrect){apiFunctionCheck("Annot.resize",
|
|
373
|
+
arguments.length,1,"(PDFNet.Rect)",[[newrect,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[newrect,0]]);return PDFNet.sendWithPromise("Annot.resize",{annot:this.id,newrect:newrect})};PDFNet.Annot.prototype.setContents=function(contents){apiFunctionCheck("Annot.setContents",arguments.length,1,"(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("Annot.setContents",{annot:this.id,contents:contents})};PDFNet.Annot.prototype.getContents=function(){apiFunctionCheck("Annot.getContents");
|
|
374
|
+
return PDFNet.sendWithPromise("Annot.getContents",{annot:this.id})};PDFNet.Annot.prototype.getTriggerAction=function(trigger){apiFunctionCheck("Annot.getTriggerAction",arguments.length,1,"(number)",[[trigger,"number"]]);return PDFNet.sendWithPromise("Annot.getTriggerAction",{annot:this.id,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.getCustomData=function(key){apiFunctionCheck("Annot.getCustomData",arguments.length,1,"(string)",[[key,"string"]]);
|
|
375
|
+
return PDFNet.sendWithPromise("Annot.getCustomData",{annot:this.id,key:key})};PDFNet.Annot.prototype.setCustomData=function(key,value){apiFunctionCheck("Annot.setCustomData",arguments.length,2,"(string, string)",[[key,"string"],[value,"string"]]);return PDFNet.sendWithPromise("Annot.setCustomData",{annot:this.id,key:key,value:value})};PDFNet.Annot.prototype.deleteCustomData=function(key){apiFunctionCheck("Annot.deleteCustomData",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Annot.deleteCustomData",
|
|
376
|
+
{annot:this.id,key:key})};PDFNet.Annot.prototype.getPage=function(){apiFunctionCheck("Annot.getPage");return PDFNet.sendWithPromise("Annot.getPage",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Annot.prototype.setPage=function(page){apiFunctionCheck("Annot.setPage",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Annot.setPage",{annot:this.id,page:page.id})};PDFNet.Annot.prototype.getUniqueID=function(){apiFunctionCheck("Annot.getUniqueID");
|
|
377
|
+
return PDFNet.sendWithPromise("Annot.getUniqueID",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.setUniqueID=function(id){apiFunctionCheck("Annot.setUniqueID",arguments.length,1,"(ArrayBuffer|TypedArray)",[[id,"ArrayBuffer"]]);var idArrayBuffer=getArrayBuffer(id,!1);return PDFNet.sendWithPromise("Annot.setUniqueID",{annot:this.id,id_buf:idArrayBuffer})};PDFNet.Annot.prototype.getDate=function(){apiFunctionCheck("Annot.getDate");return PDFNet.sendWithPromise("Annot.getDate",
|
|
378
|
+
{annot:this.id}).then(function(id){return new PDFNet.Date(id)})};PDFNet.Annot.prototype.setDate=function(date){apiFunctionCheck("Annot.setDate",arguments.length,1,"(PDFNet.Date)",[[date,"Structure",PDFNet.Date,"Date"]],{checkThisYield:!1},[[date,0]]);return PDFNet.sendWithPromise("Annot.setDate",{annot:this.id,date:date})};PDFNet.Annot.prototype.getFlag=function(flag){apiFunctionCheck("Annot.getFlag",arguments.length,1,"(number)",[[flag,"number"]]);return PDFNet.sendWithPromise("Annot.getFlag",{annot:this.id,
|
|
379
|
+
flag:flag})};PDFNet.Annot.prototype.setFlag=function(flag,value){apiFunctionCheck("Annot.setFlag",arguments.length,2,"(number, boolean)",[[flag,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("Annot.setFlag",{annot:this.id,flag:flag,value:value})};PDFNet.AnnotBorderStyle.create=function(s,b_width,b_hr,b_vr){"undefined"===typeof b_hr&&(b_hr=0);"undefined"===typeof b_vr&&(b_vr=0);apiFunctionCheck("AnnotBorderStyle.create",arguments.length,2,"(number, number, number, number)",[[s,"number"],
|
|
380
|
+
[b_width,"number"],[b_hr,"number"],[b_vr,"number"]]);return PDFNet.sendWithPromise("annotBorderStyleCreate",{s:s,b_width:b_width,b_hr:b_hr,b_vr:b_vr}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,id)})};PDFNet.AnnotBorderStyle.createWithDashPattern=function(s,b_width,b_hr,b_vr,b_dash){apiFunctionCheck("AnnotBorderStyle.createWithDashPattern",arguments.length,5,"(number, number, number, number, Array<number>)",[[s,"number"],[b_width,"number"],[b_hr,"number"],[b_vr,"number"],
|
|
381
|
+
[b_dash,"Array"]]);return PDFNet.sendWithPromise("annotBorderStyleCreateWithDashPattern",{s:s,b_width:b_width,b_hr:b_hr,b_vr:b_vr,b_dash_list:b_dash}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,id)})};PDFNet.AnnotBorderStyle.prototype.copy=function(){apiFunctionCheck("AnnotBorderStyle.copy");return PDFNet.sendWithPromise("AnnotBorderStyle.copy",{bs:this.id}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,id)})};PDFNet.AnnotBorderStyle.prototype.getStyle=
|
|
382
|
+
function(){apiFunctionCheck("AnnotBorderStyle.getStyle");return PDFNet.sendWithPromise("AnnotBorderStyle.getStyle",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setStyle=function(style){apiFunctionCheck("AnnotBorderStyle.setStyle",arguments.length,1,"(number)",[[style,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setStyle",{bs:this.id,style:style})};PDFNet.Annot.prototype.getAppearance=function(annot_state,app_state){"undefined"===typeof annot_state&&(annot_state=PDFNet.Annot.State.e_normal);
|
|
383
|
+
"undefined"===typeof app_state&&(app_state=null);apiFunctionCheck("Annot.getAppearance",arguments.length,0,"(number, string)",[[annot_state,"number"],[app_state,"const char* = 0"]]);return PDFNet.sendWithPromise("Annot.getAppearance",{annot:this.id,annot_state:annot_state,app_state:app_state}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.setAppearance=function(app_stream,annot_state,app_state){"undefined"===typeof annot_state&&(annot_state=PDFNet.Annot.State.e_normal);
|
|
384
|
+
"undefined"===typeof app_state&&(app_state=null);apiFunctionCheck("Annot.setAppearance",arguments.length,1,"(PDFNet.Obj, number, string)",[[app_stream,"Object",PDFNet.Obj,"Obj"],[annot_state,"number"],[app_state,"const char* = 0"]]);return PDFNet.sendWithPromise("Annot.setAppearance",{annot:this.id,app_stream:app_stream.id,annot_state:annot_state,app_state:app_state})};PDFNet.Annot.prototype.removeAppearance=function(annot_state,app_state){"undefined"===typeof annot_state&&(annot_state=PDFNet.Annot.State.e_normal);
|
|
385
|
+
"undefined"===typeof app_state&&(app_state=null);apiFunctionCheck("Annot.removeAppearance",arguments.length,0,"(number, string)",[[annot_state,"number"],[app_state,"const char* = 0"]]);return PDFNet.sendWithPromise("Annot.removeAppearance",{annot:this.id,annot_state:annot_state,app_state:app_state})};PDFNet.Annot.prototype.flatten=function(page){apiFunctionCheck("Annot.flatten",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Annot.flatten",{annot:this.id,
|
|
386
|
+
page:page.id})};PDFNet.Annot.prototype.getActiveAppearanceState=function(){apiFunctionCheck("Annot.getActiveAppearanceState");return PDFNet.sendWithPromise("Annot.getActiveAppearanceState",{annot:this.id})};PDFNet.Annot.prototype.setActiveAppearanceState=function(astate){apiFunctionCheck("Annot.setActiveAppearanceState",arguments.length,1,"(string)",[[astate,"string"]]);return PDFNet.sendWithPromise("Annot.setActiveAppearanceState",{annot:this.id,astate:astate})};PDFNet.Annot.prototype.getColor=function(){apiFunctionCheck("Annot.getColor");
|
|
387
|
+
return PDFNet.sendWithPromise("Annot.getColor",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Annot.prototype.getColorAsRGB=function(){apiFunctionCheck("Annot.getColorAsRGB");return PDFNet.sendWithPromise("Annot.getColorAsRGB",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Annot.prototype.getColorAsCMYK=function(){apiFunctionCheck("Annot.getColorAsCMYK");return PDFNet.sendWithPromise("Annot.getColorAsCMYK",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
|
|
388
|
+
id)})};PDFNet.Annot.prototype.getColorAsGray=function(){apiFunctionCheck("Annot.getColorAsGray");return PDFNet.sendWithPromise("Annot.getColorAsGray",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Annot.prototype.getColorCompNum=function(){apiFunctionCheck("Annot.getColorCompNum");return PDFNet.sendWithPromise("Annot.getColorCompNum",{annot:this.id})};PDFNet.Annot.prototype.setColorDefault=function(col){apiFunctionCheck("Annot.setColorDefault",arguments.length,
|
|
389
|
+
1,"(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("Annot.setColorDefault",{annot:this.id,col:col.id})};PDFNet.Annot.prototype.setColor=function(col,numcomp){"undefined"===typeof numcomp&&(numcomp=3);apiFunctionCheck("Annot.setColor",arguments.length,1,"(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("Annot.setColor",{annot:this.id,col:col.id,numcomp:numcomp})};PDFNet.Annot.prototype.getStructParent=
|
|
390
|
+
function(){apiFunctionCheck("Annot.getStructParent");return PDFNet.sendWithPromise("Annot.getStructParent",{annot:this.id})};PDFNet.Annot.prototype.setStructParent=function(parkeyval){apiFunctionCheck("Annot.setStructParent",arguments.length,1,"(number)",[[parkeyval,"number"]]);return PDFNet.sendWithPromise("Annot.setStructParent",{annot:this.id,parkeyval:parkeyval})};PDFNet.Annot.prototype.getOptionalContent=function(){apiFunctionCheck("Annot.getOptionalContent");return PDFNet.sendWithPromise("Annot.getOptionalContent",
|
|
391
|
+
{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.setOptionalContent=function(content){apiFunctionCheck("Annot.setOptionalContent",arguments.length,1,"(PDFNet.Obj)",[[content,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Annot.setOptionalContent",{annot:this.id,content:content.id})};PDFNet.Annot.prototype.refreshAppearance=function(){apiFunctionCheck("Annot.refreshAppearance");return PDFNet.sendWithPromise("Annot.refreshAppearance",{annot:this.id})};
|
|
392
|
+
PDFNet.Annot.prototype.refreshAppearanceRefreshOptions=function(options){"undefined"===typeof options&&(options=null);apiFunctionCheck("Annot.refreshAppearanceRefreshOptions",arguments.length,0,"(PDFNet.OptionBase)",[[options,"OptionBase"]],{checkThisYield:!1},[[options,0]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("Annot.refreshAppearanceRefreshOptions",{annot:this.id,options:options})};PDFNet.Annot.prototype.getRotation=function(){apiFunctionCheck("Annot.getRotation");
|
|
393
|
+
return PDFNet.sendWithPromise("Annot.getRotation",{annot:this.id})};PDFNet.Annot.prototype.setRotation=function(angle){apiFunctionCheck("Annot.setRotation",arguments.length,1,"(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("Annot.setRotation",{annot:this.id,angle:angle})};PDFNet.AnnotBorderStyle.prototype.getWidth=function(){apiFunctionCheck("AnnotBorderStyle.getWidth");return PDFNet.sendWithPromise("AnnotBorderStyle.getWidth",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setWidth=
|
|
394
|
+
function(width){apiFunctionCheck("AnnotBorderStyle.setWidth",arguments.length,1,"(number)",[[width,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setWidth",{bs:this.id,width:width})};PDFNet.AnnotBorderStyle.prototype.getHR=function(){apiFunctionCheck("AnnotBorderStyle.getHR");return PDFNet.sendWithPromise("AnnotBorderStyle.getHR",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setHR=function(horizontal_radius){apiFunctionCheck("AnnotBorderStyle.setHR",arguments.length,1,"(number)",[[horizontal_radius,
|
|
395
|
+
"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setHR",{bs:this.id,horizontal_radius:horizontal_radius})};PDFNet.AnnotBorderStyle.prototype.getVR=function(){apiFunctionCheck("AnnotBorderStyle.getVR");return PDFNet.sendWithPromise("AnnotBorderStyle.getVR",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setVR=function(vertical_radius){apiFunctionCheck("AnnotBorderStyle.setVR",arguments.length,1,"(number)",[[vertical_radius,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setVR",
|
|
396
|
+
{bs:this.id,vertical_radius:vertical_radius})};PDFNet.AnnotBorderStyle.prototype.getDashPattern=function(){apiFunctionCheck("AnnotBorderStyle.getDashPattern");return PDFNet.sendWithPromise("AnnotBorderStyle.getDashPattern",{bs:this.id}).then(function(id){return new Float64Array(id)})};PDFNet.Annot.prototype.getBorderStyle=function(){apiFunctionCheck("Annot.getBorderStyle");return PDFNet.sendWithPromise("Annot.getBorderStyle",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,
|
|
397
|
+
id)})};PDFNet.Annot.prototype.setBorderStyle=function(bs,oldStyleOnly){"undefined"===typeof oldStyleOnly&&(oldStyleOnly=!1);apiFunctionCheck("Annot.setBorderStyle",arguments.length,1,"(PDFNet.AnnotBorderStyle, boolean)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"],[oldStyleOnly,"boolean"]]);return PDFNet.sendWithPromise("Annot.setBorderStyle",{annot:this.id,bs:bs.id,oldStyleOnly:oldStyleOnly})};PDFNet.Annot.getBorderStyleStyle=function(bs){apiFunctionCheck("Annot.getBorderStyleStyle",
|
|
398
|
+
arguments.length,1,"(PDFNet.AnnotBorderStyle)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"]]);return PDFNet.sendWithPromise("annotGetBorderStyleStyle",{bs:bs.id})};PDFNet.Annot.setBorderStyleStyle=function(bs,bst){apiFunctionCheck("Annot.setBorderStyleStyle",arguments.length,2,"(PDFNet.AnnotBorderStyle, number)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"],[bst,"number"]]);return PDFNet.sendWithPromise("annotSetBorderStyleStyle",{bs:bs.id,bst:bst})};PDFNet.AnnotBorderStyle.prototype.compare=
|
|
399
|
+
function(b){apiFunctionCheck("AnnotBorderStyle.compare",arguments.length,1,"(PDFNet.AnnotBorderStyle)",[[b,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.compare",{a:this.id,b:b.id})};PDFNet.CaretAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("CaretAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("caretAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.CaretAnnot,
|
|
400
|
+
id)})};PDFNet.CaretAnnot.createFromAnnot=function(ann){apiFunctionCheck("CaretAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("caretAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.CaretAnnot,id)})};PDFNet.CaretAnnot.create=function(doc,pos){apiFunctionCheck("CaretAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},
|
|
401
|
+
[[pos,1]]);return PDFNet.sendWithPromise("caretAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.CaretAnnot,id)})};PDFNet.CaretAnnot.prototype.getSymbol=function(){apiFunctionCheck("CaretAnnot.getSymbol");return PDFNet.sendWithPromise("CaretAnnot.getSymbol",{caret:this.id})};PDFNet.CaretAnnot.prototype.setSymbol=function(symbol){apiFunctionCheck("CaretAnnot.setSymbol",arguments.length,1,"(string)",[[symbol,"string"]]);return PDFNet.sendWithPromise("CaretAnnot.setSymbol",
|
|
402
|
+
{caret:this.id,symbol:symbol})};PDFNet.LineAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("LineAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("lineAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.LineAnnot,id)})};PDFNet.LineAnnot.createFromAnnot=function(ann){apiFunctionCheck("LineAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",
|
|
403
|
+
PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("lineAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.LineAnnot,id)})};PDFNet.LineAnnot.create=function(doc,pos){apiFunctionCheck("LineAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("lineAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.LineAnnot,
|
|
404
|
+
id)})};PDFNet.LineAnnot.prototype.getStartPoint=function(){apiFunctionCheck("LineAnnot.getStartPoint");return PDFNet.sendWithPromise("LineAnnot.getStartPoint",{line:this.id})};PDFNet.LineAnnot.prototype.setStartPoint=function(sp){apiFunctionCheck("LineAnnot.setStartPoint",arguments.length,1,"(PDFNet.Point)",[[sp,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[sp,0]]);return PDFNet.sendWithPromise("LineAnnot.setStartPoint",{line:this.id,sp:sp})};PDFNet.LineAnnot.prototype.getEndPoint=function(){apiFunctionCheck("LineAnnot.getEndPoint");
|
|
405
|
+
return PDFNet.sendWithPromise("LineAnnot.getEndPoint",{line:this.id})};PDFNet.LineAnnot.prototype.setEndPoint=function(ep){apiFunctionCheck("LineAnnot.setEndPoint",arguments.length,1,"(PDFNet.Point)",[[ep,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[ep,0]]);return PDFNet.sendWithPromise("LineAnnot.setEndPoint",{line:this.id,ep:ep})};PDFNet.LineAnnot.prototype.getStartStyle=function(){apiFunctionCheck("LineAnnot.getStartStyle");return PDFNet.sendWithPromise("LineAnnot.getStartStyle",{line:this.id})};
|
|
406
|
+
PDFNet.LineAnnot.prototype.setStartStyle=function(ss){apiFunctionCheck("LineAnnot.setStartStyle",arguments.length,1,"(number)",[[ss,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setStartStyle",{line:this.id,ss:ss})};PDFNet.LineAnnot.prototype.getEndStyle=function(){apiFunctionCheck("LineAnnot.getEndStyle");return PDFNet.sendWithPromise("LineAnnot.getEndStyle",{line:this.id})};PDFNet.LineAnnot.prototype.setEndStyle=function(es){apiFunctionCheck("LineAnnot.setEndStyle",arguments.length,1,"(number)",
|
|
407
|
+
[[es,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setEndStyle",{line:this.id,es:es})};PDFNet.LineAnnot.prototype.getLeaderLineLength=function(){apiFunctionCheck("LineAnnot.getLeaderLineLength");return PDFNet.sendWithPromise("LineAnnot.getLeaderLineLength",{line:this.id})};PDFNet.LineAnnot.prototype.setLeaderLineLength=function(length){apiFunctionCheck("LineAnnot.setLeaderLineLength",arguments.length,1,"(number)",[[length,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setLeaderLineLength",
|
|
408
|
+
{line:this.id,length:length})};PDFNet.LineAnnot.prototype.getLeaderLineExtensionLength=function(){apiFunctionCheck("LineAnnot.getLeaderLineExtensionLength");return PDFNet.sendWithPromise("LineAnnot.getLeaderLineExtensionLength",{line:this.id})};PDFNet.LineAnnot.prototype.setLeaderLineExtensionLength=function(length){apiFunctionCheck("LineAnnot.setLeaderLineExtensionLength",arguments.length,1,"(number)",[[length,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setLeaderLineExtensionLength",{line:this.id,
|
|
409
|
+
length:length})};PDFNet.LineAnnot.prototype.getShowCaption=function(){apiFunctionCheck("LineAnnot.getShowCaption");return PDFNet.sendWithPromise("LineAnnot.getShowCaption",{line:this.id})};PDFNet.LineAnnot.prototype.setShowCaption=function(showCaption){apiFunctionCheck("LineAnnot.setShowCaption",arguments.length,1,"(boolean)",[[showCaption,"boolean"]]);return PDFNet.sendWithPromise("LineAnnot.setShowCaption",{line:this.id,showCaption:showCaption})};PDFNet.LineAnnot.prototype.getIntentType=function(){apiFunctionCheck("LineAnnot.getIntentType");
|
|
410
|
+
return PDFNet.sendWithPromise("LineAnnot.getIntentType",{line:this.id})};PDFNet.LineAnnot.prototype.setIntentType=function(it){apiFunctionCheck("LineAnnot.setIntentType",arguments.length,1,"(number)",[[it,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setIntentType",{line:this.id,it:it})};PDFNet.LineAnnot.prototype.getCapPos=function(){apiFunctionCheck("LineAnnot.getCapPos");return PDFNet.sendWithPromise("LineAnnot.getCapPos",{line:this.id})};PDFNet.LineAnnot.prototype.setCapPos=function(it){apiFunctionCheck("LineAnnot.setCapPos",
|
|
411
|
+
arguments.length,1,"(number)",[[it,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setCapPos",{line:this.id,it:it})};PDFNet.LineAnnot.prototype.getLeaderLineOffset=function(){apiFunctionCheck("LineAnnot.getLeaderLineOffset");return PDFNet.sendWithPromise("LineAnnot.getLeaderLineOffset",{line:this.id})};PDFNet.LineAnnot.prototype.setLeaderLineOffset=function(length){apiFunctionCheck("LineAnnot.setLeaderLineOffset",arguments.length,1,"(number)",[[length,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setLeaderLineOffset",
|
|
412
|
+
{line:this.id,length:length})};PDFNet.LineAnnot.prototype.getTextHOffset=function(){apiFunctionCheck("LineAnnot.getTextHOffset");return PDFNet.sendWithPromise("LineAnnot.getTextHOffset",{line:this.id})};PDFNet.LineAnnot.prototype.setTextHOffset=function(offset){apiFunctionCheck("LineAnnot.setTextHOffset",arguments.length,1,"(number)",[[offset,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setTextHOffset",{line:this.id,offset:offset})};PDFNet.LineAnnot.prototype.getTextVOffset=function(){apiFunctionCheck("LineAnnot.getTextVOffset");
|
|
413
|
+
return PDFNet.sendWithPromise("LineAnnot.getTextVOffset",{line:this.id})};PDFNet.LineAnnot.prototype.setTextVOffset=function(offset){apiFunctionCheck("LineAnnot.setTextVOffset",arguments.length,1,"(number)",[[offset,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setTextVOffset",{line:this.id,offset:offset})};PDFNet.CircleAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("CircleAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",
|
|
414
|
+
PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("circleAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.CircleAnnot,id)})};PDFNet.CircleAnnot.createFromAnnot=function(circle){apiFunctionCheck("CircleAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[circle,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("circleAnnotCreateFromAnnot",{circle:circle.id}).then(function(id){return createPDFNetObj(PDFNet.CircleAnnot,id)})};PDFNet.CircleAnnot.create=
|
|
415
|
+
function(doc,pos){apiFunctionCheck("CircleAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("circleAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.CircleAnnot,id)})};PDFNet.CircleAnnot.prototype.getInteriorColor=function(){apiFunctionCheck("CircleAnnot.getInteriorColor");return PDFNet.sendWithPromise("CircleAnnot.getInteriorColor",{circle:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
|
|
416
|
+
id)})};PDFNet.CircleAnnot.prototype.getInteriorColorCompNum=function(){apiFunctionCheck("CircleAnnot.getInteriorColorCompNum");return PDFNet.sendWithPromise("CircleAnnot.getInteriorColorCompNum",{circle:this.id})};PDFNet.CircleAnnot.prototype.setInteriorColorDefault=function(col){apiFunctionCheck("CircleAnnot.setInteriorColorDefault",arguments.length,1,"(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("CircleAnnot.setInteriorColorDefault",{circle:this.id,
|
|
417
|
+
col:col.id})};PDFNet.CircleAnnot.prototype.setInteriorColor=function(col,numcomp){apiFunctionCheck("CircleAnnot.setInteriorColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("CircleAnnot.setInteriorColor",{circle:this.id,col:col.id,numcomp:numcomp})};PDFNet.CircleAnnot.prototype.getContentRect=function(){apiFunctionCheck("CircleAnnot.getContentRect");return PDFNet.sendWithPromise("CircleAnnot.getContentRect",
|
|
418
|
+
{circle:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.CircleAnnot.prototype.setContentRect=function(cr){apiFunctionCheck("CircleAnnot.setContentRect",arguments.length,1,"(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[cr,0]]);return PDFNet.sendWithPromise("CircleAnnot.setContentRect",{circle:this.id,cr:cr})};PDFNet.CircleAnnot.prototype.getPadding=function(){apiFunctionCheck("CircleAnnot.getPadding");return PDFNet.sendWithPromise("CircleAnnot.getPadding",
|
|
419
|
+
{circle:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.CircleAnnot.prototype.setPadding=function(cr){apiFunctionCheck("CircleAnnot.setPadding",arguments.length,1,"(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[cr,0]]);return PDFNet.sendWithPromise("CircleAnnot.setPadding",{circle:this.id,cr:cr})};PDFNet.FileAttachmentAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("FileAttachmentAnnot.createFromObj",arguments.length,
|
|
420
|
+
0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fileAttachmentAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.FileAttachmentAnnot,id)})};PDFNet.FileAttachmentAnnot.prototype["export"]=function(save_as){"undefined"===typeof save_as&&(save_as="");apiFunctionCheck("FileAttachmentAnnot.export",arguments.length,0,"(string)",[[save_as,"string"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.export",{fileatt:this.id,save_as:save_as})};
|
|
421
|
+
PDFNet.FileAttachmentAnnot.prototype.createFromAnnot=function(){apiFunctionCheck("FileAttachmentAnnot.createFromAnnot");return PDFNet.sendWithPromise("FileAttachmentAnnot.createFromAnnot",{fileatt:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.FileAttachmentAnnot.createWithFileSpec=function(doc,pos,fs,icon_name){"undefined"===typeof icon_name&&(icon_name=PDFNet.FileAttachmentAnnot.Icon.e_PushPin);apiFunctionCheck("FileAttachmentAnnot.createWithFileSpec",arguments.length,
|
|
422
|
+
3,"(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.FileSpec, number)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[fs,"Object",PDFNet.FileSpec,"FileSpec"],[icon_name,"number"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("fileAttachmentAnnotCreateWithFileSpec",{doc:doc.id,pos:pos,fs:fs.id,icon_name:icon_name}).then(function(id){return createPDFNetObj(PDFNet.FileAttachmentAnnot,id)})};PDFNet.FileAttachmentAnnot.createDefault=function(doc,pos,path){apiFunctionCheck("FileAttachmentAnnot.createDefault",
|
|
423
|
+
arguments.length,3,"(PDFNet.SDFDoc, PDFNet.Rect, string)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[path,"string"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("fileAttachmentAnnotCreateDefault",{doc:doc.id,pos:pos,path:path}).then(function(id){return createPDFNetObj(PDFNet.FileAttachmentAnnot,id)})};PDFNet.FileAttachmentAnnot.prototype.getFileSpec=function(){apiFunctionCheck("FileAttachmentAnnot.getFileSpec");return PDFNet.sendWithPromise("FileAttachmentAnnot.getFileSpec",
|
|
424
|
+
{fileatt:this.id}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileAttachmentAnnot.prototype.setFileSpec=function(file){apiFunctionCheck("FileAttachmentAnnot.setFileSpec",arguments.length,1,"(PDFNet.FileSpec)",[[file,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.setFileSpec",{fileatt:this.id,file:file.id})};PDFNet.FileAttachmentAnnot.prototype.getIcon=function(){apiFunctionCheck("FileAttachmentAnnot.getIcon");return PDFNet.sendWithPromise("FileAttachmentAnnot.getIcon",
|
|
425
|
+
{fileatt:this.id})};PDFNet.FileAttachmentAnnot.prototype.setIcon=function(type){"undefined"===typeof type&&(type=PDFNet.FileAttachmentAnnot.Icon.e_PushPin);apiFunctionCheck("FileAttachmentAnnot.setIcon",arguments.length,0,"(number)",[[type,"number"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.setIcon",{fileatt:this.id,type:type})};PDFNet.FileAttachmentAnnot.prototype.getIconName=function(){apiFunctionCheck("FileAttachmentAnnot.getIconName");return PDFNet.sendWithPromise("FileAttachmentAnnot.getIconName",
|
|
426
|
+
{fileatt:this.id})};PDFNet.FileAttachmentAnnot.prototype.setIconName=function(iname){apiFunctionCheck("FileAttachmentAnnot.setIconName",arguments.length,1,"(string)",[[iname,"string"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.setIconName",{fileatt:this.id,iname:iname})};PDFNet.FreeTextAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("FreeTextAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("freeTextAnnotCreateFromObj",
|
|
427
|
+
{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.FreeTextAnnot,id)})};PDFNet.FreeTextAnnot.createFromAnnot=function(ann){apiFunctionCheck("FreeTextAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("freeTextAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.FreeTextAnnot,id)})};PDFNet.FreeTextAnnot.create=function(doc,pos){apiFunctionCheck("FreeTextAnnot.create",arguments.length,
|
|
428
|
+
2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("freeTextAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.FreeTextAnnot,id)})};PDFNet.FreeTextAnnot.prototype.getDefaultAppearance=function(){apiFunctionCheck("FreeTextAnnot.getDefaultAppearance");return PDFNet.sendWithPromise("FreeTextAnnot.getDefaultAppearance",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setDefaultAppearance=
|
|
429
|
+
function(app_str){apiFunctionCheck("FreeTextAnnot.setDefaultAppearance",arguments.length,1,"(string)",[[app_str,"string"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setDefaultAppearance",{ft:this.id,app_str:app_str})};PDFNet.FreeTextAnnot.prototype.getQuaddingFormat=function(){apiFunctionCheck("FreeTextAnnot.getQuaddingFormat");return PDFNet.sendWithPromise("FreeTextAnnot.getQuaddingFormat",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setQuaddingFormat=function(format){apiFunctionCheck("FreeTextAnnot.setQuaddingFormat",
|
|
430
|
+
arguments.length,1,"(number)",[[format,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setQuaddingFormat",{ft:this.id,format:format})};PDFNet.FreeTextAnnot.prototype.getCalloutLinePoints=function(){apiFunctionCheck("FreeTextAnnot.getCalloutLinePoints");return PDFNet.sendWithPromise("FreeTextAnnot.getCalloutLinePoints",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setCalloutLinePoints=function(p1,p2,p3){apiFunctionCheck("FreeTextAnnot.setCalloutLinePoints",arguments.length,3,"(PDFNet.Point, PDFNet.Point, PDFNet.Point)",
|
|
431
|
+
[[p1,"Structure",PDFNet.Point,"Point"],[p2,"Structure",PDFNet.Point,"Point"],[p3,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[p1,0],[p2,1],[p3,2]]);return PDFNet.sendWithPromise("FreeTextAnnot.setCalloutLinePoints",{ft:this.id,p1:p1,p2:p2,p3:p3})};PDFNet.FreeTextAnnot.prototype.setCalloutLinePointsTwo=function(p1,p2){apiFunctionCheck("FreeTextAnnot.setCalloutLinePointsTwo",arguments.length,2,"(PDFNet.Point, PDFNet.Point)",[[p1,"Structure",PDFNet.Point,"Point"],[p2,"Structure",PDFNet.Point,
|
|
432
|
+
"Point"]],{checkThisYield:!1},[[p1,0],[p2,1]]);return PDFNet.sendWithPromise("FreeTextAnnot.setCalloutLinePointsTwo",{ft:this.id,p1:p1,p2:p2})};PDFNet.FreeTextAnnot.prototype.getIntentName=function(){apiFunctionCheck("FreeTextAnnot.getIntentName");return PDFNet.sendWithPromise("FreeTextAnnot.getIntentName",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setIntentName=function(mode){"undefined"===typeof mode&&(mode=PDFNet.FreeTextAnnot.IntentName.e_FreeText);apiFunctionCheck("FreeTextAnnot.setIntentName",
|
|
433
|
+
arguments.length,0,"(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setIntentName",{ft:this.id,mode:mode})};PDFNet.FreeTextAnnot.prototype.setIntentNameDefault=function(){apiFunctionCheck("FreeTextAnnot.setIntentNameDefault");return PDFNet.sendWithPromise("FreeTextAnnot.setIntentNameDefault",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.getEndingStyle=function(){apiFunctionCheck("FreeTextAnnot.getEndingStyle");return PDFNet.sendWithPromise("FreeTextAnnot.getEndingStyle",
|
|
434
|
+
{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setEndingStyle=function(style){apiFunctionCheck("FreeTextAnnot.setEndingStyle",arguments.length,1,"(number)",[[style,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setEndingStyle",{ft:this.id,style:style})};PDFNet.FreeTextAnnot.prototype.setEndingStyleName=function(est){apiFunctionCheck("FreeTextAnnot.setEndingStyleName",arguments.length,1,"(string)",[[est,"string"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setEndingStyleName",{ft:this.id,
|
|
435
|
+
est:est})};PDFNet.FreeTextAnnot.prototype.setTextColor=function(color,col_comp){apiFunctionCheck("FreeTextAnnot.setTextColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[color,"Object",PDFNet.ColorPt,"ColorPt"],[col_comp,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setTextColor",{ft:this.id,color:color.id,col_comp:col_comp})};PDFNet.FreeTextAnnot.prototype.getTextColor=function(){apiFunctionCheck("FreeTextAnnot.getTextColor");return PDFNet.sendWithPromise("FreeTextAnnot.getTextColor",
|
|
436
436
|
{ft:this.id}).then(function(id){id.color=createDestroyableObj(PDFNet.ColorPt,id.color);return id})};PDFNet.FreeTextAnnot.prototype.setLineColor=function(color,col_comp){apiFunctionCheck("FreeTextAnnot.setLineColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[color,"Object",PDFNet.ColorPt,"ColorPt"],[col_comp,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setLineColor",{ft:this.id,color:color.id,col_comp:col_comp})};PDFNet.FreeTextAnnot.prototype.getLineColor=function(){apiFunctionCheck("FreeTextAnnot.getLineColor");
|
|
437
437
|
return PDFNet.sendWithPromise("FreeTextAnnot.getLineColor",{ft:this.id}).then(function(id){id.color=createDestroyableObj(PDFNet.ColorPt,id.color);return id})};PDFNet.FreeTextAnnot.prototype.setFontName=function(fontName){apiFunctionCheck("FreeTextAnnot.setFontName",arguments.length,1,"(string)",[[fontName,"string"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setFontName",{ft:this.id,fontName:fontName})};PDFNet.FreeTextAnnot.prototype.setFontSize=function(font_size){apiFunctionCheck("FreeTextAnnot.setFontSize",
|
|
438
438
|
arguments.length,1,"(number)",[[font_size,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setFontSize",{ft:this.id,font_size:font_size})};PDFNet.FreeTextAnnot.prototype.getFontSize=function(){apiFunctionCheck("FreeTextAnnot.getFontSize");return PDFNet.sendWithPromise("FreeTextAnnot.getFontSize",{ft:this.id})};PDFNet.HighlightAnnot.createFromObj=function(d){apiFunctionCheck("HighlightAnnot.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("highlightAnnotCreateFromObj",
|