vendor: 8,588 bytes, lines 1-19
1(function(){var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(array){var index=0;return function(){return index<array.length?{done:!1,value:array[index++]}:{done:!0}}};$jscomp.arrayIterator=function(array){return{next:$jscomp.arrayIteratorImpl(array)}}; 2$jscomp.makeIterator=function(iterable){var iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&iterable[Symbol.iterator];if(iteratorFunction)return iteratorFunction.call(iterable);if("number"==typeof iterable.length)return $jscomp.arrayIterator(iterable);throw Error(String(iterable)+" is not an iterable or ArrayLike");};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1; 3$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.getGlobal=function(passedInThis){passedInThis=["object"==typeof globalThis&&globalThis,passedInThis,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<passedInThis.length;++i){var maybeGlobal=passedInThis[i];if(maybeGlobal&&maybeGlobal.Math==Math)return maybeGlobal}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 4$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(target,property,descriptor){if(target==Array.prototype||target==Object.prototype)return target;target[property]=descriptor.value;return target};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={}; 5$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(target,property,isOptionalAccess){if(!isOptionalAccess||null!=target){isOptionalAccess=$jscomp.propertyToPolyfillSymbol[property];if(null==isOptionalAccess)return target[property];isOptionalAccess=target[isOptionalAccess];return void 0!==isOptionalAccess?isOptionalAccess:target[property]}}; 6$jscomp.polyfill=function(target,polyfill,fromLang,toLang){polyfill&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(target,polyfill,fromLang,toLang):$jscomp.polyfillUnisolated(target,polyfill,fromLang,toLang))}; 7$jscomp.polyfillUnisolated=function(target,polyfill,fromLang,toLang){fromLang=$jscomp.global;target=target.split(".");for(toLang=0;toLang<target.length-1;toLang++){var key=target[toLang];if(!(key in fromLang))return;fromLang=fromLang[key]}target=target[target.length-1];toLang=fromLang[target];polyfill=polyfill(toLang);polyfill!=toLang&&null!=polyfill&&$jscomp.defineProperty(fromLang,target,{configurable:!0,writable:!0,value:polyfill})}; 8$jscomp.polyfillIsolated=function(target,polyfill,fromLang,toLang){var split=target.split(".");target=1===split.length;toLang=split[0];toLang=!target&&toLang in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var i=0;i<split.length-1;i++){var key=split[i];if(!(key in toLang))return;toLang=toLang[key]}split=split[split.length-1];fromLang=$jscomp.IS_SYMBOL_NATIVE&&"es6"===fromLang?toLang[split]:null;polyfill=polyfill(fromLang);null!=polyfill&&(target?$jscomp.defineProperty($jscomp.polyfills, 9split,{configurable:!0,writable:!0,value:polyfill}):polyfill!==fromLang&&(void 0===$jscomp.propertyToPolyfillSymbol[split]&&(fromLang=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[split]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(split):$jscomp.POLYFILL_PREFIX+fromLang+"$"+split),$jscomp.defineProperty(toLang,$jscomp.propertyToPolyfillSymbol[split],{configurable:!0,writable:!0,value:polyfill})))}; 10$jscomp.polyfill("Promise",function(NativePromise){function AsyncExecutor(){this.batch_=null}function resolvingPromise(opt_value){return opt_value instanceof PolyfillPromise?opt_value:new PolyfillPromise(function(resolve,reject){resolve(opt_value)})}if(NativePromise&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return NativePromise; 11AsyncExecutor.prototype.asyncExecute=function(f){if(null==this.batch_){this.batch_=[];var self=this;this.asyncExecuteFunction(function(){self.executeBatch_()})}this.batch_.push(f)};var nativeSetTimeout=$jscomp.global.setTimeout;AsyncExecutor.prototype.asyncExecuteFunction=function(f){nativeSetTimeout(f,0)};AsyncExecutor.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var executingBatch=this.batch_;this.batch_=[];for(var i=0;i<executingBatch.length;++i){var f=executingBatch[i]; 12executingBatch[i]=null;try{f()}catch(error){this.asyncThrow_(error)}}}this.batch_=null};AsyncExecutor.prototype.asyncThrow_=function(exception){this.asyncExecuteFunction(function(){throw exception;})};var PolyfillPromise=function(executor){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var resolveAndReject=this.createResolveAndReject_();try{executor(resolveAndReject.resolve,resolveAndReject.reject)}catch(e){resolveAndReject.reject(e)}};PolyfillPromise.prototype.createResolveAndReject_= 13function(){function firstCallWins(method){return function(x){alreadyCalled||(alreadyCalled=!0,method.call(thisPromise,x))}}var thisPromise=this,alreadyCalled=!1;return{resolve:firstCallWins(this.resolveTo_),reject:firstCallWins(this.reject_)}};PolyfillPromise.prototype.resolveTo_=function(value){if(value===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(value instanceof PolyfillPromise)this.settleSameAsPromise_(value);else{a:switch(typeof value){case "object":var JSCompiler_inline_result= 14null!=value;break a;case "function":JSCompiler_inline_result=!0;break a;default:JSCompiler_inline_result=!1}JSCompiler_inline_result?this.resolveToNonPromiseObj_(value):this.fulfill_(value)}};PolyfillPromise.prototype.resolveToNonPromiseObj_=function(obj){var thenMethod=void 0;try{thenMethod=obj.then}catch(error){this.reject_(error);return}"function"==typeof thenMethod?this.settleSameAsThenable_(thenMethod,obj):this.fulfill_(obj)};PolyfillPromise.prototype.reject_=function(reason){this.settle_(2, 15reason)};PolyfillPromise.prototype.fulfill_=function(value){this.settle_(1,value)};PolyfillPromise.prototype.settle_=function(settledState,valueOrReason){if(0!=this.state_)throw Error("Cannot settle("+settledState+", "+valueOrReason+"): Promise already settled in state"+this.state_);this.state_=settledState;this.result_=valueOrReason;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};PolyfillPromise.prototype.scheduleUnhandledRejectionCheck_=function(){var self= 16this;nativeSetTimeout(function(){if(self.notifyUnhandledRejection_()){var nativeConsole=$jscomp.global.console;"undefined"!==typeof nativeConsole&&nativeConsole.error(self.result_)}},1)};PolyfillPromise.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var NativeCustomEvent=$jscomp.global.CustomEvent,NativeEvent=$jscomp.global.Event,nativeDispatchEvent=$jscomp.global.dispatchEvent;if("undefined"===typeof nativeDispatchEvent)return!0;"function"===typeof NativeCustomEvent? 17NativeCustomEvent=new NativeCustomEvent("unhandledrejection",{cancelable:!0}):"function"===typeof NativeEvent?NativeCustomEvent=new NativeEvent("unhandledrejection",{cancelable:!0}):(NativeCustomEvent=$jscomp.global.document.createEvent("CustomEvent"),NativeCustomEvent.initCustomEvent("unhandledrejection",!1,!0,NativeCustomEvent));NativeCustomEvent.promise=this;NativeCustomEvent.reason=this.result_;return nativeDispatchEvent(NativeCustomEvent)};PolyfillPromise.prototype.executeOnSettledCallbacks_= 18function(){if(null!=this.onSettledCallbacks_){for(var i=0;i<this.onSettledCallbacks_.length;++i)asyncExecutor.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var asyncExecutor=new AsyncExecutor;PolyfillPromise.prototype.settleSameAsPromise_=function(promise){var methods=this.createResolveAndReject_();promise.callWhenSettled_(methods.resolve,methods.reject)};PolyfillPromise.prototype.settleSameAsThenable_=function(thenMethod,thenable){var methods=this.createResolveAndReject_(); 19try{thenMethod.call(thenable,methods.resolve,methods.reject)}catch(error){methods.reject(error)}};PolyfillPromise.prototype.then=function(onFulfilled,onRejected){function createCallback(paramF,defaultF){return"function"==typeof paramF?function(x){try{resolve
vendor: 4,164 bytes, lines 19-28
19Child(paramF(x))}catch(error){rejectChild(error)}}:defaultF}var resolveChild,rejectChild,childPromise=new PolyfillPromise(function(resolve,reject){resolveChild=resolve;rejectChild=reject});this.callWhenSettled_(createCallback(onFulfilled,resolveChild), 20createCallback(onRejected,rejectChild));return childPromise};PolyfillPromise.prototype.catch=function(onRejected){return this.then(void 0,onRejected)};PolyfillPromise.prototype.callWhenSettled_=function(onFulfilled,onRejected){function callback(){switch(thisPromise.state_){case 1:onFulfilled(thisPromise.result_);break;case 2:onRejected(thisPromise.result_);break;default:throw Error("Unexpected state: "+thisPromise.state_);}}var thisPromise=this;null==this.onSettledCallbacks_?asyncExecutor.asyncExecute(callback): 21this.onSettledCallbacks_.push(callback);this.isRejectionHandled_=!0};PolyfillPromise.resolve=resolvingPromise;PolyfillPromise.reject=function(opt_reason){return new PolyfillPromise(function(resolve,reject){reject(opt_reason)})};PolyfillPromise.race=function(thenablesOrValues){return new PolyfillPromise(function(resolve,reject){for(var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();!iterRec.done;iterRec=iterator.next())resolvingPromise(iterRec.value).callWhenSettled_(resolve, 22reject)})};PolyfillPromise.all=function(thenablesOrValues){var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();return iterRec.done?resolvingPromise([]):new PolyfillPromise(function(resolveAll,rejectAll){function onFulfilled(i){return function(ithResult){resultsArray[i]=ithResult;unresolvedCount--;0==unresolvedCount&&resolveAll(resultsArray)}}var resultsArray=[],unresolvedCount=0;do resultsArray.push(void 0),unresolvedCount++,resolvingPromise(iterRec.value).callWhenSettled_(onFulfilled(resultsArray.length- 231),rejectAll),iterRec=iterator.next();while(!iterRec.done)})};return PolyfillPromise},"es6","es3");$jscomp.checkStringArgs=function(thisArg,arg,func){if(null==thisArg)throw new TypeError("The 'this' value for String.prototype."+func+" must not be null or undefined");if(arg instanceof RegExp)throw new TypeError("First argument to String.prototype."+func+" must not be a regular expression");return thisArg+""}; 24$jscomp.polyfill("String.prototype.startsWith",function(orig){return orig?orig:function(searchString,opt_position){var string=$jscomp.checkStringArgs(this,searchString,"startsWith");searchString+="";var strLen=string.length,searchLen=searchString.length;opt_position=Math.max(0,Math.min(opt_position|0,string.length));for(var j=0;j<searchLen&&opt_position<strLen;)if(string[opt_position++]!=searchString[j++])return!1;return j>=searchLen}},"es6","es3"); 25$jscomp.polyfill("Array.from",function(orig){return orig?orig:function(arrayLike,opt_mapFn,opt_thisArg){opt_mapFn=null!=opt_mapFn?opt_mapFn:function(x){return x};var result=[],iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&arrayLike[Symbol.iterator];if("function"==typeof iteratorFunction){arrayLike=iteratorFunction.call(arrayLike);for(var k=0;!(iteratorFunction=arrayLike.next()).done;)result.push(opt_mapFn.call(opt_thisArg,iteratorFunction.value,k++))}else for(iteratorFunction=arrayLike.length, 26k=0;k<iteratorFunction;k++)result.push(opt_mapFn.call(opt_thisArg,arrayLike[k],k));return result}},"es6","es3"); 27(function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=!0;return module.exports}var installedModules={};__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports, 28name,{enumerable:!0,get:getter})};__webpack_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__webpack_require__.t=function(value,mode){mode&1&&(value=__webpack_require__(value));
28if(mode&8||mode&4&&"object"===typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default", 29{enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__webpack_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)}; 30__webpack_require__.p="/core/pdf/";return __webpack_require__(__webpack_require__.s=0)})([function(module,exports,__webpack_require__){module.exports=__webpack_require__(1)},function(module,exports$jscomp$0){function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)} 31var createdObjects=[],lockedObjects=[],stackCallCounter=0,beginOperationCounter=0,deallocStackCounter=[],unlockStackCounter=[];(function(exports){function optionsHelpers(){return{putBool:function(implObj,key,value){if(!1!==value&&!0!==value)throw new TypeError("An boolean value is expected for putBool");implObj[key]=value},putNumber:function(implObj,key,value){implObj[key]=0+value},putString:function(implObj,key,value){implObj[key]=""+value},jsColorToNumber:function(jsColor){return 4278190080+65536* 32Math.floor(jsColor.R)+256*Math.floor(jsColor.G)+Math.floor(jsColor.B)},jsColorFromNumber:function(number){return{A:5.9604644775390625E-8*number&255,R:((number|0)&16711680)>>>16,G:((number|0)&65280)>>>8,B:(number|0)&255}},pushBackString:function(obj,key,value){key in obj||(obj[key]=[]);obj[key].push(value)}}}function finishGenerator(iterator){function iterate(val){val=iterator.next(val);var promise=val.value;return val.done?val.value:promise.then(iterate)}return Promise.resolve().then(iterate)}var PDFNet= 33exports.Core.PDFNet?exports.Core.PDFNet:{};PDFNet.Convert=exports.Core.PDFNet&&exports.Core.PDFNet.Convert?exports.Core.PDFNet.Convert:{};PDFNet.Optimizer={};exports.Core&&exports.Core.enableFullPDF();exports.isArrayBuffer=function(obj){return obj instanceof ArrayBuffer||null!=obj&&null!=obj.constructor&&"ArrayBuffer"===obj.constructor.name&&"number"===typeof obj.byteLength};PDFNet.Destroyable=function(){if(this.constructor===PDFNet.Destroyable)throw Error("Can't instantiate abstract class!");};PDFNet.Destroyable.prototype.takeOwnership= 34function(){avoidCleanup(this.id)};PDFNet.Destroyable.prototype.destroy=function(){this.takeOwnership();return PDFNet.sendWithPromise(this.name+".destroy",{auto_dealloc_obj:this.id})};var checkConstructorCaller=function(id,caller,className){if(174774839!==caller&&"0"!==id)throw Error("Non-null object of PDFNet."+className+" is not supposed to be created with its constructor.");};PDFNet.Action=function(id,caller){this.name="Action";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ActionParameter= 35function(id,caller){this.name="ActionParameter";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ActionParameter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.AdvancedImagingModule=function(id,caller){this.name="AdvancedImagingModule";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.AlgorithmIdentifier=function(id,caller){this.name="AlgorithmIdentifier";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.AlgorithmIdentifier.prototype=Object.create(PDFNet.Destroyable.prototype); 36PDFNet.AlgorithmParams=function(id,caller){this.name="AlgorithmParams";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.AlgorithmParams.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Annot=function(id,caller){this.name="Annot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.AnnotBorderStyle=function(id,caller){this.name="AnnotBorderStyle";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.AnnotBorderStyle.prototype=Object.create(PDFNet.Destroyable.prototype); 37PDFNet.AttrObj=function(id,caller){this.name="AttrObj";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Bookmark=function(id,caller){this.name="Bookmark";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ByteRange=function(m_offset,m_size){this.name="ByteRange";if(m_offset&&"undefined"===typeof m_size)copyFunc(m_offset,this);else return"undefined"===typeof m_offset&&(m_offset=0),"undefined"===typeof m_size&&(m_size=0),new PDFNet.ByteRange({m_offset:m_offset,m_size:m_size})}; 38PDFNet.CMSSignatureOptions=function(id,caller){this.name="CMSSignatureOptions";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.CMSSignatureOptions.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.CaretAnnot=function(id,caller){this.name="CaretAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.CheckBoxWidget=function(id,caller){this.name="CheckBoxWidget";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ChunkRenderer=function(id,caller){this.name= 39"ChunkRenderer";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.CircleAnnot=function(id,caller){this.name="CircleAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ClassMap=function(id,caller){this.name="ClassMap";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ColorPt=function(id,caller){this.name="ColorPt";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ColorPt.prototype=Object.create(PDFNet.Destroyable.prototype);
39PDFNet.ColorSpace= 40function(id,caller){this.name="ColorSpace";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ColorSpace.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ComboBoxWidget=function(id,caller){this.name="ComboBoxWidget";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ContentElement=function(id,caller){this.name="ContentElement";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ContentItem=function(o,p){this.name="ContentItem";if(o&&"undefined"===typeof p)copyFunc(o, 41this);else return"undefined"===typeof o&&(o="0"),"undefined"===typeof p&&(p="0"),new PDFNet.ContentItem({o:o,p:p})};PDFNet.ContentNode=function(id,caller){this.name="ContentNode";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ContentReplacer=function(id,caller){this.name="ContentReplacer";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ContentReplacer.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ConversionMonitor=function(id,caller){this.name="ConversionMonitor"; 42checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ConversionMonitor.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Date=function(year,month,day,hour,minute,second,UT,UT_hour,UT_minutes,mp_obj){this.name="Date";if(year&&"undefined"===typeof month)copyFunc(year,this);else return"undefined"===typeof year&&(year=0),"undefined"===typeof month&&(month=0),"undefined"===typeof day&&(day=0),"undefined"===typeof hour&&(hour=0),"undefined"===typeof minute&&(minute=0),"undefined"=== 43typeof second&&(second=0),"undefined"===typeof UT&&(UT=0),"undefined"===typeof UT_hour&&(UT_hour=0),"undefined"===typeof UT_minutes&&(UT_minutes=0),"undefined"===typeof mp_obj&&(mp_obj="0"),new PDFNet.Date({year:year,month:month,day:day,hour:hour,minute:minute,second:second,UT:UT,UT_hour:UT_hour,UT_minutes:UT_minutes,mp_obj:mp_obj})};PDFNet.Destination=function(id,caller){this.name="Destination";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.DictIterator=function(id,caller){this.name= 44"DictIterator";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.DictIterator.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.DigestAlgorithm=function(id,caller){this.name="DigestAlgorithm";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.DigitalSignatureField=function(mp_field_dict_obj){this.name="DigitalSignatureField";if("object"===_typeof(mp_field_dict_obj))copyFunc(mp_field_dict_obj,this);else if("undefined"!==typeof mp_field_dict_obj)return new PDFNet.DigitalSignatureField({mp_field_dict_obj:mp_field_dict_obj})}; 45PDFNet.DisallowedChange=function(id,caller){this.name="DisallowedChange";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.DisallowedChange.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.DocSnapshot=function(id,caller){this.name="DocSnapshot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.DocSnapshot.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Element=function(id,caller){this.name="Element";checkConstructorCaller(id,caller,this.name);this.id= 46id};PDFNet.ElementBuilder=function(id,caller){this.name="ElementBuilder";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ElementBuilder.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ElementReader=function(id,caller){this.name="ElementReader";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ElementReader.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ElementWriter=function(id,caller){this.name="ElementWriter";checkConstructorCaller(id,caller, 47this.name);this.id=id};PDFNet.ElementWriter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.EmbeddedTimestampVerificationResult=function(id,caller){this.name="EmbeddedTimestampVerificationResult";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.EmbeddedTimestampVerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FDFDoc=function(id,caller){this.name="FDFDoc";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.FDFDoc.prototype=Object.create(PDFNet.Destroyable.prototype); 48PDFNet.FDFField=function(mp_leaf_node,mp_root_array){this.name="FDFField";if(mp_leaf_node&&"undefined"===typeof mp_root_array)copyFunc(mp_leaf_node,this);else return"undefined"===typeof mp_leaf_node&&(mp_leaf_node="0"),"undefined"===typeof mp_root_array&&(mp_root_array="0"),new PDFNet.FDFField({mp_leaf_node:mp_leaf_node,mp_root_array:mp_root_array})};PDFNet.Field=function(leaf_node,builder){this.name="Field";
48if(leaf_node&&"undefined"===typeof builder)copyFunc(leaf_node,this);else return"undefined"=== 49typeof leaf_node&&(leaf_node="0"),"undefined"===typeof builder&&(builder="0"),new PDFNet.Field({leaf_node:leaf_node,builder:builder})};PDFNet.FileAttachmentAnnot=function(id,caller){this.name="FileAttachmentAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.FileSpec=function(id,caller){this.name="FileSpec";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Filter=function(id,caller){this.name="Filter";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Filter.prototype= 50Object.create(PDFNet.Destroyable.prototype);PDFNet.FilterReader=function(id,caller){this.name="FilterReader";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.FilterReader.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FilterWriter=function(id,caller){this.name="FilterWriter";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.FilterWriter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Flattener=function(id,caller){this.name="Flattener";checkConstructorCaller(id, 51caller,this.name);this.id=id};PDFNet.Flattener.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FlowDocument=function(id,caller){this.name="FlowDocument";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.FlowDocument.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Font=function(id,caller){this.name="Font";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Font.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FreeTextAnnot=function(id,caller){this.name= 52"FreeTextAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Function=function(id,caller){this.name="Function";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Function.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.GState=function(id,caller){this.name="GState";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.GeometryCollection=function(id,caller){this.name="GeometryCollection";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.GeometryCollection.prototype= 53Object.create(PDFNet.Destroyable.prototype);PDFNet.HighlightAnnot=function(id,caller){this.name="HighlightAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Highlights=function(id,caller){this.name="Highlights";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Highlights.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Image=function(id,caller){this.name="Image";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.InkAnnot=function(id,caller){this.name= 54"InkAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Iterator=function(id,caller,type){this.name="Iterator";checkConstructorCaller(id,caller,this.name);this.id=id;this.type=type};PDFNet.Iterator.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.KeyStrokeActionResult=function(id,caller){this.name="KeyStrokeActionResult";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.KeyStrokeActionResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.KeyStrokeEventData= 55function(id,caller){this.name="KeyStrokeEventData";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.KeyStrokeEventData.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.LineAnnot=function(id,caller){this.name="LineAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.LinkAnnot=function(id,caller){this.name="LinkAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.List=function(id,caller){this.name="List";checkConstructorCaller(id,caller,this.name); 56this.id=id};PDFNet.ListBoxWidget=function(id,caller){this.name="ListBoxWidget";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ListItem=function(id,caller){this.name="ListItem";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.MarkupAnnot=function(id,caller){this.name="MarkupAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Matrix2D=function(m_a,m_b,m_c,m_d,m_h,m_v){this.name="Matrix2D";if(m_a&&"undefined"===typeof m_b)copyFunc(m_a,this);else return"undefined"=== 57typeof m_a&&(m_a=0),"undefined"===typeof m_b&&(m_b=0),"undefined"===typeof m_c&&(m_c=0),"undefined"===typeof m_d&&(m_d=0),"undefined"===typeof m_h&&(m_h=0),"undefined"===typeof m_v&&(m_v=0),new PDFNet.Matrix2D({m_a:m_a,m_b:m_b,m_c:m_c,m_d:m_d,m_h:m_h,m_v:m_v})};PDFNet.MovieAnnot=function(id,caller){this.name="MovieAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.NameTree=function(id,caller){this.name="NameTree";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.NumberTree= 58function(id,caller){this.name="NumberTree";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.OCG=function(id,caller){this.name="OCG";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.OCGConfig=function(id,caller){this.name="OCGConfig";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.OCGContext=function(id,caller){this.name="OCGContext";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.OCGContext.prototype=Object.create(PDFNet.Destroyable.prototype); 59PDFNet.OCMD=function(id,caller){this.name="OCMD";checkConstructorCaller(id,caller,this.name);this.id=id};
59PDFNet.OCRModule=function(id,caller){this.name="OCRModule";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Obj=function(id,caller){this.name="Obj";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ObjSet=function(id,caller){this.name="ObjSet";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ObjSet.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ObjectIdentifier= 60function(id,caller){this.name="ObjectIdentifier";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ObjectIdentifier.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.OwnedBitmap=function(id,caller){this.name="OwnedBitmap";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFACompliance=function(id,caller){this.name="PDFACompliance";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFACompliance.prototype=Object.create(PDFNet.Destroyable.prototype); 61PDFNet.PDFAOptions=function(id,caller){this.name="PDFAOptions";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFDC=function(id,caller){this.name="PDFDC";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFDCEX=function(id,caller){this.name="PDFDCEX";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFDoc=function(id,caller){this.name="PDFDoc";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFDoc.prototype=Object.create(PDFNet.Destroyable.prototype); 62PDFNet.PDFDocInfo=function(id,caller){this.name="PDFDocInfo";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFDocViewPrefs=function(id,caller){this.name="PDFDocViewPrefs";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFDraw=function(id,caller){this.name="PDFDraw";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PDFDraw.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFRasterizer=function(id,caller){this.name="PDFRasterizer";checkConstructorCaller(id, 63caller,this.name);this.id=id};PDFNet.PDFRasterizer.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFTronCustomSecurityHandler=function(id,caller){this.name="PDFTronCustomSecurityHandler";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Page=function(id,caller){this.name="Page";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PageLabel=function(mp_obj,m_first_page,m_last_page){this.name="PageLabel";if(mp_obj&&"undefined"===typeof m_first_page)copyFunc(mp_obj, 64this);else return"undefined"===typeof mp_obj&&(mp_obj="0"),"undefined"===typeof m_first_page&&(m_first_page=0),"undefined"===typeof m_last_page&&(m_last_page=0),new PDFNet.PageLabel({mp_obj:mp_obj,m_first_page:m_first_page,m_last_page:m_last_page})};PDFNet.PageSet=function(id,caller){this.name="PageSet";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PageSet.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Paragraph=function(id,caller){this.name="Paragraph";checkConstructorCaller(id, 65caller,this.name);this.id=id};PDFNet.PatternColor=function(id,caller){this.name="PatternColor";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PatternColor.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PolyLineAnnot=function(id,caller){this.name="PolyLineAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PolygonAnnot=function(id,caller){this.name="PolygonAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PopupAnnot=function(id,caller){this.name= 66"PopupAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PrinterMode=function(id,caller){this.name="PrinterMode";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.PushButtonWidget=function(id,caller){this.name="PushButtonWidget";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.RSASSAPSSParams=function(id,caller){this.name="RSASSAPSSParams";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.RadioButtonGroup=function(id,caller){this.name="RadioButtonGroup"; 67checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.RadioButtonGroup.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.RadioButtonWidget=function(id,caller){this.name="RadioButtonWidget";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Rect=function(x1,y1,x2,y2,mp_rect){this.name="Rect";if(x1&&"undefined"===typeof y1)copyFunc(x1,this);else return"undefined"===typeof x1&&(x1=0),"undefined"===typeof y1&&(y1=0),"undefined"===typeof x2&&(x2=0),"undefined"===typeof y2&& 68(y2=0),"undefined"===typeof mp_rect&&(mp_rect="0"),new PDFNet.Rect({x1:x1,y1:y1,x2:x2,y2:y2,mp_rect:mp_rect})};PDFNet.Redaction=function(id,caller){this.name="Redaction";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.RedactionAnnot=function(id,caller){this.name="RedactionAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Redactor=function(id,caller){this.name="Redactor";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Reflow=function(id,caller){this.name= 69"Reflow";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Reflow.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ResultSnapshot=function(id,caller){this.name="ResultSnapshot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ResultSnapshot.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.RoleMap=function(id,caller){this.name="RoleMap";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.RubberStampAnnot=function(id,caller){this.name="RubberStampAnnot"; 70checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.SDFDoc=function(id,caller){this.name="SDFDoc";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.SElement=function(obj,k){this.name="SElement";if(obj&&"undefined"===typeof k)copyFunc(obj,this);else return"undefined"===typeof obj&&(obj="0"),"undefined"===typeof k&&(k="0"),new PDFNet.SElement({obj:obj,k:k})};PDFNet.STree=function(id,caller){this.name="STree";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ScreenAnnot= 71function(id,caller){this.name="ScreenAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.SecurityHandler=function(id,caller){this.name="SecurityHandler";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.SecurityHandler.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Shading=function(id,caller){this.name="Shading";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Shading.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ShapedText= 72function(id,caller){this.name="ShapedText";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ShapedText.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.SignatureHandler=function(id,caller){this.name="SignatureHandler";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.SignatureWidget=function(id,caller){this.name="SignatureWidget";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.SoundAnnot=function(id,caller){this.name="SoundAnnot";checkConstructorCaller(id, 73caller,this.name);this.id=id};PDFNet.SquareAnnot=function(id,caller){this.name="SquareAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.SquigglyAnnot=function(id,caller){this.name="SquigglyAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Stamper=function(id,caller){this.name="Stamper";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Stamper.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.StrikeOutAnnot=function(id,caller){this.name= 74"StrikeOutAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.Table=function(id,caller){this.name="Table";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TableCell=function(id,caller){this.name="TableCell";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TableRow=function(id,caller){this.name="TableRow";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TextAnnot=function(id,caller){this.name="TextAnnot";checkConstructorCaller(id,caller,this.name); 75this.id=id};PDFNet.TextExtractor=function(id,caller){this.name="TextExtractor";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TextExtractor.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TextExtractorLine=function(line,uni,num,cur_num,m_direction,mp_bld){this.name="TextExtractorLine";if(line&&"undefined"===typeof uni)copyFunc(line,this);else return"undefined"===typeof line&&(line="0"),"undefined"===typeof uni&&(uni="0"),"undefined"===typeof num&&(num=0),"undefined"=== 76typeof cur_num&&(cur_num=0),"undefined"===typeof m_direction&&(m_direction=0),"undefined"===typeof mp_bld&&(mp_bld="0"),new PDFNet.TextExtractorLine({line:line,uni:uni,num:num,cur_num:cur_num,m_direction:m_direction,mp_bld:mp_bld})};PDFNet.TextExtractorStyle=function(mp_imp){this.name="TextExtractorStyle";if("object"===_typeof(mp_imp))copyFunc(mp_imp,this);else if("undefined"!==typeof mp_imp)return new PDFNet.TextExtractorStyle({mp_imp:mp_imp})};PDFNet.TextExtractorWord=function(line,word,uni,num, 77cur_num,mp_bld){this.name="TextExtractorWord";if(line&&"undefined"===typeof word)copyFunc(line,this);else return"undefined"===typeof line&&(line="0"),"undefined"===typeof word&&(word="0"),"undefined"===typeof uni&&(uni="0"),"undefined"===typeof num&&(num=0),"undefined"===typeof cur_num&&(cur_num=0),"undefined"===typeof mp_bld&&(mp_bld="0"),new PDFNet.TextExtractorWord({line:line,word:word,uni:uni,num:num,cur_num:cur_num,mp_bld:mp_bld})};PDFNet.TextMarkupAnnot=function(id,caller){this.name="TextMarkupAnnot"; 78checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TextRange=function(id,caller){this.name="TextRange";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TextRun=function(id,caller){this.name="TextRun";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TextSearch=function(id,caller){this.name="TextSearch";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TextSearch.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TextStyledElement=function(id, 79caller){this.name="TextStyledElement";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TextWidget=function(id,caller){this.name="TextWidget";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TimestampingConfiguration=function(id,caller){this.name="TimestampingConfiguration";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TimestampingConfiguration.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TimestampingResult=function(id,caller){this.name= 80"TimestampingResult";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TimestampingResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TrustVerificationResult=function(id,caller){this.name="TrustVerificationResult";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.TrustVerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.UnderlineAnnot=function(id,caller){this.name="UnderlineAnnot";checkConstructorCaller(id,caller,this.name);this.id= 81id};PDFNet.UndoManager=function(id,caller){this.name="UndoManager";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.UndoManager.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.VerificationOptions=function(id,caller){this.name="VerificationOptions";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.VerificationOptions.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.VerificationResult=function(id,caller){this.name="VerificationResult";checkConstructorCaller(id, 82caller,this.name);this.id=id};PDFNet.VerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ViewChangeCollection=function(id,caller){this.name="ViewChangeCollection";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.ViewChangeCollection.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.WatermarkAnnot=function(id,caller){this.name="WatermarkAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.WebFontDownloader=function(id,caller){this.name= 83"WebFontDownloader";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.WidgetAnnot=function(id,caller){this.name="WidgetAnnot";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.X501AttributeTypeAndValue=function(id,caller){this.name="X501AttributeTypeAndValue";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.X501AttributeTypeAndValue.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X501DistinguishedName=function(id,caller){this.name="X501DistinguishedName"; 84checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.X501DistinguishedName.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X509Certificate=function(id,caller){this.name="X509Certificate";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.X509Certificate.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X509Extension=function(id,caller){this.name="X509Extension";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.X509Extension.prototype=Object.create(PDFNet.Destroyable.prototype); 85PDFNet.QuadPoint=function(p1x,p1y,p2x,p2y,p3x,p3y,p4x,p4y){this.name="QuadPoint";if(p1x&&"undefined"===typeof p1y)copyFunc(p1x,this);else return"undefined"===typeof p1x&&(p1x=0),"undefined"===typeof p1y&&(p1y=0),"undefined"===typeof p2x&&(p2x=0),"undefined"===typeof p2y&&(p2y=0),"undefined"===typeof p3x&&(p3x=0),"undefined"===typeof p3y&&(p3y=0),"undefined"===typeof p4x&&(p4x=0),"undefined"===typeof p4y&&(p4y=0),new PDFNet.QuadPoint({p1x:p1x,p1y:p1y,p2x:p2x,p2y:p2y,p3x:p3x,p3y:p3y,p4x:p4x,p4y:p4y})}; 86PDFNet.Point=function(x,y){this.name="Point";if(x&&"undefined"===typeof y)copyFunc(x,this);else return"undefined"===typeof x&&(x=0),"undefined"===typeof y&&(y=0),new PDFNet.Point({x:x,y:y})};
86PDFNet.CharData=function(charData){if("undefined"===typeof charData)throw new TypeError("CharData requires an object to construct with.");this.name="CharData";copyFunc(charData,this)};PDFNet.Separation=function(separation){if("undefined"===typeof separation)throw new TypeError("Separation requires an object to construct with."); 87this.name="Separation";copyFunc(separation,this)};PDFNet.Optimizer.createImageSettings=function(){return Promise.resolve(new PDFNet.Optimizer.ImageSettings)};PDFNet.Optimizer.ImageSettings=function(){this.m_max_pixels=4294967295;this.m_max_dpi=225;this.m_resample_dpi=150;this.m_quality=5;this.m_compression_mode=PDFNet.Optimizer.ImageSettings.CompressionMode.e_retain;this.m_downsample_mode=PDFNet.Optimizer.ImageSettings.DownsampleMode.e_default;this.m_force_changes=this.m_force_recompression=!1};PDFNet.Optimizer.ImageSettings.prototype.setImageDPI= 88function(maximum,resampling){this.m_max_dpi=maximum;this.m_resample_dpi=resampling;return this};PDFNet.Optimizer.ImageSettings.prototype.setCompressionMode=function(mode){this.m_compression_mode=mode;return this};PDFNet.Optimizer.ImageSettings.prototype.setDownsampleMode=function(mode){this.m_downsample_mode=mode;return this};PDFNet.Optimizer.ImageSettings.prototype.setQuality=function(quality){this.m_quality=quality;return this};PDFNet.Optimizer.ImageSettings.prototype.forceRecompression=function(force){this.m_force_recompression= 89force;return this};PDFNet.Optimizer.ImageSettings.prototype.forceChanges=function(force){this.m_force_changes=force;return this};PDFNet.Optimizer.createMonoImageSettings=function(){return Promise.resolve(new PDFNet.Optimizer.MonoImageSettings)};PDFNet.Optimizer.MonoImageSettings=function(){this.m_max_pixels=4294967295;this.m_max_dpi=450;this.m_resample_dpi=300;this.m_jbig2_threshold=8.5;this.m_compression_mode=PDFNet.Optimizer.ImageSettings.CompressionMode.e_retain;this.m_downsample_mode=PDFNet.Optimizer.ImageSettings.DownsampleMode.e_default; 90this.m_force_changes=this.m_force_recompression=!1};PDFNet.Optimizer.MonoImageSettings.prototype.setImageDPI=function(maximum,resampling){this.m_max_dpi=maximum;this.m_resample_dpi=resampling;return this};PDFNet.Optimizer.MonoImageSettings.prototype.setCompressionMode=function(mode){this.m_compression_mode=mode;return this};PDFNet.Optimizer.MonoImageSettings.prototype.setDownsampleMode=function(mode){this.m_downsample_mode=mode;return this};PDFNet.Optimizer.MonoImageSettings.prototype.setJBIG2Threshold= 91function(jbig2_threshold){this.m_jbig2_threshold=quality;return this};PDFNet.Optimizer.MonoImageSettings.prototype.forceRecompression=function(force){this.m_force_recompression=force;return this};PDFNet.Optimizer.MonoImageSettings.prototype.forceChanges=function(force){this.m_force_changes=force;return this};PDFNet.Optimizer.createTextSettings=function(){return Promise.resolve(new PDFNet.Optimizer.TextSettings)};PDFNet.Optimizer.TextSettings=function(){this.m_embed_fonts=this.m_subset_fonts=!1};PDFNet.Optimizer.TextSettings.prototype.subsetFonts= 92function(subset){this.m_subset_fonts=subset;return this};PDFNet.Optimizer.TextSettings.prototype.embedFonts=function(embed){this.m_embed_fonts=embed;return this};PDFNet.Optimizer.createOptimizerSettings=function(){return Promise.resolve(new PDFNet.Optimizer.OptimizerSettings)};PDFNet.Optimizer.OptimizerSettings=function(){this.color_image_settings=new PDFNet.Optimizer.ImageSettings;this.grayscale_image_settings=new PDFNet.Optimizer.ImageSettings;this.mono_image_settings=new PDFNet.Optimizer.MonoImageSettings; 93this.text_settings=new PDFNet.Optimizer.TextSettings;this.remove_custom=!0};PDFNet.Optimizer.OptimizerSettings.prototype.setColorImageSettings=function(settings){this.color_image_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.setGrayscaleImageSettings=function(settings){this.grayscale_image_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.setMonoImageSettings=function(settings){this.mono_image_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.setTextSettings= 94function(settings){this.text_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.removeCustomEntries=function(should_remove){this.remove_custom=should_remove;return this};PDFNet.Optimizer.ImageSettings.CompressionMode={e_retain:0,e_flate:1,e_jpeg:2,e_jpeg2000:3,e_none:4};PDFNet.Optimizer.ImageSettings.DownsampleMode={e_off:0,e_default:1};PDFNet.Optimizer.MonoImageSettings.CompressionMode={e_jbig2:0,e_flate:1,e_none:2,e_ccitt:3};PDFNet.Optimizer.MonoImageSettings.DownsampleMode= 95{e_off:0,e_default:1};PDFNet.Convert.ConversionOptions=function(json){this.name="PDFNet.Convert.ConversionOptions";json&©Func(JSON.parse(json),this)};PDFNet.Convert.ConversionOptions.prototype.setFileExtension=function(value){this.FileExtension=value;return this};PDFNet.Convert.ConversionOptions.prototype.setEnableExternalMediaDownloads=function(value){this.EnableExternalMediaDownloads=value;return this};PDFNet.Convert.OverprintPreviewMode={e_op_off:0,e_op_on:1,e_op_pdfx_on:2};PDFNet.Convert.XPSOutputCommonOptions= 96function(){this.name="PDFNet.Convert.XPSOutputCommonOptions";this.mImpl={}};PDFNet.Convert.XPSOutputCommonOptions.prototype.setPrintMode=function(print_mode){this.mImpl.PRINTMODE=print_mode;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setDPI=function(dpi){this.mImpl.DPI=dpi;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setRenderPages=function(render){this.mImpl.RENDER=render;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setThickenLines=function(thicken){this.mImpl.THICKENLINES= 97thicken;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.generateURLLinks=function(generate){this.mImpl.U
97RL_LINKS=generate;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setOverprint=function(mode){switch(mode){case PDFNet.Convert.OverprintPreviewMode.e_op_off:this.mImpl.OVERPRINT_MODE="OFF";break;case PDFNet.Convert.OverprintPreviewMode.e_op_on:this.mImpl.OVERPRINT_MODE="ON";break;case PDFNet.Convert.OverprintPreviewMode.e_op_pdfx_on:this.mImpl.OVERPRINT_MODE="PDFX";break; 98default:console.log("unrecognized PDFNet.Convert.OverprintPreviewMode type: "+mode)}return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.Convert.createXPSOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.XPSOutputOptions)};PDFNet.Convert.XPSOutputOptions=function(){PDFNet.Convert.XPSOutputCommonOptions.call(this);this.name="PDFNet.Convert.XPSOutputOptions"};PDFNet.Convert.XPSOutputOptions.prototype=Object.create(PDFNet.Convert.XPSOutputCommonOptions.prototype); 99PDFNet.Convert.XPSOutputOptions.prototype.setOpenXps=function(openxps){this.mImpl.OPENXPS=openxps;return this};PDFNet.Convert.FlattenFlag={e_off:0,e_simple:1,e_fast:2,e_high_quality:3};PDFNet.Convert.FlattenThresholdFlag={e_very_strict:0,e_strict:1,e_default:2,e_keep_most:3,e_keep_all:4};PDFNet.Convert.AnnotationOutputFlag={e_internal_xfdf:0,e_external_xfdf:1,e_flatten:2};PDFNet.Convert.createXODOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.XODOutputOptions)};PDFNet.Convert.XODOutputOptions= 100function(){PDFNet.Convert.XPSOutputCommonOptions.call(this);this.name="PDFNet.Convert.XODOutputOptions"};PDFNet.Convert.XODOutputOptions.prototype=Object.create(PDFNet.Convert.XPSOutputCommonOptions.prototype);PDFNet.Convert.XODOutputOptions.prototype.setExtractUsingZorder=function(use_zorder){this.mImpl.USEZORDER=use_zorder;return this};PDFNet.Convert.XODOutputOptions.prototype.setOutputThumbnails=function(include_thumbs){this.mImpl.NOTHUMBS=include_thumbs;return this};PDFNet.Convert.XODOutputOptions.prototype.setThumbnailSize= 101function(regular_size,large_size){this.mImpl.THUMB_SIZE=regular_size;this.mImpl.LARGE_THUMB_SIZE=large_size?large_size:regular_size;return this};PDFNet.Convert.XODOutputOptions.prototype.setElementLimit=function(element_limit){this.mImpl.ELEMENTLIMIT=element_limit;return this};PDFNet.Convert.XODOutputOptions.prototype.setOpacityMaskWorkaround=function(opacity_render){this.mImpl.MASKRENDER=opacity_render;return this};PDFNet.Convert.XODOutputOptions.prototype.setMaximumImagePixels=function(max_pixels){this.mImpl.MAX_IMAGE_PIXELS= 102max_pixels;return this};PDFNet.Convert.XODOutputOptions.prototype.setFlattenContent=function(flatten){switch(flatten){case PDFNet.Convert.FlattenFlag.e_off:this.mImpl.FLATTEN_CONTENT="OFF";break;case PDFNet.Convert.FlattenFlag.e_simple:this.mImpl.FLATTEN_CONTENT="SIMPLE";break;case PDFNet.Convert.FlattenFlag.e_fast:this.mImpl.FLATTEN_CONTENT="FAST";break;case PDFNet.Convert.FlattenFlag.e_high_quality:this.mImpl.FLATTEN_CONTENT="HIGH_QUALITY";break;default:console.log("unrecognized PDFNet.Convert.FlattenFlag type: "+ 103flatten)}return this};PDFNet.Convert.XODOutputOptions.prototype.setFlattenThreshold=function(threshold){switch(threshold){case PDFNet.Convert.FlattenThresholdFlag.e_very_strict:this.mImpl.FLATTEN_THRESHOLD="VERY_STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_strict:this.mImpl.FLATTEN_THRESHOLD="STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_default:this.mImpl.FLATTEN_THRESHOLD="DEFAULT";break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_most:this.mImpl.FLATTEN_THRESHOLD="KEEP_MOST"; 104break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_all:this.mImpl.FLATTEN_THRESHOLD="KEEP_ALL";break;default:console.log("unrecognized PDFNet.Convert.FlattenThresholdFlag type: "+threshold)}return this};PDFNet.Convert.XODOutputOptions.prototype.setPreferJPG=function(prefer_jpg){this.mImpl.PREFER_JPEG=prefer_jpg;return this};PDFNet.Convert.XODOutputOptions.prototype.setJPGQuality=function(quality){this.mImpl.JPEG_QUALITY=quality;return this};PDFNet.Convert.XODOutputOptions.prototype.setSilverlightTextWorkaround= 105function(workaround){this.mImpl.REMOVE_ROTATED_TEXT=workaround;return this};PDFNet.Convert.XODOutputOptions.prototype.setAnnotationOutput=function(annot_output){switch(annot_output){case PDFNet.Convert.AnnotationOutputFlag.e_internal_xfdf:this.mImpl.ANNOTATION_OUTPUT="INTERNAL";break;case PDFNet.Convert.AnnotationOutputFlag.e_external_xfdf:this.mImpl.ANNOTATION_OUTPUT="EXTERNAL";break;case PDFNet.Convert.AnnotationOutputFlag.e_flatten:this.mImpl.ANNOTATION_OUTPUT="FLATTEN";break;default:console.log("unrecognized PDFNet.Convert.AnnotationOutputFlag type: "+ 106annot_output)}return this};PDFNet.Convert.XODOutputOptions.prototype.setExternalParts=function(generate){this.mImpl.EXTERNAL_PARTS=generate;return this};PDFNet.Convert.XODOutputOptions.prototype.setEncryptPassword=function(pass){this.mImpl.ENCRYPT_PASSWORD=pass;return this};PDFNet.Convert.XODOutputOptions.prototype.useSilverlightFlashCompatible=function(compatible){this.mImpl.COMPATIBLE_XOD=compatible;return this};PDFNet.Convert.createTiffOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.TiffOutputOptions)}; 107PDFNet.Convert.TiffOutputOptions=function(){this.name="PDFNet.Convert.TiffOutputOptions";this.mImpl={}};PDFNet.Convert.TiffOutputOptions.prototype.setBox=function(type){switch(type){case PDFNet.Page.Box.e_media:this.mImpl.BOX="media";break;case PDFNet.Page.Box.e_crop:this.mImpl.BOX="crop";break;case PDFNet.Page.Box.e_bleed:this.mImpl.BOX="bleed";break;case PDFNet.Page.Box.e_trim:this.mImpl.BOX="trim";break;case PDFNet.Page.Box.e_art:this.mImpl.BOX="art";break;default:console.log("unrecognized PDFNet.Page.Box type: "+ 108type)}return this};PDFNet.Convert.TiffOutputOptions.prototype.setRotate=function(rotation){switch(rotation){case PDFNet.Page.Box.e_0:this.mImpl.ROTATE="0";break;case PDFNet.Page.Box.e_90:this.mImpl.ROTATE="90";break;case PDFNet.Page.Box.e_180:this.mImpl.ROTATE="180";break;case PDFNet.Page.Box.e_270:this.mImpl.ROTATE="270";break;default:console.log("unrecognized PDFNet.Page.Rotate type: "+rotation)}return this};PDFNet.Convert.TiffOutputOptions.prototype.setClip=function(x1,y1,x2,y2){this.mImpl.CLIP_X1= 109x1;this.mImpl.CLIP_Y1=y1;this.mImpl.CLIP_X2=x2;this.mImpl.CLIP_Y2=y2;return this};PDFNet.Convert.TiffOutputOptions.prototype.setPages=function(page_desc){this.mImpl.PAGES=page_desc;return this};PDFNet.Convert.TiffOutputOptions.prototype.setOverprint=function(mode){switch(mode){case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_off:this.mImpl.OVERPRINT_MODE="OFF";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_on:this.mImpl.OVERPRINT_MODE="ON";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on:this.mImpl.OVERPRINT_MODE= 110"PDFX";break;default:console.log("unrecognized PDFNet.PDFRasterizer.OverprintPreviewMode type: "+mode)}return this};PDFNet.Convert.TiffOutputOptions.prototype.setCMYK=function(enable){this.mImpl.CMYK=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setDither=function(enable){this.mImpl.DITHER=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setGray=function(enable){this.mImpl.GRAY=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setMono=function(enable){this.mImpl.MONO= 111enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setAnnots=function(enable){this.mImpl.ANNOTS=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setSmooth=function(enable){this.mImpl.SMOOTH=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setPrintmode=function(enable){this.mImpl.PRINTMODE=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setTransparentPage=function(enable){this.mImpl.TRANSPARENT_PAGE=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setPalettized= 112function(enable){this.mImpl.PALETTIZED=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setDPI=function(dpi){this.mImpl.DPI=dpi;return this};PDFNet.Convert.TiffOutputOptions.prototype.setGamma=function(gamma){this.mImpl.GAMMA=gamma;return this};PDFNet.Convert.TiffOutputOptions.prototype.setHRes=function(hres){this.mImpl.HRES=hres;return this};PDFNet.Convert.TiffOutputOptions.prototype.setVRes=function(vres){this.mImpl.VRES=vres;return this};PDFNet.Convert.TiffOutputOptions.prototype.getJsonString= 113function(){return JSON.stringify(this.mImpl)};PDFNet.Convert.createHTMLOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.HTMLOutputOptions)};PDFNet.Convert.HTMLOutputOptions=function(){this.name="PDFNet.Convert.HTMLOutputOptions";this.mImpl={}};PDFNet.Convert.HTMLOutputOptions.prototype.setPreferJPG=function(prefer_jpg){this.mImpl.PREFER_JPEG=prefer_jpg;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setJPGQuality=function(quality){this.mImpl.JPEG_QUALITY=quality;return this}; 114PDFNet.Convert.HTMLOutputOptions.prototype.setDPI=function(dpi){this.mImpl.DPI=dpi;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setMaximumImagePixels=function(max_pixels){this.mImpl.MAX_IMAGE_PIXELS=max_pixels;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setScale=function(scale){this.mImpl.SCALE=scale;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setExternalLinks=function(enable){this.mImpl.EXTERNAL_LINKS=enable;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setInternalLinks= 115function(enable){this.mImpl.INTERNAL_LINKS=enable;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setSimplifyText=function(enable){this.mImpl.SIMPLIFY_TEXT=enable;return this};PDFNet.Convert.HTMLOutputOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.Convert.createEPUBOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.EPUBOutputOptions)};PDFNet.Convert.EPUBOutputOptions=function(){this.name="PDFNet.Convert.EPUBOutputOptions";this.mImpl={}}; 116PDFNet.Convert.EPUBOutputOptions.prototype.setExpanded=function(expanded){this.mImpl.EPUB_EXPANDED=expanded;return this};PDFNet.Convert.EPUBOutputOptions.prototype.setReuseCover=function(reuse){this.mImpl.EPUB_REUSE_COVER=reuse;return this};PDFNet.PDFDoc.createViewerOptimizedOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.ViewerOptimizedOptions)};PDFNet.PDFDoc.ViewerOptimizedOptions=function(){this.name="PDFNet.PDFDoc.ViewerOptimizedOptions";this.mImpl={}};
116PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setThumbnailRenderingThreshold= 117function(threshold){this.mImpl.COMPLEXITY_THRESHOLD=threshold;return this};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setMinimumInitialThumbnails=function(initial_thumbs){this.mImpl.MINIMUM_INITIAL_THUMBNAILS=initial_thumbs;return this};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setThumbnailSize=function(size){this.mImpl.THUMB_SIZE=size;return this};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setOverprint=function(mode){switch(mode){case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_off:this.mImpl.OVERPRINT_MODE= 118"OFF";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_on:this.mImpl.OVERPRINT_MODE="ON";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on:this.mImpl.OVERPRINT_MODE="PDFX";break;default:console.log("unrecognized PDFNet.PDFRasterizer.OverprintPreviewMode type: "+mode)}return this};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.Convert.createOfficeToPDFOptions=function(json){return Promise.resolve(new PDFNet.Convert.OfficeToPDFOptions(json))}; 119PDFNet.Convert.OfficeToPDFOptions=function(json){this.mImpl={};this.mHelpers=optionsHelpers();this.name="PDFNet.Convert.ConversionOptions";this.mImpl.name="PDFNet.Convert.ConversionOptions";PDFNet.Convert.ConversionOptions.call(this.mImpl,json)};PDFNet.Convert.OfficeToPDFOptions.StructureTagLevel={e_default:0,e_none:1};PDFNet.Convert.OfficeToPDFOptions.DisplayComments={e_off:0,e_annotations:1};PDFNet.Convert.OfficeToPDFOptions.DisplaySpeakerNotes={e_no_speaker_notes:0,e_speaker_notes_annotations:1}; 120PDFNet.Convert.OfficeToPDFOptions.prototype.getApplyPageBreaksToSheet=function(){return"ApplyPageBreaksToSheet"in this.mImpl?!!this.mImpl.ApplyPageBreaksToSheet:!1};PDFNet.Convert.OfficeToPDFOptions.prototype.setApplyPageBreaksToSheet=function(value){this.mHelpers.putBool(this.mImpl,"ApplyPageBreaksToSheet",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getDisplayChangeTracking=function(){return"DisplayChangeTracking"in this.mImpl?!!this.mImpl.DisplayChangeTracking:!0};PDFNet.Convert.OfficeToPDFOptions.prototype.setDisplayChangeTracking= 121function(value){this.mHelpers.putBool(this.mImpl,"DisplayChangeTracking",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getDisplayComments=function(){return"DisplayComments"in this.mImpl?this.mImpl.DisplayComments:0};PDFNet.Convert.OfficeToPDFOptions.prototype.setDisplayComments=function(value){this.mHelpers.putNumber(this.mImpl,"DisplayComments",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getDisplayHiddenText=function(){return"DisplayHiddenText"in this.mImpl? 122!!this.mImpl.DisplayHiddenText:!1};PDFNet.Convert.OfficeToPDFOptions.prototype.setDisplayHiddenText=function(value){this.mHelpers.putBool(this.mImpl,"DisplayHiddenText",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getDisplaySpeakerNotes=function(){return"DisplaySpeakerNotes"in this.mImpl?this.mImpl.DisplaySpeakerNotes:0};PDFNet.Convert.OfficeToPDFOptions.prototype.setDisplaySpeakerNotes=function(value){this.mHelpers.putNumber(this.mImpl,"DisplaySpeakerNotes",value);return this}; 123PDFNet.Convert.OfficeToPDFOptions.prototype.getExcelDefaultCellBorderWidth=function(){return"ExcelDefaultCellBorderWidth"in this.mImpl?this.mImpl.ExcelDefaultCellBorderWidth:0};PDFNet.Convert.OfficeToPDFOptions.prototype.setExcelDefaultCellBorderWidth=function(value){this.mHelpers.putNumber(this.mImpl,"ExcelDefaultCellBorderWidth",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getExcelMaxAllowedCellCount=function(){return"ExcelMaxAllowedCellCount"in this.mImpl?this.mImpl.ExcelMaxAllowedCellCount: 1240};PDFNet.Convert.OfficeToPDFOptions.prototype.setExcelMaxAllowedCellCount=function(value){this.mHelpers.putNumber(this.mImpl,"ExcelMaxAllowedCellCount",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getHideTotalNumberOfPages=function(){return"HideTotalNumberOfPages"in this.mImpl?!!this.mImpl.HideTotalNumberOfPages:!1};PDFNet.Convert.OfficeToPDFOptions.prototype.setHideTotalNumberOfPages=function(value){this.mHelpers.putBool(this.mImpl,"HideTotalNumberOfPages",value);return this}; 125PDFNet.Convert.OfficeToPDFOptions.prototype.getIncludeBookmarks=function(){return"IncludeBookmarks"in this.mImpl?!!this.mImpl.IncludeBookmarks:!0};PDFNet.Convert.OfficeToPDFOptions.prototype.setIncludeBookmarks=function(value){this.mHelpers.putBool(this.mImpl,"IncludeBookmarks",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getIncrementalSave=function(){return"IncrementalSave"in this.mImpl?!!this.mImpl.IncrementalSave:!1};PDFNet.Convert.OfficeToPDFOptions.prototype.setIncrementalSave= 126function(value){this.mHelpers.putBool(this.mImpl,"IncrementalSave",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getLocale=function(){return"Locale"in this.mImpl?this.mImpl.Locale:""};PDFNet.Convert.OfficeToPDFOptions.prototype.setLocale=function(value){this.mHelpers.putString(this.mImpl,"Locale",""+value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getPassword=function(){return"Password"in this.mImpl?this.mImpl.Password:""};PDFNet.Convert.OfficeToPDFOptions.prototype.setPassword= 127function(value){this.mHelpers.putString(this.mImpl,"Password",""+value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getStructureTagLevel=function(){return"structure_tag_level"in this.mImpl?this.mImpl.structure_tag_level:0};PDFNet.Convert.OfficeToPDFOptions.prototype.setStructureTagLevel=function(value){this.mHelpers.putNumber(this.mImpl,"structure_tag_level",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getTemplateLeftDelimiter=function(){return"TemplateLeftDelimiter"in 128this.mImpl?this.mImpl.TemplateLeftDelimiter:"{{"};PDFNet.Convert.OfficeToPDFOptions.prototype.setTemplateLeftDelimiter=function(value){this.mHelpers.putString(this.mImpl,"TemplateLeftDelimiter",""+value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getTemplateParamsJson=function(){return"TemplateParamsJson"in this.mImpl?this.mImpl.TemplateParamsJson:""};PDFNet.Convert.OfficeToPDFOptions.prototype.setTemplateParamsJson=function(value){this.mHelpers.putString(this.mImpl,"TemplateParamsJson", 129""+value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getTemplateRightDelimiter=function(){return"TemplateRightDelimiter"in this.mImpl?this.mImpl.TemplateRightDelimiter:"}}"};PDFNet.Convert.OfficeToPDFOptions.prototype.setTemplateRightDelimiter=function(value){this.mHelpers.putString(this.mImpl,"TemplateRightDelimiter",""+value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getTemplateStrictMode=function(){return"TemplateStrictMode"in this.mImpl?!!this.mImpl.TemplateStrictMode: 130!1};PDFNet.Convert.OfficeToPDFOptions.prototype.setTemplateStrictMode=function(value){this.mHelpers.putBool(this.mImpl,"TemplateStrictMode",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getUpdateTableOfContents=function(){return"UpdateTableOfContents"in this.mImpl?!!this.mImpl.UpdateTableOfContents:!1};PDFNet.Convert.OfficeToPDFOptions.prototype.setUpdateTableOfContents=function(value){this.mHelpers.putBool(this.mImpl,"UpdateTableOfContents",value);return this};PDFNet.Convert.OfficeToPDFOptions.prototype.getJsonString= 131function(){return JSON.stringify(this.mImpl)};PDFNet.PDFDoc.createDiffOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.DiffOptions)};PDFNet.PDFDoc.DiffOptions=function(){this.mImpl={};
131this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.DiffOptions.prototype.getAddGroupAnnots=function(){return"AddGroupAnnots"in this.mImpl?!!this.mImpl.AddGroupAnnots:!1};PDFNet.PDFDoc.DiffOptions.prototype.setAddGroupAnnots=function(value){this.mHelpers.putBool(this.mImpl,"AddGroupAnnots",value);return this};PDFNet.PDFDoc.DiffOptions.prototype.getBlendMode= 132function(){return"BlendMode"in this.mImpl?this.mImpl.BlendMode:5};PDFNet.PDFDoc.DiffOptions.prototype.setBlendMode=function(value){this.mHelpers.putNumber(this.mImpl,"BlendMode",value);return this};PDFNet.PDFDoc.DiffOptions.prototype.getColorA=function(){return"ColorA"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorA):this.mHelpers.jsColorFromNumber(4291559424)};PDFNet.PDFDoc.DiffOptions.prototype.setColorA=function(value){this.mHelpers.putNumber(this.mImpl,"ColorA",this.mHelpers.jsColorToNumber(value)); 133return this};PDFNet.PDFDoc.DiffOptions.prototype.getColorB=function(){return"ColorB"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorB):this.mHelpers.jsColorFromNumber(4278242508)};PDFNet.PDFDoc.DiffOptions.prototype.setColorB=function(value){this.mHelpers.putNumber(this.mImpl,"ColorB",this.mHelpers.jsColorToNumber(value));return this};PDFNet.PDFDoc.DiffOptions.prototype.getLuminosityCompression=function(){return"LuminosityCompression"in this.mImpl?this.mImpl.LuminosityCompression:10}; 134PDFNet.PDFDoc.DiffOptions.prototype.setLuminosityCompression=function(value){this.mHelpers.putNumber(this.mImpl,"LuminosityCompression",value);return this};PDFNet.PDFDoc.DiffOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.createDiffOptions=PDFNet.PDFDoc.createDiffOptions;PDFNet.DiffOptions=PDFNet.PDFDoc.DiffOptions;PDFNet.Page.createTaggingOptions=function(){return Promise.resolve(new PDFNet.Page.TaggingOptions)};PDFNet.Page.TaggingOptions=function(){this.name= 135"PDFNet.Page.TaggingOptions";this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.Page.TaggingOptions.prototype.getDescription=function(){return"Description"in this.mImpl?this.mImpl.Description:""};PDFNet.Page.TaggingOptions.prototype.setDescription=function(value){this.mHelpers.putString(this.mImpl,"Description",""+value);return this};PDFNet.Page.TaggingOptions.prototype.getInsertIndex=function(){return"InsertIndex"in this.mImpl?this.mImpl.InsertIndex:-1};PDFNet.Page.TaggingOptions.prototype.setInsertIndex= 136function(value){this.mHelpers.putNumber(this.mImpl,"InsertIndex",value);return this};PDFNet.Page.TaggingOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.PDFDoc.createRefreshOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.RefreshOptions)};PDFNet.PDFDoc.RefreshOptions=function(){this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.RefreshOptions.prototype.getDrawBackgroundOnly=function(){return"DrawBackgroundOnly"in this.mImpl?!!this.mImpl.DrawBackgroundOnly: 137!0};PDFNet.PDFDoc.RefreshOptions.prototype.setDrawBackgroundOnly=function(value){this.mHelpers.putBool(this.mImpl,"DrawBackgroundOnly",value);return this};PDFNet.PDFDoc.RefreshOptions.prototype.getRefreshExisting=function(){return"RefreshExisting"in this.mImpl?!!this.mImpl.RefreshExisting:!0};PDFNet.PDFDoc.RefreshOptions.prototype.setRefreshExisting=function(value){this.mHelpers.putBool(this.mImpl,"RefreshExisting",value);return this};PDFNet.PDFDoc.RefreshOptions.prototype.getUseNonStandardRotation= 138function(){return"UseNonStandardRotation"in this.mImpl?!!this.mImpl.UseNonStandardRotation:!1};PDFNet.PDFDoc.RefreshOptions.prototype.setUseNonStandardRotation=function(value){this.mHelpers.putBool(this.mImpl,"UseNonStandardRotation",value);return this};PDFNet.PDFDoc.RefreshOptions.prototype.getUseRoundedCorners=function(){return"UseRoundedCorners"in this.mImpl?!!this.mImpl.UseRoundedCorners:!1};PDFNet.PDFDoc.RefreshOptions.prototype.setUseRoundedCorners=function(value){this.mHelpers.putBool(this.mImpl, 139"UseRoundedCorners",value);return this};PDFNet.PDFDoc.RefreshOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.createRefreshOptions=PDFNet.PDFDoc.createRefreshOptions;PDFNet.RefreshOptions=PDFNet.PDFDoc.RefreshOptions;PDFNet.PDFDoc.createMergeXFDFOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.MergeXFDFOptions)};PDFNet.PDFDoc.MergeXFDFOptions=function(){this.name="PDFNet.PDFDoc.MergeXFDFOptions";this.mImpl={};
139this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.MergeXFDFOptions.prototype.getForce= 140function(){return"Force"in this.mImpl?!!this.mImpl.Force:!1};PDFNet.PDFDoc.MergeXFDFOptions.prototype.setForce=function(value){this.mHelpers.putBool(this.mImpl,"Force",value);return this};PDFNet.PDFDoc.MergeXFDFOptions.prototype.getUseNonStandardRotation=function(){return"UseNonStandardRotation"in this.mImpl?!!this.mImpl.UseNonStandardRotation:!1};PDFNet.PDFDoc.MergeXFDFOptions.prototype.setUseNonStandardRotation=function(value){this.mHelpers.putBool(this.mImpl,"UseNonStandardRotation",value);return this}; 141PDFNet.PDFDoc.MergeXFDFOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.PDFDoc.createSnapToOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.SnapToOptions)};PDFNet.PDFDoc.SnapToOptions=function(){this.name="PDFNet.PDFDoc.SnapToOptions";this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.SnapToOptions.prototype.setShapeLimit=function(value){this.mHelpers.putNumber(this.mImpl,"ShapeLimit",value);return this};PDFNet.PDFDoc.SnapToOptions.prototype.getJsonString= 142function(){return JSON.stringify(this.mImpl)};PDFNet.PDFDoc.createTextDiffOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.TextDiffOptions)};PDFNet.PDFDoc.TextDiffOptions=function(){this.name="PDFNet.PDFDoc.TextDiffOptions";this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.TextDiffOptions.prototype.getColorA=function(){return"ColorA"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorA):this.mHelpers.jsColorFromNumber(4293284423)};PDFNet.PDFDoc.TextDiffOptions.prototype.setColorA= 143function(color){this.mHelpers.putNumber(this.mImpl,"ColorA",this.mHelpers.jsColorToNumber(color));return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getOpacityA=function(){return"OpacityA"in this.mImpl?this.mImpl.OpacityA:.5};PDFNet.PDFDoc.TextDiffOptions.prototype.setOpacityA=function(opacity){this.mHelpers.putNumber(this.mImpl,"OpacityA",opacity);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getColorB=function(){return"ColorB"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorB): 144this.mHelpers.jsColorFromNumber(4284278322)};PDFNet.PDFDoc.TextDiffOptions.prototype.setColorB=function(color){this.mHelpers.putNumber(this.mImpl,"ColorB",this.mHelpers.jsColorToNumber(color));return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getCompareUsingZOrder=function(){return"CompareUsingZOrder"in this.mImpl?!!this.mImpl.CompareUsingZOrder:!1};PDFNet.PDFDoc.TextDiffOptions.prototype.setCompareUsingZOrder=function(value){this.mHelpers.putBool(this.mImpl,"CompareUsingZOrder",value);return this}; 145PDFNet.PDFDoc.TextDiffOptions.prototype.getOpacityB=function(){return"OpacityB"in this.mImpl?this.mImpl.OpacityB:.5};PDFNet.PDFDoc.TextDiffOptions.prototype.setOpacityB=function(opacity){this.mHelpers.putNumber(this.mImpl,"OpacityB",opacity);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.addZonesForPage=function(zones,regions,page_num){"undefined"===typeof this.mImpl[zones]&&(this.mImpl[zones]=[]);if(this.mImpl[zones].length<page_num)for(var i=this.mImpl[zones].length;i<page_num;i++)this.mImpl[zones].push([]); 146regions=regions.map(function(rect){return[rect.x1,rect.y1,rect.x2,rect.y2]});this.mImpl[zones][page_num-1]=regions};PDFNet.PDFDoc.TextDiffOptions.prototype.getExtraMoveColor=function(){return"ExtraMoveColor"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ExtraMoveColor):this.mHelpers.jsColorFromNumber(4294898256)};PDFNet.PDFDoc.TextDiffOptions.prototype.setExtraMoveColor=function(color){this.mHelpers.putNumber(this.mImpl,"ExtraMoveColor",this.mHelpers.jsColorToNumber(color));return this}; 147PDFNet.PDFDoc.TextDiffOptions.prototype.getExtraMoveOpacity=function(){return"ExtraMoveOpacity"in this.mImpl?this.mImpl.ExtraMoveOpacity:.8};PDFNet.PDFDoc.TextDiffOptions.prototype.setExtraMoveOpacity=function(opacity){this.mHelpers.putNumber(this.mImpl,"ExtraMoveOpacity",opacity);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getExtraMoveHighlight=function(){return"ExtraMoveHighlight"in this.mImpl?!!this.mImpl.ExtraMoveHighlight:!1};PDFNet.PDFDoc.TextDiffOptions.prototype.setExtraMoveHighlight= 148function(value){this.mHelpers.putBool(this.mImpl,"ExtraMoveHighlight",value);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getShowPlaceholders=function(){return"ShowPlaceholders"in this.mImpl?!!this.mImpl.ShowPlaceholders:!1};PDFNet.PDFDoc.TextDiffOptions.prototype.setShowPlaceholders=function(value){this.mHelpers.putBool(this.mImpl,"ShowPlaceholders",value);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getCompareStyles=function(){return"CompareStyles"in this.mImpl?!!this.mImpl.CompareStyles: 149!1};PDFNet.PDFDoc.TextDiffOptions.prototype.setCompareStyles=function(value){this.mHelpers.putBool(this.mImpl,"CompareStyles",value);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.addIgnoreZonesForPage=function(regions,page_num){this.addZonesForPage("IgnoreZones",regi
149ons,page_num);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.PDFACompliance.createPDFAOptions=function(level){return Promise.resolve(new PDFNet.PDFACompliance.PDFAOptions(level))}; 150PDFNet.PDFACompliance.PDFAOptions=function(level){this.name="PDFNet.PDFACompliance.PDFAOptions";this.mImpl={};this.mHelpers=optionsHelpers();this.setConformance(level)};PDFNet.PDFACompliance.PDFAOptions.prototype.getConformance=function(){return"Conformance"in this.mImpl?this.mImpl.Conformance:PDFNet.PDFACompliance.Conformance.e_Level1B};PDFNet.PDFACompliance.PDFAOptions.prototype.setConformance=function(value){this.mHelpers.putNumber(this.mImpl,"Conformance",value);return this};PDFNet.PDFACompliance.PDFAOptions.prototype.getDPI= 151function(){return"Dpi"in this.mImpl?0|this.mImpl.Dpi:300};PDFNet.PDFACompliance.PDFAOptions.prototype.setDPI=function(value){this.mHelpers.putNumber(this.mImpl,"Dpi",value);return this};PDFNet.PDFACompliance.PDFAOptions.prototype.getFirstStop=function(){return"FirstStop"in this.mImpl?!!this.mImpl.FirstStop:!1};PDFNet.PDFACompliance.PDFAOptions.prototype.setFirstStop=function(value){this.mHelpers.putBool(this.mImpl,"FirstStop",value);return this};PDFNet.PDFACompliance.PDFAOptions.prototype.getFlattenTransparency= 152function(){return"Flatten"in this.mImpl?!!this.mImpl.Flatten:!1};PDFNet.PDFACompliance.PDFAOptions.prototype.setFlattenTransparency=function(value){this.mHelpers.putBool(this.mImpl,"Flatten",value);return this};PDFNet.PDFACompliance.PDFAOptions.prototype.getMaxRefObjs=function(){return"MaxRefObjs"in this.mImpl?0|this.mImpl.MaxRefObjs:10};PDFNet.PDFACompliance.PDFAOptions.prototype.setMaxRefObjs=function(value){this.mHelpers.putNumber(this.mImpl,"MaxRefObjs",value);return this};PDFNet.PDFACompliance.PDFAOptions.prototype.getPassword= 153function(){return"Password"in this.mImpl?this.mImpl.Password:""};PDFNet.PDFACompliance.PDFAOptions.prototype.setPassword=function(value){this.mHelpers.putString(this.mImpl,"Password",""+value);return this};PDFNet.PDFACompliance.PDFAOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.FDFDoc.createXFDFExportOptions=function(){return Promise.resolve(new PDFNet.FDFDoc.XFDFExportOptions)};PDFNet.FDFDoc.XFDFExportOptions=function(){this.name="PDFNet.FDFDoc.XFDFExportOptions"; 154this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.FDFDoc.XFDFExportOptions.prototype.getWriteAnnotationAppearance=function(){return"WriteAnnotationAppearance"in this.mImpl?!!this.mImpl.WriteAnnotationAppearance:!1};PDFNet.FDFDoc.XFDFExportOptions.prototype.setWriteAnnotationAppearance=function(value){this.mHelpers.putBool(this.mImpl,"WriteAnnotationAppearance",value);return this};PDFNet.FDFDoc.XFDFExportOptions.prototype.getWriteImagedata=function(){return"WriteImagedata"in this.mImpl?!!this.mImpl.WriteImagedata: 155!0};PDFNet.FDFDoc.XFDFExportOptions.prototype.setWriteImagedata=function(value){this.mHelpers.putBool(this.mImpl,"WriteImagedata",value);return this};PDFNet.FDFDoc.XFDFExportOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.MarkupAnnot.prototype=new PDFNet.Annot("0");PDFNet.TextMarkupAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.CaretAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.LineAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.CircleAnnot.prototype= 156new PDFNet.MarkupAnnot("0");PDFNet.FileAttachmentAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.FreeTextAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.HighlightAnnot.prototype=new PDFNet.TextMarkupAnnot("0");PDFNet.InkAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.LinkAnnot.prototype=new PDFNet.Annot("0");PDFNet.MovieAnnot.prototype=new PDFNet.Annot("0");PDFNet.PolyLineAnnot.prototype=new PDFNet.LineAnnot("0");PDFNet.PolygonAnnot.prototype=new PDFNet.PolyLineAnnot("0");PDFNet.PopupAnnot.prototype= 157new PDFNet.Annot("0");PDFNet.RedactionAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.RubberStampAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.ScreenAnnot.prototype=new PDFNet.Annot("0");PDFNet.SoundAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.SquareAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.SquigglyAnnot.prototype=new PDFNet.TextMarkupAnnot("0");PDFNet.StrikeOutAnnot.prototype=new PDFNet.TextMarkupAnnot("0");PDFNet.TextAnnot.prototype=new PDFNet.MarkupAnnot("0");PDFNet.UnderlineAnnot.prototype= 158new PDFNet.TextMarkupAnnot("0");PDFNet.WatermarkAnnot.prototype=new PDFNet.Annot("0");PDFNet.WidgetAnnot.prototype=new PDFNet.Annot("0");PDFNet.SignatureWidget.prototype=new PDFNet.WidgetAnnot("0");PDFNet.ComboBoxWidget.prototype=new PDFNet.WidgetAnnot("0");PDFNet.ListBoxWidget.prototype=new PDFNet.WidgetAnnot("0");PDFNet.TextWidget.prototype=new PDFNet.WidgetAnnot("0");PDFNet.CheckBoxWidget.prototype=new PDFNet.WidgetAnnot("0");PDFNet.RadioButtonWidget.prototype=new PDFNet.WidgetAnnot("0");
158PDFNet.PushButtonWidget.prototype= 159new PDFNet.WidgetAnnot("0");PDFNet.ContentNode.prototype=new PDFNet.ContentElement("0");PDFNet.Paragraph.prototype=new PDFNet.ContentNode("0");PDFNet.TextRun.prototype=new PDFNet.ContentElement("0");PDFNet.TextStyledElement.prototype=new PDFNet.ContentElement("0");PDFNet.Table.prototype=new PDFNet.ContentNode("0");PDFNet.TableRow.prototype=new PDFNet.ContentNode("0");PDFNet.TableCell.prototype=new PDFNet.ContentNode("0");PDFNet.RSASSAPSSParams.prototype=new PDFNet.AlgorithmParams("0");PDFNet.PrinterMode.PaperSize= 160{e_custom:0,e_letter:1,e_letter_small:2,e_tabloid:3,e_ledger:4,e_legal:5,e_statement:6,e_executive:7,e_a3:8,e_a4:9,e_a4_mall:10,e_a5:11,e_b4_jis:12,e_b5_jis:13,e_folio:14,e_quarto:15,e_10x14:16,e_11x17:17,e_note:18,e_envelope_9:19,e_envelope_10:20,e_envelope_11:21,e_envelope_12:22,e_envelope_14:23,e_c_size_sheet:24,e_d_size_sheet:25,e_e_size_sheet:26,e_envelope_dl:27,e_envelope_c5:28,e_envelope_c3:29,e_envelope_c4:30,e_envelope_c6:31,e_envelope_c65:32,e_envelope_b4:33,e_envelope_b5:34,e_envelope_b6:35, 161e_envelope_italy:36,e_envelope_monarch:37,e_6_3_quarters_envelope:38,e_us_std_fanfold:39,e_german_std_fanfold:40,e_german_legal_fanfold:41,e_b4_iso:42,e_japanese_postcard:43,e_9x11:44,e_10x11:45,e_15x11:46,e_envelope_invite:47,e_reserved_48:48,e_reserved_49:49,e_letter_extra:50,e_legal_extra:51,e_tabloid_extra:52,e_a4_extra:53,e_letter_transverse:54,e_a4_transverse:55,e_letter_extra_transverse:56,e_supera_supera_a4:57,e_Superb_Superb_a3:58,e_letter_plus:59,e_a4_plus:60,e_a5_transverse:61,e_b5_jis_transverse:62, 162e_a3_extra:63,e_a5_extra:64,e_b5_iso_extra:65,e_a2:66,e_a3_transverse:67,e_a3_extra_transverse:68,e_japanese_double_postcard:69,e_a6:70,e_japanese_envelope_kaku_2:71,e_japanese_envelope_kaku_3:72,e_japanese_envelope_chou_3:73,e_japanese_envelope_chou_4:74,e_letter_rotated:75,e_a3_rotated:76,e_a4_rotated:77,e_a5_rotated:78,e_b4_jis_rotated:79,e_b5_jis_rotated:80,e_japanese_postcard_rotated:81,e_double_japanese_postcard_rotated:82,e_a6_rotated:83,e_japanese_envelope_kaku_2_rotated:84,e_japanese_envelope_kaku_3_rotated:85, 163e_japanese_envelope_chou_3_rotated:86,e_japanese_envelope_chou_4_rotated:87,e_b6_jis:88,e_b6_jis_rotated:89,e_12x11:90,e_japanese_envelope_you_4:91,e_japanese_envelope_you_4_rotated:92,e_PrinterMode_prc_16k:93,e_prc_32k:94,e_prc_32k_big:95,e_prc_envelop_1:96,e_prc_envelop_2:97,e_prc_envelop_3:98,e_prc_envelop_4:99,e_prc_envelop_5:100,e_prc_envelop_6:101,e_prc_envelop_7:102,e_prc_envelop_8:103,e_prc_envelop_9:104,e_prc_envelop_10:105,e_prc_16k_rotated:106,e_prc_32k_rotated:107,e_prc_32k_big__rotated:108, 164e_prc_envelop_1_rotated:109,e_prc_envelop_2_rotated:110,e_prc_envelop_3_rotated:111,e_prc_envelop_4_rotated:112,e_prc_envelop_5_rotated:113,e_prc_envelop_6_rotated:114,e_prc_envelop_7_rotated:115,e_prc_envelop_8_rotated:116,e_prc_envelop_9_rotated:117,e_prc_envelop_10_rotated:118};PDFNet.Field.EventType={e_action_trigger_keystroke:13,e_action_trigger_format:14,e_action_trigger_validate:15,e_action_trigger_calculate:16};PDFNet.Field.Type={e_button:0,e_check:1,e_radio:2,e_text:3,e_choice:4,e_signature:5, 165e_null:6};PDFNet.Field.Flag={e_read_only:0,e_required:1,e_no_export:2,e_pushbutton_flag:3,e_radio_flag:4,e_toggle_to_off:5,e_radios_in_unison:6,e_multiline:7,e_password:8,e_file_select:9,e_no_spellcheck:10,e_no_scroll:11,e_comb:12,e_rich_text:13,e_combo:14,e_edit:15,e_sort:16,e_multiselect:17,e_commit_on_sel_change:18};PDFNet.Field.TextJustification={e_left_justified:0,e_centered:1,e_right_justified:2};PDFNet.Filter.StdFileOpenMode={e_read_mode:0,e_write_mode:1,e_append_mode:2};PDFNet.Filter.ReferencePos= 166{e_begin:0,e_end:2,e_cur:1};PDFNet.OCGContext.OCDrawMode={e_VisibleOC:0,e_AllOC:1,e_NoOC:2};PDFNet.OCMD.VisibilityPolicyType={e_AllOn:0,e_AnyOn:1,e_AnyOff:2,e_AllOff:3};PDFNet.PDFACompliance.Conformance={e_Level1A:1,e_Level1B:2,e_Level2A:3,e_Level2B:4,e_Level2U:5,e_Level3A:6,e_Level3B:7,e_Level3U:8,e_Level4:9,e_Level4E:10,e_Level4F:11};PDFNet.PDFACompliance.ErrorCode={e_PDFA0_1_0:10,e_PDFA0_1_1:11,e_PDFA0_1_2:12,e_PDFA0_1_3:13,e_PDFA0_1_4:14,e_PDFA0_1_5:15,e_PDFA1_2_1:121,e_PDFA1_2_2:122,e_PDFA1_3_1:131, 167e_PDFA1_3_2:132,e_PDFA1_3_3:133,e_PDFA1_3_4:134,e_PDFA1_4_1:141,e_PDFA1_4_2:142,e_PDFA1_6_1:161,e_PDFA1_7_1:171,e_PDFA1_7_2:172,e_PDFA1_7_3:173,e_PDFA1_7_4:174,e_PDFA1_8_1:181,e_PDFA1_8_2:182,e_PDFA1_8_3:183,e_PDFA1_8_4:184,e_PDFA1_8_5:185,e_PDFA1_8_6:186,e_PDFA1_10_1:1101,e_PDFA1_11_1:1111,e_PDFA1_11_2:1112,e_PDFA1_12_1:1121,e_PDFA1_12_2:1122,e_PDFA1_12_3:1123,e_PDFA1_12_4:1124,e_PDFA1_12_5:1125,e_PDFA1_12_6:1126,e_PDFA1_13_1:1131,e_PDFA2_2_1:221,e_PDFA2_3_2:232,e_PDFA2_3_3:233,e_PDFA2_3_3_1:2331, 168e_PDFA2_3_3_2:2332,e_PDFA2_3_4_1:2341,e_PDFA2_4_1:241,e_PDFA2_4_2:242,e_PDFA2_4_3:243,e_PDFA2_4_4:244,e_PDFA2_5_1:251,e_PDFA2_5_2:252,e_PDFA2_6_1:261,e_PDFA2_7_1:271,e_PDFA2_8_1:281,e_PDFA2_9_1:291,e_PDFA2_10_1:2101,e_PDFA3_2_1:321,e_PDFA3_3_1:331,e_PDFA3_3_2:332,e_PDFA3_3_3_1:3331,e_PDFA3_3_3_2:3332,e_PDFA3_4_1:341,e_PDFA3_5_1:351,e_PDFA3_5_2:352,e_PDFA3_5_3:353,e_PDFA3_5_4:354,e_PDFA3_5_5:355,e_PDFA3_5_6:356,e_PDFA3_6_1:361,e_PDFA3_7_1:371,e_PDFA3_7_2:372,e_PDFA3_7_3:373,e_PDFA4_1:41,e_PDFA4_2:42, 169e_PDFA4_3:43,e_PDFA4_4:44,e_PDFA4_5:45,e_PDFA4_6:46,e_PDFA5_2_1:521,e_PDFA5_2_2:522,e_PDFA5_2_3:523,e_PDFA5_2_4:524,e_PDFA5_2_5:525,e_PDFA5_2_6:526,e_PDFA5_2_7:527,e_PDFA5_2_8:528,e_PDFA5_2_9:529,e_PDFA5_2_10:5210,e_PDFA5_2_11:5211,e_PDFA5_3_1:531,e_PDFA5_3_2_1:5321,e_PDFA5_3_2_2:5322,e_PDFA5_3_2_3:5323,e_PDFA5_3_2_4:5324,e_PDFA5_3_2_5:5325,e_PDFA5_3_3_1:5331,e_PDFA5_3_3_2:5332,e_PDFA5_3_3_3:5333,e_PDFA5_3_3_4:5334,e_PDFA5_3_4_0:5340,e_PDFA5_3_4_1:5341,e_PDFA5_3_4_2:5342,e_PDFA5_3_4_3:5343,e_PDFA6_1_1:611, 170e_PDFA6_1_2:612,e_PDFA6_2_1:621,e_PDFA6_2_2:622,e_PDFA6_2_3:623,e_PDFA7_2_1:721,e_PDFA7_2_2:722,e_PDFA7_2_3:723,e_PDFA7_2_4:724,e_PDFA7_2_5:725,e_PDFA7_3_1:731,e_PDFA7_3_2:732,e_PDFA7_3_3:733,e_PDFA7_3_4:734,e_PDFA7_3_5:735,e_PDFA7_3_6:736,e_PDFA7_3_7:737,e_PDFA7_3_8:738,e_PDFA7_3_9:739,e_PDFA7_5_1:751,e_PDFA7_8_1:781,e_PDFA7_8_2:782,e_PDFA7_8_3:783,e_PDFA7_8_4:784,e_PDFA7_8_5:785,e_PDFA7_8_6:786,e_PDFA7_8_7:787,e_PDFA7_8_8:788,e_PDFA7_8_9:789,e_PDFA7_8_10:7810,e_PDFA7_8_11:
1707811,e_PDFA7_8_12:7812, 171e_PDFA7_8_13:7813,e_PDFA7_8_14:7814,e_PDFA7_8_15:7815,e_PDFA7_8_16:7816,e_PDFA7_8_17:7817,e_PDFA7_8_18:7818,e_PDFA7_8_19:7819,e_PDFA7_8_20:7820,e_PDFA7_8_21:7821,e_PDFA7_8_22:7822,e_PDFA7_8_23:7823,e_PDFA7_8_24:7824,e_PDFA7_8_25:7825,e_PDFA7_8_26:7826,e_PDFA7_8_27:7827,e_PDFA7_8_28:7828,e_PDFA7_8_29:7829,e_PDFA7_8_30:7830,e_PDFA7_8_31:7831,e_PDFA7_11_1:7111,e_PDFA7_11_2:7112,e_PDFA7_11_3:7113,e_PDFA7_11_4:7114,e_PDFA7_11_5:7115,e_PDFA9_1:91,e_PDFA9_2:92,e_PDFA9_3:93,e_PDFA9_4:94,e_PDFA3_8_1:381,e_PDFA8_2_2:822, 172e_PDFA8_3_3_1:8331,e_PDFA8_3_3_2:8332,e_PDFA8_3_4_1:8341,e_PDFA1_2_3:123,e_PDFA1_10_2:1102,e_PDFA1_10_3:1103,e_PDFA1_12_10:11210,e_PDFA1_13_5:1135,e_PDFA2_3_10:2310,e_PDFA2_4_2_10:24220,e_PDFA2_4_2_11:24221,e_PDFA2_4_2_12:24222,e_PDFA2_4_2_13:24223,e_PDFA2_5_10:2510,e_PDFA2_5_11:2511,e_PDFA2_5_12:2512,e_PDFA2_8_3_1:2831,e_PDFA2_8_3_2:2832,e_PDFA2_8_3_3:2833,e_PDFA2_8_3_4:2834,e_PDFA2_8_3_5:2835,e_PDFA2_10_20:21020,e_PDFA2_10_21:21021,e_PDFA11_0_0:11E3,e_PDFA6_2_11_8:62118,e_PDFA8_1:81,e_PDFA_3E1:1, 173e_PDFA_3E2:2,e_PDFA_3E3:3,e_PDFA_4_6_1_3_4:46134,e_PDFA_4_6_1_3_5:46135,e_PDFA_4_6_1_6_1_3:461613,e_PDFA_4_6_7_3_5:46735,e_PDFA_4_6_2_5_3:46253,e_PDFA_4_6_6_3_1:46631,e_PDFA_4_6_1_12_1:461121,e_PDFA_4_6_2_4_2_3:462423,e_PDFA_4_6_2_2_3:46223,e_PDFA_4_6_9_5:4695,e_PDFA_4_6_2_10_6_1:4621061,e_PDFA_4_6_2_10_6_4:4621064,e_PDFA_LAST:4621065};PDFNet.ContentItem.Type={e_MCR:0,e_MCID:1,e_OBJR:2,e_Unknown:3};PDFNet.Action.Type={e_GoTo:0,e_GoToR:1,e_GoToE:2,e_Launch:3,e_Thread:4,e_URI:5,e_Sound:6,e_Movie:7, 174e_Hide:8,e_Named:9,e_SubmitForm:10,e_ResetForm:11,e_ImportData:12,e_JavaScript:13,e_SetOCGState:14,e_Rendition:15,e_Trans:16,e_GoTo3DView:17,e_RichMediaExecute:18,e_Unknown:19};PDFNet.Action.FormActionFlag={e_exclude:0,e_include_no_value_fields:1,e_export_format:2,e_get_method:3,e_submit_coordinates:4,e_xfdf:5,e_include_append_saves:6,e_include_annotations:7,e_submit_pdf:8,e_canonical_format:9,e_excl_non_user_annots:10,e_excl_F_key:11,e_embed_form:13};PDFNet.Page.EventType={e_action_trigger_page_open:11, 175e_action_trigger_page_close:12};PDFNet.Page.Box={e_media:0,e_crop:1,e_bleed:2,e_trim:3,e_art:4,e_user_crop:5};PDFNet.Page.Rotate={e_0:0,e_90:1,e_180:2,e_270:3};PDFNet.Annot.EventType={e_action_trigger_activate:0,e_action_trigger_annot_enter:1,e_action_trigger_annot_exit:2,e_action_trigger_annot_down:3,e_action_trigger_annot_up:4,e_action_trigger_annot_focus:5,e_action_trigger_annot_blur:6,e_action_trigger_annot_page_open:7,e_action_trigger_annot_page_close:8,e_action_trigger_annot_page_visible:9, 176e_action_trigger_annot_page_invisible:10};PDFNet.Annot.Type={e_Text:0,e_Link:1,e_FreeText:2,e_Line:3,e_Square:4,e_Circle:5,e_Polygon:6,e_Polyline:7,e_Highlight:8,e_Underline:9,e_Squiggly:10,e_StrikeOut:11,e_Stamp:12,e_Caret:13,e_Ink:14,e_Popup:15,e_FileAttachment:16,e_Sound:17,e_Movie:18,e_Widget:19,e_Screen:20,e_PrinterMark:21,e_TrapNet:22,e_Watermark:23,e_3D:24,e_Redact:25,e_Projection:26,e_RichMedia:27,e_Unknown:28};PDFNet.Annot.Flag={e_invisible:0,e_hidden:1,e_print:2,e_no_zoom:3,e_no_rotate:4, 177e_no_view:5,e_annot_read_only:6,e_locked:7,e_toggle_no_view:8,e_locked_contents:9};PDFNet.AnnotBorderStyle.Style={e_solid:0,e_dashed:1,e_beveled:2,e_inset:3,e_underline:4};PDFNet.Annot.State={e_normal:0,e_rollover:1,e_down:2};PDFNet.LineAnnot.EndingStyle={e_Square:0,e_Circle:1,e_Diamond:2,e_OpenArrow:3,e_ClosedArrow:4,e_Butt:5,e_ROpenArrow:6,e_RClosedArrow:7,e_Slash:8,e_None:9,e_Unknown:10};PDFNet.LineAnnot.IntentType={e_LineArrow:0,e_LineDimension:1,e_null:2};PDFNet.LineAnnot.CapPos={e_Inline:0, 178e_Top:1};PDFNet.FileAttachmentAnnot.Icon={e_Graph:0,e_PushPin:1,e_Paperclip:2,e_Tag:3,e_Unknown:4};PDFNet.FreeTextAnnot.IntentName={e_FreeText:0,e_FreeTextCallout:1,e_FreeTextTypeWriter:2,e_Unknown:3};PDFNet.LinkAnnot.HighlightingMode={e_none:0,e_invert:1,e_outline:2,e_push:3};PDFNet.MarkupAnnot.BorderEffect={e_None:0,e_Cloudy:1};PDFNet.PolyLineAnnot.IntentType={e_PolygonCloud:0,e_PolyLineDimension:1,e_PolygonDimension:2,e_Unknown:3};PDFNet.RedactionAnnot.QuadForm={e_LeftJustified:0,e_Centered:1, 179e_RightJustified:2,e_None:3};PDFNet.RubberStampAnnot.Icon={e_Approved:0,e_Experimental:1,e_NotApproved:2,e_AsIs:3,e_Expired:4,e_NotForPublicRelease:5,e_Confidential:6,e_Final:7,e_Sold:8,e_Departmental:9,e_ForComment:10,e_TopSecret:11,e_ForPublicRelease:12,e_Draft:13,e_Unknown:14};PDFNet.ScreenAnnot.ScaleType={e_Anamorphic:0,e_Proportional:1};PDFNet.ScreenAnnot.ScaleCondition={e_Always:0,e_WhenBigger:1,e_WhenSmaller:2,e_Never:3};PDFNet.ScreenAnnot.IconCaptionRelation={e_NoIcon:0,e_NoCaption:1,e_CBelowI:2, 180e_CAboveI:3,e_CRightILeft:4,e_CLeftIRight:5,e_COverlayI:6};PDFNet.SoundAnnot.Icon={e_Speaker:0,e_Mic:1,e_Unknown:2};PDFNet.TextAnnot.Icon={e_Comment:0,e_Key:1,e_Help:2,e_NewParagraph:3,e_Paragraph:4,e_Insert:5,e_Note:6,e_Unknown:7};PDFNet.WidgetAnnot.HighlightingMode={e_none:0,e_invert:1,e_outline:2,e_push:3,e_toggle:4};PDFNet.WidgetAnnot.ScaleType={e_Anamorphic:0,e_Proportional:1};PDFNet.WidgetAnnot.IconCaptionRelation={e_NoIcon:0,e_NoCaption:1,e_CBelowI:2,e_CAboveI:3,e_CRightILeft:4,e_CLeftIRight:5, 181e_COverlayI:6};PDFNet.WidgetAnnot.ScaleCondition={e_Always:0,e_WhenBigger:1,e_WhenSmaller:2,e_Never:3};PDFNet.ColorSpace.Type={e_device_gray:0,e_device_rgb:1,e_device_cmyk:2,e_cal_gray:3,e_cal_rgb:4,e_lab:5,e_icc:6,e_indexed:7,e_pattern:8,e_separation:9,e_device_n:10,e_null:11};PDFNet.Convert.PrinterMode={e_auto:0,e_interop_only:1,e_printer_only:2,e_prefer_builtin_converter:3};PDFNet.Destination.FitType={e_XYZ:0,e_Fit:1,e_FitH:2,e_FitV:3,e_FitR:4,e_FitB:5,e_FitBH:6,e_FitBV:7};PDFNet.GState.Attribute= 182{e_transform:0,e_rendering_intent:1,e_stroke_cs:2,e_stroke_color:3,e_fill_cs:4,e_fill_color:5,e_line_width:6,e_line_cap:7,e_line_join:8,e_flatness:9,e_miter_limit:10,e_dash_pattern:11,e_char_spacing:12,e_word_spacing:13,e_horizontal_scale:14,e_leading:15,e_font:16,e_font_size:17,e_text_render_mode:18,e_text_rise:19,e_text_knockout:20,e_text_pos_offset:21,e_blend_mode:22,e_opacity_fill:23,e_opacity_stroke:24,e_alpha_is_shape:25,e_soft_mask:26,e_smoothnes:27,e_auto_
182stoke_adjust:28,e_stroke_overprint:29, 183e_fill_overprint:30,e_overprint_mode:31,e_transfer_funct:32,e_BG_funct:33,e_UCR_funct:34,e_halftone:35,e_null:36};PDFNet.GState.LineCap={e_butt_cap:0,e_round_cap:1,e_square_cap:2};PDFNet.GState.LineJoin={e_miter_join:0,e_round_join:1,e_bevel_join:2};PDFNet.GState.TextRenderingMode={e_fill_text:0,e_stroke_text:1,e_fill_stroke_text:2,e_invisible_text:3,e_fill_clip_text:4,e_stroke_clip_text:5,e_fill_stroke_clip_text:6,e_clip_text:7};PDFNet.GState.RenderingIntent={e_absolute_colorimetric:0,e_relative_colorimetric:1, 184e_saturation:2,e_perceptual:3};PDFNet.GState.BlendMode={e_bl_compatible:0,e_bl_normal:1,e_bl_multiply:2,e_bl_screen:3,e_bl_difference:4,e_bl_darken:5,e_bl_lighten:6,e_bl_color_dodge:7,e_bl_color_burn:8,e_bl_exclusion:9,e_bl_hard_light:10,e_bl_overlay:11,e_bl_soft_light:12,e_bl_luminosity:13,e_bl_hue:14,e_bl_saturation:15,e_bl_color:16};PDFNet.Element.Type={e_null:0,e_path:1,e_text_begin:2,e_text:3,e_text_new_line:4,e_text_end:5,e_image:6,e_inline_image:7,e_shading:8,e_form:9,e_group_begin:10,e_group_end:11, 185e_marked_content_begin:12,e_marked_content_end:13,e_marked_content_point:14};PDFNet.Element.PathSegmentType={e_moveto:1,e_lineto:2,e_cubicto:3,e_conicto:4,e_rect:5,e_closepath:6};
185PDFNet.ShapedText.ShapingStatus={e_FullShaping:0,e_PartialShaping:1,e_NoShaping:2};PDFNet.ShapedText.FailureReason={e_NoFailure:0,e_UnsupportedFontType:1,e_NotIndexEncoded:2,e_FontDataNotFound:3};PDFNet.ElementWriter.WriteMode={e_underlay:0,e_overlay:1,e_replacement:2};PDFNet.Flattener.Threshold={e_very_strict:0,e_strict:1, 186e_default:2,e_keep_most:3,e_keep_all:4};PDFNet.Flattener.Mode={e_simple:0,e_fast:1};PDFNet.Font.StandardType1Font={e_times_roman:0,e_times_bold:1,e_times_italic:2,e_times_bold_italic:3,e_helvetica:4,e_helvetica_bold:5,e_helvetica_oblique:6,e_helvetica_bold_oblique:7,e_courier:8,e_courier_bold:9,e_courier_oblique:10,e_courier_bold_oblique:11,e_symbol:12,e_zapf_dingbats:13,e_null:14};PDFNet.Font.Encoding={e_IdentityH:0,e_Indices:1};PDFNet.Font.Type={e_Type1:0,e_TrueType:1,e_MMType1:2,e_Type3:3,e_Type0:4, 187e_CIDType0:5,e_CIDType2:6};PDFNet.Function.Type={e_sampled:0,e_exponential:2,e_stitching:3,e_postscript:4};PDFNet.Image.InputFilter={e_none:0,e_jpeg:1,e_jp2:2,e_flate:3,e_g3:4,e_g4:5,e_ascii_hex:6};PDFNet.PageLabel.Style={e_decimal:0,e_roman_uppercase:1,e_roman_lowercase:2,e_alphabetic_uppercase:3,e_alphabetic_lowercase:4,e_none:5};PDFNet.PageSet.Filter={e_all:0,e_even:1,e_odd:2};PDFNet.PatternColor.Type={e_uncolored_tiling_pattern:0,e_colored_tiling_pattern:1,e_shading:2,e_null:3};PDFNet.PatternColor.TilingType= 188{e_constant_spacing:0,e_no_distortion:1,e_constant_spacing_fast_fill:2};PDFNet.GeometryCollection.SnappingMode={e_DefaultSnapMode:14,e_PointOnLine:1,e_LineMidpoint:2,e_LineIntersection:4,e_PathEndpoint:8};PDFNet.DigestAlgorithm.Type={e_SHA1:0,e_SHA256:1,e_SHA384:2,e_SHA512:3,e_RIPEMD160:4,e_unknown_digest_algorithm:5};PDFNet.ObjectIdentifier.Predefined={e_commonName:0,e_surname:1,e_countryName:2,e_localityName:3,e_stateOrProvinceName:4,e_streetAddress:5,e_organizationName:6,e_organizationalUnitName:7, 189e_SHA1:8,e_SHA256:9,e_SHA384:10,e_SHA512:11,e_RIPEMD160:12,e_RSA_encryption_PKCS1:13,e_RSASSA_PSS:14,e_MGF1:15};PDFNet.DigitalSignatureField.SubFilterType={e_adbe_x509_rsa_sha1:0,e_adbe_pkcs7_detached:1,e_adbe_pkcs7_sha1:2,e_ETSI_CAdES_detached:3,e_ETSI_RFC3161:4,e_unknown:5,e_absent:6};PDFNet.DigitalSignatureField.DocumentPermissions={e_no_changes_allowed:1,e_formfilling_signing_allowed:2,e_annotating_formfilling_signing_allowed:3,e_unrestricted:4};PDFNet.DigitalSignatureField.FieldPermissions={e_lock_all:0, 190e_include:1,e_exclude:2};PDFNet.PDFDoc.EventType={e_action_trigger_doc_will_close:17,e_action_trigger_doc_will_save:18,e_action_trigger_doc_did_save:19,e_action_trigger_doc_will_print:20,e_action_trigger_doc_did_print:21};PDFNet.PDFDoc.InsertFlag={e_none:0,e_insert_bookmark:1};PDFNet.PDFDoc.ExtractFlag={e_forms_only:0,e_annots_only:1,e_both:2};PDFNet.PDFDoc.SignaturesVerificationStatus={e_unsigned:0,e_failure:1,e_untrusted:2,e_unsupported:3,e_verified:4};PDFNet.PDFDocViewPrefs.PageMode={e_UseNone:0, 191e_UseThumbs:1,e_UseBookmarks:2,e_FullScreen:3,e_UseOC:4,e_UseAttachments:5};PDFNet.PDFDocViewPrefs.PageLayout={e_Default:0,e_SinglePage:1,e_OneColumn:2,e_TwoColumnLeft:3,e_TwoColumnRight:4,e_TwoPageLeft:5,e_TwoPageRight:6};PDFNet.PDFDocViewPrefs.ViewerPref={e_HideToolbar:0,e_HideMenubar:1,e_HideWindowUI:2,e_FitWindow:3,e_CenterWindow:4,e_DisplayDocTitle:5};PDFNet.PDFRasterizer.Type={e_BuiltIn:0,e_GDIPlus:1};PDFNet.PDFRasterizer.OverprintPreviewMode={e_op_off:0,e_op_on:1,e_op_pdfx_on:2};PDFNet.PDFRasterizer.ColorPostProcessMode= 192{e_postprocess_none:0,e_postprocess_invert:1,e_postprocess_gradient_map:2,e_postprocess_night_mode:3};PDFNet.PDFDraw.PixelFormat={e_rgba:0,e_bgra:1,e_rgb:2,e_bgr:3,e_gray:4,e_gray_alpha:5,e_cmyk:6};PDFNet.CMSType={e_lcms:0,e_icm:1,e_no_cms:2};PDFNet.CharacterOrdering={e_Identity:0,e_Japan1:1,e_Japan2:2,e_GB1:3,e_CNS1:4,e_Korea1:5};PDFNet.LogLevel={e_LogLevel_Off:-1,e_LogLevel_Fatal:5,e_LogLevel_Error:4,e_LogLevel_Warning:3,e_LogLevel_Info:2,e_LogLevel_Trace:1,e_LogLevel_Debug:0};PDFNet.ConnectionErrorHandlingMode= 193{e_continue:0,e_continue_unless_switching_to_demo:1,e_stop:2};PDFNet.Shading.Type={e_function_shading:0,e_axial_shading:1,e_radial_shading:2,e_free_gouraud_shading:3,e_lattice_gouraud_shading:4,e_coons_shading:5,e_tensor_shading:6,e_null:7};PDFNet.Stamper.SizeType={e_relative_scale:1,e_absolute_size:2,e_font_size:3};PDFNet.Stamper.TextAlignment={e_align_left:-1,e_align_center:0,e_al
193ign_right:1};PDFNet.Stamper.HorizontalAlignment={e_horizontal_left:-1,e_horizontal_center:0,e_horizontal_right:1};PDFNet.Stamper.VerticalAlignment= 194{e_vertical_bottom:-1,e_vertical_center:0,e_vertical_top:1};PDFNet.TextExtractor.ProcessingFlags={e_no_ligature_exp:1,e_no_dup_remove:2,e_punct_break:4,e_remove_hidden_text:8,e_no_invisible_text:16,e_no_watermarks:128,e_extract_using_zorder:256};PDFNet.TextExtractor.XMLOutputFlags={e_words_as_elements:1,e_output_bbox:2,e_output_style_info:4};PDFNet.TextSearch.ResultCode={e_done:0,e_page:1,e_found:2};PDFNet.TextSearch.Mode={e_reg_expression:1,e_case_sensitive:2,e_whole_word:4,e_search_up:8,e_page_stop:16, 195e_highlight:32,e_ambient_string:64};PDFNet.Obj.Type={e_null:0,e_bool:1,e_number:2,e_name:3,e_string:4,e_dict:5,e_array:6,e_stream:7};PDFNet.SDFDoc.SaveOptions={e_incremental:1,e_remove_unused:2,e_hex_strings:4,e_omit_xref:8,e_linearized:16,e_compatibility:32};PDFNet.SecurityHandler.Permission={e_owner:1,e_doc_open:2,e_doc_modify:3,e_print:4,e_print_high:5,e_extract_content:6,e_mod_annot:7,e_fill_forms:8,e_access_support:9,e_assemble_doc:10};PDFNet.SecurityHandler.AlgorithmType={e_RC4_40:1,e_RC4_128:2, 196e_AES:3,e_AES_256:4};PDFNet.VerificationOptions.SecurityLevel={e_compatibility_and_archiving:0,e_maximum:1};PDFNet.VerificationOptions.TimeMode={e_signing:0,e_timestamp:1,e_current:2};PDFNet.VerificationOptions.CertificateTrustFlag={e_signing_trust:1,e_certification_trust:2,e_dynamic_content:4,e_javascript:16,e_identity:32,e_trust_anchor:64,e_default_trust:97,e_complete_trust:119};PDFNet.VerificationResult.DocumentStatus={e_no_error:0,e_corrupt_file:1,e_unsigned:2,e_bad_byteranges:3,e_corrupt_cryptographic_contents:4}; 197PDFNet.VerificationResult.DigestStatus={e_digest_invalid:0,e_digest_verified:1,e_digest_verification_disabled:2,e_weak_digest_algorithm_but_digest_verifiable:3,e_no_digest_status:4,e_unsupported_encoding:5};PDFNet.VerificationResult.TrustStatus={e_trust_verified:0,e_untrusted:1,e_trust_verification_disabled:2,e_no_trust_status:3};PDFNet.VerificationResult.ModificationPermissionsStatus={e_invalidated_by_disallowed_changes:0,e_has_allowed_changes:1,e_unmodified:2,e_permissions_verification_disabled:3, 198e_no_permissions_status:4};PDFNet.DisallowedChange.Type={e_form_filled:0,e_digital_signature_signed:1,e_page_template_instantiated:2,e_annotation_created_or_updated_or_deleted:3,e_other:4,e_unknown:5};PDFNet.Paragraph.TextJustification={e_text_justification_invalid:0,e_text_justify_left:1,e_text_justify_right:2,e_text_justify_center:3};PDFNet.TableCell.AlignmentVertical={e_alignment_vert_invalid:0,e_alignment_top:1,e_alignment_center:2,e_alignment_bottom:3};PDFNet.TableCell.AlignmentHorizontal={e_alignment_horz_invalid:0, 199e_alignment_left:1,e_alignment_middle:2,e_alignment_right:3};PDFNet.List.NumberFormat={e_none:0,e_decimal:1,e_lower_roman:2,e_upper_roman:3,e_lower_letter:4,e_upper_letter:5,e_ordinal:6,e_ordinal_text:7,e_chinese_counting:8,e_chinese_counting_thousand:9,e_cardinal_text:10,e_decimal_zero:11};PDFNet.Iterator.prototype.hasNext=function(){apiFunctionCheck("Iterator.hasNext");return PDFNet.sendWithPromise("Iterator.hasNext",{itr:this.id})};PDFNet.Iterator.prototype.next=function(){apiFunctionCheck("Iterator.next"); 200return PDFNet.sendWithPromise("Iterator.next",{itr:this.id})};PDFNet.DictIterator.prototype.hasCurrent=function(){apiFunctionCheck("DictIterator.hasCurrent");return PDFNet.sendWithPromise("DictIterator.hasCurrent",{itr:this.id})};PDFNet.DictIterator.prototype.hasNext=function(){apiFunctionCheck("DictIterator.hasNext");return PDFNet.sendWithPromise("DictIterator.hasNext",{itr:this.id})};PDFNet.DictIterator.prototype.key=function(){apiFunctionCheck("DictIterator.key");return PDFNet.sendWithPromise("DictIterator.key", 201{itr:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.DictIterator.prototype.value=function(){apiFunctionCheck("DictIterator.value");return PDFNet.sendWithPromise("DictIterator.value",{itr:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.DictIterator.prototype.next=function(){apiFunctionCheck("DictIterator.next");
201return PDFNet.sendWithPromise("DictIterator.next",{itr:this.id})};PDFNet.Matrix2D.prototype.copy=function(){apiFunctionCheck("Matrix2D.copy", 202arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Matrix2D.copy",{m:this}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.prototype.set=function(a,b,c,d,h,v){apiFunctionCheck("Matrix2D.set",arguments.length,6,"(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction= 203"Matrix2D.set";return PDFNet.sendWithPromise("Matrix2D.set",{matrix:this,a:a,b:b,c:c,d:d,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.concat=function(a,b,c,d,h,v){apiFunctionCheck("Matrix2D.concat",arguments.length,6,"(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Matrix2D.concat"; 204return PDFNet.sendWithPromise("Matrix2D.concat",{matrix:this,a:a,b:b,c:c,d:d,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.equals=function(m2){apiFunctionCheck("Matrix2D.equals",arguments.length,1,"(PDFNet.Matrix2D)",[[m2,"Structure",PDFNet.Matrix2D,"Matrix2D"]],{checkThisYield:!0,functionName:this.yieldFunction},[[m2,0]]);return PDFNet.sendWithPromise("Matrix2D.equals",{m1:this,m2:m2})};PDFNet.Matrix2D.prototype.inverse=function(){apiFunctionCheck("Matrix2D.inverse", 205arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Matrix2D.inverse",{matrix:this}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.prototype.translate=function(h,v){apiFunctionCheck("Matrix2D.translate",arguments.length,2,"(number, number)",[[h,"number"],[v,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Matrix2D.translate";return PDFNet.sendWithPromise("Matrix2D.translate", 206{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.preTranslate=function(h,v){apiFunctionCheck("Matrix2D.preTranslate",arguments.length,2,"(number, number)",[[h,"number"],[v,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Matrix2D.preTranslate";return PDFNet.sendWithPromise("Matrix2D.preTranslate",{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.postTranslate= 207function(h,v){apiFunctionCheck("Matrix2D.postTranslate",arguments.length,2,"(number, number)",[[h,"number"],[v,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Matrix2D.postTranslate";return PDFNet.sendWithPromise("Matrix2D.postTranslate",{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.scale=function(h,v){apiFunctionCheck("Matrix2D.scale",arguments.length,2,"(number, number)",[[h,"number"], 208[v,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Matrix2D.scale";return PDFNet.sendWithPromise("Matrix2D.scale",{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.createZeroMatrix=function(){apiFunctionCheck("Matrix2D.createZeroMatrix");return PDFNet.sendWithPromise("matrix2DCreateZeroMatrix",{}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.createIdentityMatrix=function(){apiFunctionCheck("Matrix2D.createIdentityMatrix"); 209return PDFNet.sendWithPromise("matrix2DCreateIdentityMatrix",{}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.createRotationMatrix=function(angle){apiFunctionCheck("Matrix2D.createRotationMatrix",arguments.length,1,"(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("matrix2DCreateRotationMatrix",{angle:angle}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.prototype.multiply=function(m){apiFunctionCheck("Matrix2D.multiply",arguments.length,1,"(PDFNet.Matrix2D)", 210[[m,"Structure",PDFNet.Matrix2D,"Matrix2D"]],{checkThisYield:!0,functionName:this.yieldFunction},[[m,0]]);var me=this;this.yieldFunction="Matrix2D.multiply";
210return PDFNet.sendWithPromise("Matrix2D.multiply",{matrix:this,m:m}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.create=function(field_dict){apiFunctionCheck("Field.create",arguments.length,1,"(PDFNet.Obj)",[[field_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fieldCreate",{field_dict:field_dict.id}).then(function(id){return new PDFNet.Field(id)})}; 211PDFNet.Field.prototype.isValid=function(){apiFunctionCheck("Field.isValid",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.isValid",{field:this})};PDFNet.Field.prototype.getType=function(){apiFunctionCheck("Field.getType",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getType",{field:this})};PDFNet.Field.prototype.getValue=function(){apiFunctionCheck("Field.getValue", 212arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getValue",{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getValueAsString=function(){apiFunctionCheck("Field.getValueAsString",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getValueAsString",{field:this})};PDFNet.Field.prototype.getDefaultValueAsString=function(){apiFunctionCheck("Field.getDefaultValueAsString", 213arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getDefaultValueAsString",{field:this})};PDFNet.Field.prototype.setValueAsString=function(value){apiFunctionCheck("Field.setValueAsString",arguments.length,1,"(string)",[[value,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.setValueAsString";return PDFNet.sendWithPromise("Field.setValueAsString",{field:this,value:value}).then(function(id){me.yieldFunction= 214void 0;id.result=createDestroyableObj(PDFNet.ViewChangeCollection,id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.setValue=function(value){apiFunctionCheck("Field.setValue",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.setValue";return PDFNet.sendWithPromise("Field.setValue",{field:this,value:value.id}).then(function(id){me.yieldFunction=void 0;id.result=createDestroyableObj(PDFNet.ViewChangeCollection, 215id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.setValueAsBool=function(value){apiFunctionCheck("Field.setValueAsBool",arguments.length,1,"(boolean)",[[value,"boolean"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.setValueAsBool";return PDFNet.sendWithPromise("Field.setValueAsBool",{field:this,value:value}).then(function(id){me.yieldFunction=void 0;id.result=createDestroyableObj(PDFNet.ViewChangeCollection,id.result);copyFunc(id.field, 216me);return id.result})};PDFNet.Field.prototype.getTriggerAction=function(trigger){apiFunctionCheck("Field.getTriggerAction",arguments.length,1,"(number)",[[trigger,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getTriggerAction",{field:this,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getValueAsBool=function(){apiFunctionCheck("Field.getValueAsBool",arguments.length,0,"()",[],{checkThisYield:!0, 217functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getValueAsBool",{field:this})};PDFNet.Field.prototype.refreshAppearance=function(){apiFunctionCheck("Field.refreshAppearance",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.refreshAppearance";return PDFNet.sendWithPromise("Field.refreshAppearance",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.eraseAppearance= 218function(){apiFunctionCheck("Field.eraseAppearance",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.eraseAppearance";
218return PDFNet.sendWithPromise("Field.eraseAppearance",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.getDefaultValue=function(){apiFunctionCheck("Field.getDefaultValue",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getDefaultValue", 219{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getName=function(){apiFunctionCheck("Field.getName",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getName",{field:this})};PDFNet.Field.prototype.getPartialName=function(){apiFunctionCheck("Field.getPartialName",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getPartialName", 220{field:this})};PDFNet.Field.prototype.rename=function(field_name){apiFunctionCheck("Field.rename",arguments.length,1,"(string)",[[field_name,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.rename";return PDFNet.sendWithPromise("Field.rename",{field:this,field_name:field_name}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.isAnnot=function(){apiFunctionCheck("Field.isAnnot",arguments.length,0,"()",[],{checkThisYield:!0, 221functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.isAnnot",{field:this})};PDFNet.Field.prototype.useSignatureHandler=function(signature_handler_id){apiFunctionCheck("Field.useSignatureHandler",arguments.length,1,"(number)",[[signature_handler_id,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.useSignatureHandler";return PDFNet.sendWithPromise("Field.useSignatureHandler",{field:this,signature_handler_id:signature_handler_id}).then(function(id){me.yieldFunction= 222void 0;id.result=createPDFNetObj(PDFNet.Obj,id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.getFlag=function(flag){apiFunctionCheck("Field.getFlag",arguments.length,1,"(number)",[[flag,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getFlag",{field:this,flag:flag})};PDFNet.Field.prototype.setFlag=function(flag,value){apiFunctionCheck("Field.setFlag",arguments.length,2,"(number, boolean)",[[flag,"number"],[value,"boolean"]], 223{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.setFlag";return PDFNet.sendWithPromise("Field.setFlag",{field:this,flag:flag,value:value}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.getJustification=function(){apiFunctionCheck("Field.getJustification",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.getJustification";return PDFNet.sendWithPromise("Field.getJustification", 224{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.setJustification=function(j){apiFunctionCheck("Field.setJustification",arguments.length,1,"(number)",[[j,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.setJustification";return PDFNet.sendWithPromise("Field.setJustification",{field:this,j:j}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.setMaxLen= 225function(max_len){apiFunctionCheck("Field.setMaxLen",arguments.length,1,"(number)",[[max_len,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.setMaxLen";return PDFNet.sendWithPromise("Field.setMaxLen",{field:this,max_len:max_len}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.getMaxLen=function(){apiFunctionCheck("Field.getMaxLen",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction}); 226return PDFNet.sendWithPromise("Field.getMaxLen",{field:this})};PDFNet.Field.prototype.getDefaultAppearance=function(){apiFunctionCheck("Field.getDefaultAppearance",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Field.getDefaultAppearance";
226return PDFNet.sendWithPromise("Field.getDefaultAppearance",{field:this}).then(function(id){me.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.GState,id.result);copyFunc(id.field,me);return id.result})}; 227PDFNet.Field.prototype.getUpdateRect=function(){apiFunctionCheck("Field.getUpdateRect",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getUpdateRect",{field:this}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Field.prototype.flatten=function(page){apiFunctionCheck("Field.flatten",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction= 228"Field.flatten";return PDFNet.sendWithPromise("Field.flatten",{field:this,page:page.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.findInheritedAttribute=function(attrib){apiFunctionCheck("Field.findInheritedAttribute",arguments.length,1,"(string)",[[attrib,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.findInheritedAttribute",{field:this,attrib:attrib}).then(function(id){return createPDFNetObj(PDFNet.Obj, 229id)})};PDFNet.Field.prototype.getSDFObj=function(){apiFunctionCheck("Field.getSDFObj",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getSDFObj",{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getOptCount=function(){apiFunctionCheck("Field.getOptCount",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getOptCount",{field:this})}; 230PDFNet.Field.prototype.getOpt=function(index){apiFunctionCheck("Field.getOpt",arguments.length,1,"(number)",[[index,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.getOpt",{field:this,index:index})};PDFNet.Field.prototype.isLockedByDigitalSignature=function(){apiFunctionCheck("Field.isLockedByDigitalSignature",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Field.isLockedByDigitalSignature", 231{field:this})};PDFNet.FDFDoc.create=function(){apiFunctionCheck("FDFDoc.create");return PDFNet.sendWithPromise("fdfDocCreate",{}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.FDFDoc.createFromStream=function(stream){apiFunctionCheck("FDFDoc.createFromStream",arguments.length,1,"(PDFNet.Filter)",[[stream,"Object",PDFNet.Filter,"Filter"]]);0!=stream.id&&avoidCleanup(stream.id);return PDFNet.sendWithPromise("fdfDocCreateFromStream",{no_own_stream:stream.id}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc, 232id)})};PDFNet.FDFDoc.createFromMemoryBuffer=function(buf){apiFunctionCheck("FDFDoc.createFromMemoryBuffer",arguments.length,1,"(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("fdfDocCreateFromMemoryBuffer",{buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.FDFDoc.prototype.isModified=function(){apiFunctionCheck("FDFDoc.isModified");return PDFNet.sendWithPromise("FDFDoc.isModified", 233{doc:this.id})};PDFNet.FDFDoc.prototype.saveMemoryBuffer=function(){apiFunctionCheck("FDFDoc.saveMemoryBuffer");return PDFNet.sendWithPromise("FDFDoc.saveMemoryBuffer",{doc:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.FDFDoc.prototype.getTrailer=function(){apiFunctionCheck("FDFDoc.getTrailer");return PDFNet.sendWithPromise("FDFDoc.getTrailer",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.getRoot=function(){apiFunctionCheck("FDFDoc.getRoot"); 234return PDFNet.sendWithPromise("FDFDoc.getRoot",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.getFDF=function(){apiFunctionCheck("FDFDoc.getFDF");return PDFNet.sendWithPromise("FDFDoc.getFDF",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.getPDFFileName=function(){apiFunctionCheck("FDFDoc.getPDFFileName");
234return PDFNet.sendWithPromise("FDFDoc.getPDFFileName",{doc:this.id})};PDFNet.FDFDoc.prototype.setPDFFileName= 235function(filepath){apiFunctionCheck("FDFDoc.setPDFFileName",arguments.length,1,"(string)",[[filepath,"string"]]);return PDFNet.sendWithPromise("FDFDoc.setPDFFileName",{doc:this.id,filepath:filepath})};PDFNet.FDFDoc.prototype.getID=function(){apiFunctionCheck("FDFDoc.getID");return PDFNet.sendWithPromise("FDFDoc.getID",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.setID=function(id){apiFunctionCheck("FDFDoc.setID",arguments.length,1,"(PDFNet.Obj)", 236[[id,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("FDFDoc.setID",{doc:this.id,id:id.id})};PDFNet.FDFDoc.prototype.getFieldIteratorBegin=function(){apiFunctionCheck("FDFDoc.getFieldIteratorBegin");return PDFNet.sendWithPromise("FDFDoc.getFieldIteratorBegin",{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"FDFField")})};PDFNet.FDFDoc.prototype.getFieldIterator=function(field_name){apiFunctionCheck("FDFDoc.getFieldIterator",arguments.length,1,"(string)", 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= 238function(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, 239type,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");
239return PDFNet.sendWithPromise("FDFDoc.getSDFDoc",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc, 240id)})};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.saveAsXFDFWithOptions=function(filepath,opts){"undefined"===typeof opts&&(opts=null);apiFunctionCheck("FDFDoc.saveAsXFDFWithOptions",arguments.length,1,"(string, PDFNet.OptionBase)",[[filepath, 241"string"],[opts,"OptionBase"]],{checkThisYield:!1},[[opts,1]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("FDFDoc.saveAsXFDFWithOptions",{doc:this.id,filepath:filepath,opts:opts})};PDFNet.FDFDoc.prototype.saveAsXFDFAsString=function(){apiFunctionCheck("FDFDoc.saveAsXFDFAsString");return PDFNet.sendWithPromise("FDFDoc.saveAsXFDFAsString",{doc:this.id})};PDFNet.FDFDoc.prototype.saveAsXFDFAsStringWithOptions=function(opts){"undefined"===typeof opts&&(opts=null);apiFunctionCheck("FDFDoc.saveAsXFDFAsStringWithOptions", 242arguments.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",arguments.length,1,"(string, string)",[[command_file,"string"],[permitted_user,"string"]]);return PDFNet.sendWithPromise("FDFDoc.mergeAnnots", 243{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,"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)})}; 244PDFNet.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=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, 2451,"(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=function(){apiFunctionCheck("FDFField.getName",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="FDFField.getName"; 246return 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=this;this.yieldFunction="FDFField.getPartialName";return PDFNet.sendWithPromise("FDFField.getPartialName",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.field, 247me);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=function(attrib){apiFunctionCheck("FDFField.findAttribute",arguments.length,1,"(string)",[[attrib,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});
248return 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"]]);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, 249id)})};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,id)})};PDFNet.Filter.createImage2RGBFromElement=function(elem){apiFunctionCheck("Filter.createImage2RGBFromElement",arguments.length,1,"(PDFNet.Element)",[[elem, 250"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,"Obj"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBFromObj",{obj:obj.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGB= 251function(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,premultiply){apiFunctionCheck("Filter.createImage2RGBAFromElement",arguments.length,2,"(PDFNet.Element, boolean)",[[elem,"Object",PDFNet.Element,"Element"],[premultiply,"boolean"]]); 252return 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)",[[obj,"Object",PDFNet.Obj,"Obj"],[premultiply,"boolean"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBAFromObj",{obj:obj.id,premultiply:premultiply}).then(function(id){return createDestroyableObj(PDFNet.Filter, 253id)})};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,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)", 254[[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");return PDFNet.sendWithPromise("Filter.releaseAttachedFilter",{filter:this.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getAttachedFilter= 255function(){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",{filter:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getName=function(){apiFunctionCheck("Filter.getName");
255return PDFNet.sendWithPromise("Filter.getName", 256{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",{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", 257arguments.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})};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})}; 258PDFNet.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");return PDFNet.sendWithPromise("Filter.flush",{filter:this.id})};PDFNet.Filter.prototype.flushAll=function(){apiFunctionCheck("Filter.flushAll");return PDFNet.sendWithPromise("Filter.flushAll",{filter:this.id})}; 259PDFNet.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})};PDFNet.Filter.prototype.seek=function(offset,origin){apiFunctionCheck("Filter.seek",arguments.length,2,"(number, number)",[[offset,"number"],[origin,"number"]]);return PDFNet.sendWithPromise("Filter.seek", 260{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)",[[new_size,"number"]]);return PDFNet.sendWithPromise("Filter.truncate",{filter:this.id,new_size:new_size})};PDFNet.Filter.prototype.createInputIterator=function(){apiFunctionCheck("Filter.createInputIterator"); 261return 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})};PDFNet.Filter.prototype.memoryFilterGetBuffer=function(){apiFunctionCheck("Filter.memoryFilterGetBuffer");return PDFNet.sendWithPromise("Filter.memoryFilterGetBuffer",{filter:this.id})};PDFNet.Filter.prototype.memoryFilterSetAsInputFilter= 262function(){apiFunctionCheck("Filter.memoryFilterSetAsInputFilter");return PDFNet.sendWithPromise("Filter.memoryFilterSetAsInputFilter",{filter:this.id})};PDFNet.Filter.prototype.memoryFilterReset=function(){apiFunctionCheck("Filter.memoryFilterReset");return PDFNet.sendWithPromise("Filter.memoryFilterReset",{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", 263{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,"Filter"]]);return PDFNet.sendWithPromise("FilterReader.attachFilter",{reader:this.id,filter:filter.id})};PDFNet.FilterReader.prototype.getAttachedFilter=function(){apiFunctionCheck("FilterReader.getAttachedFilter");
263return PDFNet.sendWithPromise("FilterReader.getAttachedFilter", 264{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,"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})}; 265PDFNet.FilterReader.prototype.count=function(){apiFunctionCheck("FilterReader.count");return PDFNet.sendWithPromise("FilterReader.count",{reader:this.id})};PDFNet.FilterReader.prototype.flush=function(){apiFunctionCheck("FilterReader.flush");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= 266function(){apiFunctionCheck("FilterReader.get");return PDFNet.sendWithPromise("FilterReader.get",{reader:this.id})};PDFNet.FilterReader.prototype.peek=function(){apiFunctionCheck("FilterReader.peek");return PDFNet.sendWithPromise("FilterReader.peek",{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, 267id)})};PDFNet.FilterWriter.prototype.attachFilter=function(filter){apiFunctionCheck("FilterWriter.attachFilter",arguments.length,1,"(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,"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, 268id)})};PDFNet.FilterWriter.prototype.seek=function(offset,origin){apiFunctionCheck("FilterWriter.seek",arguments.length,2,"(number, number)",[[offset,"number"],[origin,"number"]]);
268return 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"); 269return PDFNet.sendWithPromise("FilterWriter.count",{writer:this.id})};PDFNet.FilterWriter.prototype.flush=function(){apiFunctionCheck("FilterWriter.flush");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, 2701,"(number)",[[ch,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUChar",{writer:this.id,ch:ch})};PDFNet.FilterWriter.prototype.writeInt16=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", 271{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeInt32=function(num){apiFunctionCheck("FilterWriter.writeInt32",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= 272function(num){apiFunctionCheck("FilterWriter.writeInt64",arguments.length,1,"(number)",[[num,"number"]]);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", 273arguments.length,1,"(string)",[[str,"string"]]);return PDFNet.sendWithPromise("FilterWriter.writeString",{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&& 274(eol=13);apiFunctionCheck("FilterWriter.writeLine",arguments.length,1,"(string, number)",[[line,"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, 275buf:bufArrayBuffer})};PDFNet.OCG.create=function(pdfdoc,name){apiFunctionCheck("OCG.create",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", 276{ocg_dict:ocg_dict.id}).then(function(id){return createPDFNetObj(PDFNet.OCG,id)})};PDFNet.OCG.prototype.copy=function(){apiFunctionCheck("OCG.copy");
276return 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"); 277return PDFNet.sendWithPromise("OCG.isValid",{ocg:this.id})};PDFNet.OCG.prototype.getName=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", 278{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCG.prototype.setIntent=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", 279arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("OCG.getUsage",{c:this.id,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", 280arguments.length,2,"(PDFNet.OCGContext, boolean)",[[ctx,"Object",PDFNet.OCGContext,"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, 281state){apiFunctionCheck("OCG.setInitialState",arguments.length,2,"(PDFNet.OCGConfig, boolean)",[[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= 282function(cfg,state){apiFunctionCheck("OCG.setLocked",arguments.length,2,"(PDFNet.OCGConfig, boolean)",[[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, 283id)})};PDFNet.OCGConfig.create=function(pdfdoc,default_config){apiFunctionCheck("OCGConfig.create",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, 284id)})};PDFNet.OCGConfig.prototype.getSDFObj=function(){apiFunctionCheck("OCGConfig.getSDFObj");
284return 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", 285arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setOrder",{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})}; 286PDFNet.OCGConfig.prototype.getCreator=function(){apiFunctionCheck("OCGConfig.getCreator");return PDFNet.sendWithPromise("OCGConfig.getCreator",{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", 287{c:this.id})};PDFNet.OCGConfig.prototype.setInitBaseState=function(value){"undefined"===typeof value&&(value="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, 288id)})};PDFNet.OCGConfig.prototype.setInitOnStates=function(value){apiFunctionCheck("OCGConfig.setInitOnStates",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)})}; 289PDFNet.OCGConfig.prototype.setInitOffStates=function(value){apiFunctionCheck("OCGConfig.setInitOffStates",arguments.length,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= 290function(value){apiFunctionCheck("OCGConfig.setIntent",arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"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", 291arguments.length,1,"(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setLockedOCGs",{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)", 292[[value,"Object",PDFNet.Obj,"Obj"]]);
292return PDFNet.sendWithPromise("OCGConfig.setRBGroups",{c:this.id,value:value.id})};PDFNet.OCGContext.createFromConfig=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"); 293return PDFNet.sendWithPromise("OCGContext.copy",{c:this.id}).then(function(id){return createDestroyableObj(PDFNet.OCGContext,id)})};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)", 294[[grp,"Object",PDFNet.OCG,"OCG"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCGContext.setState",{c:this.id,grp:grp.id,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, 2951,"(boolean)",[[draw_non_OC,"boolean"]]);return PDFNet.sendWithPromise("OCGContext.setNonOCDrawing",{c:this.id,draw_non_OC:draw_non_OC})};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", 296{c:this.id,oc_draw_mode:oc_draw_mode})};PDFNet.OCGContext.prototype.getOCMode=function(){apiFunctionCheck("OCGContext.getOCMode");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= 297function(pdfdoc,ocgs,vis_policy){apiFunctionCheck("OCMD.create",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Obj, number)",[[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, 298id)})};PDFNet.OCMD.prototype.getSDFObj=function(){apiFunctionCheck("OCMD.getSDFObj");return PDFNet.sendWithPromise("OCMD.getSDFObj",{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"); 299return PDFNet.sendWithPromise("OCMD.getVisibilityExpression",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,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", 300{ocmd:this.id,ctx:ctx.id})};PDFNet.OCMD.prototype.getVisibilityPolicy=function(){apiFunctionCheck("OCMD.getVisibilityPolicy");
300return 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= 301function(convert,file_path,in_options){"undefined"===typeof in_options&&(in_options=null);apiFunctionCheck("PDFACompliance.createFromFileWithOptions",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, 302id)})};PDFNet.PDFACompliance.createFromBufferWithOptions=function(convert,buf,in_options){"undefined"===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", 303{convert:convert,buf:bufArrayBuffer,in_options:in_options}).then(function(id){return createDestroyableObj(PDFNet.PDFACompliance,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", 304{pdfac:this.id,idx:idx})};PDFNet.PDFACompliance.prototype.getRefObjCount=function(id){apiFunctionCheck("PDFACompliance.getRefObjCount",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", 305{pdfac:this.id,id:id,err_idx:err_idx})};PDFNet.PDFACompliance.getPDFAErrorMessage=function(id){apiFunctionCheck("PDFACompliance.getPDFAErrorMessage",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", 306{doc:doc.id})};PDFNet.PDFACompliance.prototype.saveAsFromBuffer=function(linearized){"undefined"===typeof linearized&&(linearized=!1);apiFunctionCheck("PDFACompliance.saveAsFromBuffer",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", 307arguments.length,0,"(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("attrObjCreate",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.AttrObj,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", 308{obj:this.id})};PDFNet.AttrObj.prototype.getSDFObj=function(){apiFunctionCheck("AttrObj.getSDFObj");
308return PDFNet.sendWithPromise("AttrObj.getSDFObj",{obj:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,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, 309id)})};PDFNet.ClassMap.prototype.copy=function(){apiFunctionCheck("ClassMap.copy");return PDFNet.sendWithPromise("ClassMap.copy",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.ClassMap,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, 310id)})};PDFNet.ContentItem.prototype.copy=function(){apiFunctionCheck("ContentItem.copy",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});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", 311{item:this})};PDFNet.ContentItem.prototype.getParent=function(){apiFunctionCheck("ContentItem.getParent",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});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", 312arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="ContentItem.getPage";return PDFNet.sendWithPromise("ContentItem.getPage",{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}); 313return PDFNet.sendWithPromise("ContentItem.getSDFObj",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getMCID=function(){apiFunctionCheck("ContentItem.getMCID",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, 314functionName:this.yieldFunction});return PDFNet.sendWithPromise("ContentItem.getContainingStm",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getStmOwner=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= 315function(){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,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, 316id)})};PDFNet.RoleMap.prototype.copy=function(){apiFunctionCheck("RoleMap.copy");
316return PDFNet.sendWithPromise("RoleMap.copy",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.RoleMap,id)})};PDFNet.RoleMap.prototype.isValid=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", 317{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,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)})}; 318PDFNet.SElement.createFromPDFDoc=function(doc,struct_type){apiFunctionCheck("SElement.createFromPDFDoc",arguments.length,2,"(PDFNet.PDFDoc, string)",[[doc,"PDFDoc"],[struct_type,"string"]]);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, 319"SElement"],[insert_before,"number"]],{checkThisYield:!0,functionName:this.yieldFunction},[[kid,0]]);var me=this;this.yieldFunction="SElement.insert";kid.yieldFunction="SElement.insert";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&& 320(insert_before=-1);apiFunctionCheck("SElement.createContentItem",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Page, number)",[[doc,"PDFDoc"],[page,"Object",PDFNet.Page,"Page"],[insert_before,"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})}; 321PDFNet.SElement.prototype.isValid=function(){apiFunctionCheck("SElement.isValid",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.isValid",{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", 322arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getNumKids",{e:this})};PDFNet.SElement.prototype.isContentItem=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", 323arguments.length,1,"(number)",[[index,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("SElement.getAsContentItem",{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, 324index:index}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.prototype.getParent=function(){apiFunctionCheck("SElement.getParent",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
324return 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}); 325return PDFNet.sendWithPromise("SElement.getStructTreeRoot",{e:this}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.SElement.prototype.hasTitle=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}); 326return PDFNet.sendWithPromise("SElement.getTitle",{e:this})};PDFNet.SElement.prototype.getID=function(){apiFunctionCheck("SElement.getID",arguments.length,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}); 327return PDFNet.sendWithPromise("SElement.hasActualText",{e:this})};PDFNet.SElement.prototype.getActualText=function(){apiFunctionCheck("SElement.getActualText",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", 328{e:this})};PDFNet.SElement.prototype.getAlt=function(){apiFunctionCheck("SElement.getAlt",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});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, 329id)})};PDFNet.STree.create=function(struct_dict){apiFunctionCheck("STree.create",arguments.length,1,"(PDFNet.Obj)",[[struct_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("sTreeCreate",{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, 330id)})};PDFNet.STree.prototype.insert=function(kid,insert_before){apiFunctionCheck("STree.insert",arguments.length,2,"(PDFNet.SElement, number)",[[kid,"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"); 331return PDFNet.sendWithPromise("STree.copy",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.STree.prototype.isValid=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, 332"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("STree.getKid",{tree:this.id,index:index}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.STree.prototype.getRoleMap=function(){apiFunctionCheck("STree.getRoleMap");
332return 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, 333id)})};PDFNet.STree.prototype.getSDFObj=function(){apiFunctionCheck("STree.getSDFObj");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, 334id)})};PDFNet.Action.createGotoWithKey=function(key,dest){apiFunctionCheck("Action.createGotoWithKey",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)", 335[[file,"Object",PDFNet.FileSpec,"FileSpec"],[page_num,"number"]]);return PDFNet.sendWithPromise("actionCreateGotoRemote",{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", 336{file:file.id,page_num:page_num,new_window:new_window}).then(function(id){return createPDFNetObj(PDFNet.Action,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", 337arguments.length,2,"(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[uri,"string"]]);return PDFNet.sendWithPromise("actionCreateURIWithUString",{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, 338id)})};PDFNet.Action.createLaunch=function(sdfdoc,path){apiFunctionCheck("Action.createLaunch",arguments.length,2,"(PDFNet.SDFDoc, string)",[[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, 339"Array"]]);return PDFNet.sendWithPromise("actionCreateHideField",{sdfdoc:sdfdoc.id,field_names_list:field_names_list}).then(function(id){return createPDFNetObj(PDFNet.Action,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)})}; 340PDFNet.Action.createResetForm=function(sdfdoc){apiFunctionCheck("Action.createResetForm",arguments.length,1,"(PDFNet.SDFDoc)",[[sdfdoc,"SDFDoc"]]);
340return PDFNet.sendWithPromise("actionCreateResetForm",{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", 341{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"));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", 342{in_action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.prototype.compare=function(in_action){apiFunctionCheck("Action.compare",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= 343function(){apiFunctionCheck("Action.getXFDF");return PDFNet.sendWithPromise("Action.getXFDF",{action:this.id})};PDFNet.Action.prototype.getType=function(){apiFunctionCheck("Action.getType");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"); 344return PDFNet.sendWithPromise("Action.getNext",{action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Action.prototype.getSDFObj=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", 345{action:this.id,flag:flag})};PDFNet.Action.prototype.setFormActionFlag=function(flag,value){apiFunctionCheck("Action.setFormActionFlag",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= 346function(){apiFunctionCheck("Action.execute");return PDFNet.sendWithPromise("Action.execute",{action:this.id})};PDFNet.Action.prototype.executeKeyStrokeAction=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, 347id)})};PDFNet.KeyStrokeActionResult.prototype.isValid=function(){apiFunctionCheck("KeyStrokeActionResult.isValid");return PDFNet.sendWithPromise("KeyStrokeActionResult.isValid",{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", 348{action_ret:this.id}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeActionResult,id)})};PDFNet.KeyStrokeEventData.create=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"]]);
348return PDFNet.sendWithPromise("keyStrokeEventDataCreate",{field_name:field_name, 349current:current,change:change,selection_start:selection_start,selection_end:selection_end}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeEventData,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")); 350apiFunctionCheck("Page.create",arguments.length,0,"(PDFNet.Obj)",[[page_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pageCreate",{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", 351{page:this.id})};PDFNet.Page.prototype.getIndex=function(){apiFunctionCheck("Page.getIndex");return PDFNet.sendWithPromise("Page.getIndex",{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", 352arguments.length,1,"(number)",[[type,"number"]]);return PDFNet.sendWithPromise("Page.getBox",{page:this.id,type:type}).then(function(id){return new PDFNet.Rect(id)})};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"); 353return PDFNet.sendWithPromise("Page.getCropBox",{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.setCropBox=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", 354{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.setMediaBox=function(box){apiFunctionCheck("Page.setMediaBox",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)})}; 355PDFNet.Page.prototype.getRotation=function(){apiFunctionCheck("Page.getRotation");return PDFNet.sendWithPromise("Page.getRotation",{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"]]); 356return PDFNet.sendWithPromise("pageAddRotations",{r0:r0,r1:r1})};PDFNet.Page.subtractRotations=function(r0,r1){apiFunctionCheck("Page.subtractRotations",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"]]);
356return PDFNet.sendWithPromise("pageRotationToDegree",{r:r})};PDFNet.Page.degreeToRotation= 357function(r){apiFunctionCheck("Page.degreeToRotation",arguments.length,1,"(number)",[[r,"number"]]);return PDFNet.sendWithPromise("pageDegreeToRotation",{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"=== 358typeof box_type&&(box_type=PDFNet.Page.Box.e_crop);apiFunctionCheck("Page.getPageHeight",arguments.length,0,"(number)",[[box_type,"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", 359arguments.length,0,"(boolean, number, number)",[[flip_y,"boolean"],[box_type,"number"],[angle,"number"]]);return PDFNet.sendWithPromise("Page.getDefaultMatrix",{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= 360function(){apiFunctionCheck("Page.getNumAnnots");return PDFNet.sendWithPromise("Page.getNumAnnots",{page:this.id})};PDFNet.Page.prototype.getAnnot=function(index){apiFunctionCheck("Page.getAnnot",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)", 361[[pos,"number"],[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotInsert",{page:this.id,pos:pos,annot:annot.id})};PDFNet.Page.prototype.annotInsertWithTagging=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"]], 362{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,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= 363function(annot){apiFunctionCheck("Page.annotPushFront",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotPushFront",{page:this.id,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= 364function(index){apiFunctionCheck("Page.annotRemoveByIndex",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("Page.annotRemoveByIndex",{page:this.id,index:index})};PDFNet.Page.prototype.scale=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, 3651,"(PDFNet.Field)",[[field_to_flatten,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[field_to_flatten,0]]);field_to_flatten.yieldFunction="Page.flattenField";
365return PDFNet.sendWithPromise("Page.flattenField",{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})}; 366PDFNet.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",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", 367{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,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= 368function(){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",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, 369type,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,id)})};PDFNet.Annot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("Annot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d, 370"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,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", 371{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,id)})};PDFNet.Annot.prototype.getType=function(){apiFunctionCheck("Annot.getType");return PDFNet.sendWithPromise("Annot.getType",{annot:this.id})}; 372PDFNet.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=function(){apiFunctionCheck("Annot.getVisibleContentBox");return PDFNet.sendWithPromise("Annot.getVisibleContentBox",{annot:this.id}).then(function(id){return new PDFNet.Rect(id)})}; 373PDFNet.Annot.prototype.setRect=function(pos){apiFunctionCheck("Annot.setRect",arguments.length,1,"(PDFNet.Rect)",[[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,0]]);
373return PDFNet.sendWithPromise("Annot.setRect",{annot:this.id,pos:pos})};PDFNet.Annot.prototype.resize=function(newrect){apiFunctionCheck("Annot.resize",arguments.length,1,"(PDFNet.Rect)",[[newrect,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[newrect,0]]);return PDFNet.sendWithPromise("Annot.resize",{annot:this.id, 374newrect: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");return PDFNet.sendWithPromise("Annot.getContents",{annot:this.id})};PDFNet.Annot.prototype.getTriggerAction=function(trigger){apiFunctionCheck("Annot.getTriggerAction", 375arguments.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"]]);return PDFNet.sendWithPromise("Annot.getCustomData",{annot:this.id,key:key})};PDFNet.Annot.prototype.setCustomData=function(key,value){apiFunctionCheck("Annot.setCustomData", 376arguments.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",{annot:this.id,key:key})};PDFNet.Annot.prototype.getPage=function(){apiFunctionCheck("Annot.getPage");return PDFNet.sendWithPromise("Annot.getPage", 377{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");return PDFNet.sendWithPromise("Annot.getUniqueID",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj, 378id)})};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",{annot:this.id}).then(function(id){return new PDFNet.Date(id)})};PDFNet.Annot.prototype.setDate= 379function(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,flag:flag})};PDFNet.Annot.prototype.setFlag=function(flag,value){apiFunctionCheck("Annot.setFlag", 380arguments.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"],[b_width,"number"],[b_hr,"number"],[b_vr,"number"]]);return PDFNet.sendWithPromise("annotBorderStyleCreate", 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.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"],[b_dash,"Array"]]);
381return PDFNet.sendWithPromise("annotBorderStyleCreateWithDashPattern",{s:s,b_width:b_width, 382b_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=function(){apiFunctionCheck("AnnotBorderStyle.getStyle");return PDFNet.sendWithPromise("AnnotBorderStyle.getStyle", 383{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);"undefined"===typeof app_state&&(app_state=null);apiFunctionCheck("Annot.getAppearance",arguments.length, 3840,"(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);"undefined"===typeof app_state&&(app_state=null);apiFunctionCheck("Annot.setAppearance",arguments.length, 3851,"(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);"undefined"===typeof app_state&&(app_state=null);apiFunctionCheck("Annot.removeAppearance", 386arguments.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,page:page.id})};PDFNet.Annot.prototype.getActiveAppearanceState=function(){apiFunctionCheck("Annot.getActiveAppearanceState"); 387return 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");return PDFNet.sendWithPromise("Annot.getColor",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt, 388id)})};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,id)})};PDFNet.Annot.prototype.getColorAsGray=function(){apiFunctionCheck("Annot.getColorAsGray"); 389return 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,1,"(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);
389return PDFNet.sendWithPromise("Annot.setColorDefault", 390{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=function(){apiFunctionCheck("Annot.getStructParent");return PDFNet.sendWithPromise("Annot.getStructParent", 391{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",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.setOptionalContent= 392function(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})};PDFNet.Annot.prototype.refreshAppearanceRefreshOptions=function(options){"undefined"===typeof options&& 393(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");return PDFNet.sendWithPromise("Annot.getRotation",{annot:this.id})};PDFNet.Annot.prototype.setRotation= 394function(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=function(width){apiFunctionCheck("AnnotBorderStyle.setWidth",arguments.length,1,"(number)",[[width,"number"]]); 395return 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,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setHR",{bs:this.id,horizontal_radius:horizontal_radius})}; 396PDFNet.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",{bs:this.id,vertical_radius:vertical_radius})};PDFNet.AnnotBorderStyle.prototype.getDashPattern=function(){apiFunctionCheck("AnnotBorderStyle.getDashPattern"); 397return 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,id)})};PDFNet.Annot.prototype.setBorderStyle=function(bs,oldStyleOnly){"undefined"===typeof oldStyleOnly&&(oldStyleOnly=!1);apiFunctionCheck("Annot.setBorderStyle", 398arguments.length,1,"(PDFNet.AnnotBorderStyle, boolean)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"],[oldStyleOnly,"boolean"]]);
398return PDFNet.sendWithPromise("Annot.setBorderStyle",{annot:this.id,bs:bs.id,oldStyleOnly:oldStyleOnly})};PDFNet.Annot.getBorderStyleStyle=function(bs){apiFunctionCheck("Annot.getBorderStyleStyle",arguments.length,1,"(PDFNet.AnnotBorderStyle)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"]]);return PDFNet.sendWithPromise("annotGetBorderStyleStyle", 399{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=function(b){apiFunctionCheck("AnnotBorderStyle.compare",arguments.length,1,"(PDFNet.AnnotBorderStyle)",[[b,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"]]); 400return 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,id)})};PDFNet.CaretAnnot.createFromAnnot=function(ann){apiFunctionCheck("CaretAnnot.createFromAnnot", 401arguments.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},[[pos,1]]);return PDFNet.sendWithPromise("caretAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.CaretAnnot, 402id)})};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",{caret:this.id,symbol:symbol})};PDFNet.LineAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("LineAnnot.createFromObj", 403arguments.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",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("lineAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.LineAnnot,id)})};PDFNet.LineAnnot.create= 404function(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,id)})};PDFNet.LineAnnot.prototype.getStartPoint=function(){apiFunctionCheck("LineAnnot.getStartPoint");return PDFNet.sendWithPromise("LineAnnot.getStartPoint",{line:this.id})};PDFNet.LineAnnot.prototype.setStartPoint= 405function(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");return PDFNet.sendWithPromise("LineAnnot.getEndPoint",{line:this.id})};PDFNet.LineAnnot.prototype.setEndPoint=function(ep){apiFunctionCheck("LineAnnot.setEndPoint",arguments.length, 4061,"(PDFNet.Point)",[[ep,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[ep,0]]);
406return 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})};PDFNet.LineAnnot.prototype.setStartStyle=function(ss){apiFunctionCheck("LineAnnot.setStartStyle",arguments.length,1,"(number)",[[ss,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setStartStyle", 407{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)",[[es,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setEndStyle",{line:this.id,es:es})};PDFNet.LineAnnot.prototype.getLeaderLineLength=function(){apiFunctionCheck("LineAnnot.getLeaderLineLength"); 408return 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",{line:this.id,length:length})};PDFNet.LineAnnot.prototype.getLeaderLineExtensionLength=function(){apiFunctionCheck("LineAnnot.getLeaderLineExtensionLength");return PDFNet.sendWithPromise("LineAnnot.getLeaderLineExtensionLength", 409{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,length:length})};PDFNet.LineAnnot.prototype.getShowCaption=function(){apiFunctionCheck("LineAnnot.getShowCaption");return PDFNet.sendWithPromise("LineAnnot.getShowCaption",{line:this.id})};PDFNet.LineAnnot.prototype.setShowCaption= 410function(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");return PDFNet.sendWithPromise("LineAnnot.getIntentType",{line:this.id})};PDFNet.LineAnnot.prototype.setIntentType=function(it){apiFunctionCheck("LineAnnot.setIntentType",arguments.length, 4111,"(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",arguments.length,1,"(number)",[[it,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setCapPos",{line:this.id,it:it})};PDFNet.LineAnnot.prototype.getLeaderLineOffset= 412function(){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",{line:this.id,length:length})};PDFNet.LineAnnot.prototype.getTextHOffset=function(){apiFunctionCheck("LineAnnot.getTextHOffset");return PDFNet.sendWithPromise("LineAnnot.getTextHOffset", 413{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");return PDFNet.sendWithPromise("LineAnnot.getTextVOffset",{line:this.id})};PDFNet.LineAnnot.prototype.setTextVOffset=function(offset){apiFunctionCheck("LineAnnot.setTextVOffset", 414arguments.length,1,"(number)",[[offset,"number"]]);
414return 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",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("circleAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.CircleAnnot,id)})};PDFNet.CircleAnnot.createFromAnnot= 415function(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=function(doc,pos){apiFunctionCheck("CircleAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]); 416return 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,id)})};PDFNet.CircleAnnot.prototype.getInteriorColorCompNum=function(){apiFunctionCheck("CircleAnnot.getInteriorColorCompNum"); 417return 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,col:col.id})};PDFNet.CircleAnnot.prototype.setInteriorColor=function(col,numcomp){apiFunctionCheck("CircleAnnot.setInteriorColor", 418arguments.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",{circle:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.CircleAnnot.prototype.setContentRect=function(cr){apiFunctionCheck("CircleAnnot.setContentRect", 419arguments.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",{circle:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.CircleAnnot.prototype.setPadding=function(cr){apiFunctionCheck("CircleAnnot.setPadding",arguments.length, 4201,"(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,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fileAttachmentAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.FileAttachmentAnnot, 421id)})};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})};PDFNet.FileAttachmentAnnot.prototype.createFromAnnot=function(){apiFunctionCheck("FileAttachmentAnnot.createFromAnnot");return PDFNet.sendWithPromise("FileAttachmentAnnot.createFromAnnot",{fileatt:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot, 422id)})};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,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]]);
422return PDFNet.sendWithPromise("fileAttachmentAnnotCreateWithFileSpec", 423{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",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, 424id)})};PDFNet.FileAttachmentAnnot.prototype.getFileSpec=function(){apiFunctionCheck("FileAttachmentAnnot.getFileSpec");return PDFNet.sendWithPromise("FileAttachmentAnnot.getFileSpec",{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", 425{fileatt:this.id,file:file.id})};PDFNet.FileAttachmentAnnot.prototype.getIcon=function(){apiFunctionCheck("FileAttachmentAnnot.getIcon");return PDFNet.sendWithPromise("FileAttachmentAnnot.getIcon",{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", 426{fileatt:this.id,type:type})};PDFNet.FileAttachmentAnnot.prototype.getIconName=function(){apiFunctionCheck("FileAttachmentAnnot.getIconName");return PDFNet.sendWithPromise("FileAttachmentAnnot.getIconName",{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= 427function(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",{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", 428{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.FreeTextAnnot,id)})};PDFNet.FreeTextAnnot.create=function(doc,pos){apiFunctionCheck("FreeTextAnnot.create",arguments.length,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"); 429return PDFNet.sendWithPromise("FreeTextAnnot.getDefaultAppearance",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setDefaultAppearance=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", 430{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setQuaddingFormat=function(format){apiFunctionCheck("FreeTextAnnot.setQuaddingFormat",arguments.length,1,"(number)",[[format,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setQuaddingFormat",{ft:this.id,format:format})};PDFNet.FreeTextAnnot.prototype.getCalloutLinePoints=function(){apiFunctionCheck("FreeTextAnnot.getCalloutLinePoints");
430return PDFNet.sendWithPromise("FreeTextAnnot.getCalloutLinePoints",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setCalloutLinePoints= 431function(p1,p2,p3){apiFunctionCheck("FreeTextAnnot.setCalloutLinePoints",arguments.length,3,"(PDFNet.Point, PDFNet.Point, PDFNet.Point)",[[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", 432arguments.length,2,"(PDFNet.Point, PDFNet.Point)",[[p1,"Structure",PDFNet.Point,"Point"],[p2,"Structure",PDFNet.Point,"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"=== 433typeof mode&&(mode=PDFNet.FreeTextAnnot.IntentName.e_FreeText);apiFunctionCheck("FreeTextAnnot.setIntentName",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"); 434return PDFNet.sendWithPromise("FreeTextAnnot.getEndingStyle",{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", 435{ft:this.id,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{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"); 437return 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", 438arguments.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");
438return 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", 439{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.HighlightAnnot,id)})};PDFNet.HighlightAnnot.createFromAnnot=function(ann){apiFunctionCheck("HighlightAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("highlightAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.HighlightAnnot,id)})};PDFNet.HighlightAnnot.create=function(doc,pos){apiFunctionCheck("HighlightAnnot.create",arguments.length, 4402,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("highlightAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.HighlightAnnot,id)})};PDFNet.InkAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("InkAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("inkAnnotCreateFromObj", 441{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.InkAnnot,id)})};PDFNet.InkAnnot.createFromAnnot=function(ann){apiFunctionCheck("InkAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("inkAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.InkAnnot,id)})};PDFNet.InkAnnot.create=function(doc,pos){apiFunctionCheck("InkAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc, 442"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("inkAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.InkAnnot,id)})};PDFNet.InkAnnot.prototype.getPathCount=function(){apiFunctionCheck("InkAnnot.getPathCount");return PDFNet.sendWithPromise("InkAnnot.getPathCount",{ink:this.id})};PDFNet.InkAnnot.prototype.getPointCount=function(pathindex){apiFunctionCheck("InkAnnot.getPointCount",arguments.length,1,"(number)", 443[[pathindex,"number"]]);return PDFNet.sendWithPromise("InkAnnot.getPointCount",{ink:this.id,pathindex:pathindex})};PDFNet.InkAnnot.prototype.getPoint=function(pathindex,pointindex){apiFunctionCheck("InkAnnot.getPoint",arguments.length,2,"(number, number)",[[pathindex,"number"],[pointindex,"number"]]);return PDFNet.sendWithPromise("InkAnnot.getPoint",{ink:this.id,pathindex:pathindex,pointindex:pointindex})};PDFNet.InkAnnot.prototype.setPoint=function(pathindex,pointindex,pt){apiFunctionCheck("InkAnnot.setPoint", 444arguments.length,3,"(number, number, PDFNet.Point)",[[pathindex,"number"],[pointindex,"number"],[pt,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[pt,2]]);return PDFNet.sendWithPromise("InkAnnot.setPoint",{ink:this.id,pathindex:pathindex,pointindex:pointindex,pt:pt})};PDFNet.InkAnnot.prototype.erase=function(pt1,pt2,width){apiFunctionCheck("InkAnnot.erase",arguments.length,3,"(PDFNet.Point, PDFNet.Point, number)",[[pt1,"Structure",PDFNet.Point,"Point"],[pt2,"Structure",PDFNet.Point,"Point"], 445[width,"number"]],{checkThisYield:!1},[[pt1,0],[pt2,1]]);return PDFNet.sendWithPromise("InkAnnot.erase",{ink:this.id,pt1:pt1,pt2:pt2,width:width})};PDFNet.InkAnnot.prototype.getHighlightIntent=function(){apiFunctionCheck("InkAnnot.getHighlightIntent");return PDFNet.sendWithPromise("InkAnnot.getHighlightIntent",{ink:this.id})};PDFNet.InkAnnot.prototype.setHighlightIntent=function(highlight){apiFunctionCheck("InkAnnot.setHighlightIntent",arguments.length,1,"(boolean)",[[highlight,"boolean"]]);return PDFNet.sendWithPromise("InkAnnot.setHighlightIntent", 446{ink:this.id,highlight:highlight})};PDFNet.LinkAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("LinkAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);
446return PDFNet.sendWithPromise("linkAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.LinkAnnot,id)})};PDFNet.LinkAnnot.createFromAnnot=function(ann){apiFunctionCheck("LinkAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann, 447"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("linkAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.LinkAnnot,id)})};PDFNet.LinkAnnot.create=function(doc,pos){apiFunctionCheck("LinkAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("linkAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.LinkAnnot, 448id)})};PDFNet.LinkAnnot.prototype.removeAction=function(){apiFunctionCheck("LinkAnnot.removeAction");return PDFNet.sendWithPromise("LinkAnnot.removeAction",{link:this.id})};PDFNet.LinkAnnot.prototype.getAction=function(){apiFunctionCheck("LinkAnnot.getAction");return PDFNet.sendWithPromise("LinkAnnot.getAction",{link:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.LinkAnnot.prototype.setAction=function(action){apiFunctionCheck("LinkAnnot.setAction",arguments.length, 4491,"(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("LinkAnnot.setAction",{link:this.id,action:action.id})};PDFNet.LinkAnnot.prototype.getHighlightingMode=function(){apiFunctionCheck("LinkAnnot.getHighlightingMode");return PDFNet.sendWithPromise("LinkAnnot.getHighlightingMode",{link:this.id})};PDFNet.LinkAnnot.prototype.setHighlightingMode=function(value){apiFunctionCheck("LinkAnnot.setHighlightingMode",arguments.length,1,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("LinkAnnot.setHighlightingMode", 450{link:this.id,value:value})};PDFNet.LinkAnnot.prototype.getQuadPointCount=function(){apiFunctionCheck("LinkAnnot.getQuadPointCount");return PDFNet.sendWithPromise("LinkAnnot.getQuadPointCount",{link:this.id})};PDFNet.LinkAnnot.prototype.getQuadPoint=function(idx){apiFunctionCheck("LinkAnnot.getQuadPoint",arguments.length,1,"(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("LinkAnnot.getQuadPoint",{link:this.id,idx:idx})};PDFNet.LinkAnnot.prototype.setQuadPoint=function(idx,qp){apiFunctionCheck("LinkAnnot.setQuadPoint", 451arguments.length,2,"(number, PDFNet.QuadPoint)",[[idx,"number"],[qp,"Structure",PDFNet.QuadPoint,"QuadPoint"]],{checkThisYield:!1},[[qp,1]]);return PDFNet.sendWithPromise("LinkAnnot.setQuadPoint",{link:this.id,idx:idx,qp:qp})};PDFNet.getNormalizedUrl=function(url){apiFunctionCheck(".getNormalizedUrl",arguments.length,1,"(string)",[[url,"string"]]);return PDFNet.sendWithPromise("getNormalizedUrl",{url:url})};PDFNet.MarkupAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0")); 452apiFunctionCheck("MarkupAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("markupAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.MarkupAnnot,id)})};PDFNet.MarkupAnnot.createFromAnnot=function(ann){apiFunctionCheck("MarkupAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("markupAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.MarkupAnnot, 453id)})};PDFNet.MarkupAnnot.prototype.getTitle=function(){apiFunctionCheck("MarkupAnnot.getTitle");return PDFNet.sendWithPromise("MarkupAnnot.getTitle",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setTitle=function(title){apiFunctionCheck("MarkupAnnot.setTitle",arguments.length,1,"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("MarkupAnnot.setTitle",{markup:this.id,title:title})};PDFNet.MarkupAnnot.prototype.setTitleUString=function(title){apiFunctionCheck("MarkupAnnot.setTitleUString", 454arguments.length,1,"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("MarkupAnnot.setTitleUString",{markup:this.id,title:title})};PDFNet.MarkupAnnot.prototype.getPopup=function(){apiFunctionCheck("MarkupAnnot.getPopup");
454return PDFNet.sendWithPromise("MarkupAnnot.getPopup",{markup:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.MarkupAnnot.prototype.setPopup=function(ppup){apiFunctionCheck("MarkupAnnot.setPopup",arguments.length,1,"(PDFNet.Annot)",[[ppup,"Object", 455PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("MarkupAnnot.setPopup",{markup:this.id,ppup:ppup.id})};PDFNet.MarkupAnnot.prototype.getOpacity=function(){apiFunctionCheck("MarkupAnnot.getOpacity");return PDFNet.sendWithPromise("MarkupAnnot.getOpacity",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setOpacity=function(op){apiFunctionCheck("MarkupAnnot.setOpacity",arguments.length,1,"(number)",[[op,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setOpacity",{markup:this.id,op:op})};PDFNet.MarkupAnnot.prototype.getSubject= 456function(){apiFunctionCheck("MarkupAnnot.getSubject");return PDFNet.sendWithPromise("MarkupAnnot.getSubject",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setSubject=function(contents){apiFunctionCheck("MarkupAnnot.setSubject",arguments.length,1,"(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("MarkupAnnot.setSubject",{markup:this.id,contents:contents})};PDFNet.MarkupAnnot.prototype.getCreationDates=function(){apiFunctionCheck("MarkupAnnot.getCreationDates");return PDFNet.sendWithPromise("MarkupAnnot.getCreationDates", 457{markup:this.id}).then(function(id){return new PDFNet.Date(id)})};PDFNet.MarkupAnnot.prototype.getBorderEffect=function(){apiFunctionCheck("MarkupAnnot.getBorderEffect");return PDFNet.sendWithPromise("MarkupAnnot.getBorderEffect",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setBorderEffect=function(effect){"undefined"===typeof effect&&(effect=PDFNet.MarkupAnnot.BorderEffect.e_None);apiFunctionCheck("MarkupAnnot.setBorderEffect",arguments.length,0,"(number)",[[effect,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setBorderEffect", 458{markup:this.id,effect:effect})};PDFNet.MarkupAnnot.prototype.getBorderEffectIntensity=function(){apiFunctionCheck("MarkupAnnot.getBorderEffectIntensity");return PDFNet.sendWithPromise("MarkupAnnot.getBorderEffectIntensity",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setBorderEffectIntensity=function(intensity){"undefined"===typeof intensity&&(intensity=0);apiFunctionCheck("MarkupAnnot.setBorderEffectIntensity",arguments.length,0,"(number)",[[intensity,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setBorderEffectIntensity", 459{markup:this.id,intensity:intensity})};PDFNet.MarkupAnnot.prototype.setCreationDates=function(dt){apiFunctionCheck("MarkupAnnot.setCreationDates",arguments.length,1,"(PDFNet.Date)",[[dt,"Structure",PDFNet.Date,"Date"]],{checkThisYield:!1},[[dt,0]]);return PDFNet.sendWithPromise("MarkupAnnot.setCreationDates",{markup:this.id,dt:dt})};PDFNet.MarkupAnnot.prototype.getInteriorColor=function(){apiFunctionCheck("MarkupAnnot.getInteriorColor");return PDFNet.sendWithPromise("MarkupAnnot.getInteriorColor", 460{markup:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.MarkupAnnot.prototype.getInteriorColorCompNum=function(){apiFunctionCheck("MarkupAnnot.getInteriorColorCompNum");return PDFNet.sendWithPromise("MarkupAnnot.getInteriorColorCompNum",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setInteriorColorRGB=function(col){apiFunctionCheck("MarkupAnnot.setInteriorColorRGB",arguments.length,1,"(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("MarkupAnnot.setInteriorColorRGB", 461{markup:this.id,col:col.id})};PDFNet.MarkupAnnot.prototype.setInteriorColor=function(c,CompNum){apiFunctionCheck("MarkupAnnot.setInteriorColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[c,"Object",PDFNet.ColorPt,"ColorPt"],[CompNum,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setInteriorColor",{markup:this.id,c:c.id,CompNum:CompNum})};PDFNet.MarkupAnnot.prototype.getContentRect=function(){apiFunctionCheck("MarkupAnnot.getContentRect");return PDFNet.sendWithPromise("MarkupAnnot.getContentRect", 462{markup:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.MarkupAnnot.prototype.setContentRect=function(cr){apiFunctionCheck("MarkupAnnot.setContentRect",arguments.length,1,"(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[cr,0]]);
462return PDFNet.sendWithPromise("MarkupAnnot.setContentRect",{markup:this.id,cr:cr})};PDFNet.MarkupAnnot.prototype.getPadding=function(){apiFunctionCheck("MarkupAnnot.getPadding");return PDFNet.sendWithPromise("MarkupAnnot.getPadding", 463{markup:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.MarkupAnnot.prototype.setPadding=function(rd){apiFunctionCheck("MarkupAnnot.setPadding",arguments.length,1,"(PDFNet.Rect)",[[rd,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[rd,0]]);return PDFNet.sendWithPromise("MarkupAnnot.setPadding",{markup:this.id,rd:rd})};PDFNet.MarkupAnnot.prototype.rotateAppearance=function(angle){apiFunctionCheck("MarkupAnnot.rotateAppearance",arguments.length,1,"(number)",[[angle,"number"]]); 464return PDFNet.sendWithPromise("MarkupAnnot.rotateAppearance",{markup:this.id,angle:angle})};PDFNet.MovieAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("MovieAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("movieAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.MovieAnnot,id)})};PDFNet.MovieAnnot.createFromAnnot=function(ann){apiFunctionCheck("MovieAnnot.createFromAnnot", 465arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("movieAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.MovieAnnot,id)})};PDFNet.MovieAnnot.create=function(doc,pos){apiFunctionCheck("MovieAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("movieAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.MovieAnnot, 466id)})};PDFNet.MovieAnnot.prototype.getTitle=function(){apiFunctionCheck("MovieAnnot.getTitle");return PDFNet.sendWithPromise("MovieAnnot.getTitle",{movie:this.id})};PDFNet.MovieAnnot.prototype.setTitle=function(title){apiFunctionCheck("MovieAnnot.setTitle",arguments.length,1,"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("MovieAnnot.setTitle",{movie:this.id,title:title})};PDFNet.MovieAnnot.prototype.isToBePlayed=function(){apiFunctionCheck("MovieAnnot.isToBePlayed");return PDFNet.sendWithPromise("MovieAnnot.isToBePlayed", 467{movie:this.id})};PDFNet.MovieAnnot.prototype.setToBePlayed=function(isplay){"undefined"===typeof isplay&&(isplay=!0);apiFunctionCheck("MovieAnnot.setToBePlayed",arguments.length,0,"(boolean)",[[isplay,"boolean"]]);return PDFNet.sendWithPromise("MovieAnnot.setToBePlayed",{movie:this.id,isplay:isplay})};PDFNet.PolyLineAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("PolyLineAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj, 468"Obj"]]);return PDFNet.sendWithPromise("polyLineAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.PolyLineAnnot,id)})};PDFNet.PolyLineAnnot.createFromAnnot=function(ann){apiFunctionCheck("PolyLineAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("polyLineAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.PolyLineAnnot,id)})};PDFNet.PolyLineAnnot.create=function(doc, 469pos){apiFunctionCheck("PolyLineAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("polyLineAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.PolyLineAnnot,id)})};PDFNet.PolyLineAnnot.prototype.getVertexCount=function(){apiFunctionCheck("PolyLineAnnot.getVertexCount");return PDFNet.sendWithPromise("PolyLineAnnot.getVertexCount",{polyline:this.id})}; 470PDFNet.PolyLineAnnot.prototype.getVertex=function(idx){apiFunctionCheck("PolyLineAnnot.getVertex",arguments.length,1,"(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.getVertex",{polyline:this.id,idx:idx})};PDFNet.PolyLineAnnot.prototype.setVertex=function(idx,pt){apiFunctionCheck("PolyLineAnnot.setVertex",arguments.length,2,"(number, PDFNet.Point)",[[idx,"number"],[pt,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[pt,1]]);
470return PDFNet.sendWithPromise("PolyLineAnnot.setVertex", 471{polyline:this.id,idx:idx,pt:pt})};PDFNet.PolyLineAnnot.prototype.getStartStyle=function(){apiFunctionCheck("PolyLineAnnot.getStartStyle");return PDFNet.sendWithPromise("PolyLineAnnot.getStartStyle",{polyline:this.id})};PDFNet.PolyLineAnnot.prototype.setStartStyle=function(style){apiFunctionCheck("PolyLineAnnot.setStartStyle",arguments.length,1,"(number)",[[style,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.setStartStyle",{polyline:this.id,style:style})};PDFNet.PolyLineAnnot.prototype.getEndStyle= 472function(){apiFunctionCheck("PolyLineAnnot.getEndStyle");return PDFNet.sendWithPromise("PolyLineAnnot.getEndStyle",{polyline:this.id})};PDFNet.PolyLineAnnot.prototype.setEndStyle=function(style){apiFunctionCheck("PolyLineAnnot.setEndStyle",arguments.length,1,"(number)",[[style,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.setEndStyle",{polyline:this.id,style:style})};PDFNet.PolyLineAnnot.prototype.getIntentName=function(){apiFunctionCheck("PolyLineAnnot.getIntentName");return PDFNet.sendWithPromise("PolyLineAnnot.getIntentName", 473{polyline:this.id})};PDFNet.PolyLineAnnot.prototype.setIntentName=function(mode){apiFunctionCheck("PolyLineAnnot.setIntentName",arguments.length,1,"(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.setIntentName",{polyline:this.id,mode:mode})};PDFNet.PolygonAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("PolygonAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("polygonAnnotCreateFromObj", 474{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.PolygonAnnot,id)})};PDFNet.PolygonAnnot.createFromAnnot=function(ann){apiFunctionCheck("PolygonAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("polygonAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.PolygonAnnot,id)})};PDFNet.PolygonAnnot.create=function(doc,pos){apiFunctionCheck("PolygonAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)", 475[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("polygonAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.PolygonAnnot,id)})};PDFNet.PopupAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("PopupAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("popupAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.PopupAnnot, 476id)})};PDFNet.PopupAnnot.createFromAnnot=function(ann){apiFunctionCheck("PopupAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("popupAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.PopupAnnot,id)})};PDFNet.PopupAnnot.create=function(doc,pos){apiFunctionCheck("PopupAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1}, 477[[pos,1]]);return PDFNet.sendWithPromise("popupAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.PopupAnnot,id)})};PDFNet.PopupAnnot.prototype.getParent=function(){apiFunctionCheck("PopupAnnot.getParent");return PDFNet.sendWithPromise("PopupAnnot.getParent",{popup:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.PopupAnnot.prototype.setParent=function(parent){apiFunctionCheck("PopupAnnot.setParent",arguments.length,1,"(PDFNet.Annot)",[[parent, 478"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("PopupAnnot.setParent",{popup:this.id,parent:parent.id})};PDFNet.PopupAnnot.prototype.isOpen=function(){apiFunctionCheck("PopupAnnot.isOpen");return PDFNet.sendWithPromise("PopupAnnot.isOpen",{popup:this.id})};PDFNet.PopupAnnot.prototype.setOpen=function(isopen){apiFunctionCheck("PopupAnnot.setOpen",arguments.length,1,"(boolean)",[[isopen,"boolean"]]);
478return PDFNet.sendWithPromise("PopupAnnot.setOpen",{popup:this.id,isopen:isopen})};PDFNet.RedactionAnnot.createFromObj= 479function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("RedactionAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("redactionAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.RedactionAnnot,id)})};PDFNet.RedactionAnnot.createFromAnnot=function(ann){apiFunctionCheck("RedactionAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("redactionAnnotCreateFromAnnot", 480{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.RedactionAnnot,id)})};PDFNet.RedactionAnnot.create=function(doc,pos){apiFunctionCheck("RedactionAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("redactionAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.RedactionAnnot,id)})};PDFNet.RedactionAnnot.prototype.getQuadPointCount= 481function(){apiFunctionCheck("RedactionAnnot.getQuadPointCount");return PDFNet.sendWithPromise("RedactionAnnot.getQuadPointCount",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.getQuadPoint=function(idx){apiFunctionCheck("RedactionAnnot.getQuadPoint",arguments.length,1,"(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("RedactionAnnot.getQuadPoint",{redaction:this.id,idx:idx})};PDFNet.RedactionAnnot.prototype.setQuadPoint=function(idx,qp){apiFunctionCheck("RedactionAnnot.setQuadPoint", 482arguments.length,2,"(number, PDFNet.QuadPoint)",[[idx,"number"],[qp,"Structure",PDFNet.QuadPoint,"QuadPoint"]],{checkThisYield:!1},[[qp,1]]);return PDFNet.sendWithPromise("RedactionAnnot.setQuadPoint",{redaction:this.id,idx:idx,qp:qp})};PDFNet.RedactionAnnot.prototype.setAppFormXO=function(formxo){apiFunctionCheck("RedactionAnnot.setAppFormXO",arguments.length,1,"(PDFNet.Obj)",[[formxo,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("RedactionAnnot.setAppFormXO",{redaction:this.id,formxo:formxo.id})}; 483PDFNet.RedactionAnnot.prototype.getOverlayText=function(){apiFunctionCheck("RedactionAnnot.getOverlayText");return PDFNet.sendWithPromise("RedactionAnnot.getOverlayText",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setOverlayText=function(title){apiFunctionCheck("RedactionAnnot.setOverlayText",arguments.length,1,"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("RedactionAnnot.setOverlayText",{redaction:this.id,title:title})};PDFNet.RedactionAnnot.prototype.getUseRepeat=function(){apiFunctionCheck("RedactionAnnot.getUseRepeat"); 484return PDFNet.sendWithPromise("RedactionAnnot.getUseRepeat",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setUseRepeat=function(userepeat){"undefined"===typeof userepeat&&(userepeat=!1);apiFunctionCheck("RedactionAnnot.setUseRepeat",arguments.length,0,"(boolean)",[[userepeat,"boolean"]]);return PDFNet.sendWithPromise("RedactionAnnot.setUseRepeat",{redaction:this.id,userepeat:userepeat})};PDFNet.RedactionAnnot.prototype.getOverlayTextAppearance=function(){apiFunctionCheck("RedactionAnnot.getOverlayTextAppearance"); 485return PDFNet.sendWithPromise("RedactionAnnot.getOverlayTextAppearance",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setOverlayTextAppearance=function(app){apiFunctionCheck("RedactionAnnot.setOverlayTextAppearance",arguments.length,1,"(string)",[[app,"string"]]);return PDFNet.sendWithPromise("RedactionAnnot.setOverlayTextAppearance",{redaction:this.id,app:app})};PDFNet.RedactionAnnot.prototype.getQuadForm=function(){apiFunctionCheck("RedactionAnnot.getQuadForm");return PDFNet.sendWithPromise("RedactionAnnot.getQuadForm", 486{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setQuadForm=function(form){"undefined"===typeof form&&(form=PDFNet.RedactionAnnot.QuadForm.e_LeftJustified);apiFunctionCheck("RedactionAnnot.setQuadForm",arguments.length,0,"(number)",[[form,"number"]]);
486return PDFNet.sendWithPromise("RedactionAnnot.setQuadForm",{redaction:this.id,form:form})};PDFNet.RedactionAnnot.prototype.getAppFormXO=function(){apiFunctionCheck("RedactionAnnot.getAppFormXO");return PDFNet.sendWithPromise("RedactionAnnot.getAppFormXO", 487{redaction:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.RubberStampAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("RubberStampAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("rubberStampAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot,id)})};PDFNet.RubberStampAnnot.createFromAnnot=function(ann){apiFunctionCheck("RubberStampAnnot.createFromAnnot", 488arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("rubberStampAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot,id)})};PDFNet.RubberStampAnnot.create=function(doc,pos){apiFunctionCheck("RubberStampAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("rubberStampAnnotCreate", 489{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot,id)})};PDFNet.RubberStampAnnot.createCustom=function(doc,pos,form_xobject){apiFunctionCheck("RubberStampAnnot.createCustom",arguments.length,3,"(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.Obj)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[form_xobject,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("rubberStampAnnotCreateCustom",{doc:doc.id,pos:pos,form_xobject:form_xobject.id}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot, 490id)})};PDFNet.RubberStampAnnot.prototype.getIcon=function(){apiFunctionCheck("RubberStampAnnot.getIcon");return PDFNet.sendWithPromise("RubberStampAnnot.getIcon",{stamp:this.id})};PDFNet.RubberStampAnnot.prototype.setIcon=function(type){"undefined"===typeof type&&(type=PDFNet.RubberStampAnnot.Icon.e_Draft);apiFunctionCheck("RubberStampAnnot.setIcon",arguments.length,0,"(number)",[[type,"number"]]);return PDFNet.sendWithPromise("RubberStampAnnot.setIcon",{stamp:this.id,type:type})};PDFNet.RubberStampAnnot.prototype.setIconDefault= 491function(){apiFunctionCheck("RubberStampAnnot.setIconDefault");return PDFNet.sendWithPromise("RubberStampAnnot.setIconDefault",{stamp:this.id})};PDFNet.RubberStampAnnot.prototype.getIconName=function(){apiFunctionCheck("RubberStampAnnot.getIconName");return PDFNet.sendWithPromise("RubberStampAnnot.getIconName",{stamp:this.id})};PDFNet.RubberStampAnnot.prototype.setIconName=function(iconstring){apiFunctionCheck("RubberStampAnnot.setIconName",arguments.length,1,"(string)",[[iconstring,"string"]]);return PDFNet.sendWithPromise("RubberStampAnnot.setIconName", 492{stamp:this.id,iconstring:iconstring})};PDFNet.rubberStampAnnotSetOpacity=function(stamp,opacity){apiFunctionCheck(".rubberStampAnnotSetOpacity",arguments.length,2,"(PDFNet.Annot, number)",[[stamp,"Object",PDFNet.Annot,"Annot"],[opacity,"number"]]);return PDFNet.sendWithPromise("rubberStampAnnotSetOpacity",{stamp:stamp.id,opacity:opacity})};PDFNet.ScreenAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("ScreenAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)", 493[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("screenAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.ScreenAnnot,id)})};PDFNet.ScreenAnnot.createFromAnnot=function(ann){apiFunctionCheck("ScreenAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("screenAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.ScreenAnnot,id)})};PDFNet.ScreenAnnot.prototype.getTitle= 494function(){apiFunctionCheck("ScreenAnnot.getTitle");
494return PDFNet.sendWithPromise("ScreenAnnot.getTitle",{s:this.id})};PDFNet.ScreenAnnot.prototype.setTitle=function(title){apiFunctionCheck("ScreenAnnot.setTitle",arguments.length,1,"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setTitle",{s:this.id,title:title})};PDFNet.ScreenAnnot.create=function(doc,pos){apiFunctionCheck("ScreenAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure", 495PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("screenAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.ScreenAnnot,id)})};PDFNet.ScreenAnnot.prototype.getAction=function(){apiFunctionCheck("ScreenAnnot.getAction");return PDFNet.sendWithPromise("ScreenAnnot.getAction",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.ScreenAnnot.prototype.setAction=function(action){apiFunctionCheck("ScreenAnnot.setAction", 496arguments.length,1,"(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("ScreenAnnot.setAction",{s:this.id,action:action.id})};PDFNet.ScreenAnnot.prototype.getBorderColor=function(){apiFunctionCheck("ScreenAnnot.getBorderColor");return PDFNet.sendWithPromise("ScreenAnnot.getBorderColor",{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ScreenAnnot.prototype.setBorderColor=function(col,numcomp){apiFunctionCheck("ScreenAnnot.setBorderColor", 497arguments.length,2,"(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setBorderColor",{s:this.id,col:col.id,numcomp:numcomp})};PDFNet.ScreenAnnot.prototype.getBorderColorCompNum=function(){apiFunctionCheck("ScreenAnnot.getBorderColorCompNum");return PDFNet.sendWithPromise("ScreenAnnot.getBorderColorCompNum",{s:this.id})};PDFNet.ScreenAnnot.prototype.getBackgroundColorCompNum=function(){apiFunctionCheck("ScreenAnnot.getBackgroundColorCompNum"); 498return PDFNet.sendWithPromise("ScreenAnnot.getBackgroundColorCompNum",{s:this.id})};PDFNet.ScreenAnnot.prototype.getBackgroundColor=function(){apiFunctionCheck("ScreenAnnot.getBackgroundColor");return PDFNet.sendWithPromise("ScreenAnnot.getBackgroundColor",{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ScreenAnnot.prototype.setBackgroundColor=function(col,numcomp){apiFunctionCheck("ScreenAnnot.setBackgroundColor",arguments.length,2,"(PDFNet.ColorPt, number)", 499[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setBackgroundColor",{s:this.id,col:col.id,numcomp:numcomp})};PDFNet.ScreenAnnot.prototype.getStaticCaptionText=function(){apiFunctionCheck("ScreenAnnot.getStaticCaptionText");return PDFNet.sendWithPromise("ScreenAnnot.getStaticCaptionText",{s:this.id})};PDFNet.ScreenAnnot.prototype.setStaticCaptionText=function(contents){apiFunctionCheck("ScreenAnnot.setStaticCaptionText",arguments.length,1,"(string)", 500[[contents,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setStaticCaptionText",{s:this.id,contents:contents})};PDFNet.ScreenAnnot.prototype.getRolloverCaptionText=function(){apiFunctionCheck("ScreenAnnot.getRolloverCaptionText");return PDFNet.sendWithPromise("ScreenAnnot.getRolloverCaptionText",{s:this.id})};PDFNet.ScreenAnnot.prototype.setRolloverCaptionText=function(contents){apiFunctionCheck("ScreenAnnot.setRolloverCaptionText",arguments.length,1,"(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setRolloverCaptionText",
501{s:this.id,contents:contents})};PDFNet.ScreenAnnot.prototype.getMouseDownCaptionText=function(){apiFunctionCheck("ScreenAnnot.getMouseDownCaptionText");return PDFNet.sendWithPromise("ScreenAnnot.getMouseDownCaptionText",{s:this.id})};PDFNet.ScreenAnnot.prototype.setMouseDownCaptionText=function(contents){apiFunctionCheck("ScreenAnnot.setMouseDownCaptionText",arguments.length,1,"(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setMouseDownCaptionText",{s:this.id,contents:contents})}; 502PDFNet.ScreenAnnot.prototype.getStaticIcon=function(){apiFunctionCheck("ScreenAnnot.getStaticIcon");return PDFNet.sendWithPromise("ScreenAnnot.getStaticIcon",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ScreenAnnot.prototype.setStaticIcon=function(icon){apiFunctionCheck("ScreenAnnot.setStaticIcon",arguments.length,1,"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ScreenAnnot.setStaticIcon",{s:this.id,icon:icon.id})};PDFNet.ScreenAnnot.prototype.getRolloverIcon= 503function(){apiFunctionCheck("ScreenAnnot.getRolloverIcon");return PDFNet.sendWithPromise("ScreenAnnot.getRolloverIcon",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ScreenAnnot.prototype.setRolloverIcon=function(icon){apiFunctionCheck("ScreenAnnot.setRolloverIcon",arguments.length,1,"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ScreenAnnot.setRolloverIcon",{s:this.id,icon:icon.id})};PDFNet.ScreenAnnot.prototype.getMouseDownIcon= 504function(){apiFunctionCheck("ScreenAnnot.getMouseDownIcon");return PDFNet.sendWithPromise("ScreenAnnot.getMouseDownIcon",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ScreenAnnot.prototype.setMouseDownIcon=function(icon){apiFunctionCheck("ScreenAnnot.setMouseDownIcon",arguments.length,1,"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ScreenAnnot.setMouseDownIcon",{s:this.id,icon:icon.id})};PDFNet.ScreenAnnot.prototype.getScaleType= 505function(){apiFunctionCheck("ScreenAnnot.getScaleType");return PDFNet.sendWithPromise("ScreenAnnot.getScaleType",{s:this.id})};PDFNet.ScreenAnnot.prototype.setScaleType=function(st){apiFunctionCheck("ScreenAnnot.setScaleType",arguments.length,1,"(number)",[[st,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setScaleType",{s:this.id,st:st})};PDFNet.ScreenAnnot.prototype.getIconCaptionRelation=function(){apiFunctionCheck("ScreenAnnot.getIconCaptionRelation");return PDFNet.sendWithPromise("ScreenAnnot.getIconCaptionRelation", 506{s:this.id})};PDFNet.ScreenAnnot.prototype.setIconCaptionRelation=function(icr){apiFunctionCheck("ScreenAnnot.setIconCaptionRelation",arguments.length,1,"(number)",[[icr,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setIconCaptionRelation",{s:this.id,icr:icr})};PDFNet.ScreenAnnot.prototype.getScaleCondition=function(){apiFunctionCheck("ScreenAnnot.getScaleCondition");return PDFNet.sendWithPromise("ScreenAnnot.getScaleCondition",{s:this.id})};PDFNet.ScreenAnnot.prototype.setScaleCondition= 507function(sc){apiFunctionCheck("ScreenAnnot.setScaleCondition",arguments.length,1,"(number)",[[sc,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setScaleCondition",{s:this.id,sc:sc})};PDFNet.ScreenAnnot.prototype.getFitFull=function(){apiFunctionCheck("ScreenAnnot.getFitFull");return PDFNet.sendWithPromise("ScreenAnnot.getFitFull",{s:this.id})};PDFNet.ScreenAnnot.prototype.setFitFull=function(ff){apiFunctionCheck("ScreenAnnot.setFitFull",arguments.length,1,"(boolean)",[[ff,"boolean"]]);return PDFNet.sendWithPromise("ScreenAnnot.setFitFull", 508{s:this.id,ff:ff})};PDFNet.ScreenAnnot.prototype.getHIconLeftOver=function(){apiFunctionCheck("ScreenAnnot.getHIconLeftOver");return PDFNet.sendWithPromise("ScreenAnnot.getHIconLeftOver",{s:this.id})};PDFNet.ScreenAnnot.prototype.setHIconLeftOver=function(hl){apiFunctionCheck("ScreenAnnot.setHIconLeftOver",arguments.length,1,"(number)",[[hl,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setHIconLeftOver",{s:this.id,hl:hl})};PDFNet.ScreenAnnot.prototype.getVIconLeftOver=function(){apiFunctionCheck("ScreenAnnot.getVIconLeftOver");
509return PDFNet.sendWithPromise("ScreenAnnot.getVIconLeftOver",{s:this.id})};PDFNet.ScreenAnnot.prototype.setVIconLeftOver=function(vl){apiFunctionCheck("ScreenAnnot.setVIconLeftOver",arguments.length,1,"(number)",[[vl,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setVIconLeftOver",{s:this.id,vl:vl})};PDFNet.SoundAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("SoundAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj, 510"Obj"]]);return PDFNet.sendWithPromise("soundAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.createFromAnnot=function(ann){apiFunctionCheck("SoundAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("soundAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.create=function(doc,pos){apiFunctionCheck("SoundAnnot.create", 511arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("soundAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.createWithData=function(doc,pos,stream,sample_bits,sample_freq,num_channels){apiFunctionCheck("SoundAnnot.createWithData",arguments.length,6,"(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.Filter, number, number, number)", 512[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[stream,"Object",PDFNet.Filter,"Filter"],[sample_bits,"number"],[sample_freq,"number"],[num_channels,"number"]],{checkThisYield:!1},[[pos,1]]);0!=stream.id&&avoidCleanup(stream.id);return PDFNet.sendWithPromise("soundAnnotCreateWithData",{doc:doc.id,pos:pos,no_own_stream:stream.id,sample_bits:sample_bits,sample_freq:sample_freq,num_channels:num_channels}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.createAtPoint= 513function(doc,pos){apiFunctionCheck("SoundAnnot.createAtPoint",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Point)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("soundAnnotCreateAtPoint",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.prototype.getSoundStream=function(){apiFunctionCheck("SoundAnnot.getSoundStream");return PDFNet.sendWithPromise("SoundAnnot.getSoundStream", 514{sound:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SoundAnnot.prototype.setSoundStream=function(icon){apiFunctionCheck("SoundAnnot.setSoundStream",arguments.length,1,"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("SoundAnnot.setSoundStream",{sound:this.id,icon:icon.id})};PDFNet.SoundAnnot.prototype.getIcon=function(){apiFunctionCheck("SoundAnnot.getIcon");return PDFNet.sendWithPromise("SoundAnnot.getIcon",{sound:this.id})};PDFNet.SoundAnnot.prototype.setIcon= 515function(type){"undefined"===typeof type&&(type=PDFNet.SoundAnnot.Icon.e_Speaker);apiFunctionCheck("SoundAnnot.setIcon",arguments.length,0,"(number)",[[type,"number"]]);return PDFNet.sendWithPromise("SoundAnnot.setIcon",{sound:this.id,type:type})};PDFNet.SoundAnnot.prototype.getIconName=function(){apiFunctionCheck("SoundAnnot.getIconName");return PDFNet.sendWithPromise("SoundAnnot.getIconName",{sound:this.id})};PDFNet.SoundAnnot.prototype.setIconName=function(type){apiFunctionCheck("SoundAnnot.setIconName", 516arguments.length,1,"(string)",[[type,"string"]]);return PDFNet.sendWithPromise("SoundAnnot.setIconName",{sound:this.id,type:type})};PDFNet.SquareAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("SquareAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("squareAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SquareAnnot,id)})};PDFNet.SquareAnnot.createFromAnnot= 517function(ann){apiFunctionCheck("SquareAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);
517return PDFNet.sendWithPromise("squareAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.SquareAnnot,id)})};PDFNet.SquareAnnot.create=function(doc,pos){apiFunctionCheck("SquareAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("squareAnnotCreate", 518{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SquareAnnot,id)})};PDFNet.SquareAnnot.prototype.getInteriorColor=function(){apiFunctionCheck("SquareAnnot.getInteriorColor");return PDFNet.sendWithPromise("SquareAnnot.getInteriorColor",{square:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.SquareAnnot.prototype.getInteriorColorCompNum=function(){apiFunctionCheck("SquareAnnot.getInteriorColorCompNum");return PDFNet.sendWithPromise("SquareAnnot.getInteriorColorCompNum", 519{square:this.id})};PDFNet.SquareAnnot.prototype.setInteriorColorDefault=function(col){apiFunctionCheck("SquareAnnot.setInteriorColorDefault",arguments.length,1,"(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("SquareAnnot.setInteriorColorDefault",{square:this.id,col:col.id})};PDFNet.SquareAnnot.prototype.setInteriorColor=function(col,numcomp){apiFunctionCheck("SquareAnnot.setInteriorColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt, 520"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("SquareAnnot.setInteriorColor",{square:this.id,col:col.id,numcomp:numcomp})};PDFNet.SquareAnnot.prototype.getContentRect=function(){apiFunctionCheck("SquareAnnot.getContentRect");return PDFNet.sendWithPromise("SquareAnnot.getContentRect",{square:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.SquareAnnot.prototype.setContentRect=function(cr){apiFunctionCheck("SquareAnnot.setContentRect",arguments.length,1,"(PDFNet.Rect)", 521[[cr,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[cr,0]]);return PDFNet.sendWithPromise("SquareAnnot.setContentRect",{square:this.id,cr:cr})};PDFNet.SquareAnnot.prototype.getPadding=function(){apiFunctionCheck("SquareAnnot.getPadding");return PDFNet.sendWithPromise("SquareAnnot.getPadding",{square:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.SquareAnnot.prototype.setPadding=function(cr){apiFunctionCheck("SquareAnnot.setPadding",arguments.length,1,"(PDFNet.Rect)",[[cr, 522"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[cr,0]]);return PDFNet.sendWithPromise("SquareAnnot.setPadding",{square:this.id,cr:cr})};PDFNet.SquigglyAnnot.createFromObj=function(d){apiFunctionCheck("SquigglyAnnot.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("squigglyAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SquigglyAnnot,id)})};PDFNet.SquigglyAnnot.createFromAnnot=function(ann){apiFunctionCheck("SquigglyAnnot.createFromAnnot", 523arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("squigglyAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.SquigglyAnnot,id)})};PDFNet.SquigglyAnnot.create=function(doc,pos){apiFunctionCheck("SquigglyAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("squigglyAnnotCreate",{doc:doc.id, 524pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SquigglyAnnot,id)})};PDFNet.StrikeOutAnnot.createFromObj=function(d){apiFunctionCheck("StrikeOutAnnot.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("strikeOutAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.StrikeOutAnnot,id)})};PDFNet.StrikeOutAnnot.createFromAnnot=function(ann){apiFunctionCheck("StrikeOutAnnot.createFromAnnot",arguments.length, 5251,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("strikeOutAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.StrikeOutAnnot,id)})};PDFNet.StrikeOutAnnot.create=function(doc,pos){apiFunctionCheck("StrikeOutAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);
525return PDFNet.sendWithPromise("strikeOutAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.StrikeOutAnnot, 526id)})};PDFNet.TextAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("TextAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("textAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot,id)})};PDFNet.TextAnnot.createFromAnnot=function(ann){apiFunctionCheck("TextAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]); 527return PDFNet.sendWithPromise("textAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot,id)})};PDFNet.TextAnnot.createAtPoint=function(doc,pos){apiFunctionCheck("TextAnnot.createAtPoint",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Point)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("textAnnotCreateAtPoint",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot, 528id)})};PDFNet.TextAnnot.create=function(doc,pos){apiFunctionCheck("TextAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("textAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot,id)})};PDFNet.TextAnnot.prototype.isOpen=function(){apiFunctionCheck("TextAnnot.isOpen");return PDFNet.sendWithPromise("TextAnnot.isOpen",{text:this.id})}; 529PDFNet.TextAnnot.prototype.setOpen=function(isopen){apiFunctionCheck("TextAnnot.setOpen",arguments.length,1,"(boolean)",[[isopen,"boolean"]]);return PDFNet.sendWithPromise("TextAnnot.setOpen",{text:this.id,isopen:isopen})};PDFNet.TextAnnot.prototype.getIcon=function(){apiFunctionCheck("TextAnnot.getIcon");return PDFNet.sendWithPromise("TextAnnot.getIcon",{text:this.id})};PDFNet.TextAnnot.prototype.setIcon=function(icon){"undefined"===typeof icon&&(icon=PDFNet.TextAnnot.Icon.e_Note);apiFunctionCheck("TextAnnot.setIcon", 530arguments.length,0,"(number)",[[icon,"number"]]);return PDFNet.sendWithPromise("TextAnnot.setIcon",{text:this.id,icon:icon})};PDFNet.TextAnnot.prototype.setIconDefault=function(){apiFunctionCheck("TextAnnot.setIconDefault");return PDFNet.sendWithPromise("TextAnnot.setIconDefault",{text:this.id})};PDFNet.TextAnnot.prototype.getIconName=function(){apiFunctionCheck("TextAnnot.getIconName");return PDFNet.sendWithPromise("TextAnnot.getIconName",{text:this.id})};PDFNet.TextAnnot.prototype.setIconName=function(icon){apiFunctionCheck("TextAnnot.setIconName", 531arguments.length,1,"(string)",[[icon,"string"]]);return PDFNet.sendWithPromise("TextAnnot.setIconName",{text:this.id,icon:icon})};PDFNet.TextAnnot.prototype.getState=function(){apiFunctionCheck("TextAnnot.getState");return PDFNet.sendWithPromise("TextAnnot.getState",{text:this.id})};PDFNet.TextAnnot.prototype.setState=function(state){"undefined"===typeof state&&(state="");apiFunctionCheck("TextAnnot.setState",arguments.length,0,"(string)",[[state,"string"]]);return PDFNet.sendWithPromise("TextAnnot.setState", 532{text:this.id,state:state})};PDFNet.TextAnnot.prototype.getStateModel=function(){apiFunctionCheck("TextAnnot.getStateModel");return PDFNet.sendWithPromise("TextAnnot.getStateModel",{text:this.id})};PDFNet.TextAnnot.prototype.setStateModel=function(sm){apiFunctionCheck("TextAnnot.setStateModel",arguments.length,1,"(string)",[[sm,"string"]]);return PDFNet.sendWithPromise("TextAnnot.setStateModel",{text:this.id,sm:sm})};PDFNet.TextAnnot.prototype.getAnchorPosition=function(anchor){apiFunctionCheck("TextAnnot.getAnchorPosition", 533arguments.length,1,"(PDFNet.Point)",[[anchor,"Structure",PDFNet.Point,"Point"]],{checkThisYield:!1},[[anchor,0]]);anchor.yieldFunction="TextAnnot.getAnchorPosition";return PDFNet.sendWithPromise("TextAnnot.getAnchorPosition",{text:this.id,anchor:anchor}).then(function(id){anchor.yieldFunction=void 0;copyFunc(id,anchor)})};PDFNet.TextAnnot.prototype.setAnchorPosition=function(anchor){apiFunctionCheck("TextAnnot.setAnchorPosition",arguments.length,1,"(PDFNet.Point)",[[anchor,"Structure",PDFNet.Point, 534"Point"]],{checkThisYield:!1},[[anchor,0]]);
534return PDFNet.sendWithPromise("TextAnnot.setAnchorPosition",{text:this.id,anchor:anchor})};PDFNet.UnderlineAnnot.createFromObj=function(d){apiFunctionCheck("UnderlineAnnot.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("underlineAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.UnderlineAnnot,id)})};PDFNet.UnderlineAnnot.createFromAnnot=function(ann){apiFunctionCheck("UnderlineAnnot.createFromAnnot", 535arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("underlineAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.UnderlineAnnot,id)})};PDFNet.UnderlineAnnot.create=function(doc,pos){apiFunctionCheck("UnderlineAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("underlineAnnotCreate",{doc:doc.id, 536pos:pos}).then(function(id){return createPDFNetObj(PDFNet.UnderlineAnnot,id)})};PDFNet.WatermarkAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("WatermarkAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("watermarkAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.WatermarkAnnot,id)})};PDFNet.WatermarkAnnot.createFromAnnot=function(ann){apiFunctionCheck("WatermarkAnnot.createFromAnnot", 537arguments.length,1,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("watermarkAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.WatermarkAnnot,id)})};PDFNet.WatermarkAnnot.create=function(doc,pos){apiFunctionCheck("WatermarkAnnot.create",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("watermarkAnnotCreate",{doc:doc.id, 538pos:pos}).then(function(id){return createPDFNetObj(PDFNet.WatermarkAnnot,id)})};PDFNet.TextMarkupAnnot.createFromObj=function(d){apiFunctionCheck("TextMarkupAnnot.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("textMarkupAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.TextMarkupAnnot,id)})};PDFNet.TextMarkupAnnot.createFromAnnot=function(ann){apiFunctionCheck("TextMarkupAnnot.createFromAnnot",arguments.length, 5391,"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("textMarkupAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.TextMarkupAnnot,id)})};PDFNet.TextMarkupAnnot.prototype.getQuadPointCount=function(){apiFunctionCheck("TextMarkupAnnot.getQuadPointCount");return PDFNet.sendWithPromise("TextMarkupAnnot.getQuadPointCount",{textmarkup:this.id})};PDFNet.TextMarkupAnnot.prototype.getQuadPoint=function(idx){apiFunctionCheck("TextMarkupAnnot.getQuadPoint", 540arguments.length,1,"(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("TextMarkupAnnot.getQuadPoint",{textmarkup:this.id,idx:idx})};PDFNet.TextMarkupAnnot.prototype.setQuadPoint=function(idx,qp){apiFunctionCheck("TextMarkupAnnot.setQuadPoint",arguments.length,2,"(number, PDFNet.QuadPoint)",[[idx,"number"],[qp,"Structure",PDFNet.QuadPoint,"QuadPoint"]],{checkThisYield:!1},[[qp,1]]);return PDFNet.sendWithPromise("TextMarkupAnnot.setQuadPoint",{textmarkup:this.id,idx:idx,qp:qp})};PDFNet.WidgetAnnot.create= 541function(doc,pos,field){apiFunctionCheck("WidgetAnnot.create",arguments.length,3,"(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[pos,1],[field,2]]);field.yieldFunction="WidgetAnnot.create";return PDFNet.sendWithPromise("widgetAnnotCreate",{doc:doc.id,pos:pos,field:field}).then(function(id){field.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.WidgetAnnot,id.result);copyFunc(id.field, 542field);return id.result})};PDFNet.WidgetAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("WidgetAnnot.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);
542return PDFNet.sendWithPromise("widgetAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.WidgetAnnot,id)})};PDFNet.WidgetAnnot.createFromAnnot=function(ann){apiFunctionCheck("WidgetAnnot.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[ann, 543"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("widgetAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.WidgetAnnot,id)})};PDFNet.WidgetAnnot.prototype.getField=function(){apiFunctionCheck("WidgetAnnot.getField");return PDFNet.sendWithPromise("WidgetAnnot.getField",{widget:this.id}).then(function(id){return new PDFNet.Field(id)})};PDFNet.WidgetAnnot.prototype.getHighlightingMode=function(){apiFunctionCheck("WidgetAnnot.getHighlightingMode");return PDFNet.sendWithPromise("WidgetAnnot.getHighlightingMode", 544{widget:this.id})};PDFNet.WidgetAnnot.prototype.setHighlightingMode=function(value){"undefined"===typeof value&&(value=PDFNet.WidgetAnnot.HighlightingMode.e_invert);apiFunctionCheck("WidgetAnnot.setHighlightingMode",arguments.length,0,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setHighlightingMode",{widget:this.id,value:value})};PDFNet.WidgetAnnot.prototype.getAction=function(){apiFunctionCheck("WidgetAnnot.getAction");return PDFNet.sendWithPromise("WidgetAnnot.getAction", 545{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.WidgetAnnot.prototype.setAction=function(action){apiFunctionCheck("WidgetAnnot.setAction",arguments.length,1,"(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("WidgetAnnot.setAction",{widget:this.id,action:action.id})};PDFNet.WidgetAnnot.prototype.getBorderColor=function(){apiFunctionCheck("WidgetAnnot.getBorderColor");return PDFNet.sendWithPromise("WidgetAnnot.getBorderColor", 546{widget:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.WidgetAnnot.prototype.setBorderColor=function(col,compnum){apiFunctionCheck("WidgetAnnot.setBorderColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[compnum,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setBorderColor",{widget:this.id,col:col.id,compnum:compnum})};PDFNet.WidgetAnnot.prototype.getBorderColorCompNum=function(){apiFunctionCheck("WidgetAnnot.getBorderColorCompNum"); 547return PDFNet.sendWithPromise("WidgetAnnot.getBorderColorCompNum",{widget:this.id})};PDFNet.WidgetAnnot.prototype.getBackgroundColorCompNum=function(){apiFunctionCheck("WidgetAnnot.getBackgroundColorCompNum");return PDFNet.sendWithPromise("WidgetAnnot.getBackgroundColorCompNum",{widget:this.id})};PDFNet.WidgetAnnot.prototype.getBackgroundColor=function(){apiFunctionCheck("WidgetAnnot.getBackgroundColor");return PDFNet.sendWithPromise("WidgetAnnot.getBackgroundColor",{widget:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt, 548id)})};PDFNet.WidgetAnnot.prototype.setBackgroundColor=function(col,compnum){apiFunctionCheck("WidgetAnnot.setBackgroundColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[compnum,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setBackgroundColor",{widget:this.id,col:col.id,compnum:compnum})};PDFNet.WidgetAnnot.prototype.getStaticCaptionText=function(){apiFunctionCheck("WidgetAnnot.getStaticCaptionText");return PDFNet.sendWithPromise("WidgetAnnot.getStaticCaptionText", 549{widget:this.id})};PDFNet.WidgetAnnot.prototype.setStaticCaptionText=function(contents){apiFunctionCheck("WidgetAnnot.setStaticCaptionText",arguments.length,1,"(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("WidgetAnnot.setStaticCaptionText",{widget:this.id,contents:contents})};PDFNet.WidgetAnnot.prototype.getRolloverCaptionText=function(){apiFunctionCheck("WidgetAnnot.getRolloverCaptionText");return PDFNet.sendWithPromise("WidgetAnnot.getRolloverCaptionText",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setRolloverCaptionText= 550function(contents){apiFunctionCheck("WidgetAnnot.setRolloverCaptionText",arguments.length,1,"(string)",[[contents,"string"]]
550);return PDFNet.sendWithPromise("WidgetAnnot.setRolloverCaptionText",{widget:this.id,contents:contents})};PDFNet.WidgetAnnot.prototype.getMouseDownCaptionText=function(){apiFunctionCheck("WidgetAnnot.getMouseDownCaptionText");return PDFNet.sendWithPromise("WidgetAnnot.getMouseDownCaptionText",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setMouseDownCaptionText=function(contents){apiFunctionCheck("WidgetAnnot.setMouseDownCaptionText", 551arguments.length,1,"(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("WidgetAnnot.setMouseDownCaptionText",{widget:this.id,contents:contents})};PDFNet.WidgetAnnot.prototype.getStaticIcon=function(){apiFunctionCheck("WidgetAnnot.getStaticIcon");return PDFNet.sendWithPromise("WidgetAnnot.getStaticIcon",{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.WidgetAnnot.prototype.setStaticIcon=function(icon){apiFunctionCheck("WidgetAnnot.setStaticIcon",arguments.length, 5521,"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("WidgetAnnot.setStaticIcon",{widget:this.id,icon:icon.id})};PDFNet.WidgetAnnot.prototype.getRolloverIcon=function(){apiFunctionCheck("WidgetAnnot.getRolloverIcon");return PDFNet.sendWithPromise("WidgetAnnot.getRolloverIcon",{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.WidgetAnnot.prototype.setRolloverIcon=function(icon){apiFunctionCheck("WidgetAnnot.setRolloverIcon",arguments.length, 5531,"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("WidgetAnnot.setRolloverIcon",{widget:this.id,icon:icon.id})};PDFNet.WidgetAnnot.prototype.getMouseDownIcon=function(){apiFunctionCheck("WidgetAnnot.getMouseDownIcon");return PDFNet.sendWithPromise("WidgetAnnot.getMouseDownIcon",{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.WidgetAnnot.prototype.setMouseDownIcon=function(icon){apiFunctionCheck("WidgetAnnot.setMouseDownIcon",arguments.length, 5541,"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("WidgetAnnot.setMouseDownIcon",{widget:this.id,icon:icon.id})};PDFNet.WidgetAnnot.prototype.getScaleType=function(){apiFunctionCheck("WidgetAnnot.getScaleType");return PDFNet.sendWithPromise("WidgetAnnot.getScaleType",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setScaleType=function(st){apiFunctionCheck("WidgetAnnot.setScaleType",arguments.length,1,"(number)",[[st,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setScaleType", 555{widget:this.id,st:st})};PDFNet.WidgetAnnot.prototype.getIconCaptionRelation=function(){apiFunctionCheck("WidgetAnnot.getIconCaptionRelation");return PDFNet.sendWithPromise("WidgetAnnot.getIconCaptionRelation",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setIconCaptionRelation=function(icr){apiFunctionCheck("WidgetAnnot.setIconCaptionRelation",arguments.length,1,"(number)",[[icr,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setIconCaptionRelation",{widget:this.id,icr:icr})};PDFNet.WidgetAnnot.prototype.getScaleCondition= 556function(){apiFunctionCheck("WidgetAnnot.getScaleCondition");return PDFNet.sendWithPromise("WidgetAnnot.getScaleCondition",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setScaleCondition=function(sd){apiFunctionCheck("WidgetAnnot.setScaleCondition",arguments.length,1,"(number)",[[sd,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setScaleCondition",{widget:this.id,sd:sd})};PDFNet.WidgetAnnot.prototype.getFitFull=function(){apiFunctionCheck("WidgetAnnot.getFitFull");return PDFNet.sendWithPromise("WidgetAnnot.getFitFull", 557{widget:this.id})};PDFNet.WidgetAnnot.prototype.setFitFull=function(ff){apiFunctionCheck("WidgetAnnot.setFitFull",arguments.length,1,"(boolean)",[[ff,"boolean"]]);return PDFNet.sendWithPromise("WidgetAnnot.setFitFull",{widget:this.id,ff:ff})};PDFNet.WidgetAnnot.prototype.getHIconLeftOver=function(){apiFunctionCheck("WidgetAnnot.getHIconLeftOver");return PDFNet.sendWithPromise("WidgetAnnot.getHIconLeftOver",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setHIconLeftOver=function(hl){apiFunctionCheck("WidgetAnnot.setHIconLeftOver", 558arguments.length,1,"(number)",[[hl,"number"]]);
558return PDFNet.sendWithPromise("WidgetAnnot.setHIconLeftOver",{widget:this.id,hl:hl})};PDFNet.WidgetAnnot.prototype.getVIconLeftOver=function(){apiFunctionCheck("WidgetAnnot.getVIconLeftOver");return PDFNet.sendWithPromise("WidgetAnnot.getVIconLeftOver",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setVIconLeftOver=function(vl){apiFunctionCheck("WidgetAnnot.setVIconLeftOver",arguments.length,1,"(number)",[[vl,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setVIconLeftOver", 559{widget:this.id,vl:vl})};PDFNet.WidgetAnnot.prototype.setFontSize=function(font_size){apiFunctionCheck("WidgetAnnot.setFontSize",arguments.length,1,"(number)",[[font_size,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setFontSize",{widget:this.id,font_size:font_size})};PDFNet.WidgetAnnot.prototype.setTextColor=function(color,col_comp){apiFunctionCheck("WidgetAnnot.setTextColor",arguments.length,2,"(PDFNet.ColorPt, number)",[[color,"Object",PDFNet.ColorPt,"ColorPt"],[col_comp,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setTextColor", 560{widget:this.id,color:color.id,col_comp:col_comp})};PDFNet.WidgetAnnot.prototype.setFont=function(font){apiFunctionCheck("WidgetAnnot.setFont",arguments.length,1,"(PDFNet.Font)",[[font,"Object",PDFNet.Font,"Font"]]);return PDFNet.sendWithPromise("WidgetAnnot.setFont",{widget:this.id,font:font.id})};PDFNet.WidgetAnnot.prototype.getFontSize=function(){apiFunctionCheck("WidgetAnnot.getFontSize");return PDFNet.sendWithPromise("WidgetAnnot.getFontSize",{widget:this.id})};PDFNet.WidgetAnnot.prototype.getTextColor= 561function(){apiFunctionCheck("WidgetAnnot.getTextColor");return PDFNet.sendWithPromise("WidgetAnnot.getTextColor",{widget:this.id}).then(function(id){id.col=createDestroyableObj(PDFNet.ColorPt,id.col);return id})};PDFNet.WidgetAnnot.prototype.getFont=function(){apiFunctionCheck("WidgetAnnot.getFont");return PDFNet.sendWithPromise("WidgetAnnot.getFont",{widget:this.id}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.SignatureWidget.create=function(doc,pos,field_name){"undefined"=== 562typeof field_name&&(field_name="");apiFunctionCheck("SignatureWidget.create",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("signatureWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createWithField=function(doc,pos,field){apiFunctionCheck("SignatureWidget.createWithField", 563arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[pos,1],[field,2]]);return PDFNet.sendWithPromise("signatureWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createWithDigitalSignatureField=function(doc,pos,field){apiFunctionCheck("SignatureWidget.createWithDigitalSignatureField", 564arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.DigitalSignatureField)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.DigitalSignatureField,"DigitalSignatureField"]],{checkThisYield:!1},[[pos,1],[field,2]]);return PDFNet.sendWithPromise("signatureWidgetCreateWithDigitalSignatureField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createFromObj=function(d){"undefined"===typeof d&& 565(d=new PDFNet.Obj("0"));apiFunctionCheck("SignatureWidget.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("signatureWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createFromAnnot=function(annot){apiFunctionCheck("SignatureWidget.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);
565return PDFNet.sendWithPromise("signatureWidgetCreateFromAnnot", 566{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.prototype.createSignatureAppearance=function(img){apiFunctionCheck("SignatureWidget.createSignatureAppearance",arguments.length,1,"(PDFNet.Image)",[[img,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("SignatureWidget.createSignatureAppearance",{self:this.id,img:img.id})};PDFNet.SignatureWidget.prototype.getDigitalSignatureField=function(){apiFunctionCheck("SignatureWidget.getDigitalSignatureField"); 567return PDFNet.sendWithPromise("SignatureWidget.getDigitalSignatureField",{self:this.id}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};PDFNet.ComboBoxWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");apiFunctionCheck("ComboBoxWidget.create",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("comboBoxWidgetCreate", 568{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,id)})};PDFNet.ComboBoxWidget.createWithField=function(doc,pos,field){apiFunctionCheck("ComboBoxWidget.createWithField",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[pos,1],[field,2]]);return PDFNet.sendWithPromise("comboBoxWidgetCreateWithField",{doc:doc.id,pos:pos, 569field:field}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,id)})};PDFNet.ComboBoxWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("ComboBoxWidget.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("comboBoxWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,id)})};PDFNet.ComboBoxWidget.createFromAnnot=function(annot){apiFunctionCheck("ComboBoxWidget.createFromAnnot", 570arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("comboBoxWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,id)})};PDFNet.ComboBoxWidget.prototype.addOption=function(value){apiFunctionCheck("ComboBoxWidget.addOption",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ComboBoxWidget.addOption",{combobox:this.id,value:value})};PDFNet.ComboBoxWidget.prototype.addOptions= 571function(opts){apiFunctionCheck("ComboBoxWidget.addOptions",arguments.length,1,"(Array<string>)",[[opts,"Array"]]);return PDFNet.sendWithPromise("ComboBoxWidget.addOptions",{combobox:this.id,opts_list:opts})};PDFNet.ComboBoxWidget.prototype.setSelectedOption=function(value){apiFunctionCheck("ComboBoxWidget.setSelectedOption",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ComboBoxWidget.setSelectedOption",{combobox:this.id,value:value})};PDFNet.ComboBoxWidget.prototype.getSelectedOption= 572function(){apiFunctionCheck("ComboBoxWidget.getSelectedOption");return PDFNet.sendWithPromise("ComboBoxWidget.getSelectedOption",{combobox:this.id})};PDFNet.ComboBoxWidget.prototype.replaceOptions=function(new_opts){apiFunctionCheck("ComboBoxWidget.replaceOptions",arguments.length,1,"(Array<string>)",[[new_opts,"Array"]]);return PDFNet.sendWithPromise("ComboBoxWidget.replaceOptions",{combobox:this.id,new_opts_list:new_opts})};PDFNet.ComboBoxWidget.prototype.removeOption=function(value){apiFunctionCheck("ComboBoxWidget.removeOption", 573arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ComboBoxWidget.removeOption",{combobox:this.id,value:value})};PDFNet.ListBoxWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");apiFunctionCheck("ListBoxWidget.create",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]],{checkThisYield:!1},[[pos,1]]);
573return PDFNet.sendWithPromise("listBoxWidgetCreate", 574{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.createWithField=function(doc,pos,field){apiFunctionCheck("ListBoxWidget.createWithField",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[pos,1],[field,2]]);return PDFNet.sendWithPromise("listBoxWidgetCreateWithField",{doc:doc.id,pos:pos, 575field:field}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("ListBoxWidget.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("listBoxWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.createFromAnnot=function(annot){apiFunctionCheck("ListBoxWidget.createFromAnnot", 576arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("listBoxWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.prototype.addOption=function(value){apiFunctionCheck("ListBoxWidget.addOption",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ListBoxWidget.addOption",{listbox:this.id,value:value})};PDFNet.ListBoxWidget.prototype.addOptions= 577function(opts){apiFunctionCheck("ListBoxWidget.addOptions",arguments.length,1,"(Array<string>)",[[opts,"Array"]]);return PDFNet.sendWithPromise("ListBoxWidget.addOptions",{listbox:this.id,opts_list:opts})};PDFNet.ListBoxWidget.prototype.setSelectedOptions=function(selected_opts){apiFunctionCheck("ListBoxWidget.setSelectedOptions",arguments.length,1,"(Array<string>)",[[selected_opts,"Array"]]);return PDFNet.sendWithPromise("ListBoxWidget.setSelectedOptions",{listbox:this.id,selected_opts_list:selected_opts})}; 578PDFNet.ListBoxWidget.prototype.replaceOptions=function(new_opts){apiFunctionCheck("ListBoxWidget.replaceOptions",arguments.length,1,"(Array<string>)",[[new_opts,"Array"]]);return PDFNet.sendWithPromise("ListBoxWidget.replaceOptions",{listbox:this.id,new_opts_list:new_opts})};PDFNet.ListBoxWidget.prototype.removeOption=function(value){apiFunctionCheck("ListBoxWidget.removeOption",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ListBoxWidget.removeOption",{listbox:this.id, 579value:value})};PDFNet.TextWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");apiFunctionCheck("TextWidget.create",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("textWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.TextWidget,id)})};PDFNet.TextWidget.createWithField= 580function(doc,pos,field){apiFunctionCheck("TextWidget.createWithField",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[pos,1],[field,2]]);return PDFNet.sendWithPromise("textWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.TextWidget,id)})};PDFNet.TextWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0")); 581apiFunctionCheck("TextWidget.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("textWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.TextWidget,id)})};PDFNet.TextWidget.createFromAnnot=function(annot){apiFunctionCheck("TextWidget.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);
581return PDFNet.sendWithPromise("textWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.TextWidget, 582id)})};PDFNet.TextWidget.prototype.setText=function(text){apiFunctionCheck("TextWidget.setText",arguments.length,1,"(string)",[[text,"string"]]);return PDFNet.sendWithPromise("TextWidget.setText",{widget:this.id,text:text})};PDFNet.TextWidget.prototype.getText=function(){apiFunctionCheck("TextWidget.getText");return PDFNet.sendWithPromise("TextWidget.getText",{widget:this.id})};PDFNet.CheckBoxWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");apiFunctionCheck("CheckBoxWidget.create", 583arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]],{checkThisYield:!1},[[pos,1]]);return PDFNet.sendWithPromise("checkBoxWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.createWithField=function(doc,pos,field){apiFunctionCheck("CheckBoxWidget.createWithField",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)", 584[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[pos,1],[field,2]]);return PDFNet.sendWithPromise("checkBoxWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("CheckBoxWidget.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj, 585"Obj"]]);return PDFNet.sendWithPromise("checkBoxWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.createFromAnnot=function(annot){apiFunctionCheck("CheckBoxWidget.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("checkBoxWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.prototype.isChecked= 586function(){apiFunctionCheck("CheckBoxWidget.isChecked");return PDFNet.sendWithPromise("CheckBoxWidget.isChecked",{button:this.id})};PDFNet.CheckBoxWidget.prototype.setChecked=function(checked){apiFunctionCheck("CheckBoxWidget.setChecked",arguments.length,1,"(boolean)",[[checked,"boolean"]]);return PDFNet.sendWithPromise("CheckBoxWidget.setChecked",{button:this.id,checked:checked})};PDFNet.RadioButtonWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("RadioButtonWidget.createFromObj", 587arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("radioButtonWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget,id)})};PDFNet.RadioButtonWidget.createFromAnnot=function(annot){apiFunctionCheck("RadioButtonWidget.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("radioButtonWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget, 588id)})};PDFNet.RadioButtonWidget.prototype.isEnabled=function(){apiFunctionCheck("RadioButtonWidget.isEnabled");return PDFNet.sendWithPromise("RadioButtonWidget.isEnabled",{button:this.id})};PDFNet.RadioButtonWidget.prototype.enableButton=function(){apiFunctionCheck("RadioButtonWidget.enableButton");return PDFNet.sendWithPromise("RadioButtonWidget.enableButton",{button:this.id})};PDFNet.RadioButtonWidget.prototype.getGroup=function(){apiFunctionCheck("RadioButtonWidget.getGroup");return PDFNet.sendWithPromise("RadioButtonWidget.getGroup", 589{button:this.id}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup,id)})};PDFNet.PushButtonWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");apiFunctionCheck("PushButtonWidget.create",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]],{checkThisYield:!1},[[pos,1]]);
589return PDFNet.sendWithPromise("pushButtonWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget, 590id)})};PDFNet.PushButtonWidget.createWithField=function(doc,pos,field){apiFunctionCheck("PushButtonWidget.createWithField",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[pos,1],[field,2]]);return PDFNet.sendWithPromise("pushButtonWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget,id)})};PDFNet.PushButtonWidget.createFromObj= 591function(obj){"undefined"===typeof obj&&(obj=new PDFNet.Obj("0"));apiFunctionCheck("PushButtonWidget.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pushButtonWidgetCreateFromObj",{obj:obj.id}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget,id)})};PDFNet.PushButtonWidget.createFromAnnot=function(annot){apiFunctionCheck("PushButtonWidget.createFromAnnot",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot, 592"Annot"]]);return PDFNet.sendWithPromise("pushButtonWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget,id)})};PDFNet.Bookmark.create=function(in_doc,in_title){apiFunctionCheck("Bookmark.create",arguments.length,2,"(PDFNet.PDFDoc, string)",[[in_doc,"PDFDoc"],[in_title,"string"]]);return PDFNet.sendWithPromise("bookmarkCreate",{in_doc:in_doc.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.createFromObj= 593function(in_bookmark_dict){apiFunctionCheck("Bookmark.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[in_bookmark_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("bookmarkCreateFromObj",{in_bookmark_dict:in_bookmark_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.copy=function(){apiFunctionCheck("Bookmark.copy");return PDFNet.sendWithPromise("Bookmark.copy",{in_bookmark:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark, 594id)})};PDFNet.Bookmark.prototype.compare=function(in_bookmark){apiFunctionCheck("Bookmark.compare",arguments.length,1,"(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.compare",{bm:this.id,in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype.isValid=function(){apiFunctionCheck("Bookmark.isValid");return PDFNet.sendWithPromise("Bookmark.isValid",{bm:this.id})};PDFNet.Bookmark.prototype.hasChildren=function(){apiFunctionCheck("Bookmark.hasChildren"); 595return PDFNet.sendWithPromise("Bookmark.hasChildren",{bm:this.id})};PDFNet.Bookmark.prototype.getNext=function(){apiFunctionCheck("Bookmark.getNext");return PDFNet.sendWithPromise("Bookmark.getNext",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getPrev=function(){apiFunctionCheck("Bookmark.getPrev");return PDFNet.sendWithPromise("Bookmark.getPrev",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getFirstChild= 596function(){apiFunctionCheck("Bookmark.getFirstChild");return PDFNet.sendWithPromise("Bookmark.getFirstChild",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getLastChild=function(){apiFunctionCheck("Bookmark.getLastChild");return PDFNet.sendWithPromise("Bookmark.getLastChild",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getParent=function(){apiFunctionCheck("Bookmark.getParent");return PDFNet.sendWithPromise("Bookmark.getParent", 597{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.find=function(in_title){apiFunctionCheck("Bookmark.find",arguments.length,1,"(string)",[[in_title,"string"]]);return PDFNet.sendWithPromise("Bookmark.find",{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addNewChild=function(in_title){apiFunctionCheck("Bookmark.addNewChild",arguments.length,1,"(string)",[[in_title,"string"]]
597); 598return PDFNet.sendWithPromise("Bookmark.addNewChild",{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addChild=function(in_bookmark){apiFunctionCheck("Bookmark.addChild",arguments.length,1,"(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.addChild",{bm:this.id,in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype.addNewNext=function(in_title){apiFunctionCheck("Bookmark.addNewNext", 599arguments.length,1,"(string)",[[in_title,"string"]]);return PDFNet.sendWithPromise("Bookmark.addNewNext",{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addNext=function(in_bookmark){apiFunctionCheck("Bookmark.addNext",arguments.length,1,"(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.addNext",{bm:this.id,in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype.addNewPrev= 600function(in_title){apiFunctionCheck("Bookmark.addNewPrev",arguments.length,1,"(string)",[[in_title,"string"]]);return PDFNet.sendWithPromise("Bookmark.addNewPrev",{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addPrev=function(in_bookmark){apiFunctionCheck("Bookmark.addPrev",arguments.length,1,"(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.addPrev",{bm:this.id, 601in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype["delete"]=function(){apiFunctionCheck("Bookmark.delete");return PDFNet.sendWithPromise("Bookmark.delete",{bm:this.id})};PDFNet.Bookmark.prototype.unlink=function(){apiFunctionCheck("Bookmark.unlink");return PDFNet.sendWithPromise("Bookmark.unlink",{bm:this.id})};PDFNet.Bookmark.prototype.getIndent=function(){apiFunctionCheck("Bookmark.getIndent");return PDFNet.sendWithPromise("Bookmark.getIndent",{bm:this.id})};PDFNet.Bookmark.prototype.isOpen= 602function(){apiFunctionCheck("Bookmark.isOpen");return PDFNet.sendWithPromise("Bookmark.isOpen",{bm:this.id})};PDFNet.Bookmark.prototype.setOpen=function(in_open){apiFunctionCheck("Bookmark.setOpen",arguments.length,1,"(boolean)",[[in_open,"boolean"]]);return PDFNet.sendWithPromise("Bookmark.setOpen",{bm:this.id,in_open:in_open})};PDFNet.Bookmark.prototype.getOpenCount=function(){apiFunctionCheck("Bookmark.getOpenCount");return PDFNet.sendWithPromise("Bookmark.getOpenCount",{bm:this.id})};PDFNet.Bookmark.prototype.getTitle= 603function(){apiFunctionCheck("Bookmark.getTitle");return PDFNet.sendWithPromise("Bookmark.getTitle",{bm:this.id})};PDFNet.Bookmark.prototype.getTitleObj=function(){apiFunctionCheck("Bookmark.getTitleObj");return PDFNet.sendWithPromise("Bookmark.getTitleObj",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Bookmark.prototype.setTitle=function(title){apiFunctionCheck("Bookmark.setTitle",arguments.length,1,"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("Bookmark.setTitle", 604{bm:this.id,title:title})};PDFNet.Bookmark.prototype.getAction=function(){apiFunctionCheck("Bookmark.getAction");return PDFNet.sendWithPromise("Bookmark.getAction",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Bookmark.prototype.setAction=function(in_action){apiFunctionCheck("Bookmark.setAction",arguments.length,1,"(PDFNet.Action)",[[in_action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("Bookmark.setAction",{bm:this.id,in_action:in_action.id})}; 605PDFNet.Bookmark.prototype.removeAction=function(){apiFunctionCheck("Bookmark.removeAction");return PDFNet.sendWithPromise("Bookmark.removeAction",{bm:this.id})};PDFNet.Bookmark.prototype.getFlags=function(){apiFunctionCheck("Bookmark.getFlags");return PDFNet.sendWithPromise("Bookmark.getFlags",{bm:this.id})};PDFNet.Bookmark.prototype.setFlags=function(in_flags){apiFunctionCheck("Bookmark.setFlags",arguments.length,1,"(number)",[[in_flags,"number"]]);return PDFNet.sendWithPromise("Bookmark.setFlags", 606{bm:this.id,in_flags:in_flags})};PDFNet.Bookmark.prototype.getColor=function(){apiFunctionCheck("Bookmark.getColor");
606return PDFNet.sendWithPromise("Bookmark.getColor",{bm:this.id})};PDFNet.Bookmark.prototype.setColor=function(in_r,in_g,in_b){"undefined"===typeof in_r&&(in_r=0);"undefined"===typeof in_g&&(in_g=0);"undefined"===typeof in_b&&(in_b=0);apiFunctionCheck("Bookmark.setColor",arguments.length,0,"(number, number, number)",[[in_r,"number"],[in_g,"number"],[in_b,"number"]]);return PDFNet.sendWithPromise("Bookmark.setColor", 607{bm:this.id,in_r:in_r,in_g:in_g,in_b:in_b})};PDFNet.Bookmark.prototype.getSDFObj=function(){apiFunctionCheck("Bookmark.getSDFObj");return PDFNet.sendWithPromise("Bookmark.getSDFObj",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ColorPt.init=function(x,y,z,w){"undefined"===typeof x&&(x=0);"undefined"===typeof y&&(y=0);"undefined"===typeof z&&(z=0);"undefined"===typeof w&&(w=0);apiFunctionCheck("ColorPt.init",arguments.length,0,"(number, number, number, number)",[[x, 608"number"],[y,"number"],[z,"number"],[w,"number"]]);return PDFNet.sendWithPromise("colorPtInit",{x:x,y:y,z:z,w:w}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorPt.prototype.compare=function(right){apiFunctionCheck("ColorPt.compare",arguments.length,1,"(PDFNet.ColorPt)",[[right,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorPt.compare",{left:this.id,right:right.id})};PDFNet.ColorPt.prototype.set=function(x,y,z,w){"undefined"===typeof x&&(x= 6090);"undefined"===typeof y&&(y=0);"undefined"===typeof z&&(z=0);"undefined"===typeof w&&(w=0);apiFunctionCheck("ColorPt.set",arguments.length,0,"(number, number, number, number)",[[x,"number"],[y,"number"],[z,"number"],[w,"number"]]);return PDFNet.sendWithPromise("ColorPt.set",{cp:this.id,x:x,y:y,z:z,w:w})};PDFNet.ColorPt.prototype.setByIndex=function(colorant_index,colorant_value){apiFunctionCheck("ColorPt.setByIndex",arguments.length,2,"(number, number)",[[colorant_index,"number"],[colorant_value, 610"number"]]);return PDFNet.sendWithPromise("ColorPt.setByIndex",{cp:this.id,colorant_index:colorant_index,colorant_value:colorant_value})};PDFNet.ColorPt.prototype.get=function(colorant_index){apiFunctionCheck("ColorPt.get",arguments.length,1,"(number)",[[colorant_index,"number"]]);return PDFNet.sendWithPromise("ColorPt.get",{cp:this.id,colorant_index:colorant_index})};PDFNet.ColorPt.prototype.setColorantNum=function(num){apiFunctionCheck("ColorPt.setColorantNum",arguments.length,1,"(number)",[[num, 611"number"]]);return PDFNet.sendWithPromise("ColorPt.setColorantNum",{cp:this.id,num:num})};PDFNet.ColorSpace.createDeviceGray=function(){apiFunctionCheck("ColorSpace.createDeviceGray");return PDFNet.sendWithPromise("colorSpaceCreateDeviceGray",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createDeviceRGB=function(){apiFunctionCheck("ColorSpace.createDeviceRGB");return PDFNet.sendWithPromise("colorSpaceCreateDeviceRGB",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace, 612id)})};PDFNet.ColorSpace.createDeviceCMYK=function(){apiFunctionCheck("ColorSpace.createDeviceCMYK");return PDFNet.sendWithPromise("colorSpaceCreateDeviceCMYK",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createPattern=function(){apiFunctionCheck("ColorSpace.createPattern");return PDFNet.sendWithPromise("colorSpaceCreatePattern",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.create=function(color_space){"undefined"=== 613typeof color_space&&(color_space=new PDFNet.Obj("0"));apiFunctionCheck("ColorSpace.create",arguments.length,0,"(PDFNet.Obj)",[[color_space,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("colorSpaceCreate",{color_space:color_space.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createICCFromFilter=function(doc,filter){apiFunctionCheck("ColorSpace.createICCFromFilter",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Filter)",[[doc,"SDFDoc"],[filter, 614"Object",PDFNet.Filter,"Filter"]]);0!=filter.id&&avoidCleanup(filter.id);return PDFNet.sendWithPromise("colorSpaceCreateICCFromFilter",{doc:doc.id,no_own_filter:filter.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createICCFromBuffer=function(doc,buf){apiFunctionCheck("ColorSpace.createICCFromBuffer",arguments.length,2,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);
614return PDFNet.sendWithPromise("colorSpaceCreateICCFromBuffer", 615{doc:doc.id,buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.getComponentNumFromObj=function(cs_type,cs_obj){apiFunctionCheck("ColorSpace.getComponentNumFromObj",arguments.length,2,"(number, PDFNet.Obj)",[[cs_type,"number"],[cs_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("colorSpaceGetComponentNumFromObj",{cs_type:cs_type,cs_obj:cs_obj.id})};PDFNet.ColorSpace.getTypeFromObj=function(cs_obj){apiFunctionCheck("ColorSpace.getTypeFromObj", 616arguments.length,1,"(PDFNet.Obj)",[[cs_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("colorSpaceGetTypeFromObj",{cs_obj:cs_obj.id})};PDFNet.ColorSpace.prototype.getType=function(){apiFunctionCheck("ColorSpace.getType");return PDFNet.sendWithPromise("ColorSpace.getType",{cs:this.id})};PDFNet.ColorSpace.prototype.getSDFObj=function(){apiFunctionCheck("ColorSpace.getSDFObj");return PDFNet.sendWithPromise("ColorSpace.getSDFObj",{cs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj, 617id)})};PDFNet.ColorSpace.prototype.getComponentNum=function(){apiFunctionCheck("ColorSpace.getComponentNum");return PDFNet.sendWithPromise("ColorSpace.getComponentNum",{cs:this.id})};PDFNet.ColorSpace.prototype.initColor=function(){apiFunctionCheck("ColorSpace.initColor");return PDFNet.sendWithPromise("ColorSpace.initColor",{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.initComponentRanges=function(num_comps){apiFunctionCheck("ColorSpace.initComponentRanges", 618arguments.length,1,"(number)",[[num_comps,"number"]]);return PDFNet.sendWithPromise("ColorSpace.initComponentRanges",{cs:this.id,num_comps:num_comps})};PDFNet.ColorSpace.prototype.convert2Gray=function(in_color){apiFunctionCheck("ColorSpace.convert2Gray",arguments.length,1,"(PDFNet.ColorPt)",[[in_color,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorSpace.convert2Gray",{cs:this.id,in_color:in_color.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.convert2RGB= 619function(in_color){apiFunctionCheck("ColorSpace.convert2RGB",arguments.length,1,"(PDFNet.ColorPt)",[[in_color,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorSpace.convert2RGB",{cs:this.id,in_color:in_color.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.convert2CMYK=function(in_color){apiFunctionCheck("ColorSpace.convert2CMYK",arguments.length,1,"(PDFNet.ColorPt)",[[in_color,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorSpace.convert2CMYK", 620{cs:this.id,in_color:in_color.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.getAlternateColorSpace=function(){apiFunctionCheck("ColorSpace.getAlternateColorSpace");return PDFNet.sendWithPromise("ColorSpace.getAlternateColorSpace",{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.prototype.getBaseColorSpace=function(){apiFunctionCheck("ColorSpace.getBaseColorSpace");return PDFNet.sendWithPromise("ColorSpace.getBaseColorSpace", 621{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.prototype.getHighVal=function(){apiFunctionCheck("ColorSpace.getHighVal");return PDFNet.sendWithPromise("ColorSpace.getHighVal",{cs:this.id})};PDFNet.ColorSpace.prototype.getLookupTable=function(){apiFunctionCheck("ColorSpace.getLookupTable");return PDFNet.sendWithPromise("ColorSpace.getLookupTable",{cs:this.id})};PDFNet.ColorSpace.prototype.getBaseColor=function(color_idx){apiFunctionCheck("ColorSpace.getBaseColor", 622arguments.length,1,"(number)",[[color_idx,"number"]]);return PDFNet.sendWithPromise("ColorSpace.getBaseColor",{cs:this.id,color_idx:color_idx}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.getTintFunction=function(){apiFunctionCheck("ColorSpace.getTintFunction");
622return PDFNet.sendWithPromise("ColorSpace.getTintFunction",{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.Function,id)})};PDFNet.ColorSpace.prototype.isAll=function(){apiFunctionCheck("ColorSpace.isAll"); 623return PDFNet.sendWithPromise("ColorSpace.isAll",{cs:this.id})};PDFNet.ColorSpace.prototype.isNone=function(){apiFunctionCheck("ColorSpace.isNone");return PDFNet.sendWithPromise("ColorSpace.isNone",{cs:this.id})};PDFNet.ContentReplacer.create=function(){apiFunctionCheck("ContentReplacer.create");return PDFNet.sendWithPromise("contentReplacerCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ContentReplacer,id)})};PDFNet.ContentReplacer.prototype.addImage=function(target_region,replacement_image){apiFunctionCheck("ContentReplacer.addImage", 624arguments.length,2,"(PDFNet.Rect, PDFNet.Obj)",[[target_region,"Structure",PDFNet.Rect,"Rect"],[replacement_image,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!1},[[target_region,0]]);return PDFNet.sendWithPromise("ContentReplacer.addImage",{cr:this.id,target_region:target_region,replacement_image:replacement_image.id})};PDFNet.ContentReplacer.prototype.addText=function(target_region,replacement_text){apiFunctionCheck("ContentReplacer.addText",arguments.length,2,"(PDFNet.Rect, string)",[[target_region, 625"Structure",PDFNet.Rect,"Rect"],[replacement_text,"string"]],{checkThisYield:!1},[[target_region,0]]);return PDFNet.sendWithPromise("ContentReplacer.addText",{cr:this.id,target_region:target_region,replacement_text:replacement_text})};PDFNet.ContentReplacer.prototype.addString=function(template_text,replacement_text){apiFunctionCheck("ContentReplacer.addString",arguments.length,2,"(string, string)",[[template_text,"string"],[replacement_text,"string"]]);return PDFNet.sendWithPromise("ContentReplacer.addString", 626{cr:this.id,template_text:template_text,replacement_text:replacement_text})};PDFNet.ContentReplacer.prototype.setMatchStrings=function(start_str,end_str){apiFunctionCheck("ContentReplacer.setMatchStrings",arguments.length,2,"(string, string)",[[start_str,"string"],[end_str,"string"]]);return PDFNet.sendWithPromise("ContentReplacer.setMatchStrings",{cr:this.id,start_str:start_str,end_str:end_str})};PDFNet.ContentReplacer.prototype.process=function(page){apiFunctionCheck("ContentReplacer.process",arguments.length, 6271,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("ContentReplacer.process",{cr:this.id,page:page.id})};PDFNet.Reflow.prototype.getHtml=function(){apiFunctionCheck("Reflow.getHtml");return PDFNet.sendWithPromise("Reflow.getHtml",{self:this.id})};PDFNet.Reflow.prototype.getAnnot=function(in_id){apiFunctionCheck("Reflow.getAnnot",arguments.length,1,"(string)",[[in_id,"string"]]);return PDFNet.sendWithPromise("Reflow.getAnnot",{self:this.id,in_id:in_id})};PDFNet.Reflow.prototype.setAnnot= 628function(in_json){apiFunctionCheck("Reflow.setAnnot",arguments.length,1,"(string)",[[in_json,"string"]]);return PDFNet.sendWithPromise("Reflow.setAnnot",{self:this.id,in_json:in_json})};PDFNet.Reflow.prototype.setIncludeImages=function(include){apiFunctionCheck("Reflow.setIncludeImages",arguments.length,1,"(boolean)",[[include,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setIncludeImages",{self:this.id,include:include})};PDFNet.Reflow.prototype.setHTMLOutputTextMarkup=function(include){apiFunctionCheck("Reflow.setHTMLOutputTextMarkup", 629arguments.length,1,"(boolean)",[[include,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setHTMLOutputTextMarkup",{self:this.id,include:include})};PDFNet.Reflow.prototype.setMessageWhenNoReflowContent=function(content){apiFunctionCheck("Reflow.setMessageWhenNoReflowContent",arguments.length,1,"(string)",[[content,"string"]]);return PDFNet.sendWithPromise("Reflow.setMessageWhenNoReflowContent",{self:this.id,content:content})};PDFNet.Reflow.prototype.setMessageWhenReflowFailed=function(content){apiFunctionCheck("Reflow.setMessageWhenReflowFailed", 630arguments.length,1,"(string)",[[content,"string"]]);return PDFNet.sendWithPromise("Reflow.setMessageWhenReflowFailed",{self:this.id,content:content})};
630PDFNet.Reflow.prototype.setHideBackgroundImages=function(hide_background_images){apiFunctionCheck("Reflow.setHideBackgroundImages",arguments.length,1,"(boolean)",[[hide_background_images,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setHideBackgroundImages",{self:this.id,hide_background_images:hide_background_images})};PDFNet.Reflow.prototype.setHideImagesUnderText= 631function(hide_images_under_text){apiFunctionCheck("Reflow.setHideImagesUnderText",arguments.length,1,"(boolean)",[[hide_images_under_text,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setHideImagesUnderText",{self:this.id,hide_images_under_text:hide_images_under_text})};PDFNet.Reflow.prototype.setHideImagesUnderInvisibleText=function(hide_images_under_invisible_text){apiFunctionCheck("Reflow.setHideImagesUnderInvisibleText",arguments.length,1,"(boolean)",[[hide_images_under_invisible_text,"boolean"]]); 632return PDFNet.sendWithPromise("Reflow.setHideImagesUnderInvisibleText",{self:this.id,hide_images_under_invisible_text:hide_images_under_invisible_text})};PDFNet.Reflow.prototype.setDoNotReflowTextOverImages=function(do_not_reflow_text_over_images){apiFunctionCheck("Reflow.setDoNotReflowTextOverImages",arguments.length,1,"(boolean)",[[do_not_reflow_text_over_images,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setDoNotReflowTextOverImages",{self:this.id,do_not_reflow_text_over_images:do_not_reflow_text_over_images})}; 633PDFNet.Reflow.prototype.setFontOverrideName=function(font_family){apiFunctionCheck("Reflow.setFontOverrideName",arguments.length,1,"(string)",[[font_family,"string"]]);return PDFNet.sendWithPromise("Reflow.setFontOverrideName",{self:this.id,font_family:font_family})};PDFNet.Reflow.prototype.setCustomStyles=function(styles){apiFunctionCheck("Reflow.setCustomStyles",arguments.length,1,"(string)",[[styles,"string"]]);return PDFNet.sendWithPromise("Reflow.setCustomStyles",{self:this.id,styles:styles})}; 634PDFNet.Reflow.prototype.setIncludeBBoxForRecognizedZones=function(include){apiFunctionCheck("Reflow.setIncludeBBoxForRecognizedZones",arguments.length,1,"(boolean)",[[include,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setIncludeBBoxForRecognizedZones",{self:this.id,include:include})};PDFNet.Convert.fromXpsMem=function(in_pdfdoc,buf){apiFunctionCheck("Convert.fromXpsMem",arguments.length,2,"(PDFNet.PDFDoc, ArrayBuffer|TypedArray)",[[in_pdfdoc,"PDFDoc"],[buf,"ArrayBuffer"]]);var bufArrayBuffer= 635getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("convertFromXpsMem",{in_pdfdoc:in_pdfdoc.id,buf:bufArrayBuffer})};PDFNet.Convert.createReflow=function(in_page,json_zones){apiFunctionCheck("Convert.createReflow",arguments.length,2,"(PDFNet.Page, string)",[[in_page,"Object",PDFNet.Page,"Page"],[json_zones,"string"]]);return PDFNet.sendWithPromise("convertCreateReflow",{in_page:in_page.id,json_zones:json_zones}).then(function(id){return createDestroyableObj(PDFNet.Reflow,id)})};PDFNet.Convert.fromTextWithBuffer= 636function(in_pdfdoc,fileData,options){"undefined"===typeof options&&(options=new PDFNet.Obj("0"));apiFunctionCheck("Convert.fromTextWithBuffer",arguments.length,2,"(PDFNet.PDFDoc, ArrayBuffer|TypedArray, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[fileData,"ArrayBuffer"],[options,"Object",PDFNet.Obj,"Obj"]]);fileData=getArrayBuffer(fileData,!1);return PDFNet.sendWithPromise("convertFromTextWithBuffer",{in_pdfdoc:in_pdfdoc.id,in_filename:fileData,options:options.id})};PDFNet.Convert.toXpsBuffer=function(in_pdfdoc, 637options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.toXpsBuffer",arguments.length,1,"(PDFNet.PDFDoc, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XPSOutputOptions"]]);options$jscomp$0=getOptsObjPromise(options$jscomp$0,"PDFNet.Convert.XPSOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertToXpsBuffer",{in_pdfdoc:in_pdfdoc.id, 638options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.fileToXpsWithBuffer=function(fileData,fileType,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.fileToXpsWithBuffer",arguments.length,2,"(ArrayBuffer|TypedArray, string, PDFNet.Obj)",[[fileData,"ArrayBuffer"],[fileType,"string"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XPSOutputOptions"]]);fileType.startsWith(".")||(fileType= 639"."+fileType);fileData=getArrayBuffer(fileData,!1);options$jscomp$0=getOptsObjPromise(options$jscomp$0,"PDFNet.Convert.XPSOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithProm
639ise("convertFileToXpsWithBuffer",{in_inputFilename:fileData,in_inputFilename_extension:fileType,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.fileToXodWithBuffer=function(fileData,fileType,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0= 640new PDFNet.Obj("0"));apiFunctionCheck("Convert.fileToXodWithBuffer",arguments.length,2,"(ArrayBuffer|TypedArray, string, PDFNet.Obj)",[[fileData,"ArrayBuffer"],[fileType,"string"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XODOutputOptions"]]);fileType.startsWith(".")||(fileType="."+fileType);fileData=getArrayBuffer(fileData,!1);options$jscomp$0=getOptsObjPromise(options$jscomp$0,"PDFNet.Convert.XODOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertFileToXodWithBuffer", 641{in_filename:fileData,in_filename_extension:fileType,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.toXodBuffer=function(in_pdfdoc,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.toXodBuffer",arguments.length,1,"(PDFNet.PDFDoc, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XODOutputOptions"]]);options$jscomp$0=getOptsObjPromise(options$jscomp$0, 642"PDFNet.Convert.XODOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertToXodBuffer",{in_pdfdoc:in_pdfdoc.id,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.ConversionMonitor.prototype.next=function(){apiFunctionCheck("ConversionMonitor.next");return PDFNet.sendWithPromise("ConversionMonitor.next",{conversionMonitor:this.id})};PDFNet.ConversionMonitor.prototype.ready=function(){apiFunctionCheck("ConversionMonitor.ready"); 643return PDFNet.sendWithPromise("ConversionMonitor.ready",{conversionMonitor:this.id})};PDFNet.ConversionMonitor.prototype.progress=function(){apiFunctionCheck("ConversionMonitor.progress");return PDFNet.sendWithPromise("ConversionMonitor.progress",{conversionMonitor:this.id})};PDFNet.ConversionMonitor.prototype.filter=function(){apiFunctionCheck("ConversionMonitor.filter");return PDFNet.sendWithPromise("ConversionMonitor.filter",{conversionMonitor:this.id}).then(function(id){return createDestroyableObj(PDFNet.Filter, 644id)})};PDFNet.Convert.officeToPdfWithFilter=function(in_pdfdoc,in_stream,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.officeToPdfWithFilter",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Filter, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[in_stream,"Object",PDFNet.Filter,"Filter"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.ConversionOptions"]]);0!=in_stream.id&&avoidCleanup(in_stream.id);options$jscomp$0=getOptsObjPromise(options$jscomp$0, 645"PDFNet.Convert.ConversionOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertOfficeToPdfWithFilter",{in_pdfdoc:in_pdfdoc.id,no_own_in_stream
645:in_stream.id,options:options.id})})};PDFNet.Convert.toPdfWithBuffer=function(in_pdfdoc,fileData,fileType){apiFunctionCheck("Convert.toPdfWithBuffer",arguments.length,3,"(PDFNet.PDFDoc, ArrayBuffer|TypedArray, string)",[[in_pdfdoc,"PDFDoc"],[fileData,"ArrayBuffer"],[fileType,"string"]]);fileType.startsWith(".")||(fileType= 646"."+fileType);fileData=getArrayBuffer(fileData,!1);return PDFNet.sendWithPromise("convertToPdfWithBuffer",{in_pdfdoc:in_pdfdoc.id,in_filename:fileData,in_filename_extension:fileType})};PDFNet.Convert.fromTiff=function(in_pdfdoc,in_data){apiFunctionCheck("Convert.fromTiff",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.Filter)",[[in_pdfdoc,"PDFDoc"],[in_data,"Object",PDFNet.Filter,"Filter"]]);0!=in_data.id&&avoidCleanup(in_data.id);return PDFNet.sendWithPromise("convertFromTiff",{in_pdfdoc:in_pdfdoc.id, 647no_own_in_data:in_data.id})};PDFNet.Convert.pageToHtml=function(page){apiFunctionCheck("Convert.pageToHtml",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("convertPageToHtml",{page:page.id})};PDFNet.Convert.pageToHtmlZoned=function(page,json_zones){apiFunctionCheck("Convert.pageToHtmlZoned",arguments.length,2,"(PDFNet.Page, string)",[[page,"Object",PDFNet.Page,"Page"],[json_zones,"string"]]);return PDFNet.sendWithPromise("convertPageToHtmlZoned", 648{page:page.id,json_zones:json_zones})};PDFNet.Convert.fileToTiffWithBuffer=function(fileData,fileType,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.fileToTiffWithBuffer",arguments.length,2,"(ArrayBuffer|TypedArray, string, PDFNet.Obj)",[[fileData,"ArrayBuffer"],[fileType,"string"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.TiffOutputOptions"]]);fileType.startsWith(".")||(fileType="."+fileType);fileData= 649getArrayBuffer(fileData,!1);options$jscomp$0=getOptsObjPromise(options$jscomp$0,"PDFNet.Convert.TiffOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertFileToTiffWithBuffer",{in_filename:fileData,in_filename_extension:fileType,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.toTiffBuffer=function(in_pdfdoc,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.toTiffBuffer", 650arguments.length,1,"(PDFNet.PDFDoc, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.TiffOutputOptions"]]);options$jscomp$0=getOptsObjPromise(options$jscomp$0,"PDFNet.Convert.TiffOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertToTiffBuffer",{in_pdfdoc:in_pdfdoc.id,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.fileToTiffWithFilterWithBuffer=function(in_filename, 651options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.fileToTiffWithFilterWithBuffer",arguments.length,1,"(ArrayBuffer|TypedArray, PDFNet.Obj)",[[in_filename,"ArrayBuffer"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.TiffOutputOptions"]]);in_filename=getArrayBuffer(in_filename,!1);options$jscomp$0=getOptsObjPromise(options$jscomp$0,"PDFNet.Convert.TiffOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertFileToTiffWithFilterWithBuffer", 652{in_filename:in_filename,options:options.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})})};PDFNet.Convert.toTiffWithFilter=function(in_pdfdoc,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));apiFunctionCheck("Convert.toTiffWithFilter",arguments.length,1,"(PDFNet.PDFDoc, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.TiffOutputOptions"]]);options$jscomp$0=getOptsObjPromise(options$jscomp$0, 653"PDFNet.Convert.TiffOutputOptions");return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertToTiffWithFilter",{in_pdfdoc:in_pdfdoc.id,options:options.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})})};PDFNet.Date.init=function(year,month,day,hour,minute,second){apiFunctionCheck("Date.init",arguments.length,6,"(number, number, number, number, number, number)",[[year,"number"],[month,"number"],[day,"number"],[hour,"number"],[minute,"number"],[second, 654"number"]]);
654return PDFNet.sendWithPromise("dateInit",{year:year,month:month,day:day,hour:hour,minute:minute,second:second}).then(function(id){return new PDFNet.Date(id)})};PDFNet.Date.prototype.isValid=function(){apiFunctionCheck("Date.isValid",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Date.isValid",{date:this})};PDFNet.Date.prototype.attach=function(d){apiFunctionCheck("Date.attach",arguments.length,1,"(PDFNet.Obj)",[[d,"Object", 655PDFNet.Obj,"Obj"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Date.attach";return PDFNet.sendWithPromise("Date.attach",{date:this,d:d.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Date.prototype.update=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));apiFunctionCheck("Date.update",arguments.length,0,"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction= 656"Date.update";return PDFNet.sendWithPromise("Date.update",{date:this,d:d.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id.date,me);return id.result})};PDFNet.Date.prototype.setCurrentTime=function(){apiFunctionCheck("Date.setCurrentTime",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Date.setCurrentTime";return PDFNet.sendWithPromise("Date.setCurrentTime",{date:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})}; 657PDFNet.Date.prototype.setUT=function(ut){apiFunctionCheck("Date.setUT",arguments.length,1,"(number)",[[ut,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Date.setUT";return PDFNet.sendWithPromise("Date.setUT",{date:this,ut:ut}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Date.prototype.setUTHour=function(ut_hour){apiFunctionCheck("Date.setUTHour",arguments.length,1,"(number)",[[ut_hour,"number"]],{checkThisYield:!0,functionName:this.yieldFunction}); 658var me=this;this.yieldFunction="Date.setUTHour";return PDFNet.sendWithPromise("Date.setUTHour",{date:this,ut_hour:ut_hour}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Date.prototype.setUTMinutes=function(ut_minutes){apiFunctionCheck("Date.setUTMinutes",arguments.length,1,"(number)",[[ut_minutes,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Date.setUTMinutes";return PDFNet.sendWithPromise("Date.setUTMinutes",{date:this,ut_minutes:ut_minutes}).then(function(id){me.yieldFunction= 659void 0;copyFunc(id,me)})};PDFNet.Destination.createXYZ=function(page,left,top,zoom){apiFunctionCheck("Destination.createXYZ",arguments.length,4,"(PDFNet.Page, number, number, number)",[[page,"Object",PDFNet.Page,"Page"],[left,"number"],[top,"number"],[zoom,"number"]]);return PDFNet.sendWithPromise("destinationCreateXYZ",{page:page.id,left:left,top:top,zoom:zoom}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFit=function(page){apiFunctionCheck("Destination.createFit", 660arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("destinationCreateFit",{page:page.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitH=function(page,top){apiFunctionCheck("Destination.createFitH",arguments.length,2,"(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[top,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitH",{page:page.id,top:top}).then(function(id){return createPDFNetObj(PDFNet.Destination, 661id)})};PDFNet.Destination.createFitV=function(page,left){apiFunctionCheck("Destination.createFitV",arguments.length,2,"(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[left,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitV",{page:page.id,left:left}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitR=function(page,left,bottom,right,top){apiFunctionCheck("Destination.createFitR",arguments.length,5,"(PDFNet.Page, number, number, number, number)", 662[[page,"Object",PDFNet.Page,"Page"],[left,"number"],[bottom,"number"],[right,"number"],[top,"number"]]);
662return PDFNet.sendWithPromise("destinationCreateFitR",{page:page.id,left:left,bottom:bottom,right:right,top:top}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitB=function(page){apiFunctionCheck("Destination.createFitB",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("destinationCreateFitB",{page:page.id}).then(function(id){return createPDFNetObj(PDFNet.Destination, 663id)})};PDFNet.Destination.createFitBH=function(page,top){apiFunctionCheck("Destination.createFitBH",arguments.length,2,"(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[top,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitBH",{page:page.id,top:top}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitBV=function(page,left){apiFunctionCheck("Destination.createFitBV",arguments.length,2,"(PDFNet.Page, number)",[[page,"Object",PDFNet.Page, 664"Page"],[left,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitBV",{page:page.id,left:left}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.create=function(dest){apiFunctionCheck("Destination.create",arguments.length,1,"(PDFNet.Obj)",[[dest,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("destinationCreate",{dest:dest.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.prototype.copy=function(){apiFunctionCheck("Destination.copy"); 665return PDFNet.sendWithPromise("Destination.copy",{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.prototype.isValid=function(){apiFunctionCheck("Destination.isValid");return PDFNet.sendWithPromise("Destination.isValid",{dest:this.id})};PDFNet.Destination.prototype.getFitType=function(){apiFunctionCheck("Destination.getFitType");return PDFNet.sendWithPromise("Destination.getFitType",{dest:this.id})};PDFNet.Destination.prototype.getPage=function(){apiFunctionCheck("Destination.getPage"); 666return PDFNet.sendWithPromise("Destination.getPage",{dest:this.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Destination.prototype.setPage=function(page){apiFunctionCheck("Destination.setPage",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Destination.setPage",{dest:this.id,page:page.id})};PDFNet.Destination.prototype.getSDFObj=function(){apiFunctionCheck("Destination.getSDFObj");return PDFNet.sendWithPromise("Destination.getSDFObj", 667{dest:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Destination.prototype.getExplicitDestObj=function(){apiFunctionCheck("Destination.getExplicitDestObj");return PDFNet.sendWithPromise("Destination.getExplicitDestObj",{dest:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getTransform=function(){apiFunctionCheck("GState.getTransform");return PDFNet.sendWithPromise("GState.getTransform",{gs:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})}; 668PDFNet.GState.prototype.getStrokeColorSpace=function(){apiFunctionCheck("GState.getStrokeColorSpace");return PDFNet.sendWithPromise("GState.getStrokeColorSpace",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};
668PDFNet.GState.prototype.getFillColorSpace=function(){apiFunctionCheck("GState.getFillColorSpace");return PDFNet.sendWithPromise("GState.getFillColorSpace",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.GState.prototype.getStrokeColor= 669function(){apiFunctionCheck("GState.getStrokeColor");return PDFNet.sendWithPromise("GState.getStrokeColor",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.GState.prototype.getStrokePattern=function(){apiFunctionCheck("GState.getStrokePattern");return PDFNet.sendWithPromise("GState.getStrokePattern",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.PatternColor,id)})};PDFNet.GState.prototype.getFillColor=function(){apiFunctionCheck("GState.getFillColor"); 670return PDFNet.sendWithPromise("GState.getFillColor",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.GState.prototype.getFillPattern=function(){apiFunctionCheck("GState.getFillPattern");return PDFNet.sendWithPromise("GState.getFillPattern",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.PatternColor,id)})};PDFNet.GState.prototype.getFlatness=function(){apiFunctionCheck("GState.getFlatness");return PDFNet.sendWithPromise("GState.getFlatness", 671{gs:this.id})};PDFNet.GState.prototype.getLineCap=function(){apiFunctionCheck("GState.getLineCap");return PDFNet.sendWithPromise("GState.getLineCap",{gs:this.id})};PDFNet.GState.prototype.getLineJoin=function(){apiFunctionCheck("GState.getLineJoin");return PDFNet.sendWithPromise("GState.getLineJoin",{gs:this.id})};PDFNet.GState.prototype.getLineWidth=function(){apiFunctionCheck("GState.getLineWidth");return PDFNet.sendWithPromise("GState.getLineWidth",{gs:this.id})};PDFNet.GState.prototype.getMiterLimit= 672function(){apiFunctionCheck("GState.getMiterLimit");return PDFNet.sendWithPromise("GState.getMiterLimit",{gs:this.id})};PDFNet.GState.prototype.getPhase=function(){apiFunctionCheck("GState.getPhase");return PDFNet.sendWithPromise("GState.getPhase",{gs:this.id})};PDFNet.GState.prototype.getCharSpacing=function(){apiFunctionCheck("GState.getCharSpacing");return PDFNet.sendWithPromise("GState.getCharSpacing",{gs:this.id})};PDFNet.GState.prototype.getWordSpacing=function(){apiFunctionCheck("GState.getWordSpacing"); 673return PDFNet.sendWithPromise("GState.getWordSpacing",{gs:this.id})};PDFNet.GState.prototype.getHorizontalScale=function(){apiFunctionCheck("GState.getHorizontalScale");return PDFNet.sendWithPromise("GState.getHorizontalScale",{gs:this.id})};PDFNet.GState.prototype.getLeading=function(){apiFunctionCheck("GState.getLeading");return PDFNet.sendWithPromise("GState.getLeading",{gs:this.id})};PDFNet.GState.prototype.getFont=function(){apiFunctionCheck("GState.getFont");return PDFNet.sendWithPromise("GState.getFont", 674{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.GState.prototype.getFontSize=function(){apiFunctionCheck("GState.getFontSize");return PDFNet.sendWithPromise("GState.getFontSize",{gs:this.id})};PDFNet.GState.prototype.getTextRenderMode=function(){apiFunctionCheck("GState.getTextRenderMode");return PDFNet.sendWithPromise("GState.getTextRenderMode",{gs:this.id})};PDFNet.GState.prototype.getTextRise=function(){apiFunctionCheck("GState.getTextRise");return PDFNet.sendWithPromise("GState.getTextRise", 675{gs:this.id})};PDFNet.GState.prototype.isTextKnockout=function(){apiFunctionCheck("GState.isTextKnockout");return PDFNet.sendWithPromise("GState.isTextKnockout",{gs:this.id})};PDFNet.GState.prototype.getRenderingIntent=function(){apiFunctionCheck("GState.getRenderingIntent");return PDFNet.sendWithPromise("GState.getRenderingIntent",{gs:this.id})};PDFNet.GState.getRenderingIntentType=function(name){apiFunctionCheck("GState.getRenderingIntentType",arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("gStateGetRenderingIntentType", 676{name:name})};PDFNet.GState.prototype.getBlendMode=function(){apiFunctionCheck("GState.getBlendMode");return PDFNet.sendWithPromise("GState.getBlendMode",{gs:this.id})};PDFNet.GState.prototype.getFillOpacity=function(){apiFunctionCheck("GState.getFillOpacity");
676return PDFNet.sendWithPromise("GState.getFillOpacity",{gs:this.id})};PDFNet.GState.prototype.getStrokeOpacity=function(){apiFunctionCheck("GState.getStrokeOpacity");return PDFNet.sendWithPromise("GState.getStrokeOpacity",{gs:this.id})};PDFNet.GState.prototype.getAISFlag= 677function(){apiFunctionCheck("GState.getAISFlag");return PDFNet.sendWithPromise("GState.getAISFlag",{gs:this.id})};PDFNet.GState.prototype.getSoftMask=function(){apiFunctionCheck("GState.getSoftMask");return PDFNet.sendWithPromise("GState.getSoftMask",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getSoftMaskTransform=function(){apiFunctionCheck("GState.getSoftMaskTransform");return PDFNet.sendWithPromise("GState.getSoftMaskTransform",{gs:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})}; 678PDFNet.GState.prototype.getStrokeOverprint=function(){apiFunctionCheck("GState.getStrokeOverprint");return PDFNet.sendWithPromise("GState.getStrokeOverprint",{gs:this.id})};PDFNet.GState.prototype.getFillOverprint=function(){apiFunctionCheck("GState.getFillOverprint");return PDFNet.sendWithPromise("GState.getFillOverprint",{gs:this.id})};PDFNet.GState.prototype.getOverprintMode=function(){apiFunctionCheck("GState.getOverprintMode");return PDFNet.sendWithPromise("GState.getOverprintMode",{gs:this.id})}; 679PDFNet.GState.prototype.getAutoStrokeAdjust=function(){apiFunctionCheck("GState.getAutoStrokeAdjust");return PDFNet.sendWithPromise("GState.getAutoStrokeAdjust",{gs:this.id})};PDFNet.GState.prototype.getSmoothnessTolerance=function(){apiFunctionCheck("GState.getSmoothnessTolerance");return PDFNet.sendWithPromise("GState.getSmoothnessTolerance",{gs:this.id})};PDFNet.GState.prototype.getTransferFunct=function(){apiFunctionCheck("GState.getTransferFunct");return PDFNet.sendWithPromise("GState.getTransferFunct", 680{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getBlackGenFunct=function(){apiFunctionCheck("GState.getBlackGenFunct");return PDFNet.sendWithPromise("GState.getBlackGenFunct",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getUCRFunct=function(){apiFunctionCheck("GState.getUCRFunct");return PDFNet.sendWithPromise("GState.getUCRFunct",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj, 681id)})};PDFNet.GState.prototype.getHalftone=function(){apiFunctionCheck("GState.getHalftone");return PDFNet.sendWithPromise("GState.getHalftone",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.setTransformMatrix=function(mtx){apiFunctionCheck("GState.setTransformMatrix",arguments.length,1,"(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]],{checkThisYield:!1},[[mtx,0]]);return PDFNet.sendWithPromise("GState.setTransformMatrix",{gs:this.id, 682mtx:mtx})};PDFNet.GState.prototype.setTransform=function(a,b,c,d,h,v){apiFunctionCheck("GState.setTransform",arguments.length,6,"(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);return PDFNet.sendWithPromise("GState.setTransform",{gs:this.id,a:a,b:b,c:c,d:d,h:h,v:v})};PDFNet.GState.prototype.concatMatrix=function(mtx){apiFunctionCheck("GState.concatMatrix",arguments.length,1,"(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D, 683"Matrix2D"]],{checkThisYield:!1},[[mtx,0]]);return PDFNet.sendWithPromise("GState.concatMatrix",{gs:this.id,mtx:mtx})};PDFNet.GState.prototype.concat=function(a,b,c,d,h,v){apiFunctionCheck("GState.concat",arguments.length,6,"(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);return PDFNet.sendWithPromise("GState.concat",{gs:this.id,a:a,b:b,c:c,d:d,h:h,v:v})};PDFNet.GState.prototype.setStrokeColorSpace=function(cs){apiFunctionCheck("GState.setStrokeColorSpace", 684arguments.length,1,"(PDFNet.ColorSpace)",[[cs,"Object",PDFNet.ColorSpace,"ColorSpace"]]);return PDFNet.sendWithPromise("GState.setStrokeColorSpace",{gs:this.id,cs:cs.id})};
684PDFNet.GState.prototype.setFillColorSpace=function(cs){apiFunctionCheck("GState.setFillColorSpace",arguments.length,1,"(PDFNet.ColorSpace)",[[cs,"Object",PDFNet.ColorSpace,"ColorSpace"]]);return PDFNet.sendWithPromise("GState.setFillColorSpace",{gs:this.id,cs:cs.id})};PDFNet.GState.prototype.setStrokeColorWithColorPt=function(c){apiFunctionCheck("GState.setStrokeColorWithColorPt", 685arguments.length,1,"(PDFNet.ColorPt)",[[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setStrokeColorWithColorPt",{gs:this.id,c:c.id})};PDFNet.GState.prototype.setStrokeColorWithPattern=function(pattern){apiFunctionCheck("GState.setStrokeColorWithPattern",arguments.length,1,"(PDFNet.PatternColor)",[[pattern,"Object",PDFNet.PatternColor,"PatternColor"]]);return PDFNet.sendWithPromise("GState.setStrokeColorWithPattern",{gs:this.id,pattern:pattern.id})};PDFNet.GState.prototype.setStrokeColor= 686function(pattern,c){apiFunctionCheck("GState.setStrokeColor",arguments.length,2,"(PDFNet.PatternColor, PDFNet.ColorPt)",[[pattern,"Object",PDFNet.PatternColor,"PatternColor"],[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setStrokeColor",{gs:this.id,pattern:pattern.id,c:c.id})};PDFNet.GState.prototype.setFillColorWithColorPt=function(c){apiFunctionCheck("GState.setFillColorWithColorPt",arguments.length,1,"(PDFNet.ColorPt)",[[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setFillColorWithColorPt", 687{gs:this.id,c:c.id})};PDFNet.GState.prototype.setFillColorWithPattern=function(pattern){apiFunctionCheck("GState.setFillColorWithPattern",arguments.length,1,"(PDFNet.PatternColor)",[[pattern,"Object",PDFNet.PatternColor,"PatternColor"]]);return PDFNet.sendWithPromise("GState.setFillColorWithPattern",{gs:this.id,pattern:pattern.id})};PDFNet.GState.prototype.setFillColor=function(pattern,c){apiFunctionCheck("GState.setFillColor",arguments.length,2,"(PDFNet.PatternColor, PDFNet.ColorPt)",[[pattern,"Object", 688PDFNet.PatternColor,"PatternColor"],[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setFillColor",{gs:this.id,pattern:pattern.id,c:c.id})};PDFNet.GState.prototype.setFlatness=function(flatness){apiFunctionCheck("GState.setFlatness",arguments.length,1,"(number)",[[flatness,"number"]]);return PDFNet.sendWithPromise("GState.setFlatness",{gs:this.id,flatness:flatness})};PDFNet.GState.prototype.setLineCap=function(cap){apiFunctionCheck("GState.setLineCap",arguments.length, 6891,"(number)",[[cap,"number"]]);return PDFNet.sendWithPromise("GState.setLineCap",{gs:this.id,cap:cap})};PDFNet.GState.prototype.setLineJoin=function(join){apiFunctionCheck("GState.setLineJoin",arguments.length,1,"(number)",[[join,"number"]]);return PDFNet.sendWithPromise("GState.setLineJoin",{gs:this.id,join:join})};PDFNet.GState.prototype.setLineWidth=function(width){apiFunctionCheck("GState.setLineWidth",arguments.length,1,"(number)",[[width,"number"]]);return PDFNet.sendWithPromise("GState.setLineWidth", 690{gs:this.id,width:width})};PDFNet.GState.prototype.setMiterLimit=function(miter_limit){apiFunctionCheck("GState.setMiterLimit",arguments.length,1,"(number)",[[miter_limit,"number"]]);return PDFNet.sendWithPromise("GState.setMiterLimit",{gs:this.id,miter_limit:miter_limit})};PDFNet.GState.prototype.setDashPattern=function(dash_array,phase){apiFunctionCheck("GState.setDashPattern",arguments.length,2,"(Array<number>, number)",[[dash_array,"Array"],[phase,"number"]]);return PDFNet.sendWithPromise("GState.setDashPattern", 691{gs:this.id,dash_array:dash_array,phase:phase})};PDFNet.GState.prototype.setCharSpacing=function(char_spacing){apiFunctionCheck("GState.setCharSpacing",arguments.length,1,"(number)",[[char_spacing,"number"]]);return PDFNet.sendWithPromise("GState.setCharSpacing",{gs:this.id,char_spacing:char_spacing})};PDFNet.GState.prototype.setWordSpacing=function(word_spacing){apiFunctionCheck("GState.setWordSpacing",arguments.length,1,"(number)",[[word_spacing,"
691number"]]);return PDFNet.sendWithPromise("GState.setWordSpacing", 692{gs:this.id,word_spacing:word_spacing})};PDFNet.GState.prototype.setHorizontalScale=function(hscale){apiFunctionCheck("GState.setHorizontalScale",arguments.length,1,"(number)",[[hscale,"number"]]);return PDFNet.sendWithPromise("GState.setHorizontalScale",{gs:this.id,hscale:hscale})};PDFNet.GState.prototype.setLeading=function(leading){apiFunctionCheck("GState.setLeading",arguments.length,1,"(number)",[[leading,"number"]]);return PDFNet.sendWithPromise("GState.setLeading",{gs:this.id,leading:leading})}; 693PDFNet.GState.prototype.setFont=function(font,font_sz){apiFunctionCheck("GState.setFont",arguments.length,2,"(PDFNet.Font, number)",[[font,"Object",PDFNet.Font,"Font"],[font_sz,"number"]]);return PDFNet.sendWithPromise("GState.setFont",{gs:this.id,font:font.id,font_sz:font_sz})};PDFNet.GState.prototype.setTextRenderMode=function(rmode){apiFunctionCheck("GState.setTextRenderMode",arguments.length,1,"(number)",[[rmode,"number"]]);return PDFNet.sendWithPromise("GState.setTextRenderMode",{gs:this.id, 694rmode:rmode})};PDFNet.GState.prototype.setTextRise=function(rise){apiFunctionCheck("GState.setTextRise",arguments.length,1,"(number)",[[rise,"number"]]);return PDFNet.sendWithPromise("GState.setTextRise",{gs:this.id,rise:rise})};PDFNet.GState.prototype.setTextKnockout=function(knockout){apiFunctionCheck("GState.setTextKnockout",arguments.length,1,"(boolean)",[[knockout,"boolean"]]);return PDFNet.sendWithPromise("GState.setTextKnockout",{gs:this.id,knockout:knockout})};PDFNet.GState.prototype.setRenderingIntent= 695function(intent){apiFunctionCheck("GState.setRenderingIntent",arguments.length,1,"(number)",[[intent,"number"]]);return PDFNet.sendWithPromise("GState.setRenderingIntent",{gs:this.id,intent:intent})};PDFNet.GState.prototype.setBlendMode=function(BM){apiFunctionCheck("GState.setBlendMode",arguments.length,1,"(number)",[[BM,"number"]]);return PDFNet.sendWithPromise("GState.setBlendMode",{gs:this.id,BM:BM})};PDFNet.GState.prototype.setFillOpacity=function(ca){apiFunctionCheck("GState.setFillOpacity", 696arguments.length,1,"(number)",[[ca,"number"]]);return PDFNet.sendWithPromise("GState.setFillOpacity",{gs:this.id,ca:ca})};PDFNet.GState.prototype.setStrokeOpacity=function(ca){apiFunctionCheck("GState.setStrokeOpacity",arguments.length,1,"(number)",[[ca,"number"]]);return PDFNet.sendWithPromise("GState.setStrokeOpacity",{gs:this.id,ca:ca})};PDFNet.GState.prototype.setAISFlag=function(AIS){apiFunctionCheck("GState.setAISFlag",arguments.length,1,"(boolean)",[[AIS,"boolean"]]);return PDFNet.sendWithPromise("GState.setAISFlag", 697{gs:this.id,AIS:AIS})};PDFNet.GState.prototype.setSoftMask=function(SM){apiFunctionCheck("GState.setSoftMask",arguments.length,1,"(PDFNet.Obj)",[[SM,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setSoftMask",{gs:this.id,SM:SM.id})};PDFNet.GState.prototype.setStrokeOverprint=function(OP){apiFunctionCheck("GState.setStrokeOverprint",arguments.length,1,"(boolean)",[[OP,"boolean"]]);return PDFNet.sendWithPromise("GState.setStrokeOverprint",{gs:this.id,OP:OP})};PDFNet.GState.prototype.setFillOverprint= 698function(op){apiFunctionCheck("GState.setFillOverprint",arguments.length,1,"(boolean)",[[op,"boolean"]]);return PDFNet.sendWithPromise("GState.setFillOverprint",{gs:this.id,op:op})};PDFNet.GState.prototype.setOverprintMode=function(OPM){apiFunctionCheck("GState.setOverprintMode",arguments.length,1,"(number)",[[OPM,"number"]]);return PDFNet.sendWithPromise("GState.setOverprintMode",{gs:this.id,OPM:OPM})};PDFNet.GState.prototype.setAutoStrokeAdjust=function(SA){apiFunctionCheck("GState.setAutoStrokeAdjust", 699arguments.length,1,"(boolean)",[[SA,"boolean"]]);return PDFNet.sendWithPromise("GState.setAutoStrokeAdjust",{gs:this.id,SA:SA})};PDFNet.GState.prototype.setSmoothnessTolerance=function(SM){apiFunctionCheck("GState.setSmoothnessTolerance",arguments.length,1,"(number)",[[SM,"number"]]);return PDFNet.sendWithPromise("GState.setSmoothnessTolerance",{gs:this.id,SM:SM})};PDFNet.GState.prototype.setBlackGenFunct=function(BG){apiFunctionCheck("GState.setBlackGenFunct",arguments.length,1,"(PDFNet.Obj)",[[BG, 700"Object",PDFNet.Obj,"Obj"]]);
700return PDFNet.sendWithPromise("GState.setBlackGenFunct",{gs:this.id,BG:BG.id})};PDFNet.GState.prototype.setUCRFunct=function(UCR){apiFunctionCheck("GState.setUCRFunct",arguments.length,1,"(PDFNet.Obj)",[[UCR,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setUCRFunct",{gs:this.id,UCR:UCR.id})};PDFNet.GState.prototype.setTransferFunct=function(TR){apiFunctionCheck("GState.setTransferFunct",arguments.length,1,"(PDFNet.Obj)",[[TR,"Object",PDFNet.Obj,"Obj"]]); 701return PDFNet.sendWithPromise("GState.setTransferFunct",{gs:this.id,TR:TR.id})};PDFNet.GState.prototype.setHalftone=function(HT){apiFunctionCheck("GState.setHalftone",arguments.length,1,"(PDFNet.Obj)",[[HT,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setHalftone",{gs:this.id,HT:HT.id})};PDFNet.Element.prototype.getType=function(){apiFunctionCheck("Element.getType");return PDFNet.sendWithPromise("Element.getType",{e:this.id})};PDFNet.Element.prototype.getGState=function(){apiFunctionCheck("Element.getGState"); 702return PDFNet.sendWithPromise("Element.getGState",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.GState,id)})};PDFNet.Element.prototype.getCTM=function(){apiFunctionCheck("Element.getCTM");return PDFNet.sendWithPromise("Element.getCTM",{e:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Element.prototype.getParentStructElement=function(){apiFunctionCheck("Element.getParentStructElement");return PDFNet.sendWithPromise("Element.getParentStructElement",{e:this.id}).then(function(id){return new PDFNet.SElement(id)})}; 703PDFNet.Element.prototype.getStructMCID=function(){apiFunctionCheck("Element.getStructMCID");return PDFNet.sendWithPromise("Element.getStructMCID",{e:this.id})};PDFNet.Element.prototype.isOCVisible=function(){apiFunctionCheck("Element.isOCVisible");return PDFNet.sendWithPromise("Element.isOCVisible",{e:this.id})};PDFNet.Element.prototype.isClippingPath=function(){apiFunctionCheck("Element.isClippingPath");return PDFNet.sendWithPromise("Element.isClippingPath",{e:this.id})};PDFNet.Element.prototype.isStroked= 704function(){apiFunctionCheck("Element.isStroked");return PDFNet.sendWithPromise("Element.isStroked",{e:this.id})};PDFNet.Element.prototype.isFilled=function(){apiFunctionCheck("Element.isFilled");return PDFNet.sendWithPromise("Element.isFilled",{e:this.id})};PDFNet.Element.prototype.isWindingFill=function(){apiFunctionCheck("Element.isWindingFill");return PDFNet.sendWithPromise("Element.isWindingFill",{e:this.id})};PDFNet.Element.prototype.isClipWindingFill=function(){apiFunctionCheck("Element.isClipWindingFill"); 705return PDFNet.sendWithPromise("Element.isClipWindingFill",{e:this.id})};PDFNet.Element.prototype.setPathClip=function(clip){apiFunctionCheck("Element.setPathClip",arguments.length,1,"(boolean)",[[clip,"boolean"]]);return PDFNet.sendWithPromise("Element.setPathClip",{e:this.id,clip:clip})};PDFNet.Element.prototype.setPathStroke=function(stroke){apiFunctionCheck("Element.setPathStroke",arguments.length,1,"(boolean)",[[stroke,"boolean"]]);return PDFNet.sendWithPromise("Element.setPathStroke",{e:this.id, 706stroke:stroke})};PDFNet.Element.prototype.setPathFill=function(fill){apiFunctionCheck("Element.setPathFill",arguments.length,1,"(boolean)",[[fill,"boolean"]]);return PDFNet.sendWithPromise("Element.setPathFill",{e:this.id,fill:fill})};PDFNet.Element.prototype.setWindingFill=function(winding_rule){apiFunctionCheck("Element.setWindingFill",arguments.length,1,"(boolean)",[[winding_rule,"boolean"]]);return PDFNet.sendWithPromise("Element.setWindingFill",{e:this.id,winding_rule:winding_rule})};PDFNet.Element.prototype.setClipWindingFill= 707function(winding_rule){apiFunctionCheck("Element.setClipWindingFill",arguments.length,1,"(boolean)",[[winding_rule,"boolean"]]);return PDFNet.sendWithPromise("Element.setClipWindingFill",{e:this.id,winding_rule:winding_rule})};PDFNet.Element.prototype.setPathTypes=function(in_seg_types,count){apiFunctionCheck("Element.setPathTypes",arguments.length,2,"(string, number)",[[in_seg_types,"string"],[count,"number"]]);return PDFNet.sendWithPromise("Element.setPathTypes",{e:this.id,in_seg_types:in_seg_types, 708count:count})};PDFNet.Element.prototype.getXObject=function(){apiFunctionCheck("Element.getXObject");
708return PDFNet.sendWithPromise("Element.getXObject",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Element.prototype.getImageData=function(){apiFunctionCheck("Element.getImageData");return PDFNet.sendWithPromise("Element.getImageData",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Element.prototype.getImageDataSize=function(){apiFunctionCheck("Element.getImageDataSize"); 709return PDFNet.sendWithPromise("Element.getImageDataSize",{e:this.id})};PDFNet.Element.prototype.getImageColorSpace=function(){apiFunctionCheck("Element.getImageColorSpace");return PDFNet.sendWithPromise("Element.getImageColorSpace",{e:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.Element.prototype.getImageWidth=function(){apiFunctionCheck("Element.getImageWidth");return PDFNet.sendWithPromise("Element.getImageWidth",{e:this.id})};PDFNet.Element.prototype.getImageHeight= 710function(){apiFunctionCheck("Element.getImageHeight");return PDFNet.sendWithPromise("Element.getImageHeight",{e:this.id})};PDFNet.Element.prototype.getDecodeArray=function(){apiFunctionCheck("Element.getDecodeArray");return PDFNet.sendWithPromise("Element.getDecodeArray",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Element.prototype.getBitsPerComponent=function(){apiFunctionCheck("Element.getBitsPerComponent");return PDFNet.sendWithPromise("Element.getBitsPerComponent", 711{e:this.id})};PDFNet.Element.prototype.getComponentNum=function(){apiFunctionCheck("Element.getComponentNum");return PDFNet.sendWithPromise("Element.getComponentNum",{e:this.id})};PDFNet.Element.prototype.isImageMask=function(){apiFunctionCheck("Element.isImageMask");return PDFNet.sendWithPromise("Element.isImageMask",{e:this.id})};PDFNet.Element.prototype.isImageInterpolate=function(){apiFunctionCheck("Element.isImageInterpolate");return PDFNet.sendWithPromise("Element.isImageInterpolate",{e:this.id})}; 712PDFNet.Element.prototype.getMask=function(){apiFunctionCheck("Element.getMask");return PDFNet.sendWithPromise("Element.getMask",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Element.prototype.getImageRenderingIntent=function(){apiFunctionCheck("Element.getImageRenderingIntent");return PDFNet.sendWithPromise("Element.getImageRenderingIntent",{e:this.id})};PDFNet.Element.prototype.getTextString=function(){apiFunctionCheck("Element.getTextString");return PDFNet.sendWithPromise("Element.getTextString", 713{e:this.id})};PDFNet.Element.prototype.getTextMatrix=function(){apiFunctionCheck("Element.getTextMatrix");return PDFNet.sendWithPromise("Element.getTextMatrix",{e:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Element.prototype.getCharIterator=function(){apiFunctionCheck("Element.getCharIterator");return PDFNet.sendWithPromise("Element.getCharIterator",{e:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"CharData")})};PDFNet.Element.prototype.getTextLength= 714function(){apiFunctionCheck("Element.getTextLength");return PDFNet.sendWithPromise("Element.getTextLength",{e:this.id})};PDFNet.Element.prototype.getPosAdjustment=function(){apiFunctionCheck("Element.getPosAdjustment");return PDFNet.sendWithPromise("Element.getPosAdjustment",{e:this.id})};PDFNet.Element.prototype.getNewTextLineOffset=function(){apiFunctionCheck("Element.getNewTextLineOffset");return PDFNet.sendWithPromise("Element.getNewTextLineOffset",{e:this.id})};PDFNet.Element.prototype.hasTextMatrix= 715function(){apiFunctionCheck("Element.hasTextMatrix");return PDFNet.sendWithPromise("Element.hasTextMatrix",{e:this.id})};PDFNet.Element.prototype.setTextData=function(buf_text_data){apiFunctionCheck("Element.setTextData",arguments.length,1,"(ArrayBuffer|TypedArray)",[[buf_text_data,"ArrayBuffer"]]);var buf_text_dataArrayBuffer=getArrayBuffer(buf_text_data,!1);return PDFNet.sendWithPromise("Element.setTextData",{e:this.id,buf_text_data:buf_text_dataArrayBuffer})};PDFNet.Element.prototype.setTextMatrix= 716function(mtx){apiFunctionCheck("Element.setTextMatrix",arguments.length,1,"(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]],{checkThisYield:!1},[[mtx,0]]);
716return PDFNet.sendWithPromise("Element.setTextMatrix",{e:this.id,mtx:mtx})};PDFNet.Element.prototype.setTextMatrixEntries=function(a,b,c,d,h,v){apiFunctionCheck("Element.setTextMatrixEntries",arguments.length,6,"(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v, 717"number"]]);return PDFNet.sendWithPromise("Element.setTextMatrixEntries",{e:this.id,a:a,b:b,c:c,d:d,h:h,v:v})};PDFNet.Element.prototype.setPosAdjustment=function(adjust){apiFunctionCheck("Element.setPosAdjustment",arguments.length,1,"(number)",[[adjust,"number"]]);return PDFNet.sendWithPromise("Element.setPosAdjustment",{e:this.id,adjust:adjust})};PDFNet.Element.prototype.updateTextMetrics=function(){apiFunctionCheck("Element.updateTextMetrics");return PDFNet.sendWithPromise("Element.updateTextMetrics", 718{e:this.id})};PDFNet.Element.prototype.setNewTextLineOffset=function(dx,dy){apiFunctionCheck("Element.setNewTextLineOffset",arguments.length,2,"(number, number)",[[dx,"number"],[dy,"number"]]);return PDFNet.sendWithPromise("Element.setNewTextLineOffset",{e:this.id,dx:dx,dy:dy})};PDFNet.Element.prototype.getShading=function(){apiFunctionCheck("Element.getShading");return PDFNet.sendWithPromise("Element.getShading",{e:this.id}).then(function(id){return createDestroyableObj(PDFNet.Shading,id)})};PDFNet.Element.prototype.getMCPropertyDict= 719function(){apiFunctionCheck("Element.getMCPropertyDict");return PDFNet.sendWithPromise("Element.getMCPropertyDict",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Element.prototype.getMCTag=function(){apiFunctionCheck("Element.getMCTag");return PDFNet.sendWithPromise("Element.getMCTag",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ShapedText.prototype.getScale=function(){apiFunctionCheck("ShapedText.getScale");return PDFNet.sendWithPromise("ShapedText.getScale", 720{self:this.id})};PDFNet.ShapedText.prototype.getShapingStatus=function(){apiFunctionCheck("ShapedText.getShapingStatus");return PDFNet.sendWithPromise("ShapedText.getShapingStatus",{self:this.id})};PDFNet.ShapedText.prototype.getFailureReason=function(){apiFunctionCheck("ShapedText.getFailureReason");return PDFNet.sendWithPromise("ShapedText.getFailureReason",{self:this.id})};PDFNet.ShapedText.prototype.getText=function(){apiFunctionCheck("ShapedText.getText");return PDFNet.sendWithPromise("ShapedText.getText", 721{self:this.id})};PDFNet.ShapedText.prototype.getNumGlyphs=function(){apiFunctionCheck("ShapedText.getNumGlyphs");return PDFNet.sendWithPromise("ShapedText.getNumGlyphs",{self:this.id})};PDFNet.ShapedText.prototype.getGlyph=function(index){apiFunctionCheck("ShapedText.getGlyph",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("ShapedText.getGlyph",{self:this.id,index:index})};PDFNet.ShapedText.prototype.getGlyphXPos=function(index){apiFunctionCheck("ShapedText.getGlyphXPos", 722arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("ShapedText.getGlyphXPos",{self:this.id,index:index})};PDFNet.ShapedText.prototype.getGlyphYPos=function(index){apiFunctionCheck("ShapedText.getGlyphYPos",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("ShapedText.getGlyphYPos",{self:this.id,index:index})};PDFNet.ElementBuilder.create=function(){apiFunctionCheck("ElementBuilder.create");return PDFNet.sendWithPromise("elementBuilderCreate", 723{}).then(function(id){return createDestroyableObj(PDFNet.ElementBuilder,id)})};PDFNet.ElementBuilder.prototype.reset=function(gs){"undefined"===typeof gs&&(gs=new PDFNet.GState("0"));apiFunctionCheck("ElementBuilder.reset",arguments.length,0,"(PDFNet.GState)",[[gs,"Object",PDFNet.GState,"GState"]]);return PDFNet.sendWithPromise("ElementBuilder.reset",{b:this.id,gs:gs.id})};PDFNet.ElementBuilder.prototype.createImage=function(img){apiFunctionCheck("ElementBuilder.createImage",arguments.length,1,"(PDFNet.Image)", 724[[img,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("ElementBuilder.createImage",{b:this.id,img:img.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createImageFromMatrix=function(img,mtx){apiFunctionCheck("ElementBuilder.createImageFromMatrix",arguments.length,2,"(PDFNet.Image, PDFNet.Matrix2D)",[[img,"Object",PDFNet.Image,"Image"],[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]],{checkThisYield:!1},[[mtx,1]]);
724return PDFNet.sendWithPromise("ElementBuilder.createImageFromMatrix", 725{b:this.id,img:img.id,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createImageScaled=function(img,x,y,hscale,vscale){apiFunctionCheck("ElementBuilder.createImageScaled",arguments.length,5,"(PDFNet.Image, number, number, number, number)",[[img,"Object",PDFNet.Image,"Image"],[x,"number"],[y,"number"],[hscale,"number"],[vscale,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createImageScaled",{b:this.id,img:img.id,x:x,y:y,hscale:hscale, 726vscale:vscale}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createGroupBegin=function(){apiFunctionCheck("ElementBuilder.createGroupBegin");return PDFNet.sendWithPromise("ElementBuilder.createGroupBegin",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createGroupEnd=function(){apiFunctionCheck("ElementBuilder.createGroupEnd");return PDFNet.sendWithPromise("ElementBuilder.createGroupEnd", 727{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createShading=function(sh){apiFunctionCheck("ElementBuilder.createShading",arguments.length,1,"(PDFNet.Shading)",[[sh,"Object",PDFNet.Shading,"Shading"]]);return PDFNet.sendWithPromise("ElementBuilder.createShading",{b:this.id,sh:sh.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createFormFromStream=function(form){apiFunctionCheck("ElementBuilder.createFormFromStream", 728arguments.length,1,"(PDFNet.Obj)",[[form,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementBuilder.createFormFromStream",{b:this.id,form:form.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createFormFromPage=function(page){apiFunctionCheck("ElementBuilder.createFormFromPage",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("ElementBuilder.createFormFromPage",{b:this.id,page:page.id}).then(function(id){return createPDFNetObj(PDFNet.Element, 729id)})};PDFNet.ElementBuilder.prototype.createFormFromDoc=function(page,doc){apiFunctionCheck("ElementBuilder.createFormFromDoc",arguments.length,2,"(PDFNet.Page, PDFNet.PDFDoc)",[[page,"Object",PDFNet.Page,"Page"],[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("ElementBuilder.createFormFromDoc",{b:this.id,page:page.id,doc:doc.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextBeginWithFont=function(font,font_sz){apiFunctionCheck("ElementBuilder.createTextBeginWithFont", 730arguments.length,2,"(PDFNet.Font, number)",[[font,"Object",PDFNet.Font,"Font"],[font_sz,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createTextBeginWithFont",{b:this.id,font:font.id,font_sz:font_sz}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextBegin=function(){apiFunctionCheck("ElementBuilder.createTextBegin");return PDFNet.sendWithPromise("ElementBuilder.createTextBegin",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element, 731id)})};PDFNet.ElementBuilder.prototype.createTextEnd=function(){apiFunctionCheck("ElementBuilder.createTextEnd");return PDFNet.sendWithPromise("ElementBuilder.createTextEnd",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextRun=function(text_data,font,font_sz){apiFunctionCheck("ElementBuilder.createTextRun",arguments.length,3,"(string, PDFNet.Font, number)",[[text_data,"string"],[font,"Object",PDFNet.Font,"Font"],[font_sz,"number"]]); 732return PDFNet.sendWithPromise("ElementBuilder.createTextRun",{b:this.id,text_data:text_data,font:font.id,font_sz:font_sz}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextRunUnsigned=function(text_data,font,font_sz){apiFunctionCheck("ElementBuilder.createTextRunUnsigned",arguments.length,3,"(string, PDFNet.Font, number)",[[text_data,"string"],[font,"Object",PDFNet.Font,"Font"],[font_sz,"number"]]);
732return PDFNet.sendWithPromise("ElementBuilder.createTextRunUnsigned", 733{b:this.id,text_data:text_data,font:font.id,font_sz:font_sz}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createNewTextRun=function(text_data){apiFunctionCheck("ElementBuilder.createNewTextRun",arguments.length,1,"(string)",[[text_data,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createNewTextRun",{b:this.id,text_data:text_data}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createNewTextRunUnsigned= 734function(text_data){apiFunctionCheck("ElementBuilder.createNewTextRunUnsigned",arguments.length,1,"(string)",[[text_data,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createNewTextRunUnsigned",{b:this.id,text_data:text_data}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createShapedTextRun=function(text_data){apiFunctionCheck("ElementBuilder.createShapedTextRun",arguments.length,1,"(PDFNet.ShapedText)",[[text_data,"Object",PDFNet.ShapedText, 735"ShapedText"]]);return PDFNet.sendWithPromise("ElementBuilder.createShapedTextRun",{b:this.id,text_data:text_data.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextNewLineWithOffset=function(dx,dy){apiFunctionCheck("ElementBuilder.createTextNewLineWithOffset",arguments.length,2,"(number, number)",[[dx,"number"],[dy,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createTextNewLineWithOffset",{b:this.id,dx:dx,dy:dy}).then(function(id){return createPDFNetObj(PDFNet.Element, 736id)})};PDFNet.ElementBuilder.prototype.createTextNewLine=function(){apiFunctionCheck("ElementBuilder.createTextNewLine");return PDFNet.sendWithPromise("ElementBuilder.createTextNewLine",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createPath=function(points,buf_seg_types){apiFunctionCheck("ElementBuilder.createPath",arguments.length,2,"(Array<number>, ArrayBuffer|TypedArray)",[[points,"Array"],[buf_seg_types,"ArrayBuffer"]]);var buf_seg_typesArrayBuffer= 737getArrayBuffer(buf_seg_types,!1);return PDFNet.sendWithPromise("ElementBuilder.createPath",{b:this.id,points_list:points,buf_seg_types:buf_seg_typesArrayBuffer}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createRect=function(x,y,width,height){apiFunctionCheck("ElementBuilder.createRect",arguments.length,4,"(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createRect", 738{b:this.id,x:x,y:y,width:width,height:height}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createEllipse=function(x,y,width,height){apiFunctionCheck("ElementBuilder.createEllipse",arguments.length,4,"(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createEllipse",{b:this.id,x:x,y:y,width:width,height:height}).then(function(id){return createPDFNetObj(PDFNet.Element, 739id)})};PDFNet.ElementBuilder.prototype.pathBegin=function(){apiFunctionCheck("ElementBuilder.pathBegin");return PDFNet.sendWithPromise("ElementBuilder.pathBegin",{b:this.id})};PDFNet.ElementBuilder.prototype.pathEnd=function(){apiFunctionCheck("ElementBuilder.pathEnd");return PDFNet.sendWithPromise("ElementBuilder.pathEnd",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.rect=function(x,y,width,height){apiFunctionCheck("ElementBuilder.rect", 740arguments.length,4,"(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.rect",{b:this.id,x:x,y:y,width:width,height:height})};PDFNet.ElementBuilder.prototype.ellipse=function(x,y,width,height){apiFunctionCheck("ElementBuilder.ellipse",arguments.length,4,"(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);
740return PDFNet.sendWithPromise("ElementBuilder.ellipse",{b:this.id, 741x:x,y:y,width:width,height:height})};PDFNet.ElementBuilder.prototype.moveTo=function(x,y){apiFunctionCheck("ElementBuilder.moveTo",arguments.length,2,"(number, number)",[[x,"number"],[y,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.moveTo",{b:this.id,x:x,y:y})};PDFNet.ElementBuilder.prototype.lineTo=function(x,y){apiFunctionCheck("ElementBuilder.lineTo",arguments.length,2,"(number, number)",[[x,"number"],[y,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.lineTo",{b:this.id,x:x, 742y:y})};PDFNet.ElementBuilder.prototype.curveTo=function(cx1,cy1,cx2,cy2,x2,y2){apiFunctionCheck("ElementBuilder.curveTo",arguments.length,6,"(number, number, number, number, number, number)",[[cx1,"number"],[cy1,"number"],[cx2,"number"],[cy2,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.curveTo",{b:this.id,cx1:cx1,cy1:cy1,cx2:cx2,cy2:cy2,x2:x2,y2:y2})};PDFNet.ElementBuilder.prototype.arcTo=function(x,y,width,height,start,extent){apiFunctionCheck("ElementBuilder.arcTo", 743arguments.length,6,"(number, number, number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"],[start,"number"],[extent,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.arcTo",{b:this.id,x:x,y:y,width:width,height:height,start:start,extent:extent})};PDFNet.ElementBuilder.prototype.arcTo2=function(xr,yr,rx,isLargeArc,sweep,endX,endY){apiFunctionCheck("ElementBuilder.arcTo2",arguments.length,7,"(number, number, number, boolean, boolean, number, number)", 744[[xr,"number"],[yr,"number"],[rx,"number"],[isLargeArc,"boolean"],[sweep,"boolean"],[endX,"number"],[endY,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.arcTo2",{b:this.id,xr:xr,yr:yr,rx:rx,isLargeArc:isLargeArc,sweep:sweep,endX:endX,endY:endY})};PDFNet.ElementBuilder.prototype.closePath=function(){apiFunctionCheck("ElementBuilder.closePath");return PDFNet.sendWithPromise("ElementBuilder.closePath",{b:this.id})};PDFNet.ElementBuilder.prototype.createMarkedContentBeginInlineProperties=function(tag){apiFunctionCheck("ElementBuilder.createMarkedContentBeginInlineProperties", 745arguments.length,1,"(string)",[[tag,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentBeginInlineProperties",{b:this.id,tag:tag}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentBegin=function(tag,property_dict){apiFunctionCheck("ElementBuilder.createMarkedContentBegin",arguments.length,2,"(string, PDFNet.Obj)",[[tag,"string"],[property_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentBegin", 746{b:this.id,tag:tag,property_dict:property_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentEnd=function(){apiFunctionCheck("ElementBuilder.createMarkedContentEnd");return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentEnd",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentPointInlineProperties=function(tag){apiFunctionCheck("ElementBuilder.createMarkedContentPointInlineProperties", 747arguments.length,1,"(string)",[[tag,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentPointInlineProperties",{b:this.id,tag:tag}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentPoint=function(tag,property_dict){apiFunctionCheck("ElementBuilder.createMarkedContentPoint",arguments.length,2,"(string, PDFNet.Obj)",[[tag,"string"],[property_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentPoint", 748{b:this.id,tag:tag,property_dict:property_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementReader.create=function(){apiFunctionCheck("ElementReader.create");return PDFNet.sendWithPromise("elementReaderCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ElementReader,id)})};PDFNet.ElementReader.prototype.beginOnPage=function(page,ctx){"undefined"===typeof ctx&&(ctx=new PDFNet.OCGContext("0"));apiFunctionCheck("ElementReader.beginOnPage",arguments.length, 7491,"(PDFNet.Page, PDFNet.OCGContext)",[[page,"Object",PDFNet.Page,"Page"],[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);
749return PDFNet.sendWithPromise("ElementReader.beginOnPage",{r:this.id,page:page.id,ctx:ctx.id})};PDFNet.ElementReader.prototype.begin=function(content_stream,resource_dict,ctx){"undefined"===typeof resource_dict&&(resource_dict=new PDFNet.Obj("0"));"undefined"===typeof ctx&&(ctx=new PDFNet.OCGContext("0"));apiFunctionCheck("ElementReader.begin",arguments.length,1,"(PDFNet.Obj, PDFNet.Obj, PDFNet.OCGContext)", 750[[content_stream,"Object",PDFNet.Obj,"Obj"],[resource_dict,"Object",PDFNet.Obj,"Obj"],[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("ElementReader.begin",{r:this.id,content_stream:content_stream.id,resource_dict:resource_dict.id,ctx:ctx.id})};PDFNet.ElementReader.prototype.appendResource=function(res){apiFunctionCheck("ElementReader.appendResource",arguments.length,1,"(PDFNet.Obj)",[[res,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementReader.appendResource", 751{r:this.id,res:res.id})};PDFNet.ElementReader.prototype.next=function(){apiFunctionCheck("ElementReader.next");return PDFNet.sendWithPromise("ElementReader.next",{r:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementReader.prototype.current=function(){apiFunctionCheck("ElementReader.current");return PDFNet.sendWithPromise("ElementReader.current",{r:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementReader.prototype.formBegin= 752function(){apiFunctionCheck("ElementReader.formBegin");return PDFNet.sendWithPromise("ElementReader.formBegin",{r:this.id})};PDFNet.ElementReader.prototype.patternBegin=function(fill_pattern,reset_ctm_tfm){"undefined"===typeof reset_ctm_tfm&&(reset_ctm_tfm=!1);apiFunctionCheck("ElementReader.patternBegin",arguments.length,1,"(boolean, boolean)",[[fill_pattern,"boolean"],[reset_ctm_tfm,"boolean"]]);return PDFNet.sendWithPromise("ElementReader.patternBegin",{r:this.id,fill_pattern:fill_pattern,reset_ctm_tfm:reset_ctm_tfm})}; 753PDFNet.ElementReader.prototype.type3FontBegin=function(char_data,resource_dict){"undefined"===typeof resource_dict&&(resource_dict=new PDFNet.Obj("0"));apiFunctionCheck("ElementReader.type3FontBegin",arguments.length,1,"(PDFNet.CharData, PDFNet.Obj)",[[char_data,"Structure",PDFNet.CharData,"CharData"],[resource_dict,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!1},[[char_data,0]]);char_data.yieldFunction="ElementReader.type3FontBegin";return PDFNet.sendWithPromise("ElementReader.type3FontBegin",{r:this.id, 754char_data:char_data,resource_dict:resource_dict.id}).then(function(id){char_data.yieldFunction=void 0;copyFunc(id,char_data)})};PDFNet.ElementReader.prototype.end=function(){apiFunctionCheck("ElementReader.end");return PDFNet.sendWithPromise("ElementReader.end",{r:this.id})};PDFNet.ElementReader.prototype.getChangesIterator=function(){apiFunctionCheck("ElementReader.getChangesIterator");return PDFNet.sendWithPromise("ElementReader.getChangesIterator",{r:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator, 755id,"Int")})};PDFNet.ElementReader.prototype.isChanged=function(attrib){apiFunctionCheck("ElementReader.isChanged",arguments.length,1,"(number)",[[attrib,"number"]]);return PDFNet.sendWithPromise("ElementReader.isChanged",{r:this.id,attrib:attrib})};PDFNet.ElementReader.prototype.clearChangeList=function(){apiFunctionCheck("ElementReader.clearChangeList");return PDFNet.sendWithPromise("ElementReader.clearChangeList",{r:this.id})};PDFNet.ElementReader.prototype.getFont=function(name){apiFunctionCheck("ElementReader.getFont", 756arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getFont",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementReader.prototype.getXObject=function(name){apiFunctionCheck("ElementReader.getXObject",arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getXObject",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementReader.prototype.getShading= 757function(name){apiFunctionCheck("ElementReader.getShading",arguments.length,1,"(string)",[[name,"string"]]
757);return PDFNet.sendWithPromise("ElementReader.getShading",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementReader.prototype.getColorSpace=function(name){apiFunctionCheck("ElementReader.getColorSpace",arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getColorSpace",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj, 758id)})};PDFNet.ElementReader.prototype.getPattern=function(name){apiFunctionCheck("ElementReader.getPattern",arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getPattern",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementReader.prototype.getExtGState=function(name){apiFunctionCheck("ElementReader.getExtGState",arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getExtGState", 759{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementWriter.create=function(){apiFunctionCheck("ElementWriter.create");return PDFNet.sendWithPromise("elementWriterCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ElementWriter,id)})};PDFNet.ElementWriter.prototype.beginOnPage=function(page,placement,page_coord_sys,compress,resources){"undefined"===typeof placement&&(placement=PDFNet.ElementWriter.WriteMode.e_overlay);"undefined"===typeof page_coord_sys&& 760(page_coord_sys=!0);"undefined"===typeof compress&&(compress=!0);"undefined"===typeof resources&&(resources=new PDFNet.Obj("0"));apiFunctionCheck("ElementWriter.beginOnPage",arguments.length,1,"(PDFNet.Page, number, boolean, boolean, PDFNet.Obj)",[[page,"Object",PDFNet.Page,"Page"],[placement,"number"],[page_coord_sys,"boolean"],[compress,"boolean"],[resources,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementWriter.beginOnPage",{w:this.id,page:page.id,placement:placement,page_coord_sys:page_coord_sys, 761compress:compress,resources:resources.id})};PDFNet.ElementWriter.prototype.begin=function(doc,compress){"undefined"===typeof compress&&(compress=!0);apiFunctionCheck("ElementWriter.begin",arguments.length,1,"(PDFNet.SDFDoc, boolean)",[[doc,"SDFDoc"],[compress,"boolean"]]);return PDFNet.sendWithPromise("ElementWriter.begin",{w:this.id,doc:doc.id,compress:compress})};PDFNet.ElementWriter.prototype.beginOnObj=function(stream_obj_to_update,compress,resources){"undefined"===typeof compress&&(compress= 762!0);"undefined"===typeof resources&&(resources=new PDFNet.Obj("0"));apiFunctionCheck("ElementWriter.beginOnObj",arguments.length,1,"(PDFNet.Obj, boolean, PDFNet.Obj)",[[stream_obj_to_update,"Object",PDFNet.Obj,"Obj"],[compress,"boolean"],[resources,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementWriter.beginOnObj",{w:this.id,stream_obj_to_update:stream_obj_to_update.id,compress:compress,resources:resources.id})};PDFNet.ElementWriter.prototype.end=function(){apiFunctionCheck("ElementWriter.end"); 763return PDFNet.sendWithPromise("ElementWriter.end",{w:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementWriter.prototype.writeElement=function(element){apiFunctionCheck("ElementWriter.writeElement",arguments.length,1,"(PDFNet.Element)",[[element,"Object",PDFNet.Element,"Element"]]);return PDFNet.sendWithPromise("ElementWriter.writeElement",{w:this.id,element:element.id})};PDFNet.ElementWriter.prototype.writePlacedElement=function(element){apiFunctionCheck("ElementWriter.writePlacedElement", 764arguments.length,1,"(PDFNet.Element)",[[element,"Object",PDFNet.Element,"Element"]]);return PDFNet.sendWithPromise("ElementWriter.writePlacedElement",{w:this.id,element:element.id})};PDFNet.ElementWriter.prototype.flush=function(){apiFunctionCheck("ElementWriter.flush");return PDFNet.sendWithPromise("ElementWriter.flush",{w:this.id})};PDFNet.ElementWriter.prototype.writeBuffer=function(data_buf){apiFunctionCheck("ElementWriter.writeBuffer",arguments.length,1,"(ArrayBuffer|TypedArray)",[[data_buf, 765"ArrayBuffer"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf,!1);
765return PDFNet.sendWithPromise("ElementWriter.writeBuffer",{w:this.id,data_buf:data_bufArrayBuffer})};PDFNet.ElementWriter.prototype.writeString=function(str){apiFunctionCheck("ElementWriter.writeString",arguments.length,1,"(string)",[[str,"string"]]);return PDFNet.sendWithPromise("ElementWriter.writeString",{w:this.id,str:str})};PDFNet.ElementWriter.prototype.setDefaultGState=function(reader){apiFunctionCheck("ElementWriter.setDefaultGState", 766arguments.length,1,"(PDFNet.ElementReader)",[[reader,"Object",PDFNet.ElementReader,"ElementReader"]]);return PDFNet.sendWithPromise("ElementWriter.setDefaultGState",{w:this.id,reader:reader.id})};PDFNet.ElementWriter.prototype.writeGStateChanges=function(element){apiFunctionCheck("ElementWriter.writeGStateChanges",arguments.length,1,"(PDFNet.Element)",[[element,"Object",PDFNet.Element,"Element"]]);return PDFNet.sendWithPromise("ElementWriter.writeGStateChanges",{w:this.id,element:element.id})};PDFNet.FileSpec.create= 767function(doc,path,embed){"undefined"===typeof embed&&(embed=!0);apiFunctionCheck("FileSpec.create",arguments.length,2,"(PDFNet.SDFDoc, string, boolean)",[[doc,"SDFDoc"],[path,"string"],[embed,"boolean"]]);return PDFNet.sendWithPromise("fileSpecCreate",{doc:doc.id,path:path,embed:embed}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileSpec.createURL=function(doc,url){apiFunctionCheck("FileSpec.createURL",arguments.length,2,"(PDFNet.SDFDoc, string)",[[doc,"SDFDoc"],[url,"string"]]); 768return PDFNet.sendWithPromise("fileSpecCreateURL",{doc:doc.id,url:url}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileSpec.createFromObj=function(f){apiFunctionCheck("FileSpec.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[f,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fileSpecCreateFromObj",{f:f.id}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileSpec.prototype.copy=function(){apiFunctionCheck("FileSpec.copy");return PDFNet.sendWithPromise("FileSpec.copy", 769{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileSpec.prototype.compare=function(d){apiFunctionCheck("FileSpec.compare",arguments.length,1,"(PDFNet.FileSpec)",[[d,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("FileSpec.compare",{fs:this.id,d:d.id})};PDFNet.FileSpec.prototype.isValid=function(){apiFunctionCheck("FileSpec.isValid");return PDFNet.sendWithPromise("FileSpec.isValid",{fs:this.id})};PDFNet.FileSpec.prototype["export"]=function(save_as){"undefined"=== 770typeof save_as&&(save_as="");apiFunctionCheck("FileSpec.export",arguments.length,0,"(string)",[[save_as,"string"]]);return PDFNet.sendWithPromise("FileSpec.export",{fs:this.id,save_as:save_as})};PDFNet.FileSpec.prototype.getFileData=function(){apiFunctionCheck("FileSpec.getFileData");return PDFNet.sendWithPromise("FileSpec.getFileData",{fs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.FileSpec.prototype.getFilePath=function(){apiFunctionCheck("FileSpec.getFilePath"); 771return PDFNet.sendWithPromise("FileSpec.getFilePath",{fs:this.id})};PDFNet.FileSpec.prototype.setDesc=function(desc){apiFunctionCheck("FileSpec.setDesc",arguments.length,1,"(string)",[[desc,"string"]]);return PDFNet.sendWithPromise("FileSpec.setDesc",{fs:this.id,desc:desc})};PDFNet.FileSpec.prototype.getSDFObj=function(){apiFunctionCheck("FileSpec.getSDFObj");return PDFNet.sendWithPromise("FileSpec.getSDFObj",{fs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Flattener.create= 772function(){apiFunctionCheck("Flattener.create");return PDFNet.sendWithPromise("flattenerCreate",{}).then(function(id){return createDestroyableObj(PDFNet.Flattener,id)})};PDFNet.Flattener.prototype.setDPI=function(dpi){apiFunctionCheck("Flattener.setDPI",arguments.length,1,"(number)",[[dpi,"number"]]);return PDFNet.sendWithPromise("Flattener.setDPI",{flattener:this.id,dpi:dpi})};PDFNet.Flattener.prototype.setThreshold=function(threshold){apiFunctionCheck("Flattener.setThreshold",arguments.length,1, 773"(number)",[[threshold,"number"]]);
773return PDFNet.sendWithPromise("Flattener.setThreshold",{flattener:this.id,threshold:threshold})};PDFNet.Flattener.prototype.setMaximumImagePixels=function(max_pixels){apiFunctionCheck("Flattener.setMaximumImagePixels",arguments.length,1,"(number)",[[max_pixels,"number"]]);return PDFNet.sendWithPromise("Flattener.setMaximumImagePixels",{flattener:this.id,max_pixels:max_pixels})};PDFNet.Flattener.prototype.setPreferJPG=function(jpg){apiFunctionCheck("Flattener.setPreferJPG", 774arguments.length,1,"(boolean)",[[jpg,"boolean"]]);return PDFNet.sendWithPromise("Flattener.setPreferJPG",{flattener:this.id,jpg:jpg})};PDFNet.Flattener.prototype.setJPGQuality=function(quality){apiFunctionCheck("Flattener.setJPGQuality",arguments.length,1,"(number)",[[quality,"number"]]);return PDFNet.sendWithPromise("Flattener.setJPGQuality",{flattener:this.id,quality:quality})};PDFNet.Flattener.prototype.setPathHinting=function(hinting){apiFunctionCheck("Flattener.setPathHinting",arguments.length, 7751,"(boolean)",[[hinting,"boolean"]]);return PDFNet.sendWithPromise("Flattener.setPathHinting",{flattener:this.id,hinting:hinting})};PDFNet.Flattener.prototype.process=function(doc,mode){apiFunctionCheck("Flattener.process",arguments.length,2,"(PDFNet.PDFDoc, number)",[[doc,"PDFDoc"],[mode,"number"]]);return PDFNet.sendWithPromise("Flattener.process",{flattener:this.id,doc:doc.id,mode:mode})};PDFNet.Flattener.prototype.processPage=function(page,mode){apiFunctionCheck("Flattener.processPage",arguments.length, 7762,"(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[mode,"number"]]);return PDFNet.sendWithPromise("Flattener.processPage",{flattener:this.id,page:page.id,mode:mode})};PDFNet.Font.createFromObj=function(font_dict){"undefined"===typeof font_dict&&(font_dict=new PDFNet.Obj("0"));apiFunctionCheck("Font.createFromObj",arguments.length,0,"(PDFNet.Obj)",[[font_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fontCreateFromObj",{font_dict:font_dict.id}).then(function(id){return createDestroyableObj(PDFNet.Font, 777id)})};PDFNet.Font.create=function(doc,type){apiFunctionCheck("Font.create",arguments.length,2,"(PDFNet.SDFDoc, number)",[[doc,"SDFDoc"],[type,"number"]]);return PDFNet.sendWithPromise("fontCreate",{doc:doc.id,type:type}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createFromFontDescriptor=function(doc,from,char_set){apiFunctionCheck("Font.createFromFontDescriptor",arguments.length,3,"(PDFNet.SDFDoc, PDFNet.Font, string)",[[doc,"SDFDoc"],[from,"Object",PDFNet.Font, 778"Font"],[char_set,"string"]]);return PDFNet.sendWithPromise("fontCreateFromFontDescriptor",{doc:doc.id,from:from.id,char_set:char_set}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createFromName=function(doc,name,char_set){apiFunctionCheck("Font.createFromName",arguments.length,3,"(PDFNet.SDFDoc, string, string)",[[doc,"SDFDoc"],[name,"string"],[char_set,"string"]]);return PDFNet.sendWithPromise("fontCreateFromName",{doc:doc.id,name:name,char_set:char_set}).then(function(id){return createDestroyableObj(PDFNet.Font, 779id)})};PDFNet.Font.createAndEmbed=function(doc,type){apiFunctionCheck("Font.createAndEmbed",arguments.length,2,"(PDFNet.SDFDoc, number)",[[doc,"SDFDoc"],[type,"number"]]);return PDFNet.sendWithPromise("fontCreateAndEmbed",{doc:doc.id,type:type}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createTrueTypeFontWithBuffer=function(doc,font_buffer,embed,subset){"undefined"===typeof embed&&(embed=!0);"undefined"===typeof subset&&(subset=!0);apiFunctionCheck("Font.createTrueTypeFontWithBuffer", 780arguments.length,2,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, boolean, boolean)",[[doc,"SDFDoc"],[font_buffer,"ArrayBuffer"],[embed,"boolean"],[subset,"boolean"]]);font_buffer=getArrayBuffer(font_buffer,!1);return PDFNet.sendWithPromise("fontCreateTrueTypeFontWithBuffer",{doc:doc.id,font_path:font_buffer,embed:embed,subset:subset}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createCIDTrueTypeFontWithBuffer=function(doc,font_buffer,embed,subset,encoding,ttc_font_index){"undefined"=== 781typeof embed&&(embed=!0);"undefined"===typeof subset&&(subset=!0);"undefined"===typeof encoding&&(encoding=PDFNet.Font.Encoding.e_IdentityH);"undefined"===typeof ttc_font_index&&(ttc_font_index=0);apiFunctionCheck("Font.createCIDTrueTypeFontWithBuffer",arguments.length,2,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, boolean, boolean, number, number)",[[doc,"SDFDoc"],[font_buffer,"ArrayBuffer"],[embed,"boolean"],[subset,"boolean"],[encoding,"number"],[ttc_font_index,"number"]]);font_buffer=getArrayBuffer(font_buffer, 782!1);
782return PDFNet.sendWithPromise("fontCreateCIDTrueTypeFontWithBuffer",{doc:doc.id,font_path:font_buffer,embed:embed,subset:subset,encoding:encoding,ttc_font_index:ttc_font_index}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createType1FontWithBuffer=function(doc,font_buffer,embed){"undefined"===typeof embed&&(embed=!0);apiFunctionCheck("Font.createType1FontWithBuffer",arguments.length,2,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, boolean)",[[doc,"SDFDoc"],[font_buffer, 783"ArrayBuffer"],[embed,"boolean"]]);font_buffer=getArrayBuffer(font_buffer,!1);return PDFNet.sendWithPromise("fontCreateType1FontWithBuffer",{doc:doc.id,font_path:font_buffer,embed:embed}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.prototype.getType=function(){apiFunctionCheck("Font.getType");return PDFNet.sendWithPromise("Font.getType",{font:this.id})};PDFNet.Font.prototype.isSimple=function(){apiFunctionCheck("Font.isSimple");return PDFNet.sendWithPromise("Font.isSimple", 784{font:this.id})};PDFNet.Font.getTypeFromObj=function(font_dict){apiFunctionCheck("Font.getTypeFromObj",arguments.length,1,"(PDFNet.Obj)",[[font_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fontGetTypeFromObj",{font_dict:font_dict.id})};PDFNet.Font.prototype.getSDFObj=function(){apiFunctionCheck("Font.getSDFObj");return PDFNet.sendWithPromise("Font.getSDFObj",{font:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Font.prototype.getDescriptor=function(){apiFunctionCheck("Font.getDescriptor"); 785return PDFNet.sendWithPromise("Font.getDescriptor",{font:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Font.prototype.getName=function(){apiFunctionCheck("Font.getName");return PDFNet.sendWithPromise("Font.getName",{font:this.id})};PDFNet.Font.prototype.getFamilyName=function(){apiFunctionCheck("Font.getFamilyName");return PDFNet.sendWithPromise("Font.getFamilyName",{font:this.id})};PDFNet.Font.prototype.isFixedWidth=function(){apiFunctionCheck("Font.isFixedWidth");return PDFNet.sendWithPromise("Font.isFixedWidth", 786{font:this.id})};PDFNet.Font.prototype.isSerif=function(){apiFunctionCheck("Font.isSerif");return PDFNet.sendWithPromise("Font.isSerif",{font:this.id})};PDFNet.Font.prototype.isSymbolic=function(){apiFunctionCheck("Font.isSymbolic");return PDFNet.sendWithPromise("Font.isSymbolic",{font:this.id})};PDFNet.Font.prototype.isItalic=function(){apiFunctionCheck("Font.isItalic");return PDFNet.sendWithPromise("Font.isItalic",{font:this.id})};PDFNet.Font.prototype.isAllCap=function(){apiFunctionCheck("Font.isAllCap"); 787return PDFNet.sendWithPromise("Font.isAllCap",{font:this.id})};PDFNet.Font.prototype.isForceBold=function(){apiFunctionCheck("Font.isForceBold");return PDFNet.sendWithPromise("Font.isForceBold",{font:this.id})};PDFNet.Font.prototype.isHorizontalMode=function(){apiFunctionCheck("Font.isHorizontalMode");return PDFNet.sendWithPromise("Font.isHorizontalMode",{font:this.id})};PDFNet.Font.prototype.getWidth=function(char_code){apiFunctionCheck("Font.getWidth",arguments.length,1,"(number)",[[char_code,"number"]]); 788return PDFNet.sendWithPromise("Font.getWidth",{font:this.id,char_code:char_code})};PDFNet.Font.prototype.getMaxWidth=function(){apiFunctionCheck("Font.getMaxWidth");return PDFNet.sendWithPromise("Font.getMaxWidth",{font:this.id})};PDFNet.Font.prototype.getMissingWidth=function(){apiFunctionCheck("Font.getMissingWidth");return PDFNet.sendWithPromise("Font.getMissingWidth",{font:this.id})};PDFNet.Font.prototype.getCharCodeIterator=function(){apiFunctionCheck("Font.getCharCodeIterator");return PDFNet.sendWithPromise("Font.getCharCodeIterator", 789{font:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Int")})};PDFNet.Font.prototype.getShapedText=function(text_to_shape){apiFunctionCheck("Font.getShapedText",arguments.length,1,"(string)",[[text_to_shape,"string"]]);return PDFNet.sendWithPromise("Font.getShapedText",{font:this.id,text_to_shape:text_to_shape}).then(function(id){return createDestroyableObj(PDFNet.ShapedText,id)})};PDFNet.Font.prototype.getEncoding=function(){apiFunctionCheck("Font.getEncoding");
789return PDFNet.sendWithPromise("Font.getEncoding", 790{font:this.id})};PDFNet.Font.prototype.isEmbedded=function(){apiFunctionCheck("Font.isEmbedded");return PDFNet.sendWithPromise("Font.isEmbedded",{font:this.id})};PDFNet.Font.prototype.getEmbeddedFontName=function(){apiFunctionCheck("Font.getEmbeddedFontName");return PDFNet.sendWithPromise("Font.getEmbeddedFontName",{font:this.id})};PDFNet.Font.prototype.getEmbeddedFont=function(){apiFunctionCheck("Font.getEmbeddedFont");return PDFNet.sendWithPromise("Font.getEmbeddedFont",{font:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj, 791id)})};PDFNet.Font.prototype.getEmbeddedFontBufSize=function(){apiFunctionCheck("Font.getEmbeddedFontBufSize");return PDFNet.sendWithPromise("Font.getEmbeddedFontBufSize",{font:this.id})};PDFNet.Font.prototype.getUnitsPerEm=function(){apiFunctionCheck("Font.getUnitsPerEm");return PDFNet.sendWithPromise("Font.getUnitsPerEm",{font:this.id})};PDFNet.Font.prototype.getBBox=function(){apiFunctionCheck("Font.getBBox");return PDFNet.sendWithPromise("Font.getBBox",{font:this.id}).then(function(id){return new PDFNet.Rect(id)})}; 792PDFNet.Font.prototype.getAscent=function(){apiFunctionCheck("Font.getAscent");return PDFNet.sendWithPromise("Font.getAscent",{font:this.id})};PDFNet.Font.prototype.getDescent=function(){apiFunctionCheck("Font.getDescent");return PDFNet.sendWithPromise("Font.getDescent",{font:this.id})};PDFNet.Font.prototype.getStandardType1FontType=function(){apiFunctionCheck("Font.getStandardType1FontType");return PDFNet.sendWithPromise("Font.getStandardType1FontType",{font:this.id})};PDFNet.Font.prototype.isCFF= 793function(){apiFunctionCheck("Font.isCFF");return PDFNet.sendWithPromise("Font.isCFF",{font:this.id})};PDFNet.Font.prototype.getType3FontMatrix=function(){apiFunctionCheck("Font.getType3FontMatrix");return PDFNet.sendWithPromise("Font.getType3FontMatrix",{font:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Font.prototype.getType3GlyphStream=function(char_code){apiFunctionCheck("Font.getType3GlyphStream",arguments.length,1,"(number)",[[char_code,"number"]]);return PDFNet.sendWithPromise("Font.getType3GlyphStream", 794{font:this.id,char_code:char_code}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Font.prototype.getVerticalAdvance=function(char_code){apiFunctionCheck("Font.getVerticalAdvance",arguments.length,1,"(number)",[[char_code,"number"]]);return PDFNet.sendWithPromise("Font.getVerticalAdvance",{font:this.id,char_code:char_code})};PDFNet.Font.prototype.getDescendant=function(){apiFunctionCheck("Font.getDescendant");return PDFNet.sendWithPromise("Font.getDescendant",{font:this.id}).then(function(id){return createDestroyableObj(PDFNet.Font, 795id)})};PDFNet.Font.prototype.mapToCID=function(char_code){apiFunctionCheck("Font.mapToCID",arguments.length,1,"(number)",[[char_code,"number"]]);return PDFNet.sendWithPromise("Font.mapToCID",{font:this.id,char_code:char_code})};PDFNet.Function.create=function(funct_dict){"undefined"===typeof funct_dict&&(funct_dict=new PDFNet.Obj("0"));apiFunctionCheck("Function.create",arguments.length,0,"(PDFNet.Obj)",[[funct_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("functionCreate",{funct_dict:funct_dict.id}).then(function(id){return createDestroyableObj(PDFNet.Function, 796id)})};PDFNet.Function.prototype.getType=function(){apiFunctionCheck("Function.getType");return PDFNet.sendWithPromise("Function.getType",{f:this.id})};PDFNet.Function.prototype.getInputCardinality=function(){apiFunctionCheck("Function.getInputCardinality");return PDFNet.sendWithPromise("Function.getInputCardinality",{f:this.id})};PDFNet.Function.prototype.getOutputCardinality=function(){apiFunctionCheck("Function.getOutputCardinality");return PDFNet.sendWithPromise("Function.getOutputCardinality", 797{f:this.id})};PDFNet.Function.prototype.eval=function(inval,outval){apiFunctionCheck("Function.eval",arguments.length,2,"(number, number)",[[inval,"number"],[outval,"number"]]);return PDFNet.sendWithPromise("Function.eval",{f:this.id,inval:inval,outval:outval})};PDFNet.Function.prototype.getSDFObj=function(){apiFunctionCheck("Function.getSDFObj");
797return PDFNet.sendWithPromise("Function.getSDFObj",{f:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Highlights.create=function(){apiFunctionCheck("Highlights.create"); 798return PDFNet.sendWithPromise("highlightsCreate",{}).then(function(id){return createDestroyableObj(PDFNet.Highlights,id)})};PDFNet.Highlights.prototype.copyCtor=function(){apiFunctionCheck("Highlights.copyCtor");return PDFNet.sendWithPromise("Highlights.copyCtor",{hlts:this.id}).then(function(id){return createDestroyableObj(PDFNet.Highlights,id)})};PDFNet.Highlights.prototype.add=function(hlts){apiFunctionCheck("Highlights.add",arguments.length,1,"(PDFNet.Highlights)",[[hlts,"Object",PDFNet.Highlights, 799"Highlights"]]);return PDFNet.sendWithPromise("Highlights.add",{hlts2:this.id,hlts:hlts.id})};PDFNet.Highlights.prototype.saveToString=function(){apiFunctionCheck("Highlights.saveToString");return PDFNet.sendWithPromise("Highlights.saveToString",{hlts:this.id})};PDFNet.Highlights.prototype.clear=function(){apiFunctionCheck("Highlights.clear");return PDFNet.sendWithPromise("Highlights.clear",{hlts:this.id})};PDFNet.Highlights.prototype.begin=function(doc){apiFunctionCheck("Highlights.begin",arguments.length, 8001,"(PDFNet.PDFDoc)",[[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("Highlights.begin",{hlts:this.id,doc:doc.id})};PDFNet.Highlights.prototype.hasNext=function(){apiFunctionCheck("Highlights.hasNext");return PDFNet.sendWithPromise("Highlights.hasNext",{hlts:this.id})};PDFNet.Highlights.prototype.next=function(){apiFunctionCheck("Highlights.next");return PDFNet.sendWithPromise("Highlights.next",{hlts:this.id})};PDFNet.Highlights.prototype.getCurrentPageNumber=function(){apiFunctionCheck("Highlights.getCurrentPageNumber"); 801return PDFNet.sendWithPromise("Highlights.getCurrentPageNumber",{hlts:this.id})};PDFNet.Highlights.prototype.getCurrentTextRange=function(){apiFunctionCheck("Highlights.getCurrentTextRange");return PDFNet.sendWithPromise("Highlights.getCurrentTextRange",{hlts:this.id}).then(function(id){return createPDFNetObj(PDFNet.TextRange,id)})};PDFNet.Image.createFromMemory=function(doc,buf,width,height,bpc,color_space,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createFromMemory", 802arguments.length,6,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, number, PDFNet.ColorSpace, PDFNet.Obj)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[bpc,"number"],[color_space,"Object",PDFNet.ColorSpace,"ColorSpace"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateFromMemory",{doc:doc.id,buf:bufArrayBuffer,width:width,height:height,bpc:bpc,color_space:color_space.id,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image, 803id)})};PDFNet.Image.createFromMemory2=function(doc,buf,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createFromMemory2",arguments.length,2,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, PDFNet.Obj)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateFromMemory2",{doc:doc.id,buf:bufArrayBuffer,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image, 804id)})};PDFNet.Image.createFromStream=function(doc,image_data,width,height,bpc,color_space,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createFromStream",arguments.length,6,"(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, number, PDFNet.ColorSpace, PDFNet.Obj)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,"FilterReader"],[width,"number"],[height,"number"],[bpc,"number"],[color_space,"Object",PDFNet.ColorSpace,"ColorSpace"], 805[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("imageCreateFromStream",{doc:doc.id,image_data:image_data.id,width:width,height:height,bpc:bpc,color_space:color_space.id,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createFromStream2=function(doc,image_data,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createFromStream2",arguments.length,2,"(PDFNet.SDFDoc, PDFNet.Filter, PDFNet.Obj)", 806[[doc,"SDFDoc"],[image_data,"Object",PDFNet.Filter,"Filter"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);0!=image_data.id&&avoidCleanup(image_data.id);
806return PDFNet.sendWithPromise("imageCreateFromStream2",{doc:doc.id,no_own_image_data:image_data.id,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createImageMask=function(doc,buf,width,height,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createImageMask", 807arguments.length,4,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateImageMask",{doc:doc.id,buf:bufArrayBuffer,width:width,height:height,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createImageMaskFromStream=function(doc, 808image_data,width,height,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createImageMaskFromStream",arguments.length,4,"(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,"FilterReader"],[width,"number"],[height,"number"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("imageCreateImageMaskFromStream",{doc:doc.id,image_data:image_data.id,width:width, 809height:height,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createSoftMask=function(doc,buf,width,height,bpc,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createSoftMask",arguments.length,5,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[bpc,"number"],[encoder_hints,"Object", 810PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateSoftMask",{doc:doc.id,buf:bufArrayBuffer,width:width,height:height,bpc:bpc,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createSoftMaskFromStream=function(doc,image_data,width,height,bpc,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));apiFunctionCheck("Image.createSoftMaskFromStream",arguments.length, 8115,"(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,"FilterReader"],[width,"number"],[height,"number"],[bpc,"number"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("imageCreateSoftMaskFromStream",{doc:doc.id,image_data:image_data.id,width:width,height:height,bpc:bpc,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createDirectFromMemory= 812function(doc,buf,width,height,bpc,color_space,input_format){apiFunctionCheck("Image.createDirectFromMemory",arguments.length,7,"(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, number, PDFNet.ColorSpace, number)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[bpc,"number"],[color_space,"Object",PDFNet.ColorSpace,"ColorSpace"],[input_format,"number"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateDirectFromMemory",{doc:doc.id,buf:bufArrayBuffer, 813width:width,height:height,bpc:bpc,color_space:color_space.id,input_format:input_format}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createDirectFromStream=function(doc,image_data,width,height,bpc,color_space,input_format){apiFunctionCheck("Image.createDirectFromStream",arguments.length,7,"(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, number, PDFNet.ColorSpace, number)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,"FilterReader"],[width,"number"],[height, 814"number"],[bpc,"number"],[color_space,"Object",PDFNet.ColorSpace,"ColorSpace"],[input_format,"number"]]);return PDFNet.sendWithPromise("imageCreateDirectFromStream",{doc:doc.id,image_data:image_data.id,width:width,height:height,bpc:bpc,color_space:color_space.id,input_format:input_format}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createFromObj=function(image_xobject){"undefined"===typeof image_xobject&&(image_xobject=new PDFNet.Obj("0"));apiFunctionCheck("Image.createFromObj", 815arguments.length,0,"(PDFNet.Obj)",[[image_xobject,"Object",PDFNet.Obj,"Obj"]]);
815return PDFNet.sendWithPromise("imageCreateFromObj",{image_xobject:image_xobject.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.prototype.copy=function(){apiFunctionCheck("Image.copy");return PDFNet.sendWithPromise("Image.copy",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.prototype.getSDFObj=function(){apiFunctionCheck("Image.getSDFObj");return PDFNet.sendWithPromise("Image.getSDFObj", 816{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Image.prototype.isValid=function(){apiFunctionCheck("Image.isValid");return PDFNet.sendWithPromise("Image.isValid",{img:this.id})};PDFNet.Image.prototype.getImageData=function(){apiFunctionCheck("Image.getImageData");return PDFNet.sendWithPromise("Image.getImageData",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Image.prototype.getImageDataSize=function(){apiFunctionCheck("Image.getImageDataSize"); 817return PDFNet.sendWithPromise("Image.getImageDataSize",{img:this.id})};PDFNet.Image.prototype.getImageColorSpace=function(){apiFunctionCheck("Image.getImageColorSpace");return PDFNet.sendWithPromise("Image.getImageColorSpace",{img:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.Image.prototype.getImageWidth=function(){apiFunctionCheck("Image.getImageWidth");return PDFNet.sendWithPromise("Image.getImageWidth",{img:this.id})};PDFNet.Image.prototype.getImageHeight= 818function(){apiFunctionCheck("Image.getImageHeight");return PDFNet.sendWithPromise("Image.getImageHeight",{img:this.id})};PDFNet.Image.prototype.getDecodeArray=function(){apiFunctionCheck("Image.getDecodeArray");return PDFNet.sendWithPromise("Image.getDecodeArray",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Image.prototype.getBitsPerComponent=function(){apiFunctionCheck("Image.getBitsPerComponent");return PDFNet.sendWithPromise("Image.getBitsPerComponent",{img:this.id})}; 819PDFNet.Image.prototype.getComponentNum=function(){apiFunctionCheck("Image.getComponentNum");return PDFNet.sendWithPromise("Image.getComponentNum",{img:this.id})};PDFNet.Image.prototype.isImageMask=function(){apiFunctionCheck("Image.isImageMask");return PDFNet.sendWithPromise("Image.isImageMask",{img:this.id})};PDFNet.Image.prototype.isImageInterpolate=function(){apiFunctionCheck("Image.isImageInterpolate");return PDFNet.sendWithPromise("Image.isImageInterpolate",{img:this.id})};PDFNet.Image.prototype.getMask= 820function(){apiFunctionCheck("Image.getMask");return PDFNet.sendWithPromise("Image.getMask",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Image.prototype.setMask=function(image_mask){apiFunctionCheck("Image.setMask",arguments.length,1,"(PDFNet.Image)",[[image_mask,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("Image.setMask",{img:this.id,image_mask:image_mask.id})};PDFNet.Image.prototype.setMaskWithObj=function(mask){apiFunctionCheck("Image.setMaskWithObj", 821arguments.length,1,"(PDFNet.Obj)",[[mask,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Image.setMaskWithObj",{img:this.id,mask:mask.id})};PDFNet.Image.prototype.getSoftMask=function(){apiFunctionCheck("Image.getSoftMask");return PDFNet.sendWithPromise("Image.getSoftMask",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Image.prototype.setSoftMask=function(soft_mask){apiFunctionCheck("Image.setSoftMask",arguments.length,1,"(PDFNet.Image)",[[soft_mask,"Object", 822PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("Image.setSoftMask",{img:this.id,soft_mask:soft_mask.id})};PDFNet.Image.prototype.getImageRenderingIntent=function(){apiFunctionCheck("Image.getImageRenderingIntent");return PDFNet.sendWithPromise("Image.getImageRenderingIntent",{img:this.id})};PDFNet.Image.prototype.exportFromStream=function(writer){apiFunctionCheck("Image.exportFromStream",arguments.length,1,"(PDFNet.FilterWriter)",[[writer,"Object",PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Image.exportFromStream",
823{img:this.id,writer:writer.id})};PDFNet.Image.prototype.exportAsTiffFromStream=function(writer){apiFunctionCheck("Image.exportAsTiffFromStream",arguments.length,1,"(PDFNet.FilterWriter)",[[writer,"Object",PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Image.exportAsTiffFromStream",{img:this.id,writer:writer.id})};PDFNet.Image.prototype.exportAsPngFromStream=function(writer){apiFunctionCheck("Image.exportAsPngFromStream",arguments.length,1,"(PDFNet.FilterWriter)",[[writer,"Object", 824PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Image.exportAsPngFromStream",{img:this.id,writer:writer.id})};PDFNet.PageLabel.create=function(doc,style,prefix,start_at){"undefined"===typeof prefix&&(prefix="");"undefined"===typeof start_at&&(start_at=1);apiFunctionCheck("PageLabel.create",arguments.length,2,"(PDFNet.SDFDoc, number, string, number)",[[doc,"SDFDoc"],[style,"number"],[prefix,"string"],[start_at,"number"]]);return PDFNet.sendWithPromise("pageLabelCreate",{doc:doc.id, 825style:style,prefix:prefix,start_at:start_at}).then(function(id){return new PDFNet.PageLabel(id)})};PDFNet.PageLabel.createFromObj=function(l,first_page,last_page){"undefined"===typeof l&&(l=new PDFNet.Obj("0"));"undefined"===typeof first_page&&(first_page=-1);"undefined"===typeof last_page&&(last_page=-1);apiFunctionCheck("PageLabel.createFromObj",arguments.length,0,"(PDFNet.Obj, number, number)",[[l,"Object",PDFNet.Obj,"Obj"],[first_page,"number"],[last_page,"number"]]);return PDFNet.sendWithPromise("pageLabelCreateFromObj", 826{l:l.id,first_page:first_page,last_page:last_page}).then(function(id){return new PDFNet.PageLabel(id)})};PDFNet.PageLabel.prototype.compare=function(d){apiFunctionCheck("PageLabel.compare",arguments.length,1,"(PDFNet.PageLabel)",[[d,"Structure",PDFNet.PageLabel,"PageLabel"]],{checkThisYield:!0,functionName:this.yieldFunction},[[d,0]]);var me=this;this.yieldFunction="PageLabel.compare";return PDFNet.sendWithPromise("PageLabel.compare",{l:this,d:d}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l, 827me);return id.result})};PDFNet.PageLabel.prototype.isValid=function(){apiFunctionCheck("PageLabel.isValid",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("PageLabel.isValid",{l:this})};PDFNet.PageLabel.prototype.getLabelTitle=function(page_num){apiFunctionCheck("PageLabel.getLabelTitle",arguments.length,1,"(number)",[[page_num,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="PageLabel.getLabelTitle"; 828return PDFNet.sendWithPromise("PageLabel.getLabelTitle",{l:this,page_num:page_num}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l,me);return id.result})};PDFNet.PageLabel.prototype.setStyle=function(style){apiFunctionCheck("PageLabel.setStyle",arguments.length,1,"(number)",[[style,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="PageLabel.setStyle";return PDFNet.sendWithPromise("PageLabel.setStyle",{l:this,style:style}).then(function(id){me.yieldFunction= 829void 0;copyFunc(id,me)})};PDFNet.PageLabel.prototype.getStyle=function(){apiFunctionCheck("PageLabel.getStyle",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("PageLabel.getStyle",{l:this})};PDFNet.PageLabel.prototype.getPrefix=function(){apiFunctionCheck("PageLabel.getPrefix",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("PageLabel.getPrefix",{l:this})};PDFNet.PageLabel.prototype.setPrefix= 830function(prefix){apiFunctionCheck("PageLabel.setPrefix",arguments.length,1,"(string)",[[prefix,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="PageLabel.setPrefix";return PDFNet.sendWithPromise("PageLabel.setPrefix",{l:this,prefix:prefix}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.PageLabel.prototype.getStart=function(){apiFunctionCheck("PageLabel.getStart",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
831return PDFNet.sendWithPromise("PageLabel.getStart",{l:this})};PDFNet.PageLabel.prototype.setStart=function(start_at){apiFunctionCheck("PageLabel.setStart",arguments.length,1,"(number)",[[start_at,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="PageLabel.setStart";return PDFNet.sendWithPromise("PageLabel.setStart",{l:this,start_at:start_at}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.PageLabel.prototype.getFirstPageNum=function(){apiFunctionCheck("PageLabel.getFirstPageNum", 832arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="PageLabel.getFirstPageNum";return PDFNet.sendWithPromise("PageLabel.getFirstPageNum",{l:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l,me);return id.result})};PDFNet.PageLabel.prototype.getLastPageNum=function(){apiFunctionCheck("PageLabel.getLastPageNum",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="PageLabel.getLastPageNum"; 833return PDFNet.sendWithPromise("PageLabel.getLastPageNum",{l:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l,me);return id.result})};PDFNet.PageLabel.prototype.getSDFObj=function(){apiFunctionCheck("PageLabel.getSDFObj",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("PageLabel.getSDFObj",{l:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PageSet.create=function(){apiFunctionCheck("PageSet.create"); 834return PDFNet.sendWithPromise("pageSetCreate",{}).then(function(id){return createDestroyableObj(PDFNet.PageSet,id)})};PDFNet.PageSet.createSinglePage=function(one_page){apiFunctionCheck("PageSet.createSinglePage",arguments.length,1,"(number)",[[one_page,"number"]]);return PDFNet.sendWithPromise("pageSetCreateSinglePage",{one_page:one_page}).then(function(id){return createDestroyableObj(PDFNet.PageSet,id)})};PDFNet.PageSet.createRange=function(range_start,range_end){apiFunctionCheck("PageSet.createRange", 835arguments.length,2,"(number, number)",[[range_start,"number"],[range_end,"number"]]);return PDFNet.sendWithPromise("pageSetCreateRange",{range_start:range_start,range_end:range_end}).then(function(id){return createDestroyableObj(PDFNet.PageSet,id)})};PDFNet.PageSet.createFilteredRange=function(range_start,range_end,filter){"undefined"===typeof filter&&(filter=PDFNet.PageSet.Filter.e_all);apiFunctionCheck("PageSet.createFilteredRange",arguments.length,2,"(number, number, number)",[[range_start,"number"], 836[range_end,"number"],[filter,"number"]]);return PDFNet.sendWithPromise("pageSetCreateFilteredRange",{range_start:range_start,range_end:range_end,filter:filter}).then(function(id){return createDestroyableObj(PDFNet.PageSet,id)})};PDFNet.PageSet.prototype.addPage=function(one_page){apiFunctionCheck("PageSet.addPage",arguments.length,1,"(number)",[[one_page,"number"]]);return PDFNet.sendWithPromise("PageSet.addPage",{page_set:this.id,one_page:one_page})};PDFNet.PageSet.prototype.addRange=function(range_start, 837range_end,filter){"undefined"===typeof filter&&(filter=PDFNet.PageSet.Filter.e_all);apiFunctionCheck("PageSet.addRange",arguments.length,2,"(number, number, number)",[[range_start,"number"],[range_end,"number"],[filter,"number"]]);return PDFNet.sendWithPromise("PageSet.addRange",{page_set:this.id,range_start:range_start,range_end:range_end,filter:filter})};PDFNet.PatternColor.create=function(pattern){apiFunctionCheck("PatternColor.create",arguments.length,1,"(PDFNet.Obj)",[[pattern,"Object",PDFNet.Obj, 838"Obj"]]);return PDFNet.sendWithPromise("patternColorCreate",{pattern:pattern.id}).then(function(id){return createDestroyableObj(PDFNet.PatternColor,id)})};PDFNet.PatternColor.getTypeFromObj=function(pattern){apiFunctionCheck("PatternColor.getTypeFromObj",arguments.length,1,"(PDFNet.Obj)",[[pattern,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("patternColorGetTypeFromObj",{pattern:pattern.id})};PDFNet.PatternColor.prototype.getType=function(){apiFunctionCheck("PatternColor.getType");
838return PDFNet.sendWithPromise("PatternColor.getType", 839{pc:this.id})};PDFNet.PatternColor.prototype.getSDFObj=function(){apiFunctionCheck("PatternColor.getSDFObj");return PDFNet.sendWithPromise("PatternColor.getSDFObj",{pc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PatternColor.prototype.getMatrix=function(){apiFunctionCheck("PatternColor.getMatrix");return PDFNet.sendWithPromise("PatternColor.getMatrix",{pc:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.PatternColor.prototype.getShading=function(){apiFunctionCheck("PatternColor.getShading"); 840return PDFNet.sendWithPromise("PatternColor.getShading",{pc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Shading,id)})};PDFNet.PatternColor.prototype.getTilingType=function(){apiFunctionCheck("PatternColor.getTilingType");return PDFNet.sendWithPromise("PatternColor.getTilingType",{pc:this.id})};PDFNet.PatternColor.prototype.getBBox=function(){apiFunctionCheck("PatternColor.getBBox");return PDFNet.sendWithPromise("PatternColor.getBBox",{pc:this.id}).then(function(id){return new PDFNet.Rect(id)})}; 841PDFNet.PatternColor.prototype.getXStep=function(){apiFunctionCheck("PatternColor.getXStep");return PDFNet.sendWithPromise("PatternColor.getXStep",{pc:this.id})};PDFNet.PatternColor.prototype.getYStep=function(){apiFunctionCheck("PatternColor.getYStep");return PDFNet.sendWithPromise("PatternColor.getYStep",{pc:this.id})};PDFNet.GeometryCollection.prototype.snapToNearest=function(x,y,mode){apiFunctionCheck("GeometryCollection.snapToNearest",arguments.length,3,"(number, number, number)",[[x,"number"], 842[y,"number"],[mode,"number"]]);return PDFNet.sendWithPromise("GeometryCollection.snapToNearest",{self:this.id,x:x,y:y,mode:mode})};PDFNet.GeometryCollection.prototype.snapToNearestPixel=function(x,y,dpi,mode){apiFunctionCheck("GeometryCollection.snapToNearestPixel",arguments.length,4,"(number, number, number, number)",[[x,"number"],[y,"number"],[dpi,"number"],[mode,"number"]]);return PDFNet.sendWithPromise("GeometryCollection.snapToNearestPixel",{self:this.id,x:x,y:y,dpi:dpi,mode:mode})};PDFNet.DigestAlgorithm.calculateDigest= 843function(in_algorithm,in_buffer){apiFunctionCheck("DigestAlgorithm.calculateDigest",arguments.length,2,"(number, ArrayBuffer|TypedArray)",[[in_algorithm,"number"],[in_buffer,"ArrayBuffer"]]);var in_bufferArrayBuffer=getArrayBuffer(in_buffer,!1);return PDFNet.sendWithPromise("digestAlgorithmCalculateDigest",{in_algorithm:in_algorithm,in_buffer:in_bufferArrayBuffer}).then(function(id){return new Uint8Array(id)})};PDFNet.DigestAlgorithm.signDigestWithKeyfileBuffer=function(digest_buf,digest_algorithm_type, 844pkcs12_buf,pkcs12_password){apiFunctionCheck("DigestAlgorithm.signDigestWithKeyfileBuffer",arguments.length,4,"(ArrayBuffer|TypedArray, number, ArrayBuffer|TypedArray, string)",[[digest_buf,"ArrayBuffer"],[digest_algorithm_type,"number"],[pkcs12_buf,"ArrayBuffer"],[pkcs12_password,"string"]]);var digest_bufArrayBuffer=getArrayBuffer(digest_buf,!1),pkcs12_bufArrayBuffer=getArrayBuffer(pkcs12_buf,!1);return PDFNet.sendWithPromise("digestAlgorithmSignDigestWithKeyfileBuffer",{digest_buf:digest_bufArrayBuffer, 845digest_algorithm_type:digest_algorithm_type,pkcs12_buf:pkcs12_bufArrayBuffer,pkcs12_password:pkcs12_password}).then(function(id){return new Uint8Array(id)})};PDFNet.ObjectIdentifier.createFromPredefined=function(in_oid_enum){apiFunctionCheck("ObjectIdentifier.createFromPredefined",arguments.length,1,"(number)",[[in_oid_enum,"number"]]);return PDFNet.sendWithPromise("objectIdentifierCreateFromPredefined",{in_oid_enum:in_oid_enum}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier, 846id)})};PDFNet.ObjectIdentifier.createFromIntArray=function(in_list){apiFunctionCheck("ObjectIdentifier.createFromIntArray",arguments.length,1,"(Array<number>)",[[in_list,"Array"]]);return PDFNet.sendWithPromise("objectIdentifierCreateFromIntArray",{in_list:in_list}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.ObjectIdentifier.createFromDigestAlgorithm=function(in_algorithm){apiFunctionCheck("ObjectIdentifier.createFromDigestAlgorithm",arguments.length,1,"(number)", 847[[in_algorithm,"number"]]);
847return PDFNet.sendWithPromise("objectIdentifierCreateFromDigestAlgorithm",{in_algorithm:in_algorithm}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.ObjectIdentifier.prototype.getRawValue=function(){apiFunctionCheck("ObjectIdentifier.getRawValue");return PDFNet.sendWithPromise("ObjectIdentifier.getRawValue",{self:this.id})};PDFNet.X501DistinguishedName.prototype.hasAttribute=function(in_oid){apiFunctionCheck("X501DistinguishedName.hasAttribute", 848arguments.length,1,"(PDFNet.ObjectIdentifier)",[[in_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"]]);return PDFNet.sendWithPromise("X501DistinguishedName.hasAttribute",{self:this.id,in_oid:in_oid.id})};PDFNet.X501DistinguishedName.prototype.getStringValuesForAttribute=function(in_oid){apiFunctionCheck("X501DistinguishedName.getStringValuesForAttribute",arguments.length,1,"(PDFNet.ObjectIdentifier)",[[in_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"]]);return PDFNet.sendWithPromise("X501DistinguishedName.getStringValuesForAttribute", 849{self:this.id,in_oid:in_oid.id})};PDFNet.X501DistinguishedName.prototype.getAllAttributesAndValues=function(){apiFunctionCheck("X501DistinguishedName.getAllAttributesAndValues");return PDFNet.sendWithPromise("X501DistinguishedName.getAllAttributesAndValues",{self:this.id}).then(function(idArray){return idArray.map(function(id){return createDestroyableObj(PDFNet.X501AttributeTypeAndValue,id)})})};PDFNet.X509Certificate.createFromBuffer=function(in_cert_buf){apiFunctionCheck("X509Certificate.createFromBuffer", 850arguments.length,1,"(ArrayBuffer|TypedArray)",[[in_cert_buf,"ArrayBuffer"]]);var in_cert_bufArrayBuffer=getArrayBuffer(in_cert_buf,!1);return PDFNet.sendWithPromise("x509CertificateCreateFromBuffer",{in_cert_buf:in_cert_bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.X509Certificate,id)})};PDFNet.X509Certificate.prototype.getIssuerField=function(){apiFunctionCheck("X509Certificate.getIssuerField");return PDFNet.sendWithPromise("X509Certificate.getIssuerField",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.X501DistinguishedName, 851id)})};PDFNet.X509Certificate.prototype.getSubjectField=function(){apiFunctionCheck("X509Certificate.getSubjectField");return PDFNet.sendWithPromise("X509Certificate.getSubjectField",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.X501DistinguishedName,id)})};PDFNet.X509Certificate.prototype.getNotBeforeEpochTime=function(){apiFunctionCheck("X509Certificate.getNotBeforeEpochTime");return PDFNet.sendWithPromise("X509Certificate.getNotBeforeEpochTime",{self:this.id})};PDFNet.X509Certificate.prototype.getNotAfterEpochTime= 852function(){apiFunctionCheck("X509Certificate.getNotAfterEpochTime");return PDFNet.sendWithPromise("X509Certificate.getNotAfterEpochTime",{self:this.id})};PDFNet.X509Certificate.prototype.getRawX509VersionNumber=function(){apiFunctionCheck("X509Certificate.getRawX509VersionNumber");return PDFNet.sendWithPromise("X509Certificate.getRawX509VersionNumber",{self:this.id})};PDFNet.X509Certificate.prototype.toString=function(){apiFunctionCheck("X509Certificate.toString");return PDFNet.sendWithPromise("X509Certificate.toString", 853{self:this.id})};PDFNet.X509Certificate.prototype.getFingerprint=function(in_digest_algorithm){"undefined"===typeof in_digest_algorithm&&(in_digest_algorithm=PDFNet.DigestAlgorithm.Type.e_SHA256);apiFunctionCheck("X509Certificate.getFingerprint",arguments.length,0,"(number)",[[in_digest_algorithm,"number"]]);return PDFNet.sendWithPromise("X509Certificate.getFingerprint",{self:this.id,in_digest_algorithm:in_digest_algorithm})};PDFNet.X509Certificate.prototype.getSerialNumber=function(){apiFunctionCheck("X509Certificate.getSerialNumber"); 854return PDFNet.sendWithPromise("X509Certificate.getSerialNumber",{self:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.X509Certificate.prototype.getExtensions=function(){apiFunctionCheck("X509Certificate.getExtensions");return PDFNet.sendWithPromise("X509Certificate.getExtensions",{self:this.id}).then(function(idArray){return idArray.map(function(id){return createDestroyableObj(PDFNet.X509Extension,id)})})};PDFNet.X509Certificate.prototype.getData=function(){apiFunctionCheck("X509Certificate.getData");
855return PDFNet.sendWithPromise("X509Certificate.getData",{self:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.TimestampingConfiguration.createFromURL=function(in_url){apiFunctionCheck("TimestampingConfiguration.createFromURL",arguments.length,1,"(string)",[[in_url,"string"]]);return PDFNet.sendWithPromise("timestampingConfigurationCreateFromURL",{in_url:in_url}).then(function(id){return createDestroyableObj(PDFNet.TimestampingConfiguration,id)})};PDFNet.TimestampingConfiguration.prototype.setTimestampAuthorityServerURL= 856function(in_url){apiFunctionCheck("TimestampingConfiguration.setTimestampAuthorityServerURL",arguments.length,1,"(string)",[[in_url,"string"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.setTimestampAuthorityServerURL",{self:this.id,in_url:in_url})};PDFNet.TimestampingConfiguration.prototype.setTimestampAuthorityServerUsername=function(in_username){apiFunctionCheck("TimestampingConfiguration.setTimestampAuthorityServerUsername",arguments.length,1,"(string)",[[in_username,"string"]]); 857return PDFNet.sendWithPromise("TimestampingConfiguration.setTimestampAuthorityServerUsername",{self:this.id,in_username:in_username})};PDFNet.TimestampingConfiguration.prototype.setTimestampAuthorityServerPassword=function(in_password){apiFunctionCheck("TimestampingConfiguration.setTimestampAuthorityServerPassword",arguments.length,1,"(string)",[[in_password,"string"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.setTimestampAuthorityServerPassword",{self:this.id,in_password:in_password})}; 858PDFNet.TimestampingConfiguration.prototype.setUseNonce=function(in_use_nonce){apiFunctionCheck("TimestampingConfiguration.setUseNonce",arguments.length,1,"(boolean)",[[in_use_nonce,"boolean"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.setUseNonce",{self:this.id,in_use_nonce:in_use_nonce})};PDFNet.TimestampingConfiguration.prototype.testConfiguration=function(in_opts){apiFunctionCheck("TimestampingConfiguration.testConfiguration",arguments.length,1,"(PDFNet.VerificationOptions)",[[in_opts, 859"Object",PDFNet.VerificationOptions,"VerificationOptions"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.testConfiguration",{self:this.id,in_opts:in_opts.id}).then(function(id){return createDestroyableObj(PDFNet.TimestampingResult,id)})};PDFNet.CMSSignatureOptions.create=function(){apiFunctionCheck("CMSSignatureOptions.create");return PDFNet.sendWithPromise("cmsSignatureOptionsCreate",{}).then(function(id){return createDestroyableObj(PDFNet.CMSSignatureOptions,id)})};PDFNet.CMSSignatureOptions.prototype.addTimestampToken= 860function(token_buf){apiFunctionCheck("CMSSignatureOptions.addTimestampToken",arguments.length,1,"(ArrayBuffer|TypedArray)",[[token_buf,"ArrayBuffer"]]);var token_bufArrayBuffer=getArrayBuffer(token_buf,!1);return PDFNet.sendWithPromise("CMSSignatureOptions.addTimestampToken",{self:this.id,token_buf:token_bufArrayBuffer})};PDFNet.DigitalSignatureField.prototype.hasCryptographicSignature=function(){apiFunctionCheck("DigitalSignatureField.hasCryptographicSignature",arguments.length,0,"()",[],{checkThisYield:!0, 861functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.hasCryptographicSignature",{self:this})};PDFNet.DigitalSignatureField.prototype.getSubFilter=function(){apiFunctionCheck("DigitalSignatureField.getSubFilter",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getSubFilter",{self:this})};PDFNet.DigitalSignatureField.prototype.getSignatureName=function(){apiFunctionCheck("DigitalSignatureField.getSignatureName", 862arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getSignatureName",{self:this})};PDFNet.DigitalSignatureField.prototype.getLocation=function(){apiFunctionCheck("DigitalSignatureField.getLocation",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getLocation",{self:this})};PDFNet.DigitalSignatureField.prototype.getReason=function(){apiFunctionCheck("DigitalSignatureField.getReason", 863arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
863return PDFNet.sendWithPromise("DigitalSignatureField.getReason",{self:this})};PDFNet.DigitalSignatureField.prototype.getContactInfo=function(){apiFunctionCheck("DigitalSignatureField.getContactInfo",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getContactInfo",{self:this})};PDFNet.DigitalSignatureField.prototype.getCertCount=function(){apiFunctionCheck("DigitalSignatureField.getCertCount", 864arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getCertCount",{self:this})};PDFNet.DigitalSignatureField.prototype.hasVisibleAppearance=function(){apiFunctionCheck("DigitalSignatureField.hasVisibleAppearance",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.hasVisibleAppearance",{self:this})};PDFNet.DigitalSignatureField.prototype.setContactInfo= 865function(in_contact_info){apiFunctionCheck("DigitalSignatureField.setContactInfo",arguments.length,1,"(string)",[[in_contact_info,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.setContactInfo";return PDFNet.sendWithPromise("DigitalSignatureField.setContactInfo",{self:this,in_contact_info:in_contact_info}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setLocation=function(in_location){apiFunctionCheck("DigitalSignatureField.setLocation", 866arguments.length,1,"(string)",[[in_location,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.setLocation";return PDFNet.sendWithPromise("DigitalSignatureField.setLocation",{self:this,in_location:in_location}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setReason=function(in_reason){apiFunctionCheck("DigitalSignatureField.setReason",arguments.length,1,"(string)",[[in_reason, 867"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.setReason";return PDFNet.sendWithPromise("DigitalSignatureField.setReason",{self:this,in_reason:in_reason}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setDocumentPermissions=function(in_perms){apiFunctionCheck("DigitalSignatureField.setDocumentPermissions",arguments.length,1,"(number)",[[in_perms,"number"]],{checkThisYield:!0, 868functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.setDocumentPermissions";return PDFNet.sendWithPromise("DigitalSignatureField.setDocumentPermissions",{self:this,in_perms:in_perms}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.signOnNextSave=function(in_pkcs12_keyfile_path,in_password){apiFunctionCheck("DigitalSignatureField.signOnNextSave",arguments.length,2,"(string, string)",[[in_pkcs12_keyfile_path,"string"], 869[in_password,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.signOnNextSave";return PDFNet.sendWithPromise("DigitalSignatureField.signOnNextSave",{self:this,in_pkcs12_keyfile_path:in_pkcs12_keyfile_path,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSave=function(in_pkcs12_keyfile_path,in_password){apiFunctionCheck("DigitalSignatureField.certifyOnNextSave", 870arguments.length,2,"(string, string)",[[in_pkcs12_keyfile_path,"string"],[in_password,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.certifyOnNextSave";return PDFNet.sendWithPromise("DigitalSignatureField.certifyOnNextSave",{self:this,in_pkcs12_keyfile_path:in_pkcs12_keyfile_path,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.isLockedByDigitalSignature= 871function(){apiFunctionCheck("DigitalSignatureField.isLockedByDigitalSignature",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
871return PDFNet.sendWithPromise("DigitalSignatureField.isLockedByDigitalSignature",{self:this})};PDFNet.DigitalSignatureField.prototype.getDocumentPermissions=function(){apiFunctionCheck("DigitalSignatureField.getDocumentPermissions",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getDocumentPermissions", 872{self:this})};PDFNet.DigitalSignatureField.prototype.clearSignature=function(){apiFunctionCheck("DigitalSignatureField.clearSignature",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.clearSignature";return PDFNet.sendWithPromise("DigitalSignatureField.clearSignature",{self:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.createFromField=function(in_field){apiFunctionCheck("DigitalSignatureField.createFromField", 873arguments.length,1,"(PDFNet.Field)",[[in_field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[in_field,0]]);return PDFNet.sendWithPromise("digitalSignatureFieldCreateFromField",{in_field:in_field}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};PDFNet.DigitalSignatureField.prototype.getSigningTime=function(){apiFunctionCheck("DigitalSignatureField.getSigningTime",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getSigningTime", 874{self:this}).then(function(id){return new PDFNet.Date(id)})};PDFNet.DigitalSignatureField.prototype.getCert=function(in_index){apiFunctionCheck("DigitalSignatureField.getCert",arguments.length,1,"(number)",[[in_index,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getCert",{self:this,in_index:in_index}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.prototype.setFieldPermissions=function(in_action,in_field_names_list){"undefined"=== 875typeof in_field_names_list&&(in_field_names_list=[]);apiFunctionCheck("DigitalSignatureField.setFieldPermissions",arguments.length,1,"(number, Array<string>)",[[in_action,"number"],[in_field_names_list,"Array"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.setFieldPermissions";return PDFNet.sendWithPromise("DigitalSignatureField.setFieldPermissions",{self:this,in_action:in_action,in_field_names_list:in_field_names_list}).then(function(id){me.yieldFunction= 876void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.signOnNextSaveFromBuffer=function(in_pkcs12_buffer,in_password){apiFunctionCheck("DigitalSignatureField.signOnNextSaveFromBuffer",arguments.length,2,"(ArrayBuffer|TypedArray, string)",[[in_pkcs12_buffer,"ArrayBuffer"],[in_password,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.signOnNextSaveFromBuffer";var in_pkcs12_bufferArrayBuffer=getArrayBuffer(in_pkcs12_buffer, 877!1);return PDFNet.sendWithPromise("DigitalSignatureField.signOnNextSaveFromBuffer",{self:this,in_pkcs12_buffer:in_pkcs12_bufferArrayBuffer,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.signOnNextSaveWithCustomHandler=function(in_signature_handler_id){apiFunctionCheck("DigitalSignatureField.signOnNextSaveWithCustomHandler",arguments.length,1,"(number)",[[in_signature_handler_id,"number"]],{checkThisYield:!0,functionName:this.yieldFunction}); 878var me=this;this.yieldFunction="DigitalSignatureField.signOnNextSaveWithCustomHandler";return PDFNet.sendWithPromise("DigitalSignatureField.signOnNextSaveWithCustomHandler",{self:this,in_signature_handler_id:in_signature_handler_id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSaveFromBuffer=function(in_pkcs12_buffer,in_password){apiFunctionCheck("DigitalSignatureField.certifyOnNextSaveFromBuffer",arguments.length,2,"(ArrayBuffer|TypedArray, string)", 879[[in_pkcs12_buffer,"ArrayBuffer"],[in_password,"string"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.certifyOnNextSaveFromBuffer";var in_pkcs12_bufferArrayBuffer=getArrayBuffer(in_pkcs12_buffer,!1);
879return PDFNet.sendWithPromise("DigitalSignatureField.certifyOnNextSaveFromBuffer",{self:this,in_pkcs12_buffer:in_pkcs12_bufferArrayBuffer,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSaveWithCustomHandler= 880function(in_signature_handler_id){apiFunctionCheck("DigitalSignatureField.certifyOnNextSaveWithCustomHandler",arguments.length,1,"(number)",[[in_signature_handler_id,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.certifyOnNextSaveWithCustomHandler";return PDFNet.sendWithPromise("DigitalSignatureField.certifyOnNextSaveWithCustomHandler",{self:this,in_signature_handler_id:in_signature_handler_id}).then(function(id){me.yieldFunction= 881void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.getSDFObj=function(){apiFunctionCheck("DigitalSignatureField.getSDFObj",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getSDFObj",{self:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.DigitalSignatureField.prototype.getLockedFields=function(){apiFunctionCheck("DigitalSignatureField.getLockedFields",arguments.length,0,"()",[], 882{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getLockedFields",{self:this})};PDFNet.DigitalSignatureField.prototype.verify=function(in_opts){apiFunctionCheck("DigitalSignatureField.verify",arguments.length,1,"(PDFNet.VerificationOptions)",[[in_opts,"Object",PDFNet.VerificationOptions,"VerificationOptions"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.verify",{self:this,in_opts:in_opts.id}).then(function(id){return createDestroyableObj(PDFNet.VerificationResult, 883id)})};PDFNet.DigitalSignatureField.prototype.isCertification=function(){apiFunctionCheck("DigitalSignatureField.isCertification",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.isCertification",{self:this})};PDFNet.DigitalSignatureField.prototype.getSignerCertFromCMS=function(){apiFunctionCheck("DigitalSignatureField.getSignerCertFromCMS",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction}); 884return PDFNet.sendWithPromise("DigitalSignatureField.getSignerCertFromCMS",{self:this}).then(function(id){return createDestroyableObj(PDFNet.X509Certificate,id)})};PDFNet.DigitalSignatureField.prototype.getByteRanges=function(){apiFunctionCheck("DigitalSignatureField.getByteRanges",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.getByteRanges",{self:this}).then(function(idArray){return idArray.map(function(id){return createPDFNetObj(PDFNet.ByteRange, 885id)})})};PDFNet.DigitalSignatureField.prototype.enableLTVOfflineVerification=function(in_verification_result){apiFunctionCheck("DigitalSignatureField.enableLTVOfflineVerification",arguments.length,1,"(PDFNet.VerificationResult)",[[in_verification_result,"Object",PDFNet.VerificationResult,"VerificationResult"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("DigitalSignatureField.enableLTVOfflineVerification",{self:this,in_verification_result:in_verification_result.id})}; 886PDFNet.DigitalSignatureField.prototype.timestampOnNextSave=function(in_timestamping_config,in_timestamp_response_verification_options){apiFunctionCheck("DigitalSignatureField.timestampOnNextSave",arguments.length,2,"(PDFNet.TimestampingConfiguration, PDFNet.VerificationOptions)",[[in_timestamping_config,"Object",PDFNet.TimestampingConfiguration,"TimestampingConfiguration"],[in_timestamp_response_verification_options,"Object",PDFNet.VerificationOptions,"VerificationOptions"]],{checkThisYield:!0,functionName:this.yieldFunction}); 887return PDFNet.sendWithPromise("DigitalSignatureField.timestampOnNextSave",{self:this,in_timestamping_config:in_timestamping_config.id,in_timestamp_response_verification_options:in_timestamp_response_verification_options.id})};PDFNet.DigitalSignatureField.prototype.generateContentsWithEmbeddedTimestamp=function(in_timestamping_config,in_timestamp_response_verification_options){apiFunctionCheck("DigitalSignatureField.generateContentsWithEmbeddedTimestamp",arguments.length,2,"(PDFNet.TimestampingConfiguration, PDFNet.VerificationOptions)", 888[[in_timestamping_config,"Object",PDFNet.TimestampingConfiguration,"TimestampingConfiguration"],[in_timestamp_response_verification_options,"Object",PDFNet.VerificationOptions,"VerificationOptions"]],{checkThisYield:!0,functionName:this.yieldFunction});
888return PDFNet.sendWithPromise("DigitalSignatureField.generateContentsWithEmbeddedTimestamp",{self:this,in_timestamping_config:in_timestamping_config.id,in_timestamp_response_verification_options:in_timestamp_response_verification_options.id}).then(function(id){return createDestroyableObj(PDFNet.TimestampingResult, 889id)})};PDFNet.DigitalSignatureField.prototype.useSubFilter=function(in_subfilter_type,in_make_mandatory){"undefined"===typeof in_make_mandatory&&(in_make_mandatory=!0);apiFunctionCheck("DigitalSignatureField.useSubFilter",arguments.length,1,"(number, boolean)",[[in_subfilter_type,"number"],[in_make_mandatory,"boolean"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.useSubFilter";return PDFNet.sendWithPromise("DigitalSignatureField.useSubFilter", 890{self:this,in_subfilter_type:in_subfilter_type,in_make_mandatory:in_make_mandatory}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.calculateDigest=function(in_digest_algorithm_type){"undefined"===typeof in_digest_algorithm_type&&(in_digest_algorithm_type=PDFNet.DigestAlgorithm.Type.e_SHA256);apiFunctionCheck("DigitalSignatureField.calculateDigest",arguments.length,0,"(number)",[[in_digest_algorithm_type,"number"]],{checkThisYield:!0,functionName:this.yieldFunction}); 891var me=this;this.yieldFunction="DigitalSignatureField.calculateDigest";return PDFNet.sendWithPromise("DigitalSignatureField.calculateDigest",{self:this,in_digest_algorithm_type:in_digest_algorithm_type}).then(function(id){me.yieldFunction=void 0;id.result=new Uint8Array(id.result);copyFunc(id.self,me);return id.result})};PDFNet.DigitalSignatureField.prototype.setPreferredDigestAlgorithm=function(in_digest_algorithm_type,in_make_mandatory){"undefined"===typeof in_make_mandatory&&(in_make_mandatory= 892!0);apiFunctionCheck("DigitalSignatureField.setPreferredDigestAlgorithm",arguments.length,1,"(number, boolean)",[[in_digest_algorithm_type,"number"],[in_make_mandatory,"boolean"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.setPreferredDigestAlgorithm";return PDFNet.sendWithPromise("DigitalSignatureField.setPreferredDigestAlgorithm",{self:this,in_digest_algorithm_type:in_digest_algorithm_type,in_make_mandatory:in_make_mandatory}).then(function(id){me.yieldFunction= 893void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.createSigDictForCustomCertification=function(in_filter_name,in_subfilter_type,in_contents_size_to_reserve){apiFunctionCheck("DigitalSignatureField.createSigDictForCustomCertification",arguments.length,3,"(string, number, number)",[[in_filter_name,"string"],[in_subfilter_type,"number"],[in_contents_size_to_reserve,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.createSigDictForCustomCertification"; 894return PDFNet.sendWithPromise("DigitalSignatureField.createSigDictForCustomCertification",{self:this,in_filter_name:in_filter_name,in_subfilter_type:in_subfilter_type,in_contents_size_to_reserve:in_contents_size_to_reserve}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.createSigDictForCustomSigning=function(in_filter_name,in_subfilter_type,in_contents_size_to_reserve){apiFunctionCheck("DigitalSignatureField.createSigDictForCustomSigning",arguments.length, 8953,"(string, number, number)",[[in_filter_name,"string"],[in_subfilter_type,"number"],[in_contents_size_to_reserve,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="DigitalSignatureField.createSigDictForCustomSigning";return PDFNet.sendWithPromise("DigitalSignatureField.createSigDictForCustomSigning",{self:this,in_filter_name:in_filter_name,in_subfilter_type:in_subfilter_type,in_contents_size_to_reserve:in_contents_size_to_reserve}).then(function(id){me.yieldFunction= 896void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setSigDictTimeOfSigning=function(in_date){apiFunctionCheck("DigitalSignatureField.setSigDictTimeOfSigning",arguments.length,1,"(PDFNet.Date)",[[in_date,"Structure",PDFNet.Date,"Date"]],{checkThisYield:!0,functionName:this.yieldFunction},[[in_date,0]]);var me=this;this.yieldFunction="DigitalSignatureField.setSigDictTimeOfSigning";
896return PDFNet.sendWithPromise("DigitalSignatureField.setSigDictTimeOfSigning",{self:this,in_date:in_date}).then(function(id){me.yieldFunction= 897void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.signDigestBuffer=function(in_digest,in_pkcs12_buffer,in_keyfile_password,in_pades_mode,in_digest_algorithm_type){apiFunctionCheck("DigitalSignatureField.signDigestBuffer",arguments.length,5,"(ArrayBuffer|TypedArray, ArrayBuffer|TypedArray, string, boolean, number)",[[in_digest,"ArrayBuffer"],[in_pkcs12_buffer,"ArrayBuffer"],[in_keyfile_password,"string"],[in_pades_mode,"boolean"],[in_digest_algorithm_type,"number"]]);var in_digestArrayBuffer= 898getArrayBuffer(in_digest,!1),in_pkcs12_bufferArrayBuffer=getArrayBuffer(in_pkcs12_buffer,!1);return PDFNet.sendWithPromise("digitalSignatureFieldSignDigestBuffer",{in_digest_buf:in_digestArrayBuffer,in_pkcs12_buffer:in_pkcs12_bufferArrayBuffer,in_keyfile_password:in_keyfile_password,in_pades_mode:in_pades_mode,in_digest_algorithm_type:in_digest_algorithm_type}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.generateESSSigningCertPAdESAttribute=function(in_signer_cert, 899in_digest_algorithm_type){apiFunctionCheck("DigitalSignatureField.generateESSSigningCertPAdESAttribute",arguments.length,2,"(PDFNet.X509Certificate, number)",[[in_signer_cert,"Object",PDFNet.X509Certificate,"X509Certificate"],[in_digest_algorithm_type,"number"]]);return PDFNet.sendWithPromise("digitalSignatureFieldGenerateESSSigningCertPAdESAttribute",{in_signer_cert:in_signer_cert.id,in_digest_algorithm_type:in_digest_algorithm_type}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.generateCMSSignedAttributes= 900function(in_digest_buf,in_custom_signedattributes_buf){"undefined"===typeof in_custom_signedattributes_buf&&(in_custom_signedattributes_buf=new ArrayBuffer(0));apiFunctionCheck("DigitalSignatureField.generateCMSSignedAttributes",arguments.length,1,"(ArrayBuffer|TypedArray, ArrayBuffer|TypedArray)",[[in_digest_buf,"ArrayBuffer"],[in_custom_signedattributes_buf,"ArrayBuffer"]]);var in_digest_bufArrayBuffer=getArrayBuffer(in_digest_buf,!1),in_custom_signedattributes_bufArrayBuffer=getArrayBuffer(in_custom_signedattributes_buf, 901!1);return PDFNet.sendWithPromise("digitalSignatureFieldGenerateCMSSignedAttributes",{in_digest_buf:in_digest_bufArrayBuffer,in_custom_signedattributes_buf:in_custom_signedattributes_bufArrayBuffer}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.generateCMSSignature=function(in_signer_cert,in_chain_certs_list,in_digest_algorithm_oid,in_signature_algorithm_oid,in_signature_value_buf,in_signedattributes_buf){apiFunctionCheck("DigitalSignatureField.generateCMSSignature", 902arguments.length,6,"(PDFNet.X509Certificate, Array<Core.PDFNet.X509Certificate>, PDFNet.ObjectIdentifier, PDFNet.ObjectIdentifier, ArrayBuffer|TypedArray, ArrayBuffer|TypedArray)",[[in_signer_cert,"Object",PDFNet.X509Certificate,"X509Certificate"],[in_chain_certs_list,"Array"],[in_digest_algorithm_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"],[in_signature_algorithm_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"],[in_signature_value_buf,"ArrayBuffer"],[in_signedattributes_buf, 903"ArrayBuffer"]]);var in_signature_value_bufArrayBuffer=getArrayBuffer(in_signature_value_buf,!1),in_signedattributes_bufArrayBuffer=getArrayBuffer(in_signedattributes_buf,!1);in_chain_certs_list=Array.from(in_chain_certs_list,function(x){return x.id});return PDFNet.sendWithPromise("digitalSignatureFieldGenerateCMSSignature",{in_signer_cert:in_signer_cert.id,in_chain_certs_list:in_chain_certs_list,in_digest_algorithm_oid:in_digest_algorithm_oid.id,in_signature_algorithm_oid:in_signature_algorithm_oid.id, 904in_signature_value_buf:in_signature_value_bufArrayBuffer,in_signedattributes_buf:in_signedattributes_bufArrayBuffer}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.generateCMSSignatureWithAlgoId=function(signer_cert,chain_certs_list,digest_algorithm_id,signature_algorithm_id,signature_value_buf,signedattributes_buf,cms_options){"undefined"===typeof cms_options&&(cms_options=new PDFNet.CMSSignatureOptions("0"));apiFunctionCheck("DigitalSignatureField.generateCMSSignatureWithAlgoId", 905arguments.length,6,"(PDFNet.X509Certificate, Array<Core.PDFNet.X509Certificate>, PDFNet.AlgorithmIdentifier, PDFNet.AlgorithmIdentifier, ArrayBuffer|TypedArray, ArrayBuffer|TypedArray, PDFNet.CMSSignatureOptions)",[[signer_cert,"Object",PDFNet.X509Certificate,"X509Certificate"],[chain_certs_list,"Array"],[digest_algorithm_id,"Object",PDFNet.AlgorithmIdentifier,"AlgorithmIdentifier"],[signature_algorithm_id,"Object",PDFNet.AlgorithmIdentifier,"AlgorithmIdentifier"],[signature_value_buf,"ArrayBuffer"], 906[signedattributes_buf,"ArrayBuffer"],[cms_options,"Object",PDFNet.CMSSignatureOptions,"CMSSignatureOptions"]]);var signature_value_bufArrayBuffer=getArrayBuffer(signature_value_buf,!1),signedattributes_bufArrayBuffer=getArrayBuffer(signedattributes_buf,!1);chain_certs_list=Array.from(chain_certs_list,function(x){return x.id});
906return PDFNet.sendWithPromise("digitalSignatureFieldGenerateCMSSignatureWithAlgoId",{signer_cert:signer_cert.id,chain_certs_list:chain_certs_list,digest_algorithm_id:digest_algorithm_id.id, 907signature_algorithm_id:signature_algorithm_id.id,signature_value_buf:signature_value_bufArrayBuffer,signedattributes_buf:signedattributes_bufArrayBuffer,cms_options:cms_options.id}).then(function(id){return new Uint8Array(id)})};PDFNet.PDFDoc.prototype.getTriggerAction=function(trigger){apiFunctionCheck("PDFDoc.getTriggerAction",arguments.length,1,"(number)",[[trigger,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getTriggerAction",{doc:this.id,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj, 908id)})};PDFNet.PDFDoc.prototype.isXFA=function(){apiFunctionCheck("PDFDoc.isXFA");return PDFNet.sendWithPromise("PDFDoc.isXFA",{doc:this.id})};PDFNet.PDFDoc.create=function(){apiFunctionCheck("PDFDoc.create");return PDFNet.sendWithPromise("pdfDocCreate",{}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.PDFDoc.createFromFilter=function(stream){apiFunctionCheck("PDFDoc.createFromFilter",arguments.length,1,"(PDFNet.Filter)",[[stream,"Object",PDFNet.Filter,"Filter"]]);0!=stream.id&& 909avoidCleanup(stream.id);return PDFNet.sendWithPromise("pdfDocCreateFromFilter",{no_own_stream:stream.id}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.PDFDoc.createFromBuffer=function(buf){apiFunctionCheck("PDFDoc.createFromBuffer",arguments.length,1,"(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("pdfDocCreateFromBuffer",{buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc, 910id)})};PDFNet.PDFDoc.createFromLayoutEls=function(buf){apiFunctionCheck("PDFDoc.createFromLayoutEls",arguments.length,1,"(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("pdfDocCreateFromLayoutEls",{buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.PDFDoc.prototype.createShallowCopy=function(){apiFunctionCheck("PDFDoc.createShallowCopy");return PDFNet.sendWithPromise("PDFDoc.createShallowCopy", 911{source:this.id}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.PDFDoc.prototype.isEncrypted=function(){apiFunctionCheck("PDFDoc.isEncrypted");return PDFNet.sendWithPromise("PDFDoc.isEncrypted",{doc:this.id})};PDFNet.PDFDoc.prototype.initStdSecurityHandlerUString=function(password){apiFunctionCheck("PDFDoc.initStdSecurityHandlerUString",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("PDFDoc.initStdSecurityHandlerUString",{doc:this.id, 912password:password})};PDFNet.PDFDoc.prototype.initStdSecurityHandlerBuffer=function(password_buf){apiFunctionCheck("PDFDoc.initStdSecurityHandlerBuffer",arguments.length,1,"(ArrayBuffer|TypedArray)",[[password_buf,"ArrayBuffer"]]);var password_bufArrayBuffer=getArrayBuffer(password_buf,!1);return PDFNet.sendWithPromise("PDFDoc.initStdSecurityHandlerBuffer",{doc:this.id,password_buf:password_bufArrayBuffer})};PDFNet.PDFDoc.prototype.getSecurityHandler=function(){apiFunctionCheck("PDFDoc.getSecurityHandler"); 913return PDFNet.sendWithPromise("PDFDoc.getSecurityHandler",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SecurityHandler,id)})};PDFNet.PDFDoc.prototype.setSecurityHandler=function(handler){apiFunctionCheck("PDFDoc.setSecurityHandler",arguments.length,1,"(PDFNet.SecurityHandler)",[[handler,"Object",PDFNet.SecurityHandler,"SecurityHandler"]]);0!=handler.id&&avoidCleanup(handler.id);return PDFNet.sendWithPromise("PDFDoc.setSecurityHandler",{doc:this.id,no_own_handler:handler.id})};PDFNet.PDFDoc.prototype.removeSecurity= 914function(){apiFunctionCheck("PDFDoc.removeSecurity");return PDFNet.sendWithPromise("PDFDoc.removeSecurity",{doc:this.id})};PDFNet.PDFDoc.prototype.getDocInfo=function(){apiFunctionCheck("PDFDoc.getDocInfo");return PDFNet.sendWithPromise("PDFDoc.getDocInfo",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocInfo,id)})};PDFNet.PDFDoc.prototype.getViewPrefs=function(){apiFunctionCheck("PDFDoc.getViewPrefs");
914return PDFNet.sendWithPromise("PDFDoc.getViewPrefs",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocViewPrefs, 915id)})};PDFNet.PDFDoc.prototype.isModified=function(){apiFunctionCheck("PDFDoc.isModified");return PDFNet.sendWithPromise("PDFDoc.isModified",{doc:this.id})};PDFNet.PDFDoc.prototype.hasRepairedXRef=function(){apiFunctionCheck("PDFDoc.hasRepairedXRef");return PDFNet.sendWithPromise("PDFDoc.hasRepairedXRef",{doc:this.id})};PDFNet.PDFDoc.prototype.isLinearized=function(){apiFunctionCheck("PDFDoc.isLinearized");return PDFNet.sendWithPromise("PDFDoc.isLinearized",{doc:this.id})};PDFNet.PDFDoc.prototype.saveMemoryBuffer= 916function(flags){apiFunctionCheck("PDFDoc.saveMemoryBuffer",arguments.length,1,"(number)",[[flags,"number"]]);return PDFNet.sendWithPromise("PDFDoc.saveMemoryBuffer",{doc:this.id,flags:flags}).then(function(id){return new Uint8Array(id)})};PDFNet.PDFDoc.prototype.saveStream=function(stream,flags){apiFunctionCheck("PDFDoc.saveStream",arguments.length,2,"(PDFNet.Filter, number)",[[stream,"Object",PDFNet.Filter,"Filter"],[flags,"number"]]);return PDFNet.sendWithPromise("PDFDoc.saveStream",{doc:this.id, 917stream:stream.id,flags:flags})};PDFNet.PDFDoc.prototype.saveCustomSignatureBuffer=function(in_signature,in_field){apiFunctionCheck("PDFDoc.saveCustomSignatureBuffer",arguments.length,2,"(ArrayBuffer|TypedArray, PDFNet.DigitalSignatureField)",[[in_signature,"ArrayBuffer"],[in_field,"Structure",PDFNet.DigitalSignatureField,"DigitalSignatureField"]],{checkThisYield:!1},[[in_field,1]]);var in_signatureArrayBuffer=getArrayBuffer(in_signature,!1);return PDFNet.sendWithPromise("PDFDoc.saveCustomSignatureBuffer", 918{doc:this.id,in_signature_buf:in_signatureArrayBuffer,in_field:in_field}).then(function(id){return new Uint8Array(id)})};PDFNet.PDFDoc.prototype.saveCustomSignatureStream=function(in_signature,in_field){apiFunctionCheck("PDFDoc.saveCustomSignatureStream",arguments.length,2,"(ArrayBuffer|TypedArray, PDFNet.DigitalSignatureField)",[[in_signature,"ArrayBuffer"],[in_field,"Structure",PDFNet.DigitalSignatureField,"DigitalSignatureField"]],{checkThisYield:!1},[[in_field,1]]);var in_signatureArrayBuffer= 919getArrayBuffer(in_signature,!1);return PDFNet.sendWithPromise("PDFDoc.saveCustomSignatureStream",{doc:this.id,in_signature_buf:in_signatureArrayBuffer,in_field:in_field}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.PDFDoc.prototype.getPageIterator=function(page_number){"undefined"===typeof page_number&&(page_number=1);apiFunctionCheck("PDFDoc.getPageIterator",arguments.length,0,"(number)",[[page_number,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getPageIterator", 920{doc:this.id,page_number:page_number}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Page")})};PDFNet.PDFDoc.prototype.getPage=function(page_number){apiFunctionCheck("PDFDoc.getPage",arguments.length,1,"(number)",[[page_number,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getPage",{doc:this.id,page_number:page_number}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.PDFDoc.prototype.pageRemove=function(page_itr){apiFunctionCheck("PDFDoc.pageRemove",arguments.length, 9211,"(PDFNet.Iterator)",[[page_itr,"Object",PDFNet.Iterator,"Iterator"]]);return PDFNet.sendWithPromise("PDFDoc.pageRemove",{doc:this.id,page_itr:page_itr.id})};PDFNet.PDFDoc.prototype.pageInsert=function(where,page){apiFunctionCheck("PDFDoc.pageInsert",arguments.length,2,"(PDFNet.Iterator, PDFNet.Page)",[[where,"Object",PDFNet.Iterator,"Iterator"],[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.pageInsert",{doc:this.id,where:where.id,page:page.id})};PDFNet.PDFDoc.prototype.insertPages= 922function(insert_before_page_number,src_doc,start_page,end_page,flag){apiFunctionCheck("PDFDoc.insertPages",arguments.length,5,"(number, PDFNet.PDFDoc, number, number, number)",[[insert_before_page_number,"number"],[src_doc,"PDFDoc"],[start_page,"number"],[end_page,"number"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.insertPages",{dest_doc:this.id,insert_before_page_number:insert_before_page_number,src_doc:src_doc.id,start_page:start_page,end_page:end_page,flag:flag})};PDFNet.PDFDoc.prototype.insertPageSet= 923function(insert_before_page_number,src_doc,source_page_set,flag){apiFunctionCheck("PDFDoc.insertPageSet",arguments.length,4,"(number, PDFNet.PDFDoc, PDFNet.PageSet, number)",[[insert_before_page_number,"number"],[src_doc,"PDFDoc"],[source_page_set,"Object",PDFNet.PageSet,"PageSet"],[flag,"number"]]);
923return PDFNet.sendWithPromise("PDFDoc.insertPageSet",{dest_doc:this.id,insert_before_page_number:insert_before_page_number,src_doc:src_doc.id,source_page_set:source_page_set.id,flag:flag})};PDFNet.PDFDoc.prototype.movePages= 924function(move_before_page_number,src_doc,start_page,end_page,flag){apiFunctionCheck("PDFDoc.movePages",arguments.length,5,"(number, PDFNet.PDFDoc, number, number, number)",[[move_before_page_number,"number"],[src_doc,"PDFDoc"],[start_page,"number"],[end_page,"number"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.movePages",{dest_doc:this.id,move_before_page_number:move_before_page_number,src_doc:src_doc.id,start_page:start_page,end_page:end_page,flag:flag})};PDFNet.PDFDoc.prototype.movePageSet= 925function(move_before_page_number,src_doc,source_page_set,flag){apiFunctionCheck("PDFDoc.movePageSet",arguments.length,4,"(number, PDFNet.PDFDoc, PDFNet.PageSet, number)",[[move_before_page_number,"number"],[src_doc,"PDFDoc"],[source_page_set,"Object",PDFNet.PageSet,"PageSet"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.movePageSet",{dest_doc:this.id,move_before_page_number:move_before_page_number,src_doc:src_doc.id,source_page_set:source_page_set.id,flag:flag})};PDFNet.PDFDoc.prototype.pagePushFront= 926function(page){apiFunctionCheck("PDFDoc.pagePushFront",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.pagePushFront",{doc:this.id,page:page.id})};PDFNet.PDFDoc.prototype.pagePushBack=function(page){apiFunctionCheck("PDFDoc.pagePushBack",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.pagePushBack",{doc:this.id,page:page.id})};PDFNet.PDFDoc.prototype.pageCreate=function(media_box){"undefined"=== 927typeof media_box&&(media_box=new PDFNet.Rect(0,0,612,792));apiFunctionCheck("PDFDoc.pageCreate",arguments.length,0,"(PDFNet.Rect)",[[media_box,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[media_box,0]]);return PDFNet.sendWithPromise("PDFDoc.pageCreate",{doc:this.id,media_box:media_box}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.PDFDoc.prototype.appendTextDiffPage=function(page1,page2){apiFunctionCheck("PDFDoc.appendTextDiffPage",arguments.length,2,"(PDFNet.Page, PDFNet.Page)", 928[[page1,"Object",PDFNet.Page,"Page"],[page2,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.appendTextDiffPage",{doc:this.id,page1:page1.id,page2:page2.id})};PDFNet.PDFDoc.prototype.appendTextDiffDoc=function(doc1,doc2,options){"undefined"===typeof options&&(options=null);apiFunctionCheck("PDFDoc.appendTextDiffDoc",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.PDFDoc, PDFNet.OptionBase)",[[doc1,"PDFDoc"],[doc2,"PDFDoc"],[options,"OptionBase"]],{checkThisYield:!1},[[options,2]]); 929options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.appendTextDiffDoc",{doc:this.id,doc1:doc1.id,doc2:doc2.id,options:options})};PDFNet.PDFDoc.highlightTextDiff=function(doc1,doc2,options){"undefined"===typeof options&&(options=null);apiFunctionCheck("PDFDoc.highlightTextDiff",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.PDFDoc, PDFNet.OptionBase)",[[doc1,"PDFDoc"],[doc2,"PDFDoc"],[options,"OptionBase"]],{checkThisYield:!1},[[options,2]]);options=options?options.getJsonString(): 930"{}";return PDFNet.sendWithPromise("pdfDocHighlightTextDiff",{doc1:doc1.id,doc2:doc2.id,options:options})};PDFNet.PDFDoc.prototype.getFirstBookmark=function(){apiFunctionCheck("PDFDoc.getFirstBookmark");return PDFNet.sendWithPromise("PDFDoc.getFirstBookmark",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.PDFDoc.prototype.addRootBookmark=function(root_bookmark){apiFunctionCheck("PDFDoc.addRootBookmark",arguments.length,1,"(PDFNet.Bookmark)",[[root_bookmark,"Object", 931PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("PDFDoc.addRootBookmark",{doc:this.id,root_bookmark:root_bookmark.id})};PDFNet.PDFDoc.prototype.getTrailer=function(){apiFunctionCheck("PDFDoc.getTrailer");return PDFNet.sendWithPromise("PDFDoc.getTrailer",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getRoot=function(){apiFunctionCheck("PDFDoc.getRoot");
931return PDFNet.sendWithPromise("PDFDoc.getRoot",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj, 932id)})};PDFNet.PDFDoc.prototype.jsContextInitialize=function(){apiFunctionCheck("PDFDoc.jsContextInitialize");return PDFNet.sendWithPromise("PDFDoc.jsContextInitialize",{doc:this.id})};PDFNet.PDFDoc.prototype.getPages=function(){apiFunctionCheck("PDFDoc.getPages");return PDFNet.sendWithPromise("PDFDoc.getPages",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getPageCount=function(){apiFunctionCheck("PDFDoc.getPageCount");return PDFNet.sendWithPromise("PDFDoc.getPageCount", 933{doc:this.id})};PDFNet.PDFDoc.prototype.getDownloadedByteCount=function(){apiFunctionCheck("PDFDoc.getDownloadedByteCount");return PDFNet.sendWithPromise("PDFDoc.getDownloadedByteCount",{doc:this.id})};PDFNet.PDFDoc.prototype.getTotalRemoteByteCount=function(){apiFunctionCheck("PDFDoc.getTotalRemoteByteCount");return PDFNet.sendWithPromise("PDFDoc.getTotalRemoteByteCount",{doc:this.id})};PDFNet.PDFDoc.prototype.getFieldIteratorBegin=function(){apiFunctionCheck("PDFDoc.getFieldIteratorBegin");return PDFNet.sendWithPromise("PDFDoc.getFieldIteratorBegin", 934{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Field")})};PDFNet.PDFDoc.prototype.getFieldIterator=function(field_name){apiFunctionCheck("PDFDoc.getFieldIterator",arguments.length,1,"(string)",[[field_name,"string"]]);return PDFNet.sendWithPromise("PDFDoc.getFieldIterator",{doc:this.id,field_name:field_name}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Field")})};PDFNet.PDFDoc.prototype.getField=function(field_name){apiFunctionCheck("PDFDoc.getField", 935arguments.length,1,"(string)",[[field_name,"string"]]);return PDFNet.sendWithPromise("PDFDoc.getField",{doc:this.id,field_name:field_name}).then(function(id){return new PDFNet.Field(id)})};PDFNet.PDFDoc.prototype.fieldCreate=function(field_name,type,field_value,def_field_value){"undefined"===typeof field_value&&(field_value=new PDFNet.Obj("0"));"undefined"===typeof def_field_value&&(def_field_value=new PDFNet.Obj("0"));apiFunctionCheck("PDFDoc.fieldCreate",arguments.length,2,"(string, number, PDFNet.Obj, PDFNet.Obj)", 936[[field_name,"string"],[type,"number"],[field_value,"Object",PDFNet.Obj,"Obj"],[def_field_value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("PDFDoc.fieldCreate",{doc:this.id,field_name:field_name,type:type,field_value:field_value.id,def_field_value:def_field_value.id}).then(function(id){return new PDFNet.Field(id)})};PDFNet.PDFDoc.prototype.fieldCreateFromStrings=function(field_name,type,field_value,def_field_value){"undefined"===typeof def_field_value&&(def_field_value="");apiFunctionCheck("PDFDoc.fieldCreateFromStrings", 937arguments.length,3,"(string, number, string, string)",[[field_name,"string"],[type,"number"],[field_value,"string"],[def_field_value,"string"]]);return PDFNet.sendWithPromise("PDFDoc.fieldCreateFromStrings",{doc:this.id,field_name:field_name,type:type,field_value:field_value,def_field_value:def_field_value}).then(function(id){return new PDFNet.Field(id)})};PDFNet.PDFDoc.prototype.refreshFieldAppearances=function(){apiFunctionCheck("PDFDoc.refreshFieldAppearances");return PDFNet.sendWithPromise("PDFDoc.refreshFieldAppearances", 938{doc:this.id})};PDFNet.PDFDoc.prototype.refreshAnnotAppearances=function(options){"undefined"===typeof options&&(options=null);apiFunctionCheck("PDFDoc.refreshAnnotAppearances",arguments.length,0,"(PDFNet.OptionBase)",[[options,"OptionBase"]],{checkThisYield:!1},[[options,0]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.refreshAnnotAppearances",{doc:this.id,options:options})};PDFNet.PDFDoc.prototype.flattenAnnotations=function(forms_only){"undefined"===typeof forms_only&& 939(forms_only=!1);apiFunctionCheck("PDFDoc.flattenAnnotations",arguments.length,0,"(boolean)",[[forms_only,"boolean"]]);return PDFNet.sendWithPromise("PDFDoc.flattenAnnotations",{doc:this.id,forms_only:forms_only})};PDFNet.PDFDoc.prototype.getAcroForm=function(){apiFunctionCheck("PDFDoc.getAcroForm");
939return PDFNet.sendWithPromise("PDFDoc.getAcroForm",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.fdfExtract=function(flag){"undefined"===typeof flag&& 940(flag=PDFNet.PDFDoc.ExtractFlag.e_forms_only);apiFunctionCheck("PDFDoc.fdfExtract",arguments.length,0,"(number)",[[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.fdfExtract",{doc:this.id,flag:flag}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.PDFDoc.prototype.fdfExtractPageSet=function(pages_to_extract,flag){"undefined"===typeof flag&&(flag=PDFNet.PDFDoc.ExtractFlag.e_forms_only);apiFunctionCheck("PDFDoc.fdfExtractPageSet",arguments.length,1,"(PDFNet.PageSet, number)", 941[[pages_to_extract,"Object",PDFNet.PageSet,"PageSet"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.fdfExtractPageSet",{doc:this.id,pages_to_extract:pages_to_extract.id,flag:flag}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.PDFDoc.prototype.fdfMerge=function(fdf_doc){apiFunctionCheck("PDFDoc.fdfMerge",arguments.length,1,"(PDFNet.FDFDoc)",[[fdf_doc,"FDFDoc"]]);return PDFNet.sendWithPromise("PDFDoc.fdfMerge",{doc:this.id,fdf_doc:fdf_doc.id})};PDFNet.PDFDoc.prototype.fdfUpdate= 942function(fdf_doc){apiFunctionCheck("PDFDoc.fdfUpdate",arguments.length,1,"(PDFNet.FDFDoc)",[[fdf_doc,"FDFDoc"]]);return PDFNet.sendWithPromise("PDFDoc.fdfUpdate",{doc:this.id,fdf_doc:fdf_doc.id})};PDFNet.PDFDoc.prototype.getOpenAction=function(){apiFunctionCheck("PDFDoc.getOpenAction");return PDFNet.sendWithPromise("PDFDoc.getOpenAction",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.PDFDoc.prototype.setOpenAction=function(action){apiFunctionCheck("PDFDoc.setOpenAction", 943arguments.length,1,"(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("PDFDoc.setOpenAction",{doc:this.id,action:action.id})};PDFNet.PDFDoc.prototype.addFileAttachment=function(file_key,embedded_file){apiFunctionCheck("PDFDoc.addFileAttachment",arguments.length,2,"(string, PDFNet.FileSpec)",[[file_key,"string"],[embedded_file,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("PDFDoc.addFileAttachment",{doc:this.id,file_key:file_key,embedded_file:embedded_file.id})}; 944PDFNet.PDFDoc.prototype.getPageLabel=function(page_num){apiFunctionCheck("PDFDoc.getPageLabel",arguments.length,1,"(number)",[[page_num,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getPageLabel",{doc:this.id,page_num:page_num}).then(function(id){return new PDFNet.PageLabel(id)})};PDFNet.PDFDoc.prototype.setPageLabel=function(page_num,label){apiFunctionCheck("PDFDoc.setPageLabel",arguments.length,2,"(number, PDFNet.PageLabel)",[[page_num,"number"],[label,"Structure",PDFNet.PageLabel,"PageLabel"]], 945{checkThisYield:!1},[[label,1]]);return PDFNet.sendWithPromise("PDFDoc.setPageLabel",{doc:this.id,page_num:page_num,label:label})};PDFNet.PDFDoc.prototype.removePageLabel=function(page_num){apiFunctionCheck("PDFDoc.removePageLabel",arguments.length,1,"(number)",[[page_num,"number"]]);return PDFNet.sendWithPromise("PDFDoc.removePageLabel",{doc:this.id,page_num:page_num})};PDFNet.PDFDoc.prototype.getStructTree=function(){apiFunctionCheck("PDFDoc.getStructTree");return PDFNet.sendWithPromise("PDFDoc.getStructTree", 946{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.PDFDoc.prototype.hasOC=function(){apiFunctionCheck("PDFDoc.hasOC");return PDFNet.sendWithPromise("PDFDoc.hasOC",{doc:this.id})};PDFNet.PDFDoc.prototype.getOCGs=function(){apiFunctionCheck("PDFDoc.getOCGs");return PDFNet.sendWithPromise("PDFDoc.getOCGs",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getOCGConfig=function(){apiFunctionCheck("PDFDoc.getOCGConfig");return PDFNet.sendWithPromise("PDFDoc.getOCGConfig", 947{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,id)})};PDFNet.PDFDoc.prototype.createIndirectName=function(name){apiFunctionCheck("PDFDoc.createIndirectName",arguments.length,1,"(string)",[[name,"string"]]);
947return PDFNet.sendWithPromise("PDFDoc.createIndirectName",{doc:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectArray=function(){apiFunctionCheck("PDFDoc.createIndirectArray");return PDFNet.sendWithPromise("PDFDoc.createIndirectArray", 948{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectBool=function(value){apiFunctionCheck("PDFDoc.createIndirectBool",arguments.length,1,"(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectBool",{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectDict=function(){apiFunctionCheck("PDFDoc.createIndirectDict");return PDFNet.sendWithPromise("PDFDoc.createIndirectDict", 949{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectNull=function(){apiFunctionCheck("PDFDoc.createIndirectNull");return PDFNet.sendWithPromise("PDFDoc.createIndirectNull",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectNumber=function(value){apiFunctionCheck("PDFDoc.createIndirectNumber",arguments.length,1,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectNumber", 950{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectString=function(value,buf_size){apiFunctionCheck("PDFDoc.createIndirectString",arguments.length,2,"(number, number)",[[value,"number"],[buf_size,"number"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectString",{doc:this.id,value:value,buf_size:buf_size}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectStringFromUString= 951function(str){apiFunctionCheck("PDFDoc.createIndirectStringFromUString",arguments.length,1,"(string)",[[str,"string"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectStringFromUString",{doc:this.id,str:str}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectStreamFromFilter=function(data,filter_chain){"undefined"===typeof filter_chain&&(filter_chain=new PDFNet.Filter("0"));apiFunctionCheck("PDFDoc.createIndirectStreamFromFilter",arguments.length, 9521,"(PDFNet.FilterReader, PDFNet.Filter)",[[data,"Object",PDFNet.FilterReader,"FilterReader"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("PDFDoc.createIndirectStreamFromFilter",{doc:this.id,data:data.id,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectStream=function(data,filter_chain){apiFunctionCheck("PDFDoc.createIndirectStream", 953arguments.length,2,"(ArrayBuffer|TypedArray, PDFNet.Filter)",[[data,"ArrayBuffer"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);var dataArrayBuffer=getArrayBuffer(data,!1);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("PDFDoc.createIndirectStream",{doc:this.id,data_buf:dataArrayBuffer,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getSDFDoc=function(){apiFunctionCheck("PDFDoc.getSDFDoc"); 954return PDFNet.sendWithPromise("PDFDoc.getSDFDoc",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,id)})};PDFNet.PDFDoc.prototype.unlock=function(){apiFunctionCheck("PDFDoc.unlock");var me=this;return PDFNet.sendWithPromise("PDFDoc.unlock",{doc:this.id}).then(function(){unregisterLockedObject(me)})};PDFNet.PDFDoc.prototype.unlockRead=function(){apiFunctionCheck("PDFDoc.unlockRead");var me=this;return PDFNet.sendWithPromise("PDFDoc.unlockRead",{doc:this.id}).then(function(){unregisterLockedObject(me)})}; 955PDFNet.PDFDoc.prototype.addHighlights=function(hilite){apiFunctionCheck("PDFDoc.addHighlights",arguments.length,1,"(string)",[[hilite,"string"]]);return PDFNet.sendWithPromise("PDFDoc.addHighlights",{doc:this.id,hilite:hil
955ite})};PDFNet.PDFDoc.prototype.isTagged=function(){apiFunctionCheck("PDFDoc.isTagged");return PDFNet.sendWithPromise("PDFDoc.isTagged",{doc:this.id})};PDFNet.PDFDoc.prototype.hasSignatures=function(){apiFunctionCheck("PDFDoc.hasSignatures");return PDFNet.sendWithPromise("PDFDoc.hasSignatures", 956{doc:this.id})};PDFNet.PDFDoc.prototype.addSignatureHandler=function(signature_handler){apiFunctionCheck("PDFDoc.addSignatureHandler",arguments.length,1,"(PDFNet.SignatureHandler)",[[signature_handler,"Object",PDFNet.SignatureHandler,"SignatureHandler"]]);return PDFNet.sendWithPromise("PDFDoc.addSignatureHandler",{doc:this.id,signature_handler:signature_handler.id})};PDFNet.PDFDoc.prototype.addStdSignatureHandlerFromBuffer=function(pkcs12_buffer,pkcs12_pass){apiFunctionCheck("PDFDoc.addStdSignatureHandlerFromBuffer", 957arguments.length,2,"(ArrayBuffer|TypedArray, string)",[[pkcs12_buffer,"ArrayBuffer"],[pkcs12_pass,"string"]]);var pkcs12_bufferArrayBuffer=getArrayBuffer(pkcs12_buffer,!1);return PDFNet.sendWithPromise("PDFDoc.addStdSignatureHandlerFromBuffer",{doc:this.id,pkcs12_buffer:pkcs12_bufferArrayBuffer,pkcs12_pass:pkcs12_pass})};PDFNet.PDFDoc.prototype.removeSignatureHandler=function(signature_handler_id){apiFunctionCheck("PDFDoc.removeSignatureHandler",arguments.length,1,"(number)",[[signature_handler_id, 958"number"]]);return PDFNet.sendWithPromise("PDFDoc.removeSignatureHandler",{doc:this.id,signature_handler_id:signature_handler_id})};PDFNet.PDFDoc.prototype.getSignatureHandler=function(signature_handler_id){apiFunctionCheck("PDFDoc.getSignatureHandler",arguments.length,1,"(number)",[[signature_handler_id,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getSignatureHandler",{doc:this.id,signature_handler_id:signature_handler_id}).then(function(id){return createPDFNetObj(PDFNet.SignatureHandler,id)})}; 959PDFNet.PDFDoc.prototype.generateThumbnails=function(size){apiFunctionCheck("PDFDoc.generateThumbnails",arguments.length,1,"(number)",[[size,"number"]]);return PDFNet.sendWithPromise("PDFDoc.generateThumbnails",{doc:this.id,size:size})};PDFNet.PDFDoc.prototype.appendVisualDiff=function(p1,p2,opts){"undefined"===typeof opts&&(opts=null);apiFunctionCheck("PDFDoc.appendVisualDiff",arguments.length,2,"(PDFNet.Page, PDFNet.Page, PDFNet.OptionBase)",[[p1,"Object",PDFNet.Page,"Page"],[p2,"Object",PDFNet.Page, 960"Page"],[opts,"OptionBase"]],{checkThisYield:!1},[[opts,2]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.appendVisualDiff",{doc:this.id,p1:p1.id,p2:p2.id,opts:opts})};PDFNet.PDFDoc.prototype.getGeometryCollectionForPage=function(page_num){apiFunctionCheck("PDFDoc.getGeometryCollectionForPage",arguments.length,1,"(number)",[[page_num,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getGeometryCollectionForPage",{in_pdfdoc:this.id,page_num:page_num}).then(function(id){return createDestroyableObj(PDFNet.GeometryCollection, 961id)})};PDFNet.PDFDoc.prototype.getGeometryCollectionForPageWithOptions=function(page_num,options){"undefined"===typeof options&&(options=null);apiFunctionCheck("PDFDoc.getGeometryCollectionForPageWithOptions",arguments.length,1,"(number, PDFNet.OptionBase)",[[page_num,"number"],[options,"OptionBase"]],{checkThisYield:!1},[[options,1]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.getGeometryCollectionForPageWithOptions",{in_pdfdoc:this.id,page_num:page_num,options:options}).then(function(id){return createDestroyableObj(PDFNet.GeometryCollection, 962id)})};PDFNet.PDFDoc.prototype.getUndoManager=function(){apiFunctionCheck("PDFDoc.getUndoManager");return PDFNet.sendWithPromise("PDFDoc.getUndoManager",{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.UndoManager,id)})};PDFNet.PDFDoc.prototype.createDigitalSignatureField=function(in_sig_field_name){"undefined"===typeof in_sig_field_name&&(in_sig_field_name="");apiFunctionCheck("PDFDoc.createDigitalSignatureField",arguments.length,0,"(string)",[[in_sig_field_name,"string"]]);return PDFNet.sendWithPromise("PDFDoc.createDigitalSignatureField", 963{doc:this.id,in_sig_field_name:in_sig_field_name}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};PDFNet.PDFDoc.prototype.getDigitalSignatureFieldIteratorBegin=function(){apiFunctionCheck("PDFDoc.getDigitalSignatureFieldIteratorBegin");
963return PDFNet.sendWithPromise("PDFDoc.getDigitalSignatureFieldIteratorBegin",{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"DigitalSignatureField")})};PDFNet.PDFDoc.prototype.getDigitalSignaturePermissions=function(){apiFunctionCheck("PDFDoc.getDigitalSignaturePermissions"); 964return PDFNet.sendWithPromise("PDFDoc.getDigitalSignaturePermissions",{doc:this.id})};PDFNet.PDFDoc.prototype.saveViewerOptimizedBuffer=function(opts$jscomp$0){apiFunctionCheck("PDFDoc.saveViewerOptimizedBuffer",arguments.length,1,"(PDFNet.Obj)",[[opts$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.PDFDoc.ViewerOptimizedOptions"]]);opts$jscomp$0=getOptsObjPromise(opts$jscomp$0,"PDFNet.PDFDoc.ViewerOptimizedOptions");var me=this;return opts$jscomp$0.then(function(opts){return PDFNet.sendWithPromise("PDFDoc.saveViewerOptimizedBuffer", 965{doc:me.id,opts:opts.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.PDFDoc.prototype.verifySignedDigitalSignatures=function(opts){apiFunctionCheck("PDFDoc.verifySignedDigitalSignatures",arguments.length,1,"(PDFNet.VerificationOptions)",[[opts,"Object",PDFNet.VerificationOptions,"VerificationOptions"]]);return PDFNet.sendWithPromise("PDFDoc.verifySignedDigitalSignatures",{doc:this.id,opts:opts.id})};PDFNet.PDFDoc.prototype.mergeXFDF=function(stream,opts){"undefined"===typeof opts&&(opts= 966null);apiFunctionCheck("PDFDoc.mergeXFDF",arguments.length,1,"(PDFNet.Filter, PDFNet.OptionBase)",[[stream,"Object",PDFNet.Filter,"Filter"],[opts,"OptionBase"]],{checkThisYield:!1},[[opts,1]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.mergeXFDF",{doc:this.id,stream:stream.id,opts:opts})};PDFNet.PDFDoc.prototype.mergeXFDFString=function(xfdf,opts){"undefined"===typeof opts&&(opts=null);apiFunctionCheck("PDFDoc.mergeXFDFString",arguments.length,1,"(string, PDFNet.OptionBase)", 967[[xfdf,"string"],[opts,"OptionBase"]],{checkThisYield:!1},[[opts,1]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.mergeXFDFString",{doc:this.id,xfdf:xfdf,opts:opts})};PDFNet.PDFDocInfo.prototype.getTitle=function(){apiFunctionCheck("PDFDocInfo.getTitle");return PDFNet.sendWithPromise("PDFDocInfo.getTitle",{info:this.id})};PDFNet.PDFDocInfo.prototype.getTitleObj=function(){apiFunctionCheck("PDFDocInfo.getTitleObj");return PDFNet.sendWithPromise("PDFDocInfo.getTitleObj", 968{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setTitle=function(title){apiFunctionCheck("PDFDocInfo.setTitle",arguments.length,1,"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setTitle",{info:this.id,title:title})};PDFNet.PDFDocInfo.prototype.getAuthor=function(){apiFunctionCheck("PDFDocInfo.getAuthor");return PDFNet.sendWithPromise("PDFDocInfo.getAuthor",{info:this.id})};PDFNet.PDFDocInfo.prototype.getAuthorObj=function(){apiFunctionCheck("PDFDocInfo.getAuthorObj"); 969return PDFNet.sendWithPromise("PDFDocInfo.getAuthorObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setAuthor=function(author){apiFunctionCheck("PDFDocInfo.setAuthor",arguments.length,1,"(string)",[[author,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setAuthor",{info:this.id,author:author})};PDFNet.PDFDocInfo.prototype.getSubject=function(){apiFunctionCheck("PDFDocInfo.getSubject");return PDFNet.sendWithPromise("PDFDocInfo.getSubject", 970{info:this.id})};PDFNet.PDFDocInfo.prototype.getSubjectObj=function(){apiFunctionCheck("PDFDocInfo.getSubjectObj");return PDFNet.sendWithPromise("PDFDocInfo.getSubjectObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setSubject=function(subject){apiFunctionCheck("PDFDocInfo.setSubject",arguments.length,1,"(string)",[[subject,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setSubject",{info:this.id,subject:subject})};PDFNet.PDFDocInfo.prototype.getKeywords= 971function(){apiFunctionCheck("PDFDocInfo.getKeywords");return PDFNet.sendWithPromise("PDFDocInfo.getKeywords",{info:this.id})};PDFNet.PDFDocInfo.prototype.getKeywordsObj=function(){apiFunctionCheck("PDFDocInfo.getKeywordsObj");
971return PDFNet.sendWithPromise("PDFDocInfo.getKeywordsObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setKeywords=function(keywords){apiFunctionCheck("PDFDocInfo.setKeywords",arguments.length,1,"(string)",[[keywords, 972"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setKeywords",{info:this.id,keywords:keywords})};PDFNet.PDFDocInfo.prototype.getCreator=function(){apiFunctionCheck("PDFDocInfo.getCreator");return PDFNet.sendWithPromise("PDFDocInfo.getCreator",{info:this.id})};PDFNet.PDFDocInfo.prototype.getCreatorObj=function(){apiFunctionCheck("PDFDocInfo.getCreatorObj");return PDFNet.sendWithPromise("PDFDocInfo.getCreatorObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setCreator= 973function(creator){apiFunctionCheck("PDFDocInfo.setCreator",arguments.length,1,"(string)",[[creator,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setCreator",{info:this.id,creator:creator})};PDFNet.PDFDocInfo.prototype.getProducer=function(){apiFunctionCheck("PDFDocInfo.getProducer");return PDFNet.sendWithPromise("PDFDocInfo.getProducer",{info:this.id})};PDFNet.PDFDocInfo.prototype.getProducerObj=function(){apiFunctionCheck("PDFDocInfo.getProducerObj");return PDFNet.sendWithPromise("PDFDocInfo.getProducerObj", 974{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setProducer=function(producer){apiFunctionCheck("PDFDocInfo.setProducer",arguments.length,1,"(string)",[[producer,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setProducer",{info:this.id,producer:producer})};PDFNet.PDFDocInfo.prototype.getCreationDate=function(){apiFunctionCheck("PDFDocInfo.getCreationDate");return PDFNet.sendWithPromise("PDFDocInfo.getCreationDate",{info:this.id}).then(function(id){return new PDFNet.Date(id)})}; 975PDFNet.PDFDocInfo.prototype.setCreationDate=function(creation_date){apiFunctionCheck("PDFDocInfo.setCreationDate",arguments.length,1,"(PDFNet.Date)",[[creation_date,"Structure",PDFNet.Date,"Date"]],{checkThisYield:!1},[[creation_date,0]]);return PDFNet.sendWithPromise("PDFDocInfo.setCreationDate",{info:this.id,creation_date:creation_date})};PDFNet.PDFDocInfo.prototype.getModDate=function(){apiFunctionCheck("PDFDocInfo.getModDate");return PDFNet.sendWithPromise("PDFDocInfo.getModDate",{info:this.id}).then(function(id){return new PDFNet.Date(id)})}; 976PDFNet.PDFDocInfo.prototype.setModDate=function(mod_date){apiFunctionCheck("PDFDocInfo.setModDate",arguments.length,1,"(PDFNet.Date)",[[mod_date,"Structure",PDFNet.Date,"Date"]],{checkThisYield:!1},[[mod_date,0]]);return PDFNet.sendWithPromise("PDFDocInfo.setModDate",{info:this.id,mod_date:mod_date})};PDFNet.PDFDocInfo.prototype.getSDFObj=function(){apiFunctionCheck("PDFDocInfo.getSDFObj");return PDFNet.sendWithPromise("PDFDocInfo.getSDFObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj, 977id)})};PDFNet.PDFDocInfo.create=function(tr){apiFunctionCheck("PDFDocInfo.create",arguments.length,1,"(PDFNet.Obj)",[[tr,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pdfDocInfoCreate",{tr:tr.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocInfo,id)})};PDFNet.PDFDocInfo.prototype.copy=function(){apiFunctionCheck("PDFDocInfo.copy");return PDFNet.sendWithPromise("PDFDocInfo.copy",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocInfo,id)})};PDFNet.PDFDocViewPrefs.prototype.setInitialPage= 978function(dest){apiFunctionCheck("PDFDocViewPrefs.setInitialPage",arguments.length,1,"(PDFNet.Destination)",[[dest,"Object",PDFNet.Destination,"Destination"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setInitialPage",{p:this.id,dest:dest.id})};PDFNet.PDFDocViewPrefs.prototype.setPageMode=function(mode){apiFunctionCheck("PDFDocViewPrefs.setPageMode",arguments.length,1,"(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPageMode",{p:this.id,mode:mode})};PDFNet.PDFDocViewPrefs.prototype.getPageMode= 979function(){apiFunctionCheck("PDFDocViewPrefs.getPageMode");
979return PDFNet.sendWithPromise("PDFDocViewPrefs.getPageMode",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setLayoutMode=function(mode){apiFunctionCheck("PDFDocViewPrefs.setLayoutMode",arguments.length,1,"(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setLayoutMode",{p:this.id,mode:mode})};PDFNet.PDFDocViewPrefs.prototype.getLayoutMode=function(){apiFunctionCheck("PDFDocViewPrefs.getLayoutMode");return PDFNet.sendWithPromise("PDFDocViewPrefs.getLayoutMode", 980{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setPref=function(pref,value){apiFunctionCheck("PDFDocViewPrefs.setPref",arguments.length,2,"(number, boolean)",[[pref,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPref",{p:this.id,pref:pref,value:value})};PDFNet.PDFDocViewPrefs.prototype.getPref=function(pref){apiFunctionCheck("PDFDocViewPrefs.getPref",arguments.length,1,"(number)",[[pref,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.getPref",{p:this.id, 981pref:pref})};PDFNet.PDFDocViewPrefs.prototype.setNonFullScreenPageMode=function(mode){apiFunctionCheck("PDFDocViewPrefs.setNonFullScreenPageMode",arguments.length,1,"(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setNonFullScreenPageMode",{p:this.id,mode:mode})};PDFNet.PDFDocViewPrefs.prototype.getNonFullScreenPageMode=function(){apiFunctionCheck("PDFDocViewPrefs.getNonFullScreenPageMode");return PDFNet.sendWithPromise("PDFDocViewPrefs.getNonFullScreenPageMode",{p:this.id})}; 982PDFNet.PDFDocViewPrefs.prototype.setDirection=function(left_to_right){apiFunctionCheck("PDFDocViewPrefs.setDirection",arguments.length,1,"(boolean)",[[left_to_right,"boolean"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setDirection",{p:this.id,left_to_right:left_to_right})};PDFNet.PDFDocViewPrefs.prototype.getDirection=function(){apiFunctionCheck("PDFDocViewPrefs.getDirection");return PDFNet.sendWithPromise("PDFDocViewPrefs.getDirection",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setViewArea= 983function(box){apiFunctionCheck("PDFDocViewPrefs.setViewArea",arguments.length,1,"(number)",[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setViewArea",{p:this.id,box:box})};PDFNet.PDFDocViewPrefs.prototype.getViewArea=function(){apiFunctionCheck("PDFDocViewPrefs.getViewArea");return PDFNet.sendWithPromise("PDFDocViewPrefs.getViewArea",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setViewClip=function(box){apiFunctionCheck("PDFDocViewPrefs.setViewClip",arguments.length,1,"(number)", 984[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setViewClip",{p:this.id,box:box})};PDFNet.PDFDocViewPrefs.prototype.getViewClip=function(){apiFunctionCheck("PDFDocViewPrefs.getViewClip");return PDFNet.sendWithPromise("PDFDocViewPrefs.getViewClip",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setPrintArea=function(box){apiFunctionCheck("PDFDocViewPrefs.setPrintArea",arguments.length,1,"(number)",[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPrintArea",{p:this.id, 985box:box})};PDFNet.PDFDocViewPrefs.prototype.getPrintArea=function(){apiFunctionCheck("PDFDocViewPrefs.getPrintArea");return PDFNet.sendWithPromise("PDFDocViewPrefs.getPrintArea",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setPrintClip=function(box){apiFunctionCheck("PDFDocViewPrefs.setPrintClip",arguments.length,1,"(number)",[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPrintClip",{p:this.id,box:box})};PDFNet.PDFDocViewPrefs.prototype.getPrintClip=function(){apiFunctionCheck("PDFDocViewPrefs.getPrintClip"); 986return PDFNet.sendWithPromise("PDFDocViewPrefs.getPrintClip",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.getSDFObj=function(){apiFunctionCheck("PDFDocViewPrefs.getSDFObj");return PDFNet.sendWithPromise("PDFDocViewPrefs.getSDFObj",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocViewPrefs.create=function(tr){apiFunctionCheck("PDFDocViewPrefs.create",arguments.length,1,"(PDFNet.Obj)",[[tr,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pdfDocViewPrefsCreate", 987{tr:tr.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocViewPrefs,id)})};PDFNet.PDFDocViewPrefs.prototype.copy=function(){apiFunctionCheck("PDFDocViewPrefs.copy");
987return PDFNet.sendWithPromise("PDFDocViewPrefs.copy",{prefs:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocViewPrefs,id)})};PDFNet.PDFRasterizer.create=function(type){"undefined"===typeof type&&(type=PDFNet.PDFRasterizer.Type.e_BuiltIn);apiFunctionCheck("PDFRasterizer.create",arguments.length,0,"(number)",[[type, 988"number"]]);return PDFNet.sendWithPromise("pdfRasterizerCreate",{type:type}).then(function(id){return createDestroyableObj(PDFNet.PDFRasterizer,id)})};PDFNet.PDFRasterizer.prototype.setDrawAnnotations=function(render_annots){apiFunctionCheck("PDFRasterizer.setDrawAnnotations",arguments.length,1,"(boolean)",[[render_annots,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setDrawAnnotations",{r:this.id,render_annots:render_annots})};PDFNet.PDFRasterizer.prototype.setHighlightFields=function(highlight){apiFunctionCheck("PDFRasterizer.setHighlightFields", 989arguments.length,1,"(boolean)",[[highlight,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setHighlightFields",{r:this.id,highlight:highlight})};PDFNet.PDFRasterizer.prototype.setDrawUIElements=function(draw_ui_elements){apiFunctionCheck("PDFRasterizer.setDrawUIElements",arguments.length,1,"(boolean)",[[draw_ui_elements,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setDrawUIElements",{r:this.id,draw_ui_elements:draw_ui_elements})};PDFNet.PDFRasterizer.prototype.setAntiAliasing= 990function(enable_aa){apiFunctionCheck("PDFRasterizer.setAntiAliasing",arguments.length,1,"(boolean)",[[enable_aa,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setAntiAliasing",{r:this.id,enable_aa:enable_aa})};PDFNet.PDFRasterizer.prototype.setPathHinting=function(enable_hinting){apiFunctionCheck("PDFRasterizer.setPathHinting",arguments.length,1,"(boolean)",[[enable_hinting,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setPathHinting",{r:this.id,enable_hinting:enable_hinting})}; 991PDFNet.PDFRasterizer.prototype.setThinLineAdjustment=function(grid_fit,stroke_adjust){apiFunctionCheck("PDFRasterizer.setThinLineAdjustment",arguments.length,2,"(boolean, boolean)",[[grid_fit,"boolean"],[stroke_adjust,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setThinLineAdjustment",{r:this.id,grid_fit:grid_fit,stroke_adjust:stroke_adjust})};PDFNet.PDFRasterizer.prototype.setThinLineScaling=function(scaling){apiFunctionCheck("PDFRasterizer.setThinLineScaling",arguments.length,1,"(number)", 992[[scaling,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setThinLineScaling",{r:this.id,scaling:scaling})};PDFNet.PDFRasterizer.prototype.setNightModeTuning=function(contrast,saturation,flipness){apiFunctionCheck("PDFRasterizer.setNightModeTuning",arguments.length,3,"(number, number, number)",[[contrast,"number"],[saturation,"number"],[flipness,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setNightModeTuning",{r:this.id,contrast:contrast,saturation:saturation,flipness:flipness})}; 993PDFNet.PDFRasterizer.prototype.setGamma=function(expgamma){apiFunctionCheck("PDFRasterizer.setGamma",arguments.length,1,"(number)",[[expgamma,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setGamma",{r:this.id,expgamma:expgamma})};PDFNet.PDFRasterizer.prototype.setOCGContext=function(ctx){apiFunctionCheck("PDFRasterizer.setOCGContext",arguments.length,1,"(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("PDFRasterizer.setOCGContext",{r:this.id, 994ctx:ctx.id})};PDFNet.PDFRasterizer.prototype.setPrintMode=function(is_printing){apiFunctionCheck("PDFRasterizer.setPrintMode",arguments.length,1,"(boolean)",[[is_printing,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setPrintMode",{r:this.id,is_printing:is_printing})};PDFNet.PDFRasterizer.prototype.setImageSmoothing=function(smoothing_enabled,hq_image_resampling){"undefined"===typeof smoothing_enabled&&(smoothing_enabled=!0);"undefined"===typeof hq_image_resampling&&(hq_image_resampling= 995!1);apiFunctionCheck("PDFRasterizer.setImageSmoothing",arguments.length,0,"(boolean, boolean)",[[smoothing_enabled,"boolean"],[hq_image_resampling,"boolean"]]);
995return PDFNet.sendWithPromise("PDFRasterizer.setImageSmoothing",{r:this.id,smoothing_enabled:smoothing_enabled,hq_image_resampling:hq_image_resampling})};PDFNet.PDFRasterizer.prototype.setOverprint=function(op){apiFunctionCheck("PDFRasterizer.setOverprint",arguments.length,1,"(number)",[[op,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setOverprint", 996{r:this.id,op:op})};PDFNet.PDFRasterizer.prototype.setCaching=function(enabled){"undefined"===typeof enabled&&(enabled=!0);apiFunctionCheck("PDFRasterizer.setCaching",arguments.length,0,"(boolean)",[[enabled,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setCaching",{r:this.id,enabled:enabled})};PDFNet.PDFDraw.prototype.setOCGContext=function(ctx){apiFunctionCheck("PDFDraw.setOCGContext",arguments.length,1,"(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("PDFDraw.setOCGContext", 997{r:this.id,ctx:ctx.id})};PDFNet.PDFRasterizer.prototype.setAnnotationState=function(annot,new_view_state){apiFunctionCheck("PDFRasterizer.setAnnotationState",arguments.length,2,"(PDFNet.Annot, number)",[[annot,"Object",PDFNet.Annot,"Annot"],[new_view_state,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setAnnotationState",{r:this.id,annot:annot.id,new_view_state:new_view_state})};PDFNet.PDFRasterizer.prototype.setRasterizerType=function(type){apiFunctionCheck("PDFRasterizer.setRasterizerType", 998arguments.length,1,"(number)",[[type,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setRasterizerType",{r:this.id,type:type})};PDFNet.PDFRasterizer.prototype.getRasterizerType=function(){apiFunctionCheck("PDFRasterizer.getRasterizerType");return PDFNet.sendWithPromise("PDFRasterizer.getRasterizerType",{r:this.id})};PDFNet.PDFRasterizer.prototype.setColorPostProcessMode=function(mode){apiFunctionCheck("PDFRasterizer.setColorPostProcessMode",arguments.length,1,"(number)",[[mode,"number"]]); 999return PDFNet.sendWithPromise("PDFRasterizer.setColorPostProcessMode",{r:this.id,mode:mode})};PDFNet.PDFRasterizer.prototype.getColorPostProcessMode=function(){apiFunctionCheck("PDFRasterizer.getColorPostProcessMode");return PDFNet.sendWithPromise("PDFRasterizer.getColorPostProcessMode",{r:this.id})};PDFNet.PDFRasterizer.prototype.enableDisplayListCaching=function(enabled){apiFunctionCheck("PDFRasterizer.enableDisplayListCaching",arguments.length,1,"(boolean)",[[enabled,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.enableDisplayListCaching", 1000{r:this.id,enabled:enabled})};PDFNet.PDFRasterizer.prototype.updateBuffer=function(){apiFunctionCheck("PDFRasterizer.updateBuffer");return PDFNet.sendWithPromise("PDFRasterizer.updateBuffer",{r:this.id})};PDFNet.PDFRasterizer.prototype.rasterizeAnnot=function(annot,page,device_mtx,demult,cancel){apiFunctionCheck("PDFRasterizer.rasterizeAnnot",arguments.length,5,"(PDFNet.Annot, PDFNet.Page, PDFNet.Matrix2D, boolean, boolean)",[[annot,"Object",PDFNet.Annot,"Annot"],[page,"Object",PDFNet.Page,"Page"], 1001[device_mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[demult,"boolean"],[cancel,"boolean"]],{checkThisYield:!1},[[device_mtx,2]]);return PDFNet.sendWithPromise("PDFRasterizer.rasterizeAnnot",{r:this.id,annot:annot.id,page:page.id,device_mtx:device_mtx,demult:demult,cancel:cancel}).then(function(id){return createPDFNetObj(PDFNet.OwnedBitmap,id)})};PDFNet.PDFRasterizer.prototype.rasterizeSeparations=function(page,width,height,mtx,clip,cancel){apiFunctionCheck("PDFRasterizer.rasterizeSeparations",arguments.length, 10026,"(PDFNet.Page, number, number, PDFNet.Matrix2D, PDFNet.Rect, boolean)",[[page,"Object",PDFNet.Page,"Page"],[width,"number"],[height,"number"],[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[clip,"Structure",PDFNet.Rect,"Rect"],[cancel,"boolean"]],{checkThisYield:!1},[[mtx,3],[clip,4]]);return PDFNet.sendWithPromise("PDFRasterizer.rasterizeSeparations",{r:this.id,page:page.id,width:width,height:height,mtx:mtx,clip:clip,cancel:cancel}).then(function(idArray){return idArray.map(function(id){return createPDFNetObj(PDFNet.Separation, 1003id)})})};PDFNet.PDFDraw.create=function(dpi){"undefined"===typeof dpi&&(dpi=92);apiFunctionCheck("PDFDraw.create",arguments.length,0,"(number)",[[dpi,"number"]]);
1003return PDFNet.sendWithPromise("pdfDrawCreate",{dpi:dpi}).then(function(id){return createDestroyableObj(PDFNet.PDFDraw,id)})};PDFNet.PDFDraw.prototype.setRasterizerType=function(type){apiFunctionCheck("PDFDraw.setRasterizerType",arguments.length,1,"(number)",[[type,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setRasterizerType",{d:this.id, 1004type:type})};PDFNet.PDFDraw.prototype.setDPI=function(dpi){apiFunctionCheck("PDFDraw.setDPI",arguments.length,1,"(number)",[[dpi,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setDPI",{d:this.id,dpi:dpi})};PDFNet.PDFDraw.prototype.setImageSize=function(width,height,preserve_aspect_ratio){"undefined"===typeof preserve_aspect_ratio&&(preserve_aspect_ratio=!0);apiFunctionCheck("PDFDraw.setImageSize",arguments.length,2,"(number, number, boolean)",[[width,"number"],[height,"number"],[preserve_aspect_ratio, 1005"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setImageSize",{d:this.id,width:width,height:height,preserve_aspect_ratio:preserve_aspect_ratio})};PDFNet.PDFDraw.prototype.setPageBox=function(region){apiFunctionCheck("PDFDraw.setPageBox",arguments.length,1,"(number)",[[region,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setPageBox",{d:this.id,region:region})};PDFNet.PDFDraw.prototype.setClipRect=function(rect){apiFunctionCheck("PDFDraw.setClipRect",arguments.length,1,"(PDFNet.Rect)",[[rect, 1006"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1},[[rect,0]]);return PDFNet.sendWithPromise("PDFDraw.setClipRect",{d:this.id,rect:rect})};PDFNet.PDFDraw.prototype.setFlipYAxis=function(flip_y){apiFunctionCheck("PDFDraw.setFlipYAxis",arguments.length,1,"(boolean)",[[flip_y,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setFlipYAxis",{d:this.id,flip_y:flip_y})};PDFNet.PDFDraw.prototype.setRotate=function(r){apiFunctionCheck("PDFDraw.setRotate",arguments.length,1,"(number)",[[r,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setRotate", 1007{d:this.id,r:r})};PDFNet.PDFDraw.prototype.setDrawAnnotations=function(render_annots){apiFunctionCheck("PDFDraw.setDrawAnnotations",arguments.length,1,"(boolean)",[[render_annots,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setDrawAnnotations",{d:this.id,render_annots:render_annots})};PDFNet.PDFDraw.prototype.setHighlightFields=function(highlight){apiFunctionCheck("PDFDraw.setHighlightFields",arguments.length,1,"(boolean)",[[highlight,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setHighlightFields", 1008{d:this.id,highlight:highlight})};PDFNet.PDFDraw.prototype.setDrawUIElements=function(draw_ui_elements){apiFunctionCheck("PDFDraw.setDrawUIElements",arguments.length,1,"(boolean)",[[draw_ui_elements,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setDrawUIElements",{d:this.id,draw_ui_elements:draw_ui_elements})};PDFNet.PDFDraw.prototype.setAntiAliasing=function(enable_aa){apiFunctionCheck("PDFDraw.setAntiAliasing",arguments.length,1,"(boolean)",[[enable_aa,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setAntiAliasing", 1009{d:this.id,enable_aa:enable_aa})};PDFNet.PDFDraw.prototype.setPathHinting=function(enable_hinting){apiFunctionCheck("PDFDraw.setPathHinting",arguments.length,1,"(boolean)",[[enable_hinting,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setPathHinting",{d:this.id,enable_hinting:enable_hinting})};PDFNet.PDFDraw.prototype.setThinLineAdjustment=function(grid_fit,stroke_adjust){apiFunctionCheck("PDFDraw.setThinLineAdjustment",arguments.length,2,"(boolean, boolean)",[[grid_fit,"boolean"],[stroke_adjust, 1010"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setThinLineAdjustment",{d:this.id,grid_fit:grid_fit,stroke_adjust:stroke_adjust})};PDFNet.PDFDraw.prototype.setThinLineScaling=function(scaling){apiFunctionCheck("PDFDraw.setThinLineScaling",arguments.length,1,"(number)",[[scaling,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setThinLineScaling",{d:this.id,scaling:scaling})};PDFNet.PDFDraw.prototype.setGamma=function(exp){apiFunctionCheck("PDFDraw.setGamma",arguments.length,1,"(number)",[[exp, 1011"number"]]);return PDFNet.sendWithPromise("PDFDraw.setGamma",{d:this.id,exp:exp})};PDFNet.PDFDraw.prototype.setPrintMode=function(is_printing){apiFunctionCheck("PDFDraw.setPrintMode",arguments.length,1,"(boolean)",[[is_printing,"boolean"]]);
1011return PDFNet.sendWithPromise("PDFDraw.setPrintMode",{d:this.id,is_printing:is_printing})};PDFNet.PDFDraw.prototype.setPageTransparent=function(is_transparent){apiFunctionCheck("PDFDraw.setPageTransparent",arguments.length,1,"(boolean)",[[is_transparent,"boolean"]]); 1012return PDFNet.sendWithPromise("PDFDraw.setPageTransparent",{d:this.id,is_transparent:is_transparent})};PDFNet.PDFDraw.prototype.setDefaultPageColor=function(r,g,b){apiFunctionCheck("PDFDraw.setDefaultPageColor",arguments.length,3,"(number, number, number)",[[r,"number"],[g,"number"],[b,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setDefaultPageColor",{d:this.id,r:r,g:g,b:b})};PDFNet.PDFDraw.prototype.setOverprint=function(op){apiFunctionCheck("PDFDraw.setOverprint",arguments.length,1,"(number)", 1013[[op,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setOverprint",{d:this.id,op:op})};PDFNet.PDFDraw.prototype.setImageSmoothing=function(smoothing_enabled,hq_image_resampling){"undefined"===typeof smoothing_enabled&&(smoothing_enabled=!0);"undefined"===typeof hq_image_resampling&&(hq_image_resampling=!1);apiFunctionCheck("PDFDraw.setImageSmoothing",arguments.length,0,"(boolean, boolean)",[[smoothing_enabled,"boolean"],[hq_image_resampling,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setImageSmoothing", 1014{d:this.id,smoothing_enabled:smoothing_enabled,hq_image_resampling:hq_image_resampling})};PDFNet.PDFDraw.prototype.setCaching=function(enabled){"undefined"===typeof enabled&&(enabled=!0);apiFunctionCheck("PDFDraw.setCaching",arguments.length,0,"(boolean)",[[enabled,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setCaching",{d:this.id,enabled:enabled})};PDFNet.PDFDraw.prototype.setColorPostProcessMode=function(mode){apiFunctionCheck("PDFDraw.setColorPostProcessMode",arguments.length,1,"(number)", 1015[[mode,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setColorPostProcessMode",{d:this.id,mode:mode})};PDFNet.PDFDraw.prototype.getSeparationBitmaps=function(page){apiFunctionCheck("PDFDraw.getSeparationBitmaps",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDraw.getSeparationBitmaps",{d:this.id,page:page.id}).then(function(idArray){return idArray.map(function(id){return createPDFNetObj(PDFNet.Separation,id)})})};PDFNet.enableJavaScript= 1016function(enable){apiFunctionCheck("PDFNet.enableJavaScript",arguments.length,1,"(boolean)",[[enable,"boolean"]]);return PDFNet.sendWithPromise("pdfNetEnableJavaScript",{enable:enable})};PDFNet.isJavaScriptEnabled=function(){apiFunctionCheck("PDFNet.isJavaScriptEnabled");return PDFNet.sendWithPromise("pdfNetIsJavaScriptEnabled",{})};PDFNet.terminateEx=function(termination_level){apiFunctionCheck("PDFNet.terminateEx",arguments.length,1,"(number)",[[termination_level,"number"]]);return PDFNet.sendWithPromise("pdfNetTerminateEx", 1017{termination_level:termination_level})};PDFNet.setColorManagement=function(t){"undefined"===typeof t&&(t=PDFNet.CMSType.e_lcms);apiFunctionCheck("PDFNet.setColorManagement",arguments.length,0,"(number)",[[t,"number"]]);return PDFNet.sendWithPromise("pdfNetSetColorManagement",{t:t})};PDFNet.setDefaultDeviceCMYKProfileFromFilter=function(stream){apiFunctionCheck("PDFNet.setDefaultDeviceCMYKProfileFromFilter",arguments.length,1,"(PDFNet.Filter)",[[stream,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("pdfNetSetDefaultDeviceCMYKProfileFromFilter",
1018{stream:stream.id})};PDFNet.setDefaultDeviceRGBProfileFromFilter=function(stream){apiFunctionCheck("PDFNet.setDefaultDeviceRGBProfileFromFilter",arguments.length,1,"(PDFNet.Filter)",[[stream,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("pdfNetSetDefaultDeviceRGBProfileFromFilter",{stream:stream.id})};PDFNet.setDefaultFlateCompressionLevel=function(level){apiFunctionCheck("PDFNet.setDefaultFlateCompressionLevel",arguments.length,1,"(number)",[[level,"number"]]);return PDFNet.sendWithPromise("pdfNetSetDefaultFlateCompressionLevel", 1019{level:level})};PDFNet.setViewerCache=function(max_cache_size,on_disk){apiFunctionCheck("PDFNet.setViewerCache",arguments.length,2,"(number, boolean)",[[max_cache_size,"number"],[on_disk,"boolean"]]);return PDFNet.sendWithPromise("pdfNetSetViewerCache",{max_cache_size:max_cache_size,on_disk:on_disk})};PDFNet.getVersion=function(){apiFunctionCheck("PDFNet.getVersion");return PDFNet.sendWithPromise("pdfNetGetVersion",{})};PDFNet.setLogLevel=function(level){"undefined"===typeof level&&(level=PDFNet.LogLevel.e_LogLevel_Fatal); 1020apiFunctionCheck("PDFNet.setLogLevel",arguments.length,0,"(number)",[[level,"number"]]);return PDFNet.sendWithPromise("pdfNetSetLogLevel",{level:level})};PDFNet.getSystemFontList=function(){apiFunctionCheck("PDFNet.getSystemFontList");return PDFNet.sendWithPromise("pdfNetGetSystemFontList",{})};PDFNet.addPDFTronCustomHandler=function(custom_id){apiFunctionCheck("PDFNet.addPDFTronCustomHandler",arguments.length,1,"(number)",[[custom_id,"number"]]);return PDFNet.sendWithPromise("pdfNetAddPDFTronCustomHandler", 1021{custom_id:custom_id})};PDFNet.getVersionString=function(){apiFunctionCheck("PDFNet.getVersionString");return PDFNet.sendWithPromise("pdfNetGetVersionString",{})};PDFNet.setConnectionErrorHandlingMode=function(mode){apiFunctionCheck("PDFNet.setConnectionErrorHandlingMode",arguments.length,1,"(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("pdfNetSetConnectionErrorHandlingMode",{mode:mode})};PDFNet.Rect.init=function(x1,y1,x2,y2){apiFunctionCheck("Rect.init",arguments.length,4,"(number, number, number, number)", 1022[[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("rectInit",{x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Rect.prototype.attach=function(obj){apiFunctionCheck("Rect.attach",arguments.length,1,"(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Rect.attach";return PDFNet.sendWithPromise("Rect.attach",{rect:this,obj:obj.id}).then(function(id){me.yieldFunction= 1023void 0;copyFunc(id,me)})};PDFNet.Rect.prototype.update=function(obj){"undefined"===typeof obj&&(obj=new PDFNet.Obj("0"));apiFunctionCheck("Rect.update",arguments.length,0,"(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,"Obj"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Rect.update";return PDFNet.sendWithPromise("Rect.update",{rect:this,obj:obj.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id.rect,me);return id.result})};PDFNet.Rect.prototype.get=function(){apiFunctionCheck("Rect.get", 1024arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Rect.get",{rect:this})};PDFNet.Rect.prototype.set=function(x1,y1,x2,y2){apiFunctionCheck("Rect.set",arguments.length,4,"(number, number, number, number)",[[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Rect.set";return PDFNet.sendWithPromise("Rect.set",{rect:this,x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){me.yieldFunction= 1025void 0;copyFunc(id,me)})};PDFNet.Rect.prototype.width=function(){apiFunctionCheck("Rect.width",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Rect.width",{rect:this})};PDFNet.Rect.prototype.height=function(){apiFunctionCheck("Rect.height",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});
1025return PDFNet.sendWithPromise("Rect.height",{rect:this})};PDFNet.Rect.prototype.contains=function(x,y){apiFunctionCheck("Rect.contains", 1026arguments.length,2,"(number, number)",[[x,"number"],[y,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("Rect.contains",{rect:this,x:x,y:y})};PDFNet.Rect.prototype.intersectRect=function(rect1,rect2){apiFunctionCheck("Rect.intersectRect",arguments.length,2,"(PDFNet.Rect, PDFNet.Rect)",[[rect1,"Structure",PDFNet.Rect,"Rect"],[rect2,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!0,functionName:this.yieldFunction},[[rect1,0],[rect2,1]]);var me=this;this.yieldFunction= 1027"Rect.intersectRect";return PDFNet.sendWithPromise("Rect.intersectRect",{rect:this,rect1:rect1,rect2:rect2}).then(function(id){me.yieldFunction=void 0;copyFunc(id.rect,me);return id.result})};PDFNet.Rect.prototype.normalize=function(){apiFunctionCheck("Rect.normalize",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Rect.normalize";return PDFNet.sendWithPromise("Rect.normalize",{rect:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id, 1028me)})};PDFNet.Rect.prototype.inflate1=function(amount){apiFunctionCheck("Rect.inflate1",arguments.length,1,"(number)",[[amount,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Rect.inflate1";return PDFNet.sendWithPromise("Rect.inflate1",{rect:this,amount:amount}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Rect.prototype.inflate2=function(x,y){apiFunctionCheck("Rect.inflate2",arguments.length,2,"(number, number)",[[x,"number"], 1029[y,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="Rect.inflate2";return PDFNet.sendWithPromise("Rect.inflate2",{rect:this,x:x,y:y}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Redactor.redactionCreate=function(page_num,bbox,negative,text){apiFunctionCheck("Redactor.redactionCreate",arguments.length,4,"(number, PDFNet.Rect, boolean, string)",[[page_num,"number"],[bbox,"Structure",PDFNet.Rect,"Rect"],[negative,"boolean"],[text, 1030"string"]],{checkThisYield:!1},[[bbox,1]]);return PDFNet.sendWithPromise("Redactor.redactionCreate",{page_num:page_num,bbox:bbox,negative:negative,text:text}).then(function(id){return createPDFNetObj(PDFNet.Redaction,id)})};PDFNet.Redactor.redactionDestroy=function(redaction){apiFunctionCheck("Redactor.redactionDestroy",arguments.length,1,"(PDFNet.Redaction)",[[redaction,"Object",PDFNet.Redaction,"Redaction"]]);return PDFNet.sendWithPromise("Redactor.redactionDestroy",{redaction:redaction.id})};PDFNet.Redactor.redactionCopy= 1031function(other){apiFunctionCheck("Redactor.redactionCopy",arguments.length,1,"(PDFNet.Redaction)",[[other,"Object",PDFNet.Redaction,"Redaction"]]);return PDFNet.sendWithPromise("Redactor.redactionCopy",{other:other.id}).then(function(id){return createPDFNetObj(PDFNet.Redaction,id)})};PDFNet.Shading.create=function(shading_dict){"undefined"===typeof shading_dict&&(shading_dict=new PDFNet.Obj("0"));apiFunctionCheck("Shading.create",arguments.length,0,"(PDFNet.Obj)",[[shading_dict,"Object",PDFNet.Obj, 1032"Obj"]]);return PDFNet.sendWithPromise("shadingCreate",{shading_dict:shading_dict.id}).then(function(id){return createDestroyableObj(PDFNet.Shading,id)})};PDFNet.Shading.getTypeFromObj=function(shading_dict){apiFunctionCheck("Shading.getTypeFromObj",arguments.length,1,"(PDFNet.Obj)",[[shading_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("shadingGetTypeFromObj",{shading_dict:shading_dict.id})};PDFNet.Shading.prototype.getType=function(){apiFunctionCheck("Shading.getType");return PDFNet.sendWithPromise("Shading.getType", 1033{s:this.id})};PDFNet.Shading.prototype.getSDFObj=function(){apiFunctionCheck("Shading.getSDFObj");return PDFNet.sendWithPromise("Shading.getSDFObj",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Shading.prototype.getBaseColorSpace=function(){apiFunctionCheck("Shading.getBaseColorSpace");
1033return PDFNet.sendWithPromise("Shading.getBaseColorSpace",{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.Shading.prototype.hasBBox=function(){apiFunctionCheck("Shading.hasBBox"); 1034return PDFNet.sendWithPromise("Shading.hasBBox",{s:this.id})};PDFNet.Shading.prototype.getBBox=function(){apiFunctionCheck("Shading.getBBox");return PDFNet.sendWithPromise("Shading.getBBox",{s:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Shading.prototype.hasBackground=function(){apiFunctionCheck("Shading.hasBackground");return PDFNet.sendWithPromise("Shading.hasBackground",{s:this.id})};PDFNet.Shading.prototype.getBackground=function(){apiFunctionCheck("Shading.getBackground"); 1035return PDFNet.sendWithPromise("Shading.getBackground",{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Shading.prototype.getAntialias=function(){apiFunctionCheck("Shading.getAntialias");return PDFNet.sendWithPromise("Shading.getAntialias",{s:this.id})};PDFNet.Shading.prototype.getParamStart=function(){apiFunctionCheck("Shading.getParamStart");return PDFNet.sendWithPromise("Shading.getParamStart",{s:this.id})};PDFNet.Shading.prototype.getParamEnd=function(){apiFunctionCheck("Shading.getParamEnd"); 1036return PDFNet.sendWithPromise("Shading.getParamEnd",{s:this.id})};PDFNet.Shading.prototype.isExtendStart=function(){apiFunctionCheck("Shading.isExtendStart");return PDFNet.sendWithPromise("Shading.isExtendStart",{s:this.id})};PDFNet.Shading.prototype.isExtendEnd=function(){apiFunctionCheck("Shading.isExtendEnd");return PDFNet.sendWithPromise("Shading.isExtendEnd",{s:this.id})};PDFNet.Shading.prototype.getColor=function(t){apiFunctionCheck("Shading.getColor",arguments.length,1,"(number)",[[t,"number"]]); 1037return PDFNet.sendWithPromise("Shading.getColor",{s:this.id,t:t}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Shading.prototype.getCoords=function(){apiFunctionCheck("Shading.getCoords");return PDFNet.sendWithPromise("Shading.getCoords",{s:this.id})};PDFNet.Shading.prototype.getCoordsRadial=function(){apiFunctionCheck("Shading.getCoordsRadial");return PDFNet.sendWithPromise("Shading.getCoordsRadial",{s:this.id})};PDFNet.Shading.prototype.getDomain=function(){apiFunctionCheck("Shading.getDomain"); 1038return PDFNet.sendWithPromise("Shading.getDomain",{s:this.id})};PDFNet.Shading.prototype.getMatrix=function(){apiFunctionCheck("Shading.getMatrix");return PDFNet.sendWithPromise("Shading.getMatrix",{s:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Shading.prototype.getColorForFunction=function(t1,t2){apiFunctionCheck("Shading.getColorForFunction",arguments.length,2,"(number, number)",[[t1,"number"],[t2,"number"]]);return PDFNet.sendWithPromise("Shading.getColorForFunction",{s:this.id, 1039t1:t1,t2:t2}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Stamper.create=function(size_type,a,b){apiFunctionCheck("Stamper.create",arguments.length,3,"(number, number, number)",[[size_type,"number"],[a,"number"],[b,"number"]]);return PDFNet.sendWithPromise("stamperCreate",{size_type:size_type,a:a,b:b}).then(function(id){return createDestroyableObj(PDFNet.Stamper,id)})};PDFNet.Stamper.prototype.stampImage=function(dest_doc,img,dest_pages){apiFunctionCheck("Stamper.stampImage", 1040arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Image, PDFNet.PageSet)",[[dest_doc,"PDFDoc"],[img,"Object",PDFNet.Image,"Image"],[dest_pages,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("Stamper.stampImage",{stamp:this.id,dest_doc:dest_doc.id,img:img.id,dest_pages:dest_pages.id})};PDFNet.Stamper.prototype.stampPage=function(dest_doc,page,dest_pages){apiFunctionCheck("Stamper.stampPage",arguments.length,3,"(PDFNet.PDFDoc, PDFNet.Page, PDFNet.PageSet)",[[dest_doc,"PDFDoc"],[page,"Object", 1041PDFNet.Page,"Page"],[dest_pages,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("Stamper.stampPage",{stamp:this.id,dest_doc:dest_doc.id,page:page.id,dest_pages:dest_pages.id})};PDFNet.Stamper.prototype.stampText=function(dest_doc,txt,dest_pages){apiFunctionCheck("Stamper.stampText",arguments.length,3,"(PDFNet.PDFDoc, string, PDFNet.PageSet)",[[dest_doc,"PDFDoc"],[txt,"string"],[dest_pages,"Object",PDFNet.PageSet,"PageSet"]]);
1041return PDFNet.sendWithPromise("Stamper.stampText",{stamp:this.id, 1042dest_doc:dest_doc.id,txt:txt,dest_pages:dest_pages.id})};PDFNet.Stamper.prototype.setFont=function(font){apiFunctionCheck("Stamper.setFont",arguments.length,1,"(PDFNet.Font)",[[font,"Object",PDFNet.Font,"Font"]]);return PDFNet.sendWithPromise("Stamper.setFont",{stamp:this.id,font:font.id})};PDFNet.Stamper.prototype.setFontColor=function(font_color){apiFunctionCheck("Stamper.setFontColor",arguments.length,1,"(PDFNet.ColorPt)",[[font_color,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("Stamper.setFontColor", 1043{stamp:this.id,font_color:font_color.id})};PDFNet.Stamper.prototype.setTextAlignment=function(text_alignment){apiFunctionCheck("Stamper.setTextAlignment",arguments.length,1,"(number)",[[text_alignment,"number"]]);return PDFNet.sendWithPromise("Stamper.setTextAlignment",{stamp:this.id,text_alignment:text_alignment})};PDFNet.Stamper.prototype.setOpacity=function(opacity){apiFunctionCheck("Stamper.setOpacity",arguments.length,1,"(number)",[[opacity,"number"]]);return PDFNet.sendWithPromise("Stamper.setOpacity", 1044{stamp:this.id,opacity:opacity})};PDFNet.Stamper.prototype.setRotation=function(rotation){apiFunctionCheck("Stamper.setRotation",arguments.length,1,"(number)",[[rotation,"number"]]);return PDFNet.sendWithPromise("Stamper.setRotation",{stamp:this.id,rotation:rotation})};PDFNet.Stamper.prototype.setAsBackground=function(background){apiFunctionCheck("Stamper.setAsBackground",arguments.length,1,"(boolean)",[[background,"boolean"]]);return PDFNet.sendWithPromise("Stamper.setAsBackground",{stamp:this.id, 1045background:background})};PDFNet.Stamper.prototype.setAsAnnotation=function(annotation){apiFunctionCheck("Stamper.setAsAnnotation",arguments.length,1,"(boolean)",[[annotation,"boolean"]]);return PDFNet.sendWithPromise("Stamper.setAsAnnotation",{stamp:this.id,annotation:annotation})};PDFNet.Stamper.prototype.showsOnScreen=function(on_screen){apiFunctionCheck("Stamper.showsOnScreen",arguments.length,1,"(boolean)",[[on_screen,"boolean"]]);return PDFNet.sendWithPromise("Stamper.showsOnScreen",{stamp:this.id, 1046on_screen:on_screen})};PDFNet.Stamper.prototype.showsOnPrint=function(on_print){apiFunctionCheck("Stamper.showsOnPrint",arguments.length,1,"(boolean)",[[on_print,"boolean"]]);return PDFNet.sendWithPromise("Stamper.showsOnPrint",{stamp:this.id,on_print:on_print})};PDFNet.Stamper.prototype.setAlignment=function(horizontal_alignment,vertical_alignment){apiFunctionCheck("Stamper.setAlignment",arguments.length,2,"(number, number)",[[horizontal_alignment,"number"],[vertical_alignment,"number"]]);return PDFNet.sendWithPromise("Stamper.setAlignment", 1047{stamp:this.id,horizontal_alignment:horizontal_alignment,vertical_alignment:vertical_alignment})};PDFNet.Stamper.prototype.setPosition=function(horizontal_distance,vertical_distance,use_percentage){"undefined"===typeof use_percentage&&(use_percentage=!1);apiFunctionCheck("Stamper.setPosition",arguments.length,2,"(number, number, boolean)",[[horizontal_distance,"number"],[vertical_distance,"number"],[use_percentage,"boolean"]]);return PDFNet.sendWithPromise("Stamper.setPosition",{stamp:this.id,horizontal_distance:horizontal_distance, 1048vertical_distance:vertical_distance,use_percentage:use_percentage})};PDFNet.Stamper.prototype.setSize=function(size_type,a,b){apiFunctionCheck("Stamper.setSize",arguments.length,3,"(number, number, number)",[[size_type,"number"],[a,"number"],[b,"number"]]);return PDFNet.sendWithPromise("Stamper.setSize",{stamp:this.id,size_type:size_type,a:a,b:b})};PDFNet.Stamper.deleteStamps=function(doc,page_set){apiFunctionCheck("Stamper.deleteStamps",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.PageSet)",[[doc, 1049"PDFDoc"],[page_set,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("stamperDeleteStamps",{doc:doc.id,page_set:page_set.id})};PDFNet.Stamper.hasStamps=function(doc,page_set){apiFunctionCheck("Stamper.hasStamps",arguments.length,2,"(PDFNet.PDFDoc, PDFNet.PageSet)",[[doc,"PDFDoc"],[page_set,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("stamperHasStamps",{doc:doc.id,page_set:page_set.id})};PDFNet.TextExtractor.create=function(){apiFunctionCheck("TextExtractor.create");
1050return PDFNet.sendWithPromise("textExtractorCreate",{}).then(function(id){return createDestroyableObj(PDFNet.TextExtractor,id)})};PDFNet.TextExtractor.prototype.setOCGContext=function(ctx){apiFunctionCheck("TextExtractor.setOCGContext",arguments.length,1,"(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("TextExtractor.setOCGContext",{te:this.id,ctx:ctx.id})};PDFNet.TextExtractor.prototype.begin=function(page,clip_ptr,flags){"undefined"===typeof clip_ptr&& 1051(clip_ptr=null);"undefined"===typeof flags&&(flags=0);apiFunctionCheck("TextExtractor.begin",arguments.length,1,"(PDFNet.Page, PDFNet.Rect, number)",[[page,"Object",PDFNet.Page,"Page"],[clip_ptr,"Structure",PDFNet.Rect,"Rect"],[flags,"number"]],{checkThisYield:!1},[[clip_ptr,1]]);return PDFNet.sendWithPromise("TextExtractor.begin",{te:this.id,page:page.id,clip_ptr:clip_ptr,flags:flags})};PDFNet.TextExtractor.prototype.getWordCount=function(){apiFunctionCheck("TextExtractor.getWordCount");return PDFNet.sendWithPromise("TextExtractor.getWordCount", 1052{te:this.id})};PDFNet.TextExtractor.prototype.setRightToLeftLanguage=function(rtl){apiFunctionCheck("TextExtractor.setRightToLeftLanguage",arguments.length,1,"(boolean)",[[rtl,"boolean"]]);return PDFNet.sendWithPromise("TextExtractor.setRightToLeftLanguage",{te:this.id,rtl:rtl})};PDFNet.TextExtractor.prototype.getRightToLeftLanguage=function(){apiFunctionCheck("TextExtractor.getRightToLeftLanguage");return PDFNet.sendWithPromise("TextExtractor.getRightToLeftLanguage",{te:this.id})};PDFNet.TextExtractor.prototype.getAsText= 1053function(dehyphen){"undefined"===typeof dehyphen&&(dehyphen=!0);apiFunctionCheck("TextExtractor.getAsText",arguments.length,0,"(boolean)",[[dehyphen,"boolean"]]);return PDFNet.sendWithPromise("TextExtractor.getAsText",{te:this.id,dehyphen:dehyphen})};PDFNet.TextExtractor.prototype.getTextUnderAnnot=function(annot){apiFunctionCheck("TextExtractor.getTextUnderAnnot",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("TextExtractor.getTextUnderAnnot", 1054{te:this.id,annot:annot.id})};PDFNet.TextExtractor.prototype.getAsXML=function(xml_output_flags){"undefined"===typeof xml_output_flags&&(xml_output_flags=0);apiFunctionCheck("TextExtractor.getAsXML",arguments.length,0,"(number)",[[xml_output_flags,"number"]]);return PDFNet.sendWithPromise("TextExtractor.getAsXML",{te:this.id,xml_output_flags:xml_output_flags})};PDFNet.TextExtractorStyle.prototype.getFont=function(){apiFunctionCheck("TextExtractorStyle.getFont",arguments.length,0,"()",[],{checkThisYield:!0, 1055functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorStyle.getFont";return PDFNet.sendWithPromise("TextExtractorStyle.getFont",{tes:this}).then(function(id){me.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.Obj,id.result);copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.getFontName=function(){apiFunctionCheck("TextExtractorStyle.getFontName",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction= 1056"TextExtractorStyle.getFontName";return PDFNet.sendWithPromise("TextExtractorStyle.getFontName",{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.getFontSize=function(){apiFunctionCheck("TextExtractorStyle.getFontSize",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorStyle.getFontSize";return PDFNet.sendWithPromise("TextExtractorStyle.getFontSize", 1057{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.getWeight=function(){apiFunctionCheck("TextExtractorStyle.getWeight",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorStyle.getWeight";return PDFNet.sendWithPromise("TextExtractorStyle.getWeight",{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.isItalic= 1058function(){apiFunctionCheck("TextExtractorStyle.isItalic",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorStyle.isItalic";
1058return PDFNet.sendWithPromise("TextExtractorStyle.isItalic",{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.isSerif=function(){apiFunctionCheck("TextExtractorStyle.isSerif",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction}); 1059var me=this;this.yieldFunction="TextExtractorStyle.isSerif";return PDFNet.sendWithPromise("TextExtractorStyle.isSerif",{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.compare=function(s){apiFunctionCheck("TextExtractorStyle.compare",arguments.length,1,"(PDFNet.TextExtractorStyle)",[[s,"Structure",PDFNet.TextExtractorStyle,"TextExtractorStyle"]],{checkThisYield:!0,functionName:this.yieldFunction},[[s,0]]);return PDFNet.sendWithPromise("TextExtractorStyle.compare", 1060{tes:this,s:s})};PDFNet.TextExtractorStyle.create=function(){apiFunctionCheck("TextExtractorStyle.create");return PDFNet.sendWithPromise("textExtractorStyleCreate",{}).then(function(id){return new PDFNet.TextExtractorStyle(id)})};PDFNet.TextExtractorStyle.prototype.copy=function(){apiFunctionCheck("TextExtractorStyle.copy",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorStyle.copy";return PDFNet.sendWithPromise("TextExtractorStyle.copy", 1061{s:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorStyle(id.result);copyFunc(id.s,me);return id.result})};PDFNet.TextExtractorWord.prototype.getNumGlyphs=function(){apiFunctionCheck("TextExtractorWord.getNumGlyphs",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getNumGlyphs";return PDFNet.sendWithPromise("TextExtractorWord.getNumGlyphs",{tew:this}).then(function(id){me.yieldFunction= 1062void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getCharStyle=function(char_idx){apiFunctionCheck("TextExtractorWord.getCharStyle",arguments.length,1,"(number)",[[char_idx,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getCharStyle";return PDFNet.sendWithPromise("TextExtractorWord.getCharStyle",{tew:this,char_idx:char_idx}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorStyle(id.result); 1063copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getStyle=function(){apiFunctionCheck("TextExtractorWord.getStyle",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getStyle";return PDFNet.sendWithPromise("TextExtractorWord.getStyle",{tew:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorStyle(id.result);copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getStringLen= 1064function(){apiFunctionCheck("TextExtractorWord.getStringLen",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getStringLen";return PDFNet.sendWithPromise("TextExtractorWord.getStringLen",{tew:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getNextWord=function(){apiFunctionCheck("TextExtractorWord.getNextWord",arguments.length,0,"()",[],{checkThisYield:!0, 1065functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getNextWord";return PDFNet.sendWithPromise("TextExtractorWord.getNextWord",{tew:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorWord(id.result);copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getCurrentNum=function(){apiFunctionCheck("TextExtractorWord.getCurrentNum",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me= 1066this;this.yieldFunction="TextExtractorWord.getCurrentNum";return PDFNet.sendWithPromise("TextExtractorWord.getCurrentNum",{tew:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.compare=function(word){apiFunctionCheck("TextExtractorWord.compare",arguments.length,1,"(PDFNet.TextExtractorWord)",[[word,"Structure",PDFNet.TextExtractorWord,"TextExtractorWord"]],{checkThisYield:!0,functionName:this.yieldFunction},[[word,0]]);
1066return PDFNet.sendWithPromise("TextExtractorWord.compare", 1067{tew:this,word:word})};PDFNet.TextExtractorWord.create=function(){apiFunctionCheck("TextExtractorWord.create");return PDFNet.sendWithPromise("textExtractorWordCreate",{}).then(function(id){return new PDFNet.TextExtractorWord(id)})};PDFNet.TextExtractorWord.prototype.isValid=function(){apiFunctionCheck("TextExtractorWord.isValid",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.isValid";return PDFNet.sendWithPromise("TextExtractorWord.isValid", 1068{tew:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorLine.prototype.getNumWords=function(){apiFunctionCheck("TextExtractorLine.getNumWords",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getNumWords";return PDFNet.sendWithPromise("TextExtractorLine.getNumWords",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})}; 1069PDFNet.TextExtractorLine.prototype.isSimpleLine=function(){apiFunctionCheck("TextExtractorLine.isSimpleLine",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.isSimpleLine";return PDFNet.sendWithPromise("TextExtractorLine.isSimpleLine",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getFirstWord=function(){apiFunctionCheck("TextExtractorLine.getFirstWord", 1070arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getFirstWord";return PDFNet.sendWithPromise("TextExtractorLine.getFirstWord",{line:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorWord(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getWord=function(word_idx){apiFunctionCheck("TextExtractorLine.getWord",arguments.length,1,"(number)",[[word_idx, 1071"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getWord";return PDFNet.sendWithPromise("TextExtractorLine.getWord",{line:this,word_idx:word_idx}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorWord(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getNextLine=function(){apiFunctionCheck("TextExtractorLine.getNextLine",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction}); 1072var me=this;this.yieldFunction="TextExtractorLine.getNextLine";return PDFNet.sendWithPromise("TextExtractorLine.getNextLine",{line:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorLine(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getCurrentNum=function(){apiFunctionCheck("TextExtractorLine.getCurrentNum",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getCurrentNum"; 1073return PDFNet.sendWithPromise("TextExtractorLine.getCurrentNum",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getStyle=function(){apiFunctionCheck("TextExtractorLine.getStyle",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getStyle";return PDFNet.sendWithPromise("TextExtractorLine.getStyle",{line:this}).then(function(id){me.yieldFunction= 1074void 0;id.result=new PDFNet.TextExtractorStyle(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getParagraphID=function(){apiFunctionCheck("TextExtractorLine.getParagraphID",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getParagraphID";return PDFNet.sendWithPromise("TextExtractorLine.getParagraphID",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})}; 1075PDFNet.TextExtractorLine.prototype.getFlowID=function(){apiFunctionCheck("TextExtractorLine.getFlowID",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getFlowID";
1075return PDFNet.sendWithPromise("TextExtractorLine.getFlowID",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.endsWithHyphen=function(){apiFunctionCheck("TextExtractorLine.endsWithHyphen", 1076arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.endsWithHyphen";return PDFNet.sendWithPromise("TextExtractorLine.endsWithHyphen",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.compare=function(line2){apiFunctionCheck("TextExtractorLine.compare",arguments.length,1,"(PDFNet.TextExtractorLine)",[[line2,"Structure",PDFNet.TextExtractorLine, 1077"TextExtractorLine"]],{checkThisYield:!0,functionName:this.yieldFunction},[[line2,0]]);return PDFNet.sendWithPromise("TextExtractorLine.compare",{line:this,line2:line2})};PDFNet.TextExtractorLine.create=function(){apiFunctionCheck("TextExtractorLine.create");return PDFNet.sendWithPromise("textExtractorLineCreate",{}).then(function(id){return new PDFNet.TextExtractorLine(id)})};PDFNet.TextExtractorLine.prototype.isValid=function(){apiFunctionCheck("TextExtractorLine.isValid",arguments.length,0,"()", 1078[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.isValid";return PDFNet.sendWithPromise("TextExtractorLine.isValid",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractor.prototype.getNumLines=function(){apiFunctionCheck("TextExtractor.getNumLines");return PDFNet.sendWithPromise("TextExtractor.getNumLines",{te:this.id})};PDFNet.TextExtractor.prototype.getFirstLine=function(){apiFunctionCheck("TextExtractor.getFirstLine"); 1079return PDFNet.sendWithPromise("TextExtractor.getFirstLine",{te:this.id}).then(function(id){return new PDFNet.TextExtractorLine(id)})};PDFNet.TextExtractor.prototype.getQuads=function(mtx,quads,quads_size){apiFunctionCheck("TextExtractor.getQuads",arguments.length,3,"(PDFNet.Matrix2D, number, number)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[quads,"number"],[quads_size,"number"]],{checkThisYield:!1},[[mtx,0]]);return PDFNet.sendWithPromise("TextExtractor.getQuads",{te:this.id,mtx:mtx,quads:quads, 1080quads_size:quads_size})};PDFNet.TextSearch.create=function(){apiFunctionCheck("TextSearch.create");return PDFNet.sendWithPromise("textSearchCreate",{}).then(function(id){return createDestroyableObj(PDFNet.TextSearch,id)})};PDFNet.TextSearch.prototype.begin=function(doc,pattern,mode,start_page,end_page){"undefined"===typeof start_page&&(start_page=-1);"undefined"===typeof end_page&&(end_page=-1);apiFunctionCheck("TextSearch.begin",arguments.length,3,"(PDFNet.PDFDoc, string, number, number, number)", 1081[[doc,"PDFDoc"],[pattern,"string"],[mode,"number"],[start_page,"number"],[end_page,"number"]]);return PDFNet.sendWithPromise("TextSearch.begin",{ts:this.id,doc:doc.id,pattern:pattern,mode:mode,start_page:start_page,end_page:end_page})};PDFNet.TextSearch.prototype.setPattern=function(pattern){apiFunctionCheck("TextSearch.setPattern",arguments.length,1,"(string)",[[pattern,"string"]]);return PDFNet.sendWithPromise("TextSearch.setPattern",{ts:this.id,pattern:pattern})};PDFNet.TextSearch.prototype.getMode= 1082function(){apiFunctionCheck("TextSearch.getMode");return PDFNet.sendWithPromise("TextSearch.getMode",{ts:this.id})};PDFNet.TextSearch.prototype.setMode=function(mode){apiFunctionCheck("TextSearch.setMode",arguments.length,1,"(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("TextSearch.setMode",{ts:this.id,mode:mode})};PDFNet.TextSearch.prototype.setRightToLeftLanguage=function(flag){apiFunctionCheck("TextSearch.setRightToLeftLanguage",arguments.length,1,"(boolean)",[[flag,"boolean"]]);return PDFNet.sendWithPromise("TextSearch.setRightToLeftLanguage", 1083{ts:this.id,flag:flag})};PDFNet.TextSearch.prototype.getCurrentPage=function(){apiFunctionCheck("TextSearch.getCurrentPage");return PDFNet.sendWithPromise("TextSearch.getCurrentPage",{ts:this.id})};PDFNet.TextSearch.prototype.setOCGContext=function(ctx){apiFunctionCheck("TextSearch.setOCGContext",arguments.length,1,"(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);
1083return PDFNet.sendWithPromise("TextSearch.setOCGContext",{te:this.id,ctx:ctx.id})};PDFNet.TextSearch.prototype.setAmbientLettersBefore= 1084function(ambient_letters_before){apiFunctionCheck("TextSearch.setAmbientLettersBefore",arguments.length,1,"(number)",[[ambient_letters_before,"number"]]);return PDFNet.sendWithPromise("TextSearch.setAmbientLettersBefore",{self:this.id,ambient_letters_before:ambient_letters_before})};PDFNet.TextSearch.prototype.setAmbientLettersAfter=function(ambient_letters_after){apiFunctionCheck("TextSearch.setAmbientLettersAfter",arguments.length,1,"(number)",[[ambient_letters_after,"number"]]);return PDFNet.sendWithPromise("TextSearch.setAmbientLettersAfter", 1085{self:this.id,ambient_letters_after:ambient_letters_after})};PDFNet.TextSearch.prototype.setAmbientWordsBefore=function(ambient_words_before){apiFunctionCheck("TextSearch.setAmbientWordsBefore",arguments.length,1,"(number)",[[ambient_words_before,"number"]]);return PDFNet.sendWithPromise("TextSearch.setAmbientWordsBefore",{self:this.id,ambient_words_before:ambient_words_before})};PDFNet.TextSearch.prototype.setAmbientWordsAfter=function(ambient_words_after){apiFunctionCheck("TextSearch.setAmbientWordsAfter", 1086arguments.length,1,"(number)",[[ambient_words_after,"number"]]);return PDFNet.sendWithPromise("TextSearch.setAmbientWordsAfter",{self:this.id,ambient_words_after:ambient_words_after})};PDFNet.NameTree.create=function(doc,name){apiFunctionCheck("NameTree.create",arguments.length,2,"(PDFNet.SDFDoc, string)",[[doc,"SDFDoc"],[name,"string"]]);return PDFNet.sendWithPromise("nameTreeCreate",{doc:doc.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.NameTree,id)})};PDFNet.NameTree.find=function(doc, 1087name){apiFunctionCheck("NameTree.find",arguments.length,2,"(PDFNet.SDFDoc, string)",[[doc,"SDFDoc"],[name,"string"]]);return PDFNet.sendWithPromise("nameTreeFind",{doc:doc.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.NameTree,id)})};PDFNet.NameTree.createFromObj=function(name_tree){apiFunctionCheck("NameTree.createFromObj",arguments.length,1,"(PDFNet.Obj)",[[name_tree,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("nameTreeCreateFromObj",{name_tree:name_tree.id}).then(function(id){return createPDFNetObj(PDFNet.NameTree, 1088id)})};PDFNet.NameTree.prototype.copy=function(){apiFunctionCheck("NameTree.copy");return PDFNet.sendWithPromise("NameTree.copy",{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.NameTree,id)})};PDFNet.NameTree.prototype.isValid=function(){apiFunctionCheck("NameTree.isValid");return PDFNet.sendWithPromise("NameTree.isValid",{tree:this.id})};PDFNet.NameTree.prototype.getIterator=function(key){apiFunctionCheck("NameTree.getIterator",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("NameTree.getIterator", 1089{tree:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.NameTree.prototype.getValue=function(key){apiFunctionCheck("NameTree.getValue",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("NameTree.getValue",{tree:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.NameTree.prototype.getIteratorBegin=function(){apiFunctionCheck("NameTree.getIteratorBegin");return PDFNet.sendWithPromise("NameTree.getIteratorBegin", 1090{tree:this.id}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.NameTree.prototype.put=function(key,value){apiFunctionCheck("NameTree.put",arguments.length,2,"(string, PDFNet.Obj)",[[key,"string"],[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("NameTree.put",{tree:this.id,key:key,value:value.id})};PDFNet.NameTree.prototype.eraseKey=function(key){apiFunctionCheck("NameTree.eraseKey",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("NameTree.eraseKey", 1091{tree:this.id,key:key})};PDFNet.NameTree.prototype.erase=function(pos){apiFunctionCheck("NameTree.erase",arguments.length,1,"(PDFNet.DictIterator)",[[pos,"Object",PDFNet.DictIterator,"DictIterator"]]);
1091return PDFNet.sendWithPromise("NameTree.erase",{tree:this.id,pos:pos.id})};PDFNet.NameTree.prototype.getSDFObj=function(){apiFunctionCheck("NameTree.getSDFObj");return PDFNet.sendWithPromise("NameTree.getSDFObj",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.NumberTree.create= 1092function(number_tree){apiFunctionCheck("NumberTree.create",arguments.length,1,"(PDFNet.Obj)",[[number_tree,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("numberTreeCreate",{number_tree:number_tree.id}).then(function(id){return createPDFNetObj(PDFNet.NumberTree,id)})};PDFNet.NumberTree.prototype.copy=function(){apiFunctionCheck("NumberTree.copy");return PDFNet.sendWithPromise("NumberTree.copy",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.NumberTree,id)})};PDFNet.NumberTree.prototype.isValid= 1093function(){apiFunctionCheck("NumberTree.isValid");return PDFNet.sendWithPromise("NumberTree.isValid",{tree:this.id})};PDFNet.NumberTree.prototype.getIterator=function(key){apiFunctionCheck("NumberTree.getIterator",arguments.length,1,"(number)",[[key,"number"]]);return PDFNet.sendWithPromise("NumberTree.getIterator",{tree:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.NumberTree.prototype.getValue=function(key){apiFunctionCheck("NumberTree.getValue", 1094arguments.length,1,"(number)",[[key,"number"]]);return PDFNet.sendWithPromise("NumberTree.getValue",{tree:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.NumberTree.prototype.getIteratorBegin=function(){apiFunctionCheck("NumberTree.getIteratorBegin");return PDFNet.sendWithPromise("NumberTree.getIteratorBegin",{tree:this.id}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.NumberTree.prototype.put=function(key,value){apiFunctionCheck("NumberTree.put", 1095arguments.length,2,"(number, PDFNet.Obj)",[[key,"number"],[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("NumberTree.put",{tree:this.id,key:key,value:value.id})};PDFNet.NumberTree.prototype.eraseKey=function(key){apiFunctionCheck("NumberTree.eraseKey",arguments.length,1,"(number)",[[key,"number"]]);return PDFNet.sendWithPromise("NumberTree.eraseKey",{tree:this.id,key:key})};PDFNet.NumberTree.prototype.erase=function(pos){apiFunctionCheck("NumberTree.erase",arguments.length,1,"(PDFNet.DictIterator)", 1096[[pos,"Object",PDFNet.DictIterator,"DictIterator"]]);return PDFNet.sendWithPromise("NumberTree.erase",{tree:this.id,pos:pos.id})};PDFNet.NumberTree.prototype.getSDFObj=function(){apiFunctionCheck("NumberTree.getSDFObj");return PDFNet.sendWithPromise("NumberTree.getSDFObj",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.getType=function(){apiFunctionCheck("Obj.getType");return PDFNet.sendWithPromise("Obj.getType",{o:this.id})};PDFNet.Obj.prototype.getDoc= 1097function(){apiFunctionCheck("Obj.getDoc");return PDFNet.sendWithPromise("Obj.getDoc",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,id)})};PDFNet.Obj.prototype.write=function(stream){apiFunctionCheck("Obj.write",arguments.length,1,"(PDFNet.FilterWriter)",[[stream,"Object",PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Obj.write",{o:this.id,stream:stream.id})};PDFNet.Obj.prototype.isEqual=function(to){apiFunctionCheck("Obj.isEqual",arguments.length,1,"(PDFNet.Obj)", 1098[[to,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Obj.isEqual",{o:this.id,to:to.id})};PDFNet.Obj.prototype.isBool=function(){apiFunctionCheck("Obj.isBool");return PDFNet.sendWithPromise("Obj.isBool",{o:this.id})};PDFNet.Obj.prototype.getBool=function(){apiFunctionCheck("Obj.getBool");return PDFNet.sendWithPromise("Obj.getBool",{o:this.id})};PDFNet.Obj.prototype.setBool=function(b){apiFunctionCheck("Obj.setBool",arguments.length,1,"(boolean)",[[b,"boolean"]]);return PDFNet.sendWithPromise("Obj.setBool", 1099{o:this.id,b:b})};PDFNet.Obj.prototype.isNumber=function(){apiFunctionCheck("Obj.isNumber");return PDFNet.sendWithPromise("Obj.isNumber",{o:this.id})};PDFNet.Obj.prototype.getNumber=function(){apiFunctionCheck("Obj.getNumber");
1099return PDFNet.sendWithPromise("Obj.getNumber",{o:this.id})};PDFNet.Obj.prototype.setNumber=function(n){apiFunctionCheck("Obj.setNumber",arguments.length,1,"(number)",[[n,"number"]]);return PDFNet.sendWithPromise("Obj.setNumber",{o:this.id,n:n})};PDFNet.Obj.prototype.isNull= 1100function(){apiFunctionCheck("Obj.isNull");return PDFNet.sendWithPromise("Obj.isNull",{o:this.id})};PDFNet.Obj.prototype.isString=function(){apiFunctionCheck("Obj.isString");return PDFNet.sendWithPromise("Obj.isString",{o:this.id})};PDFNet.Obj.prototype.getRawBuffer=function(){apiFunctionCheck("Obj.getRawBuffer");return PDFNet.sendWithPromise("Obj.getRawBuffer",{o:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.Obj.prototype.setString=function(value){apiFunctionCheck("Obj.setString", 1101arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("Obj.setString",{o:this.id,value:value})};PDFNet.Obj.prototype.setUString=function(value){apiFunctionCheck("Obj.setUString",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("Obj.setUString",{o:this.id,value:value})};PDFNet.Obj.prototype.isName=function(){apiFunctionCheck("Obj.isName");return PDFNet.sendWithPromise("Obj.isName",{o:this.id})};PDFNet.Obj.prototype.getName=function(){apiFunctionCheck("Obj.getName"); 1102return PDFNet.sendWithPromise("Obj.getName",{o:this.id})};PDFNet.Obj.prototype.setName=function(name){apiFunctionCheck("Obj.setName",arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("Obj.setName",{o:this.id,name:name})};PDFNet.Obj.prototype.isIndirect=function(){apiFunctionCheck("Obj.isIndirect");return PDFNet.sendWithPromise("Obj.isIndirect",{o:this.id})};PDFNet.Obj.prototype.getObjNum=function(){apiFunctionCheck("Obj.getObjNum");return PDFNet.sendWithPromise("Obj.getObjNum", 1103{o:this.id})};PDFNet.Obj.prototype.getGenNum=function(){apiFunctionCheck("Obj.getGenNum");return PDFNet.sendWithPromise("Obj.getGenNum",{o:this.id})};PDFNet.Obj.prototype.getOffset=function(){apiFunctionCheck("Obj.getOffset");return PDFNet.sendWithPromise("Obj.getOffset",{o:this.id})};PDFNet.Obj.prototype.isFree=function(){apiFunctionCheck("Obj.isFree");return PDFNet.sendWithPromise("Obj.isFree",{o:this.id})};PDFNet.Obj.prototype.setMark=function(mark){apiFunctionCheck("Obj.setMark",arguments.length, 11041,"(boolean)",[[mark,"boolean"]]);return PDFNet.sendWithPromise("Obj.setMark",{o:this.id,mark:mark})};PDFNet.Obj.prototype.isMarked=function(){apiFunctionCheck("Obj.isMarked");return PDFNet.sendWithPromise("Obj.isMarked",{o:this.id})};PDFNet.Obj.prototype.isLoaded=function(){apiFunctionCheck("Obj.isLoaded");return PDFNet.sendWithPromise("Obj.isLoaded",{o:this.id})};PDFNet.Obj.prototype.isContainer=function(){apiFunctionCheck("Obj.isContainer");return PDFNet.sendWithPromise("Obj.isContainer",{o:this.id})}; 1105PDFNet.Obj.prototype.size=function(){apiFunctionCheck("Obj.size");return PDFNet.sendWithPromise("Obj.size",{o:this.id})};PDFNet.Obj.prototype.getDictIterator=function(){apiFunctionCheck("Obj.getDictIterator");return PDFNet.sendWithPromise("Obj.getDictIterator",{o:this.id}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.Obj.prototype.isDict=function(){apiFunctionCheck("Obj.isDict");return PDFNet.sendWithPromise("Obj.isDict",{o:this.id})};PDFNet.Obj.prototype.find=function(key){apiFunctionCheck("Obj.find", 1106arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.find",{o:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.Obj.prototype.findObj=function(key){apiFunctionCheck("Obj.findObj",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.findObj",{o:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.get=function(key){apiFunctionCheck("Obj.get",arguments.length, 11071,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.get",{o:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.Obj.prototype.putName=function(key,name){apiFunctionCheck("Obj.putName",arguments.length,2,"(string, string)",[[key,"string"],[name,"string"]]
1107);return PDFNet.sendWithPromise("Obj.putName",{o:this.id,key:key,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putArray=function(key){apiFunctionCheck("Obj.putArray", 1108arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.putArray",{o:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putBool=function(key,value){apiFunctionCheck("Obj.putBool",arguments.length,2,"(string, boolean)",[[key,"string"],[value,"boolean"]]);return PDFNet.sendWithPromise("Obj.putBool",{o:this.id,key:key,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putDict=function(key){apiFunctionCheck("Obj.putDict", 1109arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.putDict",{o:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putNumber=function(key,value){apiFunctionCheck("Obj.putNumber",arguments.length,2,"(string, number)",[[key,"string"],[value,"number"]]);return PDFNet.sendWithPromise("Obj.putNumber",{o:this.id,key:key,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putString=function(key, 1110value){apiFunctionCheck("Obj.putString",arguments.length,2,"(string, string)",[[key,"string"],[value,"string"]]);return PDFNet.sendWithPromise("Obj.putString",{o:this.id,key:key,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putText=function(key,t){apiFunctionCheck("Obj.putText",arguments.length,2,"(string, string)",[[key,"string"],[t,"string"]]);return PDFNet.sendWithPromise("Obj.putText",{o:this.id,key:key,t:t}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1111id)})};PDFNet.Obj.prototype.putNull=function(key){apiFunctionCheck("Obj.putNull",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.putNull",{o:this.id,key:key})};PDFNet.Obj.prototype.put=function(key,input_obj){apiFunctionCheck("Obj.put",arguments.length,2,"(string, PDFNet.Obj)",[[key,"string"],[input_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Obj.put",{o:this.id,key:key,input_obj:input_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1112id)})};PDFNet.Obj.prototype.putRect=function(key,x1,y1,x2,y2){apiFunctionCheck("Obj.putRect",arguments.length,5,"(string, number, number, number, number)",[[key,"string"],[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("Obj.putRect",{o:this.id,key:key,x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putMatrix=function(key,mtx){apiFunctionCheck("Obj.putMatrix",arguments.length,2,"(string, PDFNet.Matrix2D)", 1113[[key,"string"],[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]],{checkThisYield:!1},[[mtx,1]]);return PDFNet.sendWithPromise("Obj.putMatrix",{o:this.id,key:key,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.eraseFromKey=function(key){apiFunctionCheck("Obj.eraseFromKey",arguments.length,1,"(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.eraseFromKey",{o:this.id,key:key})};PDFNet.Obj.prototype.erase=function(pos){apiFunctionCheck("Obj.erase",arguments.length, 11141,"(PDFNet.DictIterator)",[[pos,"Object",PDFNet.DictIterator,"DictIterator"]]);return PDFNet.sendWithPromise("Obj.erase",{o:this.id,pos:pos.id})};PDFNet.Obj.prototype.rename=function(old_key,new_key){apiFunctionCheck("Obj.rename",arguments.length,2,"(string, string)",[[old_key,"string"],[new_key,"string"]]);return PDFNet.sendWithPromise("Obj.rename",{o:this.id,old_key:old_key,new_key:new_key})};PDFNet.Obj.prototype.isArray=function(){apiFunctionCheck("Obj.isArray");return PDFNet.sendWithPromise("Obj.isArray", 1115{o:this.id})};PDFNet.Obj.prototype.getAt=function(index){apiFunctionCheck("Obj.getAt",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("Obj.getAt",{o:this.id,index:index}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertName=function(pos,name){apiFunctionCheck("Obj.insertName",arguments.length,2,"(number, string)",[[pos,"number"],[name,"string"]]
1115);return PDFNet.sendWithPromise("Obj.insertName",{o:this.id,pos:pos,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1116id)})};PDFNet.Obj.prototype.insertArray=function(pos){apiFunctionCheck("Obj.insertArray",arguments.length,1,"(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.insertArray",{o:this.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertBool=function(pos,value){apiFunctionCheck("Obj.insertBool",arguments.length,2,"(number, boolean)",[[pos,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("Obj.insertBool",{o:this.id,pos:pos,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1117id)})};PDFNet.Obj.prototype.insertDict=function(pos){apiFunctionCheck("Obj.insertDict",arguments.length,1,"(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.insertDict",{o:this.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertNumber=function(pos,value){apiFunctionCheck("Obj.insertNumber",arguments.length,2,"(number, number)",[[pos,"number"],[value,"number"]]);return PDFNet.sendWithPromise("Obj.insertNumber",{o:this.id,pos:pos,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1118id)})};PDFNet.Obj.prototype.insertString=function(pos,value){apiFunctionCheck("Obj.insertString",arguments.length,2,"(number, string)",[[pos,"number"],[value,"string"]]);return PDFNet.sendWithPromise("Obj.insertString",{o:this.id,pos:pos,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertText=function(pos,t){apiFunctionCheck("Obj.insertText",arguments.length,2,"(number, string)",[[pos,"number"],[t,"string"]]);return PDFNet.sendWithPromise("Obj.insertText", 1119{o:this.id,pos:pos,t:t}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertNull=function(pos){apiFunctionCheck("Obj.insertNull",arguments.length,1,"(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.insertNull",{o:this.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insert=function(pos,input_obj){apiFunctionCheck("Obj.insert",arguments.length,2,"(number, PDFNet.Obj)",[[pos,"number"],[input_obj,"Object",PDFNet.Obj, 1120"Obj"]]);return PDFNet.sendWithPromise("Obj.insert",{o:this.id,pos:pos,input_obj:input_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertRect=function(pos,x1,y1,x2,y2){apiFunctionCheck("Obj.insertRect",arguments.length,5,"(number, number, number, number, number)",[[pos,"number"],[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("Obj.insertRect",{o:this.id,pos:pos,x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1121id)})};
1121PDFNet.Obj.prototype.insertMatrix=function(pos,mtx){apiFunctionCheck("Obj.insertMatrix",arguments.length,2,"(number, PDFNet.Matrix2D)",[[pos,"number"],[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]],{checkThisYield:!1},[[mtx,1]]);return PDFNet.sendWithPromise("Obj.insertMatrix",{o:this.id,pos:pos,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackName=function(name){apiFunctionCheck("Obj.pushBackName",arguments.length,1,"(string)",[[name,"string"]]); 1122return PDFNet.sendWithPromise("Obj.pushBackName",{o:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackArray=function(){apiFunctionCheck("Obj.pushBackArray");return PDFNet.sendWithPromise("Obj.pushBackArray",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackBool=function(value){apiFunctionCheck("Obj.pushBackBool",arguments.length,1,"(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("Obj.pushBackBool", 1123{o:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackDict=function(){apiFunctionCheck("Obj.pushBackDict");return PDFNet.sendWithPromise("Obj.pushBackDict",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackNumber=function(value){apiFunctionCheck("Obj.pushBackNumber",arguments.length,1,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("Obj.pushBackNumber",{o:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1124id)})};PDFNet.Obj.prototype.pushBackString=function(value){apiFunctionCheck("Obj.pushBackString",arguments.length,1,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("Obj.pushBackString",{o:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackText=function(t){apiFunctionCheck("Obj.pushBackText",arguments.length,1,"(string)",[[t,"string"]]);return PDFNet.sendWithPromise("Obj.pushBackText",{o:this.id,t:t}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1125id)})};PDFNet.Obj.prototype.pushBackNull=function(){apiFunctionCheck("Obj.pushBackNull");return PDFNet.sendWithPromise("Obj.pushBackNull",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBack=function(input_obj){apiFunctionCheck("Obj.pushBack",arguments.length,1,"(PDFNet.Obj)",[[input_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Obj.pushBack",{o:this.id,input_obj:input_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})}; 1126PDFNet.Obj.prototype.pushBackRect=function(x1,y1,x2,y2){apiFunctionCheck("Obj.pushBackRect",arguments.length,4,"(number, number, number, number)",[[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("Obj.pushBackRect",{o:this.id,x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackMatrix=function(mtx){apiFunctionCheck("Obj.pushBackMatrix",arguments.length,1,"(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D, 1127"Matrix2D"]],{checkThisYield:!1},[[mtx,0]]);return PDFNet.sendWithPromise("Obj.pushBackMatrix",{o:this.id,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.eraseAt=function(pos){apiFunctionCheck("Obj.eraseAt",arguments.length,1,"(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.eraseAt",{o:this.id,pos:pos})};PDFNet.Obj.prototype.isStream=function(){apiFunctionCheck("Obj.isStream");return PDFNet.sendWithPromise("Obj.isStream",{o:this.id})};PDFNet.Obj.prototype.getRawStreamLength= 1128function(){apiFunctionCheck("Obj.getRawStreamLength");return PDFNet.sendWithPromise("Obj.getRawStreamLength",{o:this.id})};PDFNet.Obj.prototype.setStreamData=function(data_buf){apiFunctionCheck("Obj.setStreamData",arguments.length,1,"(ArrayBuffer|TypedArray)",[[data_buf,"ArrayBuffer"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf,!1);return PDFNet.sendWithPromise("Obj.setStreamData",{obj:this.id,data_buf:data_bufArrayBuffer})};PDFNet.Obj.prototype.setStreamDataWithFilter=function(data_buf,filter_chain){apiFunctionCheck("Obj.setStreamDataWithFilter", 1129arguments.length,2,"(ArrayBuffer|TypedArray, PDFNet.Filter)",[[data_buf,"ArrayBuffer"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf,!1);0!=filter_chain.id&&avoidCleanup(filter_chain.id);
1129return PDFNet.sendWithPromise("Obj.setStreamDataWithFilter",{obj:this.id,data_buf:data_bufArrayBuffer,no_own_filter_chain:filter_chain.id})};PDFNet.Obj.prototype.getRawStream=function(decrypt){apiFunctionCheck("Obj.getRawStream",arguments.length,1,"(boolean)",[[decrypt, 1130"boolean"]]);return PDFNet.sendWithPromise("Obj.getRawStream",{o:this.id,decrypt:decrypt}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Obj.prototype.getDecodedStream=function(){apiFunctionCheck("Obj.getDecodedStream");return PDFNet.sendWithPromise("Obj.getDecodedStream",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.ObjSet.create=function(){apiFunctionCheck("ObjSet.create");return PDFNet.sendWithPromise("objSetCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ObjSet, 1131id)})};PDFNet.ObjSet.prototype.createName=function(name){apiFunctionCheck("ObjSet.createName",arguments.length,1,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ObjSet.createName",{set:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createArray=function(){apiFunctionCheck("ObjSet.createArray");return PDFNet.sendWithPromise("ObjSet.createArray",{set:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createBool= 1132function(value){apiFunctionCheck("ObjSet.createBool",arguments.length,1,"(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("ObjSet.createBool",{set:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createDict=function(){apiFunctionCheck("ObjSet.createDict");return PDFNet.sendWithPromise("ObjSet.createDict",{set:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createNull=function(){apiFunctionCheck("ObjSet.createNull"); 1133return PDFNet.sendWithPromise("ObjSet.createNull",{set:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createNumber=function(value){apiFunctionCheck("ObjSet.createNumber",arguments.length,1,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("ObjSet.createNumber",{set:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createString=function(value){apiFunctionCheck("ObjSet.createString",arguments.length, 11341,"(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ObjSet.createString",{set:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createFromJson=function(json){apiFunctionCheck("ObjSet.createFromJson",arguments.length,1,"(string)",[[json,"string"]]);return PDFNet.sendWithPromise("ObjSet.createFromJson",{set:this.id,json:json}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createShallowCopy=function(){apiFunctionCheck("SDFDoc.createShallowCopy"); 1135return PDFNet.sendWithPromise("SDFDoc.createShallowCopy",{source:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,id)})};PDFNet.SDFDoc.prototype.releaseFileHandles=function(){apiFunctionCheck("SDFDoc.releaseFileHandles");return PDFNet.sendWithPromise("SDFDoc.releaseFileHandles",{doc:this.id})};PDFNet.SDFDoc.prototype.isEncrypted=function(){apiFunctionCheck("SDFDoc.isEncrypted");return PDFNet.sendWithPromise("SDFDoc.isEncrypted",{doc:this.id})};PDFNet.SDFDoc.prototype.initStdSecurityHandlerUString= 1136function(password){apiFunctionCheck("SDFDoc.initStdSecurityHandlerUString",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SDFDoc.initStdSecurityHandlerUString",{doc:this.id,password:password})};PDFNet.SDFDoc.prototype.isModified=function(){apiFunctionCheck("SDFDoc.isModified");return PDFNet.sendWithPromise("SDFDoc.isModified",{doc:this.id})};PDFNet.SDFDoc.prototype.hasRepairedXRef=function(){apiFunctionCheck("SDFDoc.hasRepairedXRef");return PDFNet.sendWithPromise("SDFDoc.hasRepairedXRef", 1137{doc:this.id})};PDFNet.SDFDoc.prototype.isFullSaveRequired=function(){apiFunctionCheck("SDFDoc.isFullSaveRequired");
1137return PDFNet.sendWithPromise("SDFDoc.isFullSaveRequired",{doc:this.id})};PDFNet.SDFDoc.prototype.getTrailer=function(){apiFunctionCheck("SDFDoc.getTrailer");return PDFNet.sendWithPromise("SDFDoc.getTrailer",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.getObj=function(obj_num){apiFunctionCheck("SDFDoc.getObj",arguments.length,1,"(number)", 1138[[obj_num,"number"]]);return PDFNet.sendWithPromise("SDFDoc.getObj",{doc:this.id,obj_num:obj_num}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.importObj=function(obj,deep_copy){apiFunctionCheck("SDFDoc.importObj",arguments.length,2,"(PDFNet.Obj, boolean)",[[obj,"Object",PDFNet.Obj,"Obj"],[deep_copy,"boolean"]]);return PDFNet.sendWithPromise("SDFDoc.importObj",{doc:this.id,obj:obj.id,deep_copy:deep_copy}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})}; 1139PDFNet.SDFDoc.prototype.importObjsWithExcludeList=function(obj_list,exclude_list){apiFunctionCheck("SDFDoc.importObjsWithExcludeList",arguments.length,2,"(Array<Core.PDFNet.Obj>, Array<Core.PDFNet.Obj>)",[[obj_list,"Array"],[exclude_list,"Array"]]);obj_list=Array.from(obj_list,function(x){return x.id});exclude_list=Array.from(exclude_list,function(x){return x.id});return PDFNet.sendWithPromise("SDFDoc.importObjsWithExcludeList",{doc:this.id,obj_list:obj_list,exclude_list:exclude_list}).then(function(id){return createPDFNetObj(PDFNet.Obj, 1140id)})};PDFNet.SDFDoc.prototype.xRefSize=function(){apiFunctionCheck("SDFDoc.xRefSize");return PDFNet.sendWithPromise("SDFDoc.xRefSize",{doc:this.id})};PDFNet.SDFDoc.prototype.clearMarks=function(){apiFunctionCheck("SDFDoc.clearMarks");return PDFNet.sendWithPromise("SDFDoc.clearMarks",{doc:this.id})};PDFNet.SDFDoc.prototype.saveMemory=function(flags,header){apiFunctionCheck("SDFDoc.saveMemory",arguments.length,2,"(number, string)",[[flags,"number"],[header,"string"]]);return PDFNet.sendWithPromise("SDFDoc.saveMemory", 1141{doc:this.id,flags:flags,header:header}).then(function(id){return new Uint8Array(id)})};PDFNet.SDFDoc.prototype.saveStream=function(stream,flags,header){apiFunctionCheck("SDFDoc.saveStream",arguments.length,3,"(PDFNet.Filter, number, string)",[[stream,"Object",PDFNet.Filter,"Filter"],[flags,"number"],[header,"string"]]);return PDFNet.sendWithPromise("SDFDoc.saveStream",{doc:this.id,stream:stream.id,flags:flags,header:header})};PDFNet.SDFDoc.prototype.getHeader=function(){apiFunctionCheck("SDFDoc.getHeader"); 1142return PDFNet.sendWithPromise("SDFDoc.getHeader",{doc:this.id})};PDFNet.SDFDoc.prototype.getSecurityHandler=function(){apiFunctionCheck("SDFDoc.getSecurityHandler");return PDFNet.sendWithPromise("SDFDoc.getSecurityHandler",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SecurityHandler,id)})};PDFNet.SDFDoc.prototype.setSecurityHandler=function(handler){apiFunctionCheck("SDFDoc.setSecurityHandler",arguments.length,1,"(PDFNet.SecurityHandler)",[[handler,"Object",PDFNet.SecurityHandler, 1143"SecurityHandler"]]);0!=handler.id&&avoidCleanup(handler.id);return PDFNet.sendWithPromise("SDFDoc.setSecurityHandler",{doc:this.id,no_own_handler:handler.id})};PDFNet.SDFDoc.prototype.removeSecurity=function(){apiFunctionCheck("SDFDoc.removeSecurity");return PDFNet.sendWithPromise("SDFDoc.removeSecurity",{doc:this.id})};PDFNet.SDFDoc.prototype.swap=function(obj_num1,obj_num2){apiFunctionCheck("SDFDoc.swap",arguments.length,2,"(number, number)",[[obj_num1,"number"],[obj_num2,"number"]]);return PDFNet.sendWithPromise("SDFDoc.swap", 1144{doc:this.id,obj_num1:obj_num1,obj_num2:obj_num2})};PDFNet.SDFDoc.prototype.isLinearized=function(){apiFunctionCheck("SDFDoc.isLinearized");return PDFNet.sendWithPromise("SDFDoc.isLinearized",{doc:this.id})};PDFNet.SDFDoc.prototype.getLinearizationDict=function(){apiFunctionCheck("SDFDoc.getLinearizationDict");return PDFNet.sendWithPromise("SDFDoc.getLinearizationDict",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.getHintStream=function(){apiFunctionCheck("SDFDoc.getHintStream"); 1145return PDFNet.sendWithPromise("SDFDoc.getHintStream",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.enableDiskCaching=function(use_cache_flag){apiFunctionCheck("SDFDoc.enableDiskCaching",arguments.length,1,"(boolean)",[[use_cache_flag,"boolean"]]);
1145return PDFNet.sendWithPromise("SDFDoc.enableDiskCaching",{doc:this.id,use_cache_flag:use_cache_flag})};PDFNet.SDFDoc.prototype.lock=function(){apiFunctionCheck("SDFDoc.lock");var me=this;return PDFNet.sendWithPromise("SDFDoc.lock", 1146{doc:this.id}).then(function(){lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlock"})})};PDFNet.SDFDoc.prototype.unlock=function(){apiFunctionCheck("SDFDoc.unlock");var me=this;return PDFNet.sendWithPromise("SDFDoc.unlock",{doc:this.id}).then(function(){unregisterLockedObject(me)})};PDFNet.SDFDoc.prototype.lockRead=function(){apiFunctionCheck("SDFDoc.lockRead");var me=this;return PDFNet.sendWithPromise("SDFDoc.lockRead",{doc:this.id}).then(function(){lockedObjects.push({name:"SDFDoc",id:me.id, 1147unlocktype:"unlockRead"})})};PDFNet.SDFDoc.prototype.unlockRead=function(){apiFunctionCheck("SDFDoc.unlockRead");var me=this;return PDFNet.sendWithPromise("SDFDoc.unlockRead",{doc:this.id}).then(function(){unregisterLockedObject(me)})};PDFNet.SDFDoc.prototype.tryLock=function(){apiFunctionCheck("SDFDoc.tryLock");var me=this;return PDFNet.sendWithPromise("SDFDoc.tryLock",{doc:this.id}).then(function(success){success&&lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlock"})})};PDFNet.SDFDoc.prototype.tryLockRead= 1148function(){apiFunctionCheck("SDFDoc.tryLockRead");var me=this;return PDFNet.sendWithPromise("SDFDoc.tryLockRead",{doc:this.id}).then(function(success){success&&lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlockRead"})})};PDFNet.SDFDoc.prototype.getFileName=function(){apiFunctionCheck("SDFDoc.getFileName");return PDFNet.sendWithPromise("SDFDoc.getFileName",{doc:this.id})};PDFNet.SDFDoc.prototype.createIndirectName=function(name){apiFunctionCheck("SDFDoc.createIndirectName",arguments.length, 11491,"(string)",[[name,"string"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectName",{doc:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectArray=function(){apiFunctionCheck("SDFDoc.createIndirectArray");return PDFNet.sendWithPromise("SDFDoc.createIndirectArray",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectBool=function(value){apiFunctionCheck("SDFDoc.createIndirectBool", 1150arguments.length,1,"(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectBool",{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectDict=function(){apiFunctionCheck("SDFDoc.createIndirectDict");return PDFNet.sendWithPromise("SDFDoc.createIndirectDict",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectNull=function(){apiFunctionCheck("SDFDoc.createIndirectNull"); 1151return PDFNet.sendWithPromise("SDFDoc.createIndirectNull",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectNumber=function(value){apiFunctionCheck("SDFDoc.createIndirectNumber",arguments.length,1,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectNumber",{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectString=function(buf_value){apiFunctionCheck("SDFDoc.createIndirectString", 1152arguments.length,1,"(ArrayBuffer|TypedArray)",[[buf_value,"ArrayBuffer"]]);var buf_valueArrayBuffer=getArrayBuffer(buf_value,!1);return PDFNet.sendWithPromise("SDFDoc.createIndirectString",{doc:this.id,buf_value:buf_valueArrayBuffer}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectStringFromUString=function(str){apiFunctionCheck("SDFDoc.createIndirectStringFromUString",arguments.length,1,"(string)",[[str,"string"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectStringFromUString", 1153{doc:this.id,str:str}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectStreamFromFilter=function(data,filter_chain){"undefined"===typeof filter_chain&&(filter_chain=new PDFNet.Filter("0"));apiFunctionCheck("SDFDoc.createIndirectStreamFromFilter",arguments.length,1,"(PDFNet.FilterReader, PDFNet.Filter)",[[data,"Object",PDFNet.FilterReader,"FilterReader"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);0!=filter_chain.id&&avoidCleanup(filter_chain.id);
1154return PDFNet.sendWithPromise("SDFDoc.createIndirectStreamFromFilter",{doc:this.id,data:data.id,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectStream=function(data_buf,filter_chain){apiFunctionCheck("SDFDoc.createIndirectStream",arguments.length,2,"(ArrayBuffer|TypedArray, PDFNet.Filter)",[[data_buf,"ArrayBuffer"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf, 1155!1);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("SDFDoc.createIndirectStream",{doc:this.id,data_buf:data_bufArrayBuffer,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SecurityHandler.prototype.getPermission=function(p){apiFunctionCheck("SecurityHandler.getPermission",arguments.length,1,"(number)",[[p,"number"]]);return PDFNet.sendWithPromise("SecurityHandler.getPermission",{sh:this.id,p:p})};PDFNet.SecurityHandler.prototype.getKeyLength= 1156function(){apiFunctionCheck("SecurityHandler.getKeyLength");return PDFNet.sendWithPromise("SecurityHandler.getKeyLength",{sh:this.id})};PDFNet.SecurityHandler.prototype.getEncryptionAlgorithmID=function(){apiFunctionCheck("SecurityHandler.getEncryptionAlgorithmID");return PDFNet.sendWithPromise("SecurityHandler.getEncryptionAlgorithmID",{sh:this.id})};PDFNet.SecurityHandler.prototype.getHandlerDocName=function(){apiFunctionCheck("SecurityHandler.getHandlerDocName");return PDFNet.sendWithPromise("SecurityHandler.getHandlerDocName", 1157{sh:this.id})};PDFNet.SecurityHandler.prototype.isModified=function(){apiFunctionCheck("SecurityHandler.isModified");return PDFNet.sendWithPromise("SecurityHandler.isModified",{sh:this.id})};PDFNet.SecurityHandler.prototype.setModified=function(is_modified){"undefined"===typeof is_modified&&(is_modified=!0);apiFunctionCheck("SecurityHandler.setModified",arguments.length,0,"(boolean)",[[is_modified,"boolean"]]);return PDFNet.sendWithPromise("SecurityHandler.setModified",{sh:this.id,is_modified:is_modified})}; 1158PDFNet.SecurityHandler.create=function(crypt_type){apiFunctionCheck("SecurityHandler.create",arguments.length,1,"(number)",[[crypt_type,"number"]]);return PDFNet.sendWithPromise("securityHandlerCreate",{crypt_type:crypt_type}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,id)})};PDFNet.SecurityHandler.createFromEncCode=function(name,key_len,enc_code){apiFunctionCheck("SecurityHandler.createFromEncCode",arguments.length,3,"(string, number, number)",[[name,"string"],[key_len, 1159"number"],[enc_code,"number"]]);return PDFNet.sendWithPromise("securityHandlerCreateFromEncCode",{name:name,key_len:key_len,enc_code:enc_code}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,id)})};PDFNet.SecurityHandler.createDefault=function(){apiFunctionCheck("SecurityHandler.createDefault");return PDFNet.sendWithPromise("securityHandlerCreateDefault",{}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,id)})};PDFNet.SecurityHandler.prototype.setPermission= 1160function(perm,value){apiFunctionCheck("SecurityHandler.setPermission",arguments.length,2,"(number, boolean)",[[perm,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("SecurityHandler.setPermission",{sh:this.id,perm:perm,value:value})};PDFNet.SecurityHandler.prototype.changeRevisionNumber=function(rev_num){apiFunctionCheck("SecurityHandler.changeRevisionNumber",arguments.length,1,"(number)",[[rev_num,"number"]]);return PDFNet.sendWithPromise("SecurityHandler.changeRevisionNumber",{sh:this.id, 1161rev_num:rev_num})};PDFNet.SecurityHandler.prototype.setEncryptMetadata=function(encrypt_metadata){apiFunctionCheck("SecurityHandler.setEncryptMetadata",arguments.length,1,"(boolean)",[[encrypt_metadata,"boolean"]]);return PDFNet.sendWithPromise("SecurityHandler.setEncryptMetadata",{sh:this.id,encrypt_metadata:encrypt_metadata})};PDFNet.SecurityHandler.prototype.getRevisionNumber=function(){apiFunctionCheck("SecurityHandler.getRevisionNumber");return PDFNet.sendWithPromise("SecurityHandler.getRevisionNumber", 1162{sh:this.id})};PDFNet.SecurityHandler.prototype.isUserPasswordRequired=function(){apiFunctionCheck("SecurityHandler.isUserPasswordRequired");
1162return PDFNet.sendWithPromise("SecurityHandler.isUserPasswordRequired",{sh:this.id})};PDFNet.SecurityHandler.prototype.isMasterPasswordRequired=function(){apiFunctionCheck("SecurityHandler.isMasterPasswordRequired");return PDFNet.sendWithPromise("SecurityHandler.isMasterPasswordRequired",{sh:this.id})};PDFNet.SecurityHandler.prototype.isAES=function(){apiFunctionCheck("SecurityHandler.isAES"); 1163return PDFNet.sendWithPromise("SecurityHandler.isAES",{sh:this.id})};PDFNet.SecurityHandler.prototype.isAESObj=function(stream){apiFunctionCheck("SecurityHandler.isAESObj",arguments.length,1,"(PDFNet.Obj)",[[stream,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("SecurityHandler.isAESObj",{sh:this.id,stream:stream.id})};PDFNet.SecurityHandler.prototype.isRC4=function(){apiFunctionCheck("SecurityHandler.isRC4");return PDFNet.sendWithPromise("SecurityHandler.isRC4",{sh:this.id})};PDFNet.SecurityHandler.prototype.changeUserPasswordUString= 1164function(password){apiFunctionCheck("SecurityHandler.changeUserPasswordUString",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.changeUserPasswordUString",{sh:this.id,password:password})};PDFNet.SecurityHandler.prototype.changeUserPasswordBuffer=function(password_buf){apiFunctionCheck("SecurityHandler.changeUserPasswordBuffer",arguments.length,1,"(ArrayBuffer|TypedArray)",[[password_buf,"ArrayBuffer"]]);var password_bufArrayBuffer=getArrayBuffer(password_buf, 1165!1);return PDFNet.sendWithPromise("SecurityHandler.changeUserPasswordBuffer",{sh:this.id,password_buf:password_bufArrayBuffer})};PDFNet.SecurityHandler.prototype.changeMasterPasswordUString=function(password){apiFunctionCheck("SecurityHandler.changeMasterPasswordUString",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.changeMasterPasswordUString",{sh:this.id,password:password})};PDFNet.SecurityHandler.prototype.changeMasterPasswordBuffer=function(password_buf){apiFunctionCheck("SecurityHandler.changeMasterPasswordBuffer", 1166arguments.length,1,"(ArrayBuffer|TypedArray)",[[password_buf,"ArrayBuffer"]]);var password_bufArrayBuffer=getArrayBuffer(password_buf,!1);return PDFNet.sendWithPromise("SecurityHandler.changeMasterPasswordBuffer",{sh:this.id,password_buf:password_bufArrayBuffer})};PDFNet.SecurityHandler.prototype.initPasswordUString=function(password){apiFunctionCheck("SecurityHandler.initPasswordUString",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.initPasswordUString", 1167{sh:this.id,password:password})};PDFNet.SecurityHandler.prototype.initPasswordBuffer=function(password_buf){apiFunctionCheck("SecurityHandler.initPasswordBuffer",arguments.length,1,"(ArrayBuffer|TypedArray)",[[password_buf,"ArrayBuffer"]]);var password_bufArrayBuffer=getArrayBuffer(password_buf,!1);return PDFNet.sendWithPromise("SecurityHandler.initPasswordBuffer",{sh:this.id,password_buf:password_bufArrayBuffer})};PDFNet.SignatureHandler.prototype.getName=function(){apiFunctionCheck("SignatureHandler.getName"); 1168return PDFNet.sendWithPromise("SignatureHandler.getName",{signature_handler:this.id})};PDFNet.SignatureHandler.prototype.reset=function(){apiFunctionCheck("SignatureHandler.reset");return PDFNet.sendWithPromise("SignatureHandler.reset",{signature_handler:this.id})};PDFNet.SignatureHandler.prototype.destructor=function(){apiFunctionCheck("SignatureHandler.destructor");return PDFNet.sendWithPromise("SignatureHandler.destructor",{signature_handler:this.id})};PDFNet.UndoManager.prototype.discardAllSnapshots= 1169function(){apiFunctionCheck("UndoManager.discardAllSnapshots");return PDFNet.sendWithPromise("UndoManager.discardAllSnapshots",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.UndoManager.prototype.undo=function(){apiFunctionCheck("UndoManager.undo");return PDFNet.sendWithPromise("UndoManager.undo",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ResultSnapshot,id)})};PDFNet.UndoManager.prototype.canUndo=function(){apiFunctionCheck("UndoManager.canUndo");
1170return PDFNet.sendWithPromise("UndoManager.canUndo",{self:this.id})};PDFNet.UndoManager.prototype.getNextUndoSnapshot=function(){apiFunctionCheck("UndoManager.getNextUndoSnapshot");return PDFNet.sendWithPromise("UndoManager.getNextUndoSnapshot",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.UndoManager.prototype.redo=function(){apiFunctionCheck("UndoManager.redo");return PDFNet.sendWithPromise("UndoManager.redo",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ResultSnapshot, 1171id)})};PDFNet.UndoManager.prototype.canRedo=function(){apiFunctionCheck("UndoManager.canRedo");return PDFNet.sendWithPromise("UndoManager.canRedo",{self:this.id})};PDFNet.UndoManager.prototype.getNextRedoSnapshot=function(){apiFunctionCheck("UndoManager.getNextRedoSnapshot");return PDFNet.sendWithPromise("UndoManager.getNextRedoSnapshot",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.UndoManager.prototype.takeSnapshot=function(){apiFunctionCheck("UndoManager.takeSnapshot"); 1172return PDFNet.sendWithPromise("UndoManager.takeSnapshot",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ResultSnapshot,id)})};PDFNet.ResultSnapshot.prototype.currentState=function(){apiFunctionCheck("ResultSnapshot.currentState");return PDFNet.sendWithPromise("ResultSnapshot.currentState",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.ResultSnapshot.prototype.previousState=function(){apiFunctionCheck("ResultSnapshot.previousState"); 1173return PDFNet.sendWithPromise("ResultSnapshot.previousState",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.ResultSnapshot.prototype.isOk=function(){apiFunctionCheck("ResultSnapshot.isOk");return PDFNet.sendWithPromise("ResultSnapshot.isOk",{self:this.id})};PDFNet.ResultSnapshot.prototype.isNullTransition=function(){apiFunctionCheck("ResultSnapshot.isNullTransition");return PDFNet.sendWithPromise("ResultSnapshot.isNullTransition",{self:this.id})};PDFNet.DocSnapshot.prototype.getHash= 1174function(){apiFunctionCheck("DocSnapshot.getHash");return PDFNet.sendWithPromise("DocSnapshot.getHash",{self:this.id})};PDFNet.DocSnapshot.prototype.isValid=function(){apiFunctionCheck("DocSnapshot.isValid");return PDFNet.sendWithPromise("DocSnapshot.isValid",{self:this.id})};PDFNet.DocSnapshot.prototype.equals=function(snapshot){apiFunctionCheck("DocSnapshot.equals",arguments.length,1,"(PDFNet.DocSnapshot)",[[snapshot,"Object",PDFNet.DocSnapshot,"DocSnapshot"]]);return PDFNet.sendWithPromise("DocSnapshot.equals", 1175{self:this.id,snapshot:snapshot.id})};PDFNet.OCRModule.applyOCRJsonToPDF=function(dst,json){apiFunctionCheck("OCRModule.applyOCRJsonToPDF",arguments.length,2,"(PDFNet.PDFDoc, string)",[[dst,"PDFDoc"],[json,"string"]]);return PDFNet.sendWithPromise("ocrModuleApplyOCRJsonToPDF",{dst:dst.id,json:json})};PDFNet.OCRModule.applyOCRXmlToPDF=function(dst,xml){apiFunctionCheck("OCRModule.applyOCRXmlToPDF",arguments.length,2,"(PDFNet.PDFDoc, string)",[[dst,"PDFDoc"],[xml,"string"]]);return PDFNet.sendWithPromise("ocrModuleApplyOCRXmlToPDF", 1176{dst:dst.id,xml:xml})};PDFNet.VerificationOptions.create=function(in_level){apiFunctionCheck("VerificationOptions.create",arguments.length,1,"(number)",[[in_level,"number"]]);return PDFNet.sendWithPromise("verificationOptionsCreate",{in_level:in_level}).then(function(id){return createDestroyableObj(PDFNet.VerificationOptions,id)})};PDFNet.VerificationOptions.prototype.addTrustedCertificate=function(in_certificate_buf,in_trust_flags){"undefined"===typeof in_trust_flags&&(in_trust_flags=PDFNet.VerificationOptions.CertificateTrustFlag.e_default_trust); 1177apiFunctionCheck("VerificationOptions.addTrustedCertificate",arguments.length,1,"(ArrayBuffer|TypedArray, number)",[[in_certificate_buf,"ArrayBuffer"],[in_trust_flags,"number"]]);var in_certificate_bufArrayBuffer=getArrayBuffer(in_certificate_buf,!1);return PDFNet.sendWithPromise("VerificationOptions.addTrustedCertificate",{self:this.id,in_certificate_buf:in_certificate_bufArrayBuffer,in_trust_flags:in_trust_flags})};PDFNet.VerificationOptions.prototype.addTrustedCertificates=function(in_P7C_binary_DER_certificates_file_data){apiFunctionCheck("VerificationOptions.addTrustedCertificates", 1178arguments.length,1,"(ArrayBuffer|TypedArray)",[[in_P7C_binary_DER_certificates_file_data,"ArrayBuffer"]]);var in_P7C_binary_DER_certificates_file_dataArrayBuffer=getArrayBuffer(in_P7C_binary_DER_certificates_file_data,!1);
1178return PDFNet.sendWithPromise("VerificationOptions.addTrustedCertificates",{self:this.id,in_P7C_binary_DER_certificates_file_data_buf:in_P7C_binary_DER_certificates_file_dataArrayBuffer})};PDFNet.VerificationOptions.prototype.loadTrustList=function(in_fdf_cert_exchange_data){apiFunctionCheck("VerificationOptions.loadTrustList", 1179arguments.length,1,"(PDFNet.FDFDoc)",[[in_fdf_cert_exchange_data,"FDFDoc"]]);return PDFNet.sendWithPromise("VerificationOptions.loadTrustList",{self:this.id,in_fdf_cert_exchange_data:in_fdf_cert_exchange_data.id})};PDFNet.VerificationOptions.prototype.enableModificationVerification=function(in_on_or_off){apiFunctionCheck("VerificationOptions.enableModificationVerification",arguments.length,1,"(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableModificationVerification", 1180{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableDigestVerification=function(in_on_or_off){apiFunctionCheck("VerificationOptions.enableDigestVerification",arguments.length,1,"(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableDigestVerification",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableTrustVerification=function(in_on_or_off){apiFunctionCheck("VerificationOptions.enableTrustVerification", 1181arguments.length,1,"(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableTrustVerification",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.setRevocationProxyPrefix=function(in_str){apiFunctionCheck("VerificationOptions.setRevocationProxyPrefix",arguments.length,1,"(string)",[[in_str,"string"]]);return PDFNet.sendWithPromise("VerificationOptions.setRevocationProxyPrefix",{self:this.id,in_str:in_str})};PDFNet.VerificationOptions.prototype.setRevocationTimeout= 1182function(in_revocation_timeout_milliseconds){apiFunctionCheck("VerificationOptions.setRevocationTimeout",arguments.length,1,"(number)",[[in_revocation_timeout_milliseconds,"number"]]);return PDFNet.sendWithPromise("VerificationOptions.setRevocationTimeout",{self:this.id,in_revocation_timeout_milliseconds:in_revocation_timeout_milliseconds})};PDFNet.VerificationOptions.prototype.enableOnlineCRLRevocationChecking=function(in_on_or_off){apiFunctionCheck("VerificationOptions.enableOnlineCRLRevocationChecking", 1183arguments.length,1,"(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableOnlineCRLRevocationChecking",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableOnlineOCSPRevocationChecking=function(in_on_or_off){apiFunctionCheck("VerificationOptions.enableOnlineOCSPRevocationChecking",arguments.length,1,"(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableOnlineOCSPRevocationChecking", 1184{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableOnlineRevocationChecking=function(in_on_or_off){apiFunctionCheck("VerificationOptions.enableOnlineRevocationChecking",arguments.length,1,"(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableOnlineRevocationChecking",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.getTrustedCertificateCount=function(){apiFunctionCheck("VerificationOptions.getTrustedCertificateCount"); 1185return PDFNet.sendWithPromise("VerificationOptions.getTrustedCertificateCount",{self:this.id})};PDFNet.VerificationOptions.prototype.getTrustedCertificate=function(index){apiFunctionCheck("VerificationOptions.getTrustedCertificate",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("VerificationOptions.getTrustedCertificate",{self:this.id,index:index}).then(function(id){return createDestroyableObj(PDFNet.X509Certificate,id)})};PDFNet.VerificationResult.prototype.getDigitalSignatureField= 1186function(){apiFunctionCheck("VerificationResult.getDigitalSignatureField");return PDFNet.sendWithPromise("VerificationResult.getDigitalSignatureField",{self:this.id}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};PDFNet.VerificationResult.prototype.getVerificationStatus=function(){apiFunctionCheck("VerificationResult.getVerificationStatus");
1186return PDFNet.sendWithPromise("VerificationResult.getVerificationStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getDocumentStatus= 1187function(){apiFunctionCheck("VerificationResult.getDocumentStatus");return PDFNet.sendWithPromise("VerificationResult.getDocumentStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getDigestStatus=function(){apiFunctionCheck("VerificationResult.getDigestStatus");return PDFNet.sendWithPromise("VerificationResult.getDigestStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getTrustStatus=function(){apiFunctionCheck("VerificationResult.getTrustStatus");return PDFNet.sendWithPromise("VerificationResult.getTrustStatus", 1188{self:this.id})};PDFNet.VerificationResult.prototype.getPermissionsStatus=function(){apiFunctionCheck("VerificationResult.getPermissionsStatus");return PDFNet.sendWithPromise("VerificationResult.getPermissionsStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getTrustVerificationResult=function(){apiFunctionCheck("VerificationResult.getTrustVerificationResult");return PDFNet.sendWithPromise("VerificationResult.getTrustVerificationResult",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.TrustVerificationResult, 1189id)})};PDFNet.VerificationResult.prototype.hasTrustVerificationResult=function(){apiFunctionCheck("VerificationResult.hasTrustVerificationResult");return PDFNet.sendWithPromise("VerificationResult.hasTrustVerificationResult",{self:this.id})};PDFNet.VerificationResult.prototype.getDisallowedChanges=function(){apiFunctionCheck("VerificationResult.getDisallowedChanges");return PDFNet.sendWithPromise("VerificationResult.getDisallowedChanges",{self:this.id}).then(function(idArray){return idArray.map(function(id){return createDestroyableObj(PDFNet.DisallowedChange, 1190id)})})};PDFNet.VerificationResult.prototype.getDigestAlgorithm=function(){apiFunctionCheck("VerificationResult.getDigestAlgorithm");return PDFNet.sendWithPromise("VerificationResult.getDigestAlgorithm",{self:this.id})};PDFNet.VerificationResult.prototype.getDocumentStatusAsString=function(){apiFunctionCheck("VerificationResult.getDocumentStatusAsString");return PDFNet.sendWithPromise("VerificationResult.getDocumentStatusAsString",{self:this.id})};PDFNet.VerificationResult.prototype.getDigestStatusAsString= 1191function(){apiFunctionCheck("VerificationResult.getDigestStatusAsString");return PDFNet.sendWithPromise("VerificationResult.getDigestStatusAsString",{self:this.id})};PDFNet.VerificationResult.prototype.getTrustStatusAsString=function(){apiFunctionCheck("VerificationResult.getTrustStatusAsString");return PDFNet.sendWithPromise("VerificationResult.getTrustStatusAsString",{self:this.id})};PDFNet.VerificationResult.prototype.getPermissionsStatusAsString=function(){apiFunctionCheck("VerificationResult.getPermissionsStatusAsString"); 1192return PDFNet.sendWithPromise("VerificationResult.getPermissionsStatusAsString",{self:this.id})};PDFNet.VerificationResult.prototype.getUnsupportedFeatures=function(){apiFunctionCheck("VerificationResult.getUnsupportedFeatures");return PDFNet.sendWithPromise("VerificationResult.getUnsupportedFeatures",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getVerificationStatus=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getVerificationStatus");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getVerificationStatus", 1193{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getCMSDigestStatus=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getCMSDigestStatus");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getCMSDigestStatus",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getMessageImprintDigestStatus=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getMessageImprintDigestStatus");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getMessageImprintDigestStatus", 1194{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getTrustStatus=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getTrustStatus");
1194return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getTrustStatus",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getCMSDigestStatusAsString=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getCMSDigestStatusAsString");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getCMSDigestStatusAsString", 1195{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getMessageImprintDigestStatusAsString=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getMessageImprintDigestStatusAsString");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getMessageImprintDigestStatusAsString",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getTrustStatusAsString=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getTrustStatusAsString"); 1196return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getTrustStatusAsString",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.hasTrustVerificationResult=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.hasTrustVerificationResult");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.hasTrustVerificationResult",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getTrustVerificationResult=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getTrustVerificationResult"); 1197return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getTrustVerificationResult",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.TrustVerificationResult,id)})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getCMSSignatureDigestAlgorithm=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getCMSSignatureDigestAlgorithm");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getCMSSignatureDigestAlgorithm",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getMessageImprintDigestAlgorithm= 1198function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getMessageImprintDigestAlgorithm");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getMessageImprintDigestAlgorithm",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getUnsupportedFeatures=function(){apiFunctionCheck("EmbeddedTimestampVerificationResult.getUnsupportedFeatures");return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getUnsupportedFeatures",{self:this.id})};PDFNet.TrustVerificationResult.prototype.wasSuccessful= 1199function(){apiFunctionCheck("TrustVerificationResult.wasSuccessful");return PDFNet.sendWithPromise("TrustVerificationResult.wasSuccessful",{self:this.id})};PDFNet.TrustVerificationResult.prototype.getResultString=function(){apiFunctionCheck("TrustVerificationResult.getResultString");return PDFNet.sendWithPromise("TrustVerificationResult.getResultString",{self:this.id})};PDFNet.TrustVerificationResult.prototype.getTimeOfTrustVerification=function(){apiFunctionCheck("TrustVerificationResult.getTimeOfTrustVerification"); 1200return PDFNet.sendWithPromise("TrustVerificationResult.getTimeOfTrustVerification",{self:this.id})};PDFNet.TrustVerificationResult.prototype.getTimeOfTrustVerificationEnum=function(){apiFunctionCheck("TrustVerificationResult.getTimeOfTrustVerificationEnum");return PDFNet.sendWithPromise("TrustVerificationResult.getTimeOfTrustVerificationEnum",{self:this.id})};PDFNet.TrustVerificationResult.prototype.hasEmbeddedTimestampVerificationResult=function(){apiFunctionCheck("TrustVerificationResult.hasEmbeddedTimestampVerificationResult"); 1201return PDFNet.sendWithPromise("TrustVerificationResult.hasEmbeddedTimestampVerificationResult",{self:this.id})};PDFNet.TrustVerificationResult.prototype.getEmbeddedTimestampVerificationResult=function(){apiFunctionCheck("TrustVerificationResult.getEmbeddedTimestampVerificationResult");return PDFNet.sendWithPromise("TrustVerificationResult.getEmbeddedTimestampVerificationResult",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.EmbeddedTimestampVerificationResult,id)})};PDFNet.TrustVerificationResult.prototype.getCertPath= 1202function(){apiFunctionCheck("TrustVerificationResult.getCertPath");
1202return PDFNet.sendWithPromise("TrustVerificationResult.getCertPath",{self:this.id}).then(function(idArray){return idArray.map(function(id){return createDestroyableObj(PDFNet.X509Certificate,id)})})};PDFNet.DisallowedChange.prototype.getObjNum=function(){apiFunctionCheck("DisallowedChange.getObjNum");return PDFNet.sendWithPromise("DisallowedChange.getObjNum",{self:this.id})};PDFNet.DisallowedChange.prototype.getType=function(){apiFunctionCheck("DisallowedChange.getType"); 1203return PDFNet.sendWithPromise("DisallowedChange.getType",{self:this.id})};PDFNet.DisallowedChange.prototype.getTypeAsString=function(){apiFunctionCheck("DisallowedChange.getTypeAsString");return PDFNet.sendWithPromise("DisallowedChange.getTypeAsString",{self:this.id})};PDFNet.X509Extension.prototype.isCritical=function(){apiFunctionCheck("X509Extension.isCritical");return PDFNet.sendWithPromise("X509Extension.isCritical",{self:this.id})};PDFNet.X509Extension.prototype.getObjectIdentifier=function(){apiFunctionCheck("X509Extension.getObjectIdentifier"); 1204return PDFNet.sendWithPromise("X509Extension.getObjectIdentifier",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.X509Extension.prototype.toString=function(){apiFunctionCheck("X509Extension.toString");return PDFNet.sendWithPromise("X509Extension.toString",{self:this.id})};PDFNet.X509Extension.prototype.getData=function(){apiFunctionCheck("X509Extension.getData");return PDFNet.sendWithPromise("X509Extension.getData",{self:this.id}).then(function(id){return new Uint8Array(id)})}; 1205PDFNet.X501AttributeTypeAndValue.prototype.getAttributeTypeOID=function(){apiFunctionCheck("X501AttributeTypeAndValue.getAttributeTypeOID");return PDFNet.sendWithPromise("X501AttributeTypeAndValue.getAttributeTypeOID",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.X501AttributeTypeAndValue.prototype.getStringValue=function(){apiFunctionCheck("X501AttributeTypeAndValue.getStringValue");return PDFNet.sendWithPromise("X501AttributeTypeAndValue.getStringValue", 1206{self:this.id})};PDFNet.ByteRange.prototype.getStartOffset=function(){apiFunctionCheck("ByteRange.getStartOffset",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ByteRange.getStartOffset",{self:this})};PDFNet.ByteRange.prototype.getEndOffset=function(){apiFunctionCheck("ByteRange.getEndOffset",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ByteRange.getEndOffset",{self:this})}; 1207PDFNet.ByteRange.prototype.getSize=function(){apiFunctionCheck("ByteRange.getSize",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});return PDFNet.sendWithPromise("ByteRange.getSize",{self:this})};PDFNet.TimestampingResult.prototype.getStatus=function(){apiFunctionCheck("TimestampingResult.getStatus");return PDFNet.sendWithPromise("TimestampingResult.getStatus",{self:this.id})};PDFNet.TimestampingResult.prototype.getString=function(){apiFunctionCheck("TimestampingResult.getString"); 1208return PDFNet.sendWithPromise("TimestampingResult.getString",{self:this.id})};PDFNet.TimestampingResult.prototype.hasResponseVerificationResult=function(){apiFunctionCheck("TimestampingResult.hasResponseVerificationResult");return PDFNet.sendWithPromise("TimestampingResult.hasResponseVerificationResult",{self:this.id})};PDFNet.TimestampingResult.prototype.getResponseVerificationResult=function(){apiFunctionCheck("TimestampingResult.getResponseVerificationResult");return PDFNet.sendWithPromise("TimestampingResult.getResponseVerificationResult", 1209{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.EmbeddedTimestampVerificationResult,id)})};PDFNet.TimestampingResult.prototype.getData=function(){apiFunctionCheck("TimestampingResult.getData");return PDFNet.sendWithPromise("TimestampingResult.getData",{self:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.ActionParameter.create=function(action){apiFunctionCheck("ActionParameter.create",arguments.length,1,"(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);
1210return PDFNet.sendWithPromise("actionParameterCreate",{action:action.id}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter,id)})};PDFNet.Action.prototype.parameterCreateWithField=function(field){apiFunctionCheck("Action.parameterCreateWithField",arguments.length,1,"(PDFNet.Field)",[[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[field,0]]);return PDFNet.sendWithPromise("Action.parameterCreateWithField",{action:this.id,field:field}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter, 1211id)})};PDFNet.Action.prototype.parameterCreateWithAnnot=function(annot){apiFunctionCheck("Action.parameterCreateWithAnnot",arguments.length,1,"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Action.parameterCreateWithAnnot",{action:this.id,annot:annot.id}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter,id)})};PDFNet.Action.prototype.parameterCreateWithPage=function(page){apiFunctionCheck("Action.parameterCreateWithPage",arguments.length, 12121,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Action.parameterCreateWithPage",{action:this.id,page:page.id}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter,id)})};PDFNet.ActionParameter.prototype.getAction=function(){apiFunctionCheck("ActionParameter.getAction");return PDFNet.sendWithPromise("ActionParameter.getAction",{ap:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.ViewChangeCollection.create=function(){apiFunctionCheck("ViewChangeCollection.create"); 1213return PDFNet.sendWithPromise("viewChangeCollectionCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ViewChangeCollection,id)})};PDFNet.RadioButtonGroup.createFromField=function(field){apiFunctionCheck("RadioButtonGroup.createFromField",arguments.length,1,"(PDFNet.Field)",[[field,"Structure",PDFNet.Field,"Field"]],{checkThisYield:!1},[[field,0]]);return PDFNet.sendWithPromise("radioButtonGroupCreateFromField",{field:field}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup, 1214id)})};PDFNet.RadioButtonGroup.create=function(doc,field_name){"undefined"===typeof field_name&&(field_name="");apiFunctionCheck("RadioButtonGroup.create",arguments.length,1,"(PDFNet.PDFDoc, string)",[[doc,"PDFDoc"],[field_name,"string"]]);return PDFNet.sendWithPromise("radioButtonGroupCreate",{doc:doc.id,field_name:field_name}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup,id)})};PDFNet.RadioButtonGroup.prototype.copy=function(){apiFunctionCheck("RadioButtonGroup.copy");return PDFNet.sendWithPromise("RadioButtonGroup.copy", 1215{group:this.id}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup,id)})};PDFNet.RadioButtonGroup.prototype.add=function(pos,onstate){"undefined"===typeof onstate&&(onstate="");apiFunctionCheck("RadioButtonGroup.add",arguments.length,1,"(PDFNet.Rect, string)",[[pos,"Structure",PDFNet.Rect,"Rect"],[onstate,"const char* = 0"]],{checkThisYield:!1},[[pos,0]]);return PDFNet.sendWithPromise("RadioButtonGroup.add",{group:this.id,pos:pos,onstate:onstate}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget, 1216id)})};PDFNet.RadioButtonGroup.prototype.getNumButtons=function(){apiFunctionCheck("RadioButtonGroup.getNumButtons");return PDFNet.sendWithPromise("RadioButtonGroup.getNumButtons",{group:this.id})};PDFNet.RadioButtonGroup.prototype.getButton=function(index){apiFunctionCheck("RadioButtonGroup.getButton",arguments.length,1,"(number)",[[index,"number"]]);return PDFNet.sendWithPromise("RadioButtonGroup.getButton",{group:this.id,index:index}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget, 1217id)})};PDFNet.RadioButtonGroup.prototype.getField=function(){apiFunctionCheck("RadioButtonGroup.getField");return PDFNet.sendWithPromise("RadioButtonGroup.getField",{group:this.id}).then(function(id){return new PDFNet.Field(id)})};PDFNet.RadioButtonGroup.prototype.addGroupButtonsToPage=function(page){apiFunctionCheck("RadioButtonGroup.addGroupButtonsToPage",arguments.length,1,"(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);
1217return PDFNet.sendWithPromise("RadioButtonGroup.addGroupButtonsToPage", 1218{group:this.id,page:page.id})};PDFNet.PDFTronCustomSecurityHandler.create=function(custom_id){apiFunctionCheck("PDFTronCustomSecurityHandler.create",arguments.length,1,"(number)",[[custom_id,"number"]]);return PDFNet.sendWithPromise("pdfTronCustomSecurityHandlerCreate",{custom_id:custom_id}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,id)})};PDFNet.WebFontDownloader.isAvailable=function(){apiFunctionCheck("WebFontDownloader.isAvailable");return PDFNet.sendWithPromise("webFontDownloaderIsAvailable", 1219{})};PDFNet.WebFontDownloader.enableDownloads=function(){apiFunctionCheck("WebFontDownloader.enableDownloads");return PDFNet.sendWithPromise("webFontDownloaderEnableDownloads",{})};PDFNet.WebFontDownloader.disableDownloads=function(){apiFunctionCheck("WebFontDownloader.disableDownloads");return PDFNet.sendWithPromise("webFontDownloaderDisableDownloads",{})};PDFNet.WebFontDownloader.preCacheAsync=function(){apiFunctionCheck("WebFontDownloader.preCacheAsync");return PDFNet.sendWithPromise("webFontDownloaderPreCacheAsync", 1220{})};PDFNet.WebFontDownloader.clearCache=function(){apiFunctionCheck("WebFontDownloader.clearCache");return PDFNet.sendWithPromise("webFontDownloaderClearCache",{})};PDFNet.WebFontDownloader.setCustomWebFontURL=function(url){apiFunctionCheck("WebFontDownloader.setCustomWebFontURL",arguments.length,1,"(string)",[[url,"string"]]);return PDFNet.sendWithPromise("webFontDownloaderSetCustomWebFontURL",{url:url})};PDFNet.WebFontDownloader.selectWebFont=function(font_req_string,charset){apiFunctionCheck("WebFontDownloader.selectWebFont",
1221arguments.length,2,"(string, string)",[[font_req_string,"string"],[charset,"string"]]);return PDFNet.sendWithPromise("webFontDownloaderSelectWebFont",{font_req_string:font_req_string,charset:charset})};PDFNet.FlowDocument.create=function(){apiFunctionCheck("FlowDocument.create");return PDFNet.sendWithPromise("flowDocumentCreate",{}).then(function(id){return createDestroyableObj(PDFNet.FlowDocument,id)})};PDFNet.FlowDocument.prototype.setDefaultPageSize=function(width,height){apiFunctionCheck("FlowDocument.setDefaultPageSize", 1222arguments.length,2,"(number, number)",[[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("FlowDocument.setDefaultPageSize",{self:this.id,width:width,height:height})};PDFNet.FlowDocument.prototype.setDefaultMargins=function(left,top,right,bottom){apiFunctionCheck("FlowDocument.setDefaultMargins",arguments.length,4,"(number, number, number, number)",[[left,"number"],[top,"number"],[right,"number"],[bottom,"number"]]);return PDFNet.sendWithPromise("FlowDocument.setDefaultMargins",{self:this.id, 1223left:left,top:top,right:right,bottom:bottom})};PDFNet.FlowDocument.prototype.addParagraph=function(){apiFunctionCheck("FlowDocument.addParagraph");return PDFNet.sendWithPromise("FlowDocument.addParagraph",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.Paragraph,id)})};PDFNet.FlowDocument.prototype.addParagraphWithText=function(text){apiFunctionCheck("FlowDocument.addParagraphWithText",arguments.length,1,"(string)",[[text,"string"]]);return PDFNet.sendWithPromise("FlowDocument.addParagraphWithText", 1224{self:this.id,text:text}).then(function(id){return createPDFNetObj(PDFNet.Paragraph,id)})};PDFNet.FlowDocument.prototype.addList=function(){apiFunctionCheck("FlowDocument.addList");return PDFNet.sendWithPromise("FlowDocument.addList",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.List,id)})};PDFNet.FlowDocument.prototype.addTable=function(){apiFunctionCheck("FlowDocument.addTable");return PDFNet.sendWithPromise("FlowDocument.addTable",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.Table, 1225id)})};PDFNet.FlowDocument.prototype.getBody=function(){apiFunctionCheck("FlowDocument.getBody");return PDFNet.sendWithPromise("FlowDocument.getBody",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.ContentNode,id)})};PDFNet.FlowDocument.prototype.paginateToPDF=function(){apiFunctionCheck("FlowDocument.paginateToPDF");return PDFNet.sendWithPromise("FlowDocument.paginateToPDF",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.ContentElement.prototype.asTextRun= 1226function(){apiFunctionCheck("ContentElement.asTextRun");return PDFNet.sendWithPromise("ContentElement.asTextRun",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TextRun,id)})};PDFNet.ContentElement.prototype.asContentNode=function(){apiFunctionCheck("ContentElement.asContentNode");return PDFNet.sendWithPromise("ContentElement.asContentNode",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.ContentNode,id)})};PDFNet.ContentElement.prototype.asParagraph=function(){apiFunctionCheck("ContentElement.asParagraph"); 1227return PDFNet.sendWithPromise("ContentElement.asParagraph",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.Paragraph,id)})};PDFNet.ContentElement.prototype.asTable=function(){apiFunctionCheck("ContentElement.asTable");return PDFNet.sendWithPromise("ContentElement.asTable",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.Table,id)})};PDFNet.ContentElement.prototype.asTableRow=function(){apiFunctionCheck("ContentElement.asTableRow");return PDFNet.sendWithPromise("ContentElement.asTableRow", 1228{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TableRow,id)})};PDFNet.ContentElement.prototype.asTableCell=function(){apiFunctionCheck("ContentElement.asTableCell");return PDFNet.sendWithPromise("ContentElement.asTableCell",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TableCell,id)})};PDFNet.ContentElement.prototype.asList=function(){apiFunctionCheck("ContentElement.asList");
1228return PDFNet.sendWithPromise("ContentElement.asList",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.List, 1229id)})};PDFNet.ContentElement.prototype.asListItem=function(){apiFunctionCheck("ContentElement.asListItem");return PDFNet.sendWithPromise("ContentElement.asListItem",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.ListItem,id)})};PDFNet.ContentElement.prototype.getTextStyledElement=function(){apiFunctionCheck("ContentElement.getTextStyledElement");return PDFNet.sendWithPromise("ContentElement.getTextStyledElement",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TextStyledElement, 1230id)})};PDFNet.ContentNode.prototype.getContentNodeIterator=function(){apiFunctionCheck("ContentNode.getContentNodeIterator");return PDFNet.sendWithPromise("ContentNode.getContentNodeIterator",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"ContentElement")})};PDFNet.Paragraph.prototype.addText=function(text){apiFunctionCheck("Paragraph.addText",arguments.length,1,"(string)",[[text,"string"]]);return PDFNet.sendWithPromise("Paragraph.addText",{self:this.id,text:text}).then(function(id){return createPDFNetObj(PDFNet.TextRun, 1231id)})};PDFNet.Paragraph.prototype.setSpaceBefore=function(val){apiFunctionCheck("Paragraph.setSpaceBefore",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setSpaceBefore",{self:this.id,val:val})};PDFNet.Paragraph.prototype.getSpaceBefore=function(){apiFunctionCheck("Paragraph.getSpaceBefore");return PDFNet.sendWithPromise("Paragraph.getSpaceBefore",{self:this.id})};PDFNet.Paragraph.prototype.setSpaceAfter=function(val){apiFunctionCheck("Paragraph.setSpaceAfter", 1232arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setSpaceAfter",{self:this.id,val:val})};PDFNet.Paragraph.prototype.getSpaceAfter=function(){apiFunctionCheck("Paragraph.getSpaceAfter");return PDFNet.sendWithPromise("Paragraph.getSpaceAfter",{self:this.id})};PDFNet.Paragraph.prototype.setJustificationMode=function(val){apiFunctionCheck("Paragraph.setJustificationMode",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setJustificationMode", 1233{self:this.id,val:val})};PDFNet.Paragraph.prototype.getJustificationMode=function(){apiFunctionCheck("Paragraph.getJustificationMode");return PDFNet.sendWithPromise("Paragraph.getJustificationMode",{self:this.id})};PDFNet.Paragraph.prototype.setStartIndent=function(val){apiFunctionCheck("Paragraph.setStartIndent",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setStartIndent",{self:this.id,val:val})};PDFNet.Paragraph.prototype.getStartIndent=function(){apiFunctionCheck("Paragraph.getStartIndent"); 1234return PDFNet.sendWithPromise("Paragraph.getStartIndent",{self:this.id})};PDFNet.Paragraph.prototype.setEndIndent=function(val){apiFunctionCheck("Paragraph.setEndIndent",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setEndIndent",{self:this.id,val:val})};PDFNet.Paragraph.prototype.getEndIndent=function(){apiFunctionCheck("Paragraph.getEndIndent");return PDFNet.sendWithPromise("Paragraph.getEndIndent",{self:this.id})};PDFNet.Paragraph.prototype.setTextIndent= 1235function(val){apiFunctionCheck("Paragraph.setTextIndent",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setTextIndent",{self:this.id,val:val})};PDFNet.Paragraph.prototype.getTextIndent=function(){apiFunctionCheck("Paragraph.getTextIndent");return PDFNet.sendWithPromise("Paragraph.getTextIndent",{self:this.id})};PDFNet.Paragraph.prototype.setBorder=function(thickness,red,green,blue){apiFunctionCheck("Paragraph.setBorder",arguments.length,4,"(number, number, number, number)", 1236[[thickness,"number"],[red,"number"],[green,"number"],[blue,"number"]]);return PDFNet.sendWithPromise("Paragraph.setBorder",{self:this.id,thickness:thickness,red:red,green:green,blue:blue})};PDFNet.Paragraph.prototype.getBorderThickness=function(){apiFunctionCheck("Paragraph.getBorderThickness");
1236return PDFNet.sendWithPromise("Paragraph.getBorderThickness",{self:this.id})};PDFNet.Paragraph.prototype.addTabStop=function(val){apiFunctionCheck("Paragraph.addTabStop",arguments.length,1,"(number)",[[val, 1237"number"]]);return PDFNet.sendWithPromise("Paragraph.addTabStop",{self:this.id,val:val})};PDFNet.Paragraph.prototype.getNextTabStop=function(val){apiFunctionCheck("Paragraph.getNextTabStop",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.getNextTabStop",{self:this.id,val:val})};PDFNet.Paragraph.prototype.setDefaultTabStop=function(val){apiFunctionCheck("Paragraph.setDefaultTabStop",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setDefaultTabStop", 1238{self:this.id,val:val})};PDFNet.Paragraph.prototype.getDefaultTabStop=function(){apiFunctionCheck("Paragraph.getDefaultTabStop");return PDFNet.sendWithPromise("Paragraph.getDefaultTabStop",{self:this.id})};PDFNet.Paragraph.prototype.setSpacesPerTab=function(val){apiFunctionCheck("Paragraph.setSpacesPerTab",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Paragraph.setSpacesPerTab",{self:this.id,val:val})};PDFNet.Paragraph.prototype.getSpacesPerTab=function(){apiFunctionCheck("Paragraph.getSpacesPerTab"); 1239return PDFNet.sendWithPromise("Paragraph.getSpacesPerTab",{self:this.id})};PDFNet.Paragraph.prototype.setDisplayRtl=function(val){apiFunctionCheck("Paragraph.setDisplayRtl",arguments.length,1,"(boolean)",[[val,"boolean"]]);return PDFNet.sendWithPromise("Paragraph.setDisplayRtl",{self:this.id,val:val})};PDFNet.Paragraph.prototype.isDisplayRtl=function(){apiFunctionCheck("Paragraph.isDisplayRtl");return PDFNet.sendWithPromise("Paragraph.isDisplayRtl",{self:this.id})};PDFNet.Table.prototype.addTableRow= 1240function(){apiFunctionCheck("Table.addTableRow");return PDFNet.sendWithPromise("Table.addTableRow",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TableRow,id)})};PDFNet.Table.prototype.getTableCell=function(column,row){apiFunctionCheck("Table.getTableCell",arguments.length,2,"(number, number)",[[column,"number"],[row,"number"]]);return PDFNet.sendWithPromise("Table.getTableCell",{self:this.id,column:column,row:row}).then(function(id){return createPDFNetObj(PDFNet.TableCell,id)})}; 1241PDFNet.Table.prototype.setDefaultColumnWidth=function(val){apiFunctionCheck("Table.setDefaultColumnWidth",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Table.setDefaultColumnWidth",{self:this.id,val:val})};PDFNet.Table.prototype.getDefaultRowHeight=function(){apiFunctionCheck("Table.getDefaultRowHeight");return PDFNet.sendWithPromise("Table.getDefaultRowHeight",{self:this.id})};PDFNet.Table.prototype.setDefaultRowHeight=function(val){apiFunctionCheck("Table.setDefaultRowHeight", 1242arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("Table.setDefaultRowHeight",{self:this.id,val:val})};PDFNet.Table.prototype.getNumRows=function(){apiFunctionCheck("Table.getNumRows");return PDFNet.sendWithPromise("Table.getNumRows",{self:this.id})};PDFNet.Table.prototype.getNumColumns=function(){apiFunctionCheck("Table.getNumColumns");return PDFNet.sendWithPromise("Table.getNumColumns",{self:this.id})};PDFNet.Table.prototype.setBorder=function(thickness,red,green,blue){apiFunctionCheck("Table.setBorder", 1243arguments.length,4,"(number, number, number, number)",[[thickness,"number"],[red,"number"],[green,"number"],[blue,"number"]]);return PDFNet.sendWithPromise("Table.setBorder",{self:this.id,thickness:thickness,red:red,green:green,blue:blue})};PDFNet.Table.prototype.getBorderThickness=function(){apiFunctionCheck("Table.getBorderThickness");return PDFNet.sendWithPromise("Table.getBorderThickness",{self:this.id})};PDFNet.TableCell.prototype.addParagraph=function(){apiFunctionCheck("TableCell.addParagraph"); 1244return PDFNet.sendWithPromise("TableCell.addParagraph",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.Paragraph,id)})};PDFNet.TableCell.prototype.addParagraphWithText=function(text){apiFunctionCheck("TableCell.addParagraphWithText",arguments.length,1,"(string)",[[text,"string"]]
1244);return PDFNet.sendWithPromise("TableCell.addParagraphWithText",{self:this.id,text:text}).then(function(id){return createPDFNetObj(PDFNet.Paragraph,id)})};PDFNet.TableCell.prototype.addTable=function(){apiFunctionCheck("TableCell.addTable"); 1245return PDFNet.sendWithPromise("TableCell.addTable",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.Table,id)})};PDFNet.TableCell.prototype.mergeCellsRight=function(num){apiFunctionCheck("TableCell.mergeCellsRight",arguments.length,1,"(number)",[[num,"number"]]);return PDFNet.sendWithPromise("TableCell.mergeCellsRight",{self:this.id,num:num}).then(function(id){return createPDFNetObj(PDFNet.TableCell,id)})};PDFNet.TableCell.prototype.mergeCellsDown=function(num){apiFunctionCheck("TableCell.mergeCellsDown", 1246arguments.length,1,"(number)",[[num,"number"]]);return PDFNet.sendWithPromise("TableCell.mergeCellsDown",{self:this.id,num:num}).then(function(id){return createPDFNetObj(PDFNet.TableCell,id)})};PDFNet.TableCell.prototype.setBackgroundColor=function(red,green,blue){apiFunctionCheck("TableCell.setBackgroundColor",arguments.length,3,"(number, number, number)",[[red,"number"],[green,"number"],[blue,"number"]]);return PDFNet.sendWithPromise("TableCell.setBackgroundColor",{self:this.id,red:red,green:green, 1247blue:blue})};PDFNet.TableCell.prototype.setBorder=function(thickness,red,green,blue){apiFunctionCheck("TableCell.setBorder",arguments.length,4,"(number, number, number, number)",[[thickness,"number"],[red,"number"],[green,"number"],[blue,"number"]]);return PDFNet.sendWithPromise("TableCell.setBorder",{self:this.id,thickness:thickness,red:red,green:green,blue:blue})};PDFNet.TableCell.prototype.getBorderThickness=function(){apiFunctionCheck("TableCell.getBorderThickness");return PDFNet.sendWithPromise("TableCell.getBorderThickness", 1248{self:this.id})};PDFNet.TableCell.prototype.setVerticalAlignment=function(val){apiFunctionCheck("TableCell.setVerticalAlignment",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("TableCell.setVerticalAlignment",{self:this.id,val:val})};PDFNet.TableCell.prototype.getVerticalAlignment=function(){apiFunctionCheck("TableCell.getVerticalAlignment");return PDFNet.sendWithPromise("TableCell.getVerticalAlignment",{self:this.id})};PDFNet.TableCell.prototype.setHorizontalAlignment= 1249function(val){apiFunctionCheck("TableCell.setHorizontalAlignment",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("TableCell.setHorizontalAlignment",{self:this.id,val:val})};PDFNet.TableCell.prototype.getHorizontalAlignment=function(){apiFunctionCheck("TableCell.getHorizontalAlignment");return PDFNet.sendWithPromise("TableCell.getHorizontalAlignment",{self:this.id})};PDFNet.TableCell.prototype.setHeight=function(val){apiFunctionCheck("TableCell.setHeight",arguments.length, 12501,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("TableCell.setHeight",{self:this.id,val:val})};PDFNet.TableCell.prototype.getHeight=function(){apiFunctionCheck("TableCell.getHeight");return PDFNet.sendWithPromise("TableCell.getHeight",{self:this.id})};PDFNet.TableCell.prototype.setWidth=function(val){apiFunctionCheck("TableCell.setWidth",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("TableCell.setWidth",{self:this.id,val:val})};PDFNet.TableCell.prototype.getWidth= 1251function(){apiFunctionCheck("TableCell.getWidth");return PDFNet.sendWithPromise("TableCell.getWidth",{self:this.id})};PDFNet.TableRow.prototype.addTableCell=function(){apiFunctionCheck("TableRow.addTableCell");return PDFNet.sendWithPromise("TableRow.addTableCell",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TableCell,id)})};PDFNet.TableRow.prototype.setRowHeight=function(val){apiFunctionCheck("TableRow.setRowHeight",arguments.length,1,"(number)",[[val,"number"]]);return PDFNet.sendWithPromise("TableRow.setRowHeight", 1252{self:this.id,val:val})};PDFNet.TableRow.prototype.getNumColumns=function(){apiFunctionCheck("TableRow.getNumColumns");return PDFNet.sendWithPromise("TableRow.getNumColumns",{self:this.id})};PDFNet.TextRun.prototype.setText=function(text){apiFunctionCheck("TextRun.setText",arguments.length,1,"(string)",[[text,"string"]]
1252);return PDFNet.sendWithPromise("TextRun.setText",{self:this.id,text:text})};PDFNet.TextRun.prototype.getText=function(){apiFunctionCheck("TextRun.getText");return PDFNet.sendWithPromise("TextRun.getText", 1253{self:this.id})};PDFNet.TextStyledElement.prototype.setFontFace=function(font_name){apiFunctionCheck("TextStyledElement.setFontFace",arguments.length,1,"(string)",[[font_name,"string"]]);return PDFNet.sendWithPromise("TextStyledElement.setFontFace",{impl:this.id,font_name:font_name})};PDFNet.TextStyledElement.prototype.getFontFace=function(){apiFunctionCheck("TextStyledElement.getFontFace");return PDFNet.sendWithPromise("TextStyledElement.getFontFace",{impl:this.id})};PDFNet.TextStyledElement.prototype.setFontSize= 1254function(font_size){apiFunctionCheck("TextStyledElement.setFontSize",arguments.length,1,"(number)",[[font_size,"number"]]);return PDFNet.sendWithPromise("TextStyledElement.setFontSize",{impl:this.id,font_size:font_size})};PDFNet.TextStyledElement.prototype.getFontSize=function(){apiFunctionCheck("TextStyledElement.getFontSize");return PDFNet.sendWithPromise("TextStyledElement.getFontSize",{impl:this.id})};PDFNet.TextStyledElement.prototype.setItalic=function(val){apiFunctionCheck("TextStyledElement.setItalic", 1255arguments.length,1,"(boolean)",[[val,"boolean"]]);return PDFNet.sendWithPromise("TextStyledElement.setItalic",{impl:this.id,val:val})};PDFNet.TextStyledElement.prototype.isItalic=function(){apiFunctionCheck("TextStyledElement.isItalic");return PDFNet.sendWithPromise("TextStyledElement.isItalic",{impl:this.id})};PDFNet.TextStyledElement.prototype.setBold=function(val){apiFunctionCheck("TextStyledElement.setBold",arguments.length,1,"(boolean)",[[val,"boolean"]]);return PDFNet.sendWithPromise("TextStyledElement.setBold", 1256{impl:this.id,val:val})};PDFNet.TextStyledElement.prototype.isBold=function(){apiFunctionCheck("TextStyledElement.isBold");return PDFNet.sendWithPromise("TextStyledElement.isBold",{impl:this.id})};PDFNet.TextStyledElement.prototype.setTextColor=function(red,green,blue){apiFunctionCheck("TextStyledElement.setTextColor",arguments.length,3,"(number, number, number)",[[red,"number"],[green,"number"],[blue,"number"]]);return PDFNet.sendWithPromise("TextStyledElement.setTextColor",{impl:this.id,red:red, 1257green:green,blue:blue})};PDFNet.TextStyledElement.prototype.setBackgroundColor=function(red,green,blue){apiFunctionCheck("TextStyledElement.setBackgroundColor",arguments.length,3,"(number, number, number)",[[red,"number"],[green,"number"],[blue,"number"]]);return PDFNet.sendWithPromise("TextStyledElement.setBackgroundColor",{impl:this.id,red:red,green:green,blue:blue})};PDFNet.List.prototype.asContentElement=function(){apiFunctionCheck("List.asContentElement");return PDFNet.sendWithPromise("List.asContentElement", 1258{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.ContentElement,id)})};PDFNet.List.prototype.setNumberFormat=function(format,suffix,cascade){apiFunctionCheck("List.setNumberFormat",arguments.length,3,"(number, string, boolean)",[[format,"number"],[suffix,"string"],[cascade,"boolean"]]);return PDFNet.sendWithPromise("List.setNumberFormat",{self:this.id,format:format,suffix:suffix,cascade:cascade})};PDFNet.List.prototype.setStartIndex=function(idx){apiFunctionCheck("List.setStartIndex", 1259arguments.length,1,"(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("List.setStartIndex",{self:this.id,idx:idx})};PDFNet.List.prototype.addItem=function(){apiFunctionCheck("List.addItem");return PDFNet.sendWithPromise("List.addItem",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.ListItem,id)})};PDFNet.List.prototype.getIndentationLevel=function(){apiFunctionCheck("List.getIndentationLevel");return PDFNet.sendWithPromise("List.getIndentationLevel",{self:this.id})};PDFNet.List.prototype.getListIdentifier= 1260function(){apiFunctionCheck("List.getListIdentifier");return PDFNet.sendWithPromise("List.getListIdentifier",{self:this.id})};PDFNet.List.prototype.continueList=function(){apiFunctionCheck("List.continueList");return PDFNet.sendWithPromise("List.continueList",{self:this.id})};PDFNet.List.prototype.getContentNodeIterator=function(){apiFunctionCheck("List.getContentNodeIterator");
1260return PDFNet.sendWithPromise("List.getContentNodeIterator",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator, 1261id,"ContentElement")})};PDFNet.List.prototype.getTextStyledElement=function(){apiFunctionCheck("List.getTextStyledElement");return PDFNet.sendWithPromise("List.getTextStyledElement",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TextStyledElement,id)})};PDFNet.ListItem.prototype.asContentElement=function(){apiFunctionCheck("ListItem.asContentElement");return PDFNet.sendWithPromise("ListItem.asContentElement",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.ContentElement, 1262id)})};PDFNet.ListItem.prototype.addParagraph=function(){apiFunctionCheck("ListItem.addParagraph");return PDFNet.sendWithPromise("ListItem.addParagraph",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.Paragraph,id)})};PDFNet.ListItem.prototype.addParagraphWithText=function(text){apiFunctionCheck("ListItem.addParagraphWithText",arguments.length,1,"(string)",[[text,"string"]]);return PDFNet.sendWithPromise("ListItem.addParagraphWithText",{self:this.id,text:text}).then(function(id){return createPDFNetObj(PDFNet.Paragraph, 1263id)})};PDFNet.ListItem.prototype.addList=function(){apiFunctionCheck("ListItem.addList");return PDFNet.sendWithPromise("ListItem.addList",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.List,id)})};PDFNet.ListItem.prototype.getIndentationLevel=function(){apiFunctionCheck("ListItem.getIndentationLevel");return PDFNet.sendWithPromise("ListItem.getIndentationLevel",{self:this.id})};PDFNet.ListItem.prototype.getListIdentifier=function(){apiFunctionCheck("ListItem.getListIdentifier");return PDFNet.sendWithPromise("ListItem.getListIdentifier", 1264{self:this.id})};PDFNet.ListItem.prototype.getItemIndex=function(){apiFunctionCheck("ListItem.getItemIndex");return PDFNet.sendWithPromise("ListItem.getItemIndex",{self:this.id})};PDFNet.ListItem.prototype.getContentNodeIterator=function(){apiFunctionCheck("ListItem.getContentNodeIterator");return PDFNet.sendWithPromise("ListItem.getContentNodeIterator",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"ContentElement")})};PDFNet.ListItem.prototype.getTextStyledElement= 1265function(){apiFunctionCheck("ListItem.getTextStyledElement");return PDFNet.sendWithPromise("ListItem.getTextStyledElement",{self:this.id}).then(function(id){return createPDFNetObj(PDFNet.TextStyledElement,id)})};PDFNet.AlgorithmIdentifier.createFromPredefined=function(oid_type){apiFunctionCheck("AlgorithmIdentifier.createFromPredefined",arguments.length,1,"(number)",[[oid_type,"number"]]);return PDFNet.sendWithPromise("algorithmIdentifierCreateFromPredefined",{oid_type:oid_type}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier, 1266id)})};PDFNet.AlgorithmIdentifier.createFromObjectIdentifier=function(oid){apiFunctionCheck("AlgorithmIdentifier.createFromObjectIdentifier",arguments.length,1,"(PDFNet.ObjectIdentifier)",[[oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"]]);return PDFNet.sendWithPromise("algorithmIdentifierCreateFromObjectIdentifier",{oid:oid.id}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier,id)})};PDFNet.AlgorithmIdentifier.createFromDigestAlgorithm=function(digest_algorithm_type){apiFunctionCheck("AlgorithmIdentifier.createFromDigestAlgorithm", 1267arguments.length,1,"(number)",[[digest_algorithm_type,"number"]]);return PDFNet.sendWithPromise("algorithmIdentifierCreateFromDigestAlgorithm",{digest_algorithm_type:digest_algorithm_type}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier,id)})};PDFNet.AlgorithmIdentifier.createFromPredefinedAndParams=function(oid_type,params){apiFunctionCheck("AlgorithmIdentifier.createFromPredefinedAndParams",arguments.length,2,"(number, PDFNet.AlgorithmParams)",[[oid_type,"number"],[params, 1268"Object",PDFNet.AlgorithmParams,"AlgorithmParams"]]);return PDFNet.sendWithPromise("algorithmIdentifierCreateFromPredefinedAndParams",{oid_type:oid_type,params:params.id}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier,id)})};PDFNet.AlgorithmIdentifier.createFromObjectIdentifierAndParams=function(oid,params){apiFunctionCheck("AlgorithmIdentifier.createFromObjectIdentifierAndParams",arguments.length,2,"(PDFNet.ObjectIdentifier, PDFNet.AlgorithmParams)",[[oid,"Object",PDFNet.ObjectIdentifier, 1269"ObjectIdentifier"],[params,"Object",PDFNet.AlgorithmParams,"AlgorithmParams"]]);
1269return PDFNet.sendWithPromise("algorithmIdentifierCreateFromObjectIdentifierAndParams",{oid:oid.id,params:params.id}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier,id)})};PDFNet.AlgorithmIdentifier.createFromDigestAlgorithmAndParams=function(digest_algorithm_type,params){apiFunctionCheck("AlgorithmIdentifier.createFromDigestAlgorithmAndParams",arguments.length,2,"(number, PDFNet.AlgorithmParams)", 1270[[digest_algorithm_type,"number"],[params,"Object",PDFNet.AlgorithmParams,"AlgorithmParams"]]);return PDFNet.sendWithPromise("algorithmIdentifierCreateFromDigestAlgorithmAndParams",{digest_algorithm_type:digest_algorithm_type,params:params.id}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier,id)})};PDFNet.RSASSAPSSParams.create=function(){apiFunctionCheck("RSASSAPSSParams.create");return PDFNet.sendWithPromise("rsassapssParamsCreate",{}).then(function(id){return createPDFNetObj(PDFNet.RSASSAPSSParams, 1271id)})};PDFNet.RSASSAPSSParams.createFromAlgoIdAndSaltLen=function(digest_algorithm_id,salt_length){apiFunctionCheck("RSASSAPSSParams.createFromAlgoIdAndSaltLen",arguments.length,2,"(PDFNet.AlgorithmIdentifier, number)",[[digest_algorithm_id,"Object",PDFNet.AlgorithmIdentifier,"AlgorithmIdentifier"],[salt_length,"number"]]);return PDFNet.sendWithPromise("rsassapssParamsCreateFromAlgoIdAndSaltLen",{digest_algorithm_id:digest_algorithm_id.id,salt_length:salt_length}).then(function(id){return createPDFNetObj(PDFNet.RSASSAPSSParams, 1272id)})};PDFNet.RSASSAPSSParams.prototype.getDigestAlgorithm=function(){apiFunctionCheck("RSASSAPSSParams.getDigestAlgorithm");return PDFNet.sendWithPromise("RSASSAPSSParams.getDigestAlgorithm",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier,id)})};PDFNet.RSASSAPSSParams.prototype.setDigestAlgorithm=function(value){apiFunctionCheck("RSASSAPSSParams.setDigestAlgorithm",arguments.length,1,"(PDFNet.AlgorithmIdentifier)",[[value,"Object",PDFNet.AlgorithmIdentifier, 1273"AlgorithmIdentifier"]]);return PDFNet.sendWithPromise("RSASSAPSSParams.setDigestAlgorithm",{self:this.id,value:value.id})};PDFNet.RSASSAPSSParams.prototype.getMaskGenAlgorithm=function(){apiFunctionCheck("RSASSAPSSParams.getMaskGenAlgorithm");return PDFNet.sendWithPromise("RSASSAPSSParams.getMaskGenAlgorithm",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.AlgorithmIdentifier,id)})};PDFNet.RSASSAPSSParams.prototype.setMaskGenAlgorithm=function(value){apiFunctionCheck("RSASSAPSSParams.setMaskGenAlgorithm", 1274arguments.length,1,"(PDFNet.AlgorithmIdentifier)",[[value,"Object",PDFNet.AlgorithmIdentifier,"AlgorithmIdentifier"]]);return PDFNet.sendWithPromise("RSASSAPSSParams.setMaskGenAlgorithm",{self:this.id,value:value.id})};PDFNet.RSASSAPSSParams.prototype.getSaltLength=function(){apiFunctionCheck("RSASSAPSSParams.getSaltLength");return PDFNet.sendWithPromise("RSASSAPSSParams.getSaltLength",{self:this.id})};PDFNet.RSASSAPSSParams.prototype.setSaltLength=function(value){apiFunctionCheck("RSASSAPSSParams.setSaltLength", 1275arguments.length,1,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("RSASSAPSSParams.setSaltLength",{self:this.id,value:value})};PDFNet.RSASSAPSSParams.prototype.getTrailerField=function(){apiFunctionCheck("RSASSAPSSParams.getTrailerField");return PDFNet.sendWithPromise("RSASSAPSSParams.getTrailerField",{self:this.id})};PDFNet.RSASSAPSSParams.prototype.setTrailerField=function(value){apiFunctionCheck("RSASSAPSSParams.setTrailerField",arguments.length,1,"(number)",[[value,"number"]]);return PDFNet.sendWithPromise("RSASSAPSSParams.setTrailerField", 1276{self:this.id,value:value})};var getUrlAsBuffer=function(jsUrl,options){options=options||{};var xhr=new XMLHttpRequest;return new Promise(function(resolve,reject){xhr.open("GET",jsUrl,!0);xhr.responseType="arraybuffer";options.withCredentials&&(xhr.withCredentials=options.withCredentials);xhr.onerror=function(){reject(Error("Network error occurred"))};xhr.onload=function(evt){200==this.status?(evt=new Uint8Array(xhr.response),resolve(evt)):reject(Error("Download Failed"))};var customHeaders=options.customHeaders; 1277if(customHeaders)for(var header in customHeaders)xhr.setRequestHeader(header,customHeaders[header]);xhr.send()},function(){xhr.abort()})},positionString=function(num){return 0===num?"1st":1===num?"2nd":2===num?"3rd":num+1+"th"},checkArguments=function(inputArgNum,minNum,funcName,funcParams,argInfoList){var maxNum=argInfoList.length;if(minNum===maxNum){if(inputArgNum!==minNum)throw new RangeError(inputArgNum+" arguments passed into function '"+funcName+"'. Expected "+minNum+" argument. Function Signature: "+ 1278funcName+funcParams);}else if(0>=minNum){if(inputArgNum>maxNum)throw new RangeError(inputArgNum+" arguments passed into function '"+funcName+"'. Expected at most "+maxNum+" arguments. Function Signature: "+funcName+funcParams);}else if(inputArgNum<minNum||inputArgNum>maxNum)throw new RangeError(inputArgNum+" arguments passed into function '"+funcName+"'. Expected "+minNum+" to "+maxNum+" arguments. Function Signature: "+funcName+funcParams);var throwParaTypeError=function(argPos,argType,expectedType){throw new TypeError(positionString(argPos)+ 1279" input argument in function '"+funcName+"' is of type '"+argType+"'. Expected type '"+expectedType+"'. Function Signature: "+funcName+funcParams);};inputArgNum=function(arg,argPos,expectedType){"object"===_typeof(arg)&&arg.name?throwParaTypeError(argPos,arg.name,expectedType):throwParaTypeError(argPos,_typeof(arg),expectedType)};for(minNum=0;minNum<maxNum;minNum++){var argInfo=argInfoList[minNum],arg$jscomp$0=argInfo[0],argType=argInfo[1];if(arg$jscomp$0 instanceof Promise)throw new TypeError(positionString(minNum)+ 1280" input argument in function '"+funcName+"' is a Promise object. Promises require a 'yield' statement before being accessed.");if("OptionBase"===argType){if(arg$jscomp$0)if("object"===_typeof(arg$jscomp$0)){if("function"!==typeof arg$jscomp$0.getJsonString)throw new TypeError(positionString(minNum)+" input argument in function '"+funcName+"' is an 'oject' which is expected to have the 'getJsonString' function");}else throwParaTypeError(minNum,arg$jscomp$0.name,"object")}else"Array"===argType?Array.isArray(arg$jscomp$0)|| 1281inputArgNum(arg$jscomp$0,minNum,"Array"):"ArrayBuffer"===argType?exports.isArrayBuffer(arg$jscomp$0)||exports.isArrayBuffer(arg$jscomp$0.buffer)||inputArgNum(arg$jscomp$0,minNum,"ArrayBuffer|TypedArray"):"ArrayAsBuffer"===argType?Array.isArray(arg$jscomp$0)||exports.isArrayBuffer(arg$jscomp$0)||exports.isArrayBuffer(arg$jscomp$0.buffer)||inputArgNum(arg$jscomp$0,minNum,"ArrayBuffer|TypedArray"):"PDFDoc"===argType||"SDFDoc"===argType||"FDFDoc"===argType?arg$jscomp$0 instanceof PDFNet.PDFDoc||arg$jscomp$0 instanceof 1282PDFNet.SDFDoc||arg$jscomp$0 instanceof PDFNet.FDFDoc||inputArgNum(arg$jscomp$0,minNum,"PDFDoc|SDFDoc|FDFDoc"):"Structure"===argType?arg$jscomp$0 instanceof argInfo[2]||!arg$jscomp$0||arg$jscomp$0.name===argInfo[3]||inputArgNum(arg$jscomp$0,minNum,argInfo[3]):"OptionObject"===argType?arg$jscomp$0 instanceof argInfo[2]||("object"===_typeof(arg$jscomp$0)&&arg$jscomp$0.name?arg$jscomp$0.name!==argInfo[4]&&throwParaTypeError(minNum,arg$jscomp$0.name,argInfo[3]):throwParaTypeError(minNum,_typeof(arg$jscomp$0), 1283argInfo[3])):"Object"===argType?arg$jscomp$0 instanceof argInfo[2]||inputArgNum(arg$jscomp$0,minNum,argInfo[3]):"const char* = 0"===argType?"string"!==typeof arg$jscomp$0&&null!==arg$jscomp$0&&throwParaTypeError(minNum,_typeof(arg$jscomp$0),"string"):_typeof(arg$jscomp$0)!==argType&&throwParaTypeError(minNum,_typeof(arg$jscomp$0),argType)}},getArrayBuffer=function(buffer,arrayAsBuffer){var bufferArrayBuffer=buffer;arrayAsBuffer&&buffer.constructor===Array&&(bufferArrayBuffer=new Float64Array(buffer)); 1284exports.isArrayBuffer(bufferArrayBuffer)||(bufferArrayBuffer=bufferArrayBuffer.buffer,buffer.byteLength<bufferArrayBuffer.byteLength&&(bufferArrayBuffer=bufferArrayBuffer.slice(buffer.byteOffset,buffer.byteOffset+buffer.byteLength)));return bufferArrayBuffer},getOptsObjPromise=function(options,optionClassName){return options.name===optionClassName?PDFNet.ObjSet.create().then(function(set){var optsJsonStr="function"===typeof options.getJsonString?options.getJsonString():JSON.stringify(options);return set.createFromJson(optsJsonStr)}): 1285Promise.resolve(options)};createdObjects=[];lockedObjects=[];stackCallCounter=beginOperationCounter=0;deallocStackCounter=[];unlockStackCounter=[];var finishedInitializeCapability;exports.PDFTron&&PDFTron.WebViewer&&PDFTron.WebViewer.prototype&&PDFTron.WebViewer.prototype.version&&!PDFTron.skipPDFNetWebViewerWarning&&console.warn("PDFNet.js and WebViewer.js have been included in the same context. See pdftron.com/kb_same_context for an explanation of why this could be an error in your application."); 1286var createDestroyableObj=function(constructor,id,type){if("0"===id)return null;constructor=new constructor(id,174774839,type);createdObjects.push({name:constructor.name,id:constructor.id});return constructor},createPDFNetObj=function(constructor,id,type){return"0"===id?null:new constructor(id,174774839,type)},unregisterLockedObject=function(obj){for(var objIndex=-1,i=lockedObjects.length-1;0<=i;i--)if(lockedObjects[i].id==obj.id){objIndex=i;break}if(-1!=objIndex)for(lockedObjects.splice(objIndex,
12871),i=unlockStackCounter.length-1;0<=i;i--)if(objIndex<unlockStackCounter[i])--unlockStackCounter[i];else break;else console.log("[WARNING], the object to be unlocked was not found in the unlock list. Unlocking may cause errors.")},avoidCleanup=function(id){for(var objIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==id){objIndex=i;break}if(-1!=objIndex)for(createdObjects.splice(objIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(objIndex<deallocStackCounter[i])--deallocStackCounter[i]; 1288else break;else console.log("[WARNING], the object was not found in the deallocation list. Deallocating may cause errors.")};PDFNet.messageHandler={sendWithPromiseReturnId:function(){throw Error("PDFNet.initialize must be called and finish resolving before any other PDFNetJS function calls.");}};PDFNet.userPriority=2;PDFNet.sendWithPromise=function(actionName,data){var messageHandler=this.messageHandler,promiseAndId=messageHandler.sendWithPromiseReturnId(actionName,data,this.userPriority);messageHandler.pdfnetCommandChain= 12890==messageHandler.pdfnetActiveCommands.size?promiseAndId.promise:messageHandler.pdfnetCommandChain.then(function(){return promiseAndId.promise});messageHandler.pdfnetActiveCommands.add(promiseAndId.callbackId);return messageHandler.pdfnetCommandChain};var copyFunc=function(obj,me){for(var attr in obj)me[attr]=obj[attr]};PDFNet.runGeneratorWithoutCleanup=function(generator,license_key){"undefined"===typeof license_key&&(license_key="");checkArguments(arguments.length,1,"runGeneratorWithoutCleanup", 1290"(object, string)",[[generator,"object"],[license_key,"string"]]);return PDFNet.runWithoutCleanup(function(){return finishGenerator(generator)},license_key)};PDFNet.runGeneratorWithCleanup=function(generator,license_key){"undefined"===typeof license_key&&(license_key="");checkArguments(arguments.length,1,"runGeneratorWithCleanup","(object, string)",[[generator,"object"],[license_key,"string"]]);return PDFNet.runWithCleanup(function(){return finishGenerator(generator)},license_key)};var previousRunPromise= 1291Promise.resolve();PDFNet.displayAllocatedObjects=function(){console.log("List of created but not yet deallocated objects:");if(0==createdObjects.length)console.log("~~None~~ (nothing to deallocate)");else for(var i=0;i<createdObjects.length;i++)console.log(createdObjects[i]);return createdObjects.length};PDFNet.getAllocatedObjectsCount=function(){return createdObjects.length};PDFNet.startDeallocateStack=function(){stackCallCounter+=1;deallocStackCounter.push(createdObjects.length);unlockStackCounter.push(lockedObjects.length); 1292return Promise.resolve()};PDFNet.endDeallocateStack=function(){if(0===stackCallCounter)return console.log("Warning, no startDeallocateStack() instances remain."),Promise.resolve();var deallocStackPos=deallocStackCounter.pop(),unlockStackPos=unlockStackCounter.pop(),promiseList=[],promiseListDestroy=[];if("undefined"!==typeof unlockStackPos&&0!==lockedObjects.length&&lockedObjects.length!==unlockStackPos)for(;lockedObjects.length>unlockStackPos;){var objToUnlock=lockedObjects.pop();objToUnlock=PDFNet.sendWithPromise(objToUnlock.name+ 1293"."+objToUnlock.unlocktype,{doc:objToUnlock.id});objToUnlock=objToUnlock["catch"](function(e){console.log(e)});promiseList.push(objToUnlock)}if("undefined"!==typeof deallocStackPos&&0!==createdObjects.length&&createdObjects.length!==deallocStackPos)for(;createdObjects.length>deallocStackPos;)unlockStackPos=createdObjects.pop(),unlockStackPos=PDFNet.sendWithPromise(unlockStackPos.name+".destroy",{auto_dealloc_obj:unlockStackPos.id}),unlockStackPos=unlockStackPos["catch"](function(e){console.log(e)}), 1294promiseListDestroy.push(unlockStackPos);--stackCallCounter;return Promise.all(promiseList).then(function(){return Promise.all(promiseListDestroy)})};PDFNet.getStackCount=function(){return Promise.resolve(stackCallCounter)};PDFNet.deallocateAllObjects=function(){if(0==createdObjects.length){console.log("~~None~~ (nothing to deallocate)");var capability=createPromiseCapability();capability.resolve();return capability.promise}capability=[];for(deallocStackCounter=[];lockedObjects.length;)objToUnlock=
1295lockedObjects.pop(),unlockPromise=PDFNet.sendWithPromise(objToUnlock.name+"."+objToUnlock.unlocktype,{doc:objToUnlock.id}),unlockPromise=unlockPromise["catch"](function(e){console.log(e)}),capability.push(unlockPromise);for(;createdObjects.length;){var objToDealloc=createdObjects.pop();objToDealloc=PDFNet.sendWithPromise(objToDealloc.name+".destroy",{auto_dealloc_obj:objToDealloc.id});objToDealloc=objToDealloc["catch"](function(e){console.log(e)});capability.push(objToDealloc)}return Promise.all(capability)}; 1296PDFNet.Redactor.redact=function(doc,red_arr,appearance,ext_neg_mode,page_coord_sys){"undefined"===typeof appearance&&(appearance={});"undefined"===typeof appearance.redaction_overlay&&(appearance.redaction_overlay=!0);"undefined"===typeof appearance.positive_overlay_color?appearance.positive_overlay_color=void 0:"undefined"!==typeof appearance.positive_overlay_color.id&&(appearance.positive_overlay_color=appearance.positive_overlay_color.id);"undefined"===typeof appearance.negative_overlay_color? 1297appearance.negative_overlay_color=void 0:"undefined"!==typeof appearance.negative_overlay_color.id&&(appearance.negative_overlay_color=appearance.negative_overlay_color.id);"undefined"===typeof appearance.border&&(appearance.border=!0);"undefined"===typeof appearance.use_overlay_text&&(appearance.use_overlay_text=!0);"undefined"===typeof appearance.font?appearance.font=void 0:"undefined"!==typeof appearance.font.id&&(appearance.font=appearance.font.id);"undefined"===typeof appearance.min_font_size&& 1298(appearance.min_font_size=2);"undefined"===typeof appearance.max_font_size&&(appearance.max_font_size=24);"undefined"===typeof appearance.text_color?appearance.text_color=void 0:"undefined"!==typeof appearance.text_color.id&&(appearance.text_color=appearance.text_color.id);"undefined"===typeof appearance.horiz_text_alignment&&(appearance.horiz_text_alignment=-1);"undefined"===typeof appearance.vert_text_alignment&&(appearance.vert_text_alignment=1);"undefined"===typeof appearance.show_redacted_content_regions&& 1299(appearance.show_redacted_content_regions=!1);"undefined"===typeof appearance.redacted_content_color?appearance.redacted_content_color=void 0:"undefined"!==typeof appearance.redacted_content_color.id&&(appearance.redacted_content_color=appearance.redacted_content_color.id);"undefined"===typeof ext_neg_mode&&(ext_neg_mode=!0);"undefined"===typeof page_coord_sys&&(page_coord_sys=!0);apiFunctionCheck("Redactor.redact",arguments.length,2,"(PDFNet.PDFDoc, Array<Core.PDFNet.Redaction>, object, boolean, boolean)", 1300[[doc,"PDFDoc"],[red_arr,"Array"],[appearance,"object"],[ext_neg_mode,"boolean"],[page_coord_sys,"boolean"]]);return PDFNet.sendWithPromise("redactorRedact",{doc:doc.id,red_arr:red_arr,appearance:appearance,ext_neg_mode:ext_neg_mode,page_coord_sys:page_coord_sys})};PDFNet.Highlights.prototype.getCurrentQuads=function(){apiFunctionCheck("Highlights.getCurrentQuads");return PDFNet.sendWithPromise("Highlights.getCurrentQuads",{hlts:this.id}).then(function(id){id=new Float64Array(id);for(var retArray= 1301[],currQuad,i=0;i<id.length;i+=8)currQuad=PDFNet.QuadPoint(id[i+0],id[i+1],id[i+2],id[i+3],id[i+4],id[i+5],id[i+6],id[i+7]),retArray.push(currQuad);return retArray})};PDFNet.TextSearch.prototype.run=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'run'. Expected 0 arguments. Function Signature: run()");apiFunctionCheck("TextSearch.runs");return PDFNet.sendWithPromise("TextSearch.run",{ts:this.id}).then(function(searchObj){searchObj.highlights= 1302createDestroyableObj(PDFNet.Highlights,searchObj.highlights);return searchObj})};PDFNet.Iterator.prototype.current=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'fillEncryptDict'. Expected 0 argument.");apiFunctionCheck("Iterator.current");var me=this;this.yieldFunction="Iterator.current";var promise=PDFNet.sendWithPromise("Iterator.current",{itr:this.id,type:this.t
1302ype});me.yieldFunction=void 0;"Int"!=this.type&&(promise=promise.then(function(id){return"string"=== 1303typeof id?createPDFNetObj(PDFNet[me.type],id):new PDFNet[me.type](id)}));return promise};PDFNet.PDFDoc.prototype.getFileData=function(callback){callback({type:"id",id:this.id})};PDFNet.PDFDoc.prototype.getFile=function(callback){return null};PDFNet.PDFDoc.createFromURL=function(url,options){"undefined"===typeof options&&(options={});checkArguments(arguments.length,1,"createFromURL","(string, object)",[[url,"string"],[options,"object"]]);return getUrlAsBuffer(url,options).then(function(data){return PDFNet.PDFDoc.createFromBuffer(data)})}; 1304PDFNet.PDFDraw.prototype.exportBuffer=function(page,format,encoder_params){"undefined"==typeof format&&(format="PNG");"undefined"==typeof encoder_params&&(encoder_params=new PDFNet.Obj("0"));apiFunctionCheck("PDFDraw.exportBuffer",arguments.length,1,"(PDFNet.Page, string, PDFNet.Obj)",[[page,"Object",PDFNet.Page,"Page"],[format,"string"],[encoder_params,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("PDFDraw.exportBuffer",{d:this.id,page:page.id,format:format,encoder_params:encoder_params.id}).then(function(id){return"0"== 1305id?null:new Uint8Array(id)})};PDFNet.PDFDraw.prototype.exportStream=PDFNet.PDFDraw.prototype.exportBuffer;PDFNet.Element.prototype.getTextData=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getTextData'. Expected 0 arguments. Function Signature: getTextData()");apiFunctionCheck("Element.getTextData");return PDFNet.sendWithPromise("Element.getTextData",{e:this.id})};PDFNet.Element.prototype.getPathData=function(){if(0!=arguments.length)throw new RangeError(arguments.length+ 1306" arguments passed into function 'getPathData'. Expected 0 arguments. Function Signature: getPathData()");apiFunctionCheck("Element.getPathData");return PDFNet.sendWithPromise("Element.getPathData",{e:this.id}).then(function(id){id.operators=new Uint8Array(id.operators);id.points=new Float64Array(id.points);return id})};PDFNet.PDFDoc.prototype.convertToXod=function(options){"undefined"===typeof options&&(options=new PDFNet.Obj("0"));apiFunctionCheck("PDFDoc.convertToXod",arguments.length,0,"(PDFNet.Obj)", 1307[[options,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XODOutputOptions"]]);return PDFNet.sendWithPromise("PDFDoc.convertToXod",{doc:this.id,optionsObject:options}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.PDFDoc.prototype.convertToXodStream=function(options){"undefined"===typeof options&&(options=new PDFNet.Obj("0"));apiFunctionCheck("PDFDoc.convertToXodStream",arguments.length,0,"(PDFNet.Obj)",[[options,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XODOutputOptions"]]); 1308return PDFNet.sendWithPromise("PDFDoc.convertToXodStream",{doc:this.id,optionsObject:options}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.FilterReader.prototype.read=function(buf_size){apiFunctionCheck("FilterReader.read",arguments.length,1,"(number)",[[buf_size,"number"]]);return PDFNet.sendWithPromise("FilterReader.read",{reader:this.id,buf_size:buf_size}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.FilterReader.prototype.readAllIntoBuffer=function(){if(0!= 1309arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'readAllIntoBuffer'. Expected 0 arguments. Function Signature: readAllIntoBuffer()");apiFunctionCheck("FilterReader.readAllIntoBuffer");return PDFNet.sendWithPromise("FilterReader.readAllIntoBuffer",{reader:this.id}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.bitmapInfo=function(id){copyFunc(id,this)};PDFNet.PDFDraw.prototype.getBitmap=function(page,pix_fmt,demult){apiFunctionCheck("PDFDraw.getBitmap", 1310arguments.length,3,"(PDFNet.Page, number, boolean)",[[page,"Object",PDFNet.Page,"Page"],[pix_fmt,"number"],[demult,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.getBitmap",{d:this.id,page:page.id,pix_fmt:pix_fmt,demult:demult}).then(function(id){return"0"==id?null:new PDFNet.bitmapInfo(id)})};PDFNet.Matrix2D.create=function(a,b,c,d,h,v){void 0==a&&(a=0);void 0==b&&(b=0);void 0==c&&(c=0);void 0==d&&(d=0);void 0==h&&(h=0);void 0==v&&(v=0);checkArguments(arguments.length,0,"create","(number, number, number, number, number, number)", 1311[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);var capability=createPromiseCapability(),matrix=new PDFNet.Matrix2D({m_a:a,m_b:b,m_c:c,m_d:d,m_h:h,m_v:v});capability.resolve(matrix);return capability.promise};PDFNet.PDFDoc.prototype.getPDFDoc=function(){apiFunctionCheck("PDFDoc.GetPDFDoc");
1311return PDFNet.sendWithPromise("GetPDFDoc",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDoc,id)})};PDFNet.TextExtractorLine.prototype.getBBox=function(){if(0!= 1312arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBBox'. Expected 0 arguments. Function Signature: getBBox()");apiFunctionCheck("TextExtractorLine.getBBox",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getBBox";return PDFNet.sendWithPromise("TextExtractorLine.getBBox",{line:this}).then(function(id){me.yieldFunction=void 0;return new PDFNet.Rect(id.result.x1,id.result.y1,id.result.x2, 1313id.result.y2,id.result.mp_rect)})};PDFNet.TextExtractorLine.prototype.getQuad=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getQuad'. Expected 0 arguments. Function Signature: getQuad()");apiFunctionCheck("TextExtractorLine.getQuad",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorLine.getQuad";return PDFNet.sendWithPromise("TextExtractorLine.getQuad",{line:this}).then(function(id){me.yieldFunction= 1314void 0;return new PDFNet.QuadPoint(id.result.p1x,id.result.p1y,id.result.p2x,id.result.p2y,id.result.p3x,id.result.p3y,id.result.p4x,id.result.p4y)})};PDFNet.TextExtractorWord.prototype.getBBox=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBBox'. Expected 0 arguments. Function Signature: getBBox()");apiFunctionCheck("TextExtractorLine.getBBox",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this; 1315this.yieldFunction="TextExtractorWord.getBBox";return PDFNet.sendWithPromise("TextExtractorWord.getBBox",{tew:this}).then(function(id){me.yieldFunction=void 0;return new PDFNet.Rect(id.result.x1,id.result.y1,id.result.x2,id.result.y2,id.result.mp_rect)})};PDFNet.TextExtractorWord.prototype.getQuad=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getQuad'. Expected 0 arguments. Function Signature: getQuad()");apiFunctionCheck("TextExtractorWord.getQuad", 1316arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getQuad";return PDFNet.sendWithPromise("TextExtractorWord.getQuad",{tew:this}).then(function(id){me.yieldFunction=void 0;return new PDFNet.QuadPoint(id.result.p1x,id.result.p1y,id.result.p2x,id.result.p2y,id.result.p3x,id.result.p3y,id.result.p4x,id.result.p4y)})};PDFNet.TextExtractorWord.prototype.getGlyphQuad=function(glyph_idx){apiFunctionCheck("TextExtractorWord.getQuad", 1317arguments.length,1,"(number)",[[glyph_idx,"number"]],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getGlyphQuad";return PDFNet.sendWithPromise("TextExtractorWord.getGlyphQuad",{tew:this,glyph_idx:glyph_idx}).then(function(id){me.yieldFunction=void 0;return new PDFNet.QuadPoint(id.result.p1x,id.result.p1y,id.result.p2x,id.result.p2y,id.result.p3x,id.result.p3y,id.result.p4x,id.result.p4y)})};PDFNet.TextExtractorStyle.prototype.getColor=function(){if(0!= 1318arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getColor'. Expected 0 arguments. Function Signature: getColor()");apiFunctionCheck("TextExtractorStyle.getColor",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorStyle.getColor";return PDFNet.sendWithPromise("TextExtractorStyle.getColor",{tes:this}).then(function(id){me.yieldFunction=void 0;return createDestroyableObj(PDFNet.ColorPt,id)})}; 1319PDFNet.TextExtractorWord.prototype.getString=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getString'. Expected 0 arguments. Function Signature: getString()");apiFunctionCheck("TextExtractorWord.getString",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction});var me=this;this.yieldFunction="TextExtractorWord.getString";
1319return PDFNet.sendWithPromise("TextExtractorWord.getString",{tew:this}).then(function(id){me.yieldFunction= 1320void 0;return id})};PDFNet.TextExtractor.prototype.getHighlights=function(char_ranges){apiFunctionCheck("TextExtractorWord.getHighlights",arguments.length,1,"(Array<object>)",[[char_ranges,"Array"]]);return PDFNet.sendWithPromise("TextExtractor.getHighlights",{te:this.id,char_ranges:char_ranges}).then(function(id){return createDestroyableObj(PDFNet.Highlights,id)})};PDFNet.SecurityHandler.prototype.changeUserPasswordNonAscii=function(password){apiFunctionCheck("SecurityHandler.changeUserPasswordNonAscii", 1321arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.changeUserPasswordNonAscii",{sh:this.id,password:password,pwd_length:password.length})};PDFNet.SecurityHandler.prototype.changeMasterPasswordNonAscii=function(password){apiFunctionCheck("SecurityHandler.changeMasterPasswordNonAscii",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.changeMasterPasswordNonAscii",{sh:this.id,password:password,pwd_length:password.length})}; 1322PDFNet.SecurityHandler.prototype.initPassword=function(password){apiFunctionCheck("SecurityHandler.initPasswor",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.initPassword",{sh:this.id,password:password})};PDFNet.SecurityHandler.prototype.initPasswordNonAscii=function(password){apiFunctionCheck("SecurityHandler.initPasswordNonAscii",arguments.length,1,"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.initPasswordNonAscii", 1323{sh:this.id,password:password,pwd_length:password.length})};PDFNet.Element.prototype.getBBox=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBBox'. Expected 0 arguments. Function Signature: getBBox()");apiFunctionCheck("Element.getBBox");var me=this;this.yieldFunction="Element.getBBox";return PDFNet.sendWithPromise("Element.getBBox",{e:this.id}).then(function(id){me.yieldFunction=void 0;return new PDFNet.Rect(id)})};PDFNet.Matrix2D.prototype.mult= 1324function(x,y){apiFunctionCheck("Matrix2D.mult",arguments.length,2,"(number, number)",[[x,"number"],[y,"number"]],{checkThisYield:!0,functionName:this.yieldFunction},[]);return PDFNet.sendWithPromise("Matrix2D.mult",{matrix:this,x:x,y:y})};PDFNet.Obj.prototype.getAsPDFText=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getAsPDFText'. Expected 0 arguments. Function Signature: getAsPDFText()");apiFunctionCheck("Obj.getAsPDFText");return PDFNet.sendWithPromise("Obj.getAsPDFText", 1325{o:this.id})};PDFNet.Obj.prototype.getBuffer=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBuffer'. Expected 0 arguments. Function Signature: getBuffer()");apiFunctionCheck("Obj.getBuffer");return PDFNet.sendWithPromise("Obj.getBuffer",{o:this.id}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.PDFDoc.prototype.initSecurityHandler=function(custom_data){"undefined"===typeof custom_data&&(custom_data=0);if(1<arguments.length)throw new RangeError(arguments.length+ 1326" arguments passed into function 'initSecurityHandler'. Expected at most 1 arguments. Function Signature: initSecurityHandler(void*)");apiFunctionCheck("PDFDoc.initSecurityHandler");return PDFNet.sendWithPromise("PDFDoc.initSecurityHandler",{doc:this.id,custom_data:custom_data})};PDFNet.PDFDoc.prototype.initStdSecurityHandler=PDFNet.PDFDoc.prototype.initStdSecurityHandlerUString;PDFNet.SDFDoc.prototype.initSecurityHandler=function(custom_data){"undefined"===typeof custom_data&&(custom_data=0);if(1< 1327arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initSecurityHandler'. Expected at most 1 arguments. Function Signature: initSecurityHandler(void*)");apiFunctionCheck("SDFDoc.initSecurityHandler");return PDFNet.sendWithPromise("SDFDoc.initSecurityHandler",{doc:this.id,custom_data:custom_data})};PDFNet.SDFDoc.prototype.initStdSecurityHandler=PDFNet.SDFDoc.prototype.initStdSecurityHandlerUString;PDFNet.Image.createFromURL=function(doc,url,encoder_hints,options){"undefined"=== 1328typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));"undefined"===typeof options&&(options={});checkArguments(arguments.length,2,"createFromURL","(PDFNet.PDFDoc, string, PDFNet.Obj, object)",[[doc,"PDFDoc"],[url,"string"],[encoder_hints,"Object",PDFNet.Obj,"Obj"],[options,"object"]]);return getUrlAsBuffer(url,options).then(function(data){return PDFNet.Image.createFromMemory2(doc,data,encoder_hints)})};PDFNet.PDFDoc.prototype.addStdSignatureHandlerFromURL=function(pkcs12_file,pkcs12_pass){checkArguments(arguments.length, 13292,"addStdSignatureHandlerFromURL","(string, string)",[[pkcs12_file,"string"],[pkcs12_pass,"string"]]
1329);var me=this;return getUrlAsBuffer(pkcs12_file).then(function(pkcs12_buffer){return me.addStdSignatureHandlerFromBufferWithDoc(pkcs12_buffer,pkcs12_pass,me)})};PDFNet.PDFDoc.prototype.addStdSignatureHandlerFromBufferWithDoc=function(pkcs12_buffer,pkcs12_pass,doc){apiFunctionCheck("PDFDoc.addStdSignatureHandlerFromBuffer",arguments.length,3,"(ArrayBuffer|TypedArray, string, PDFNet.PDFDoc)",[[pkcs12_buffer, 1330"ArrayBuffer"],[pkcs12_pass,"string"],[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("PDFDoc.addStdSignatureHandlerFromBuffer",{doc:doc.id,pkcs12_buffer:pkcs12_buffer.buffer,pkcs12_pass:pkcs12_pass})};PDFNet.Filter.createFromMemory=function(buf){apiFunctionCheck("Filter.CreateFromMemory",arguments.length,1,"(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("filterCreateFromMemory",{buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.Filter, 1331id)})};PDFNet.Filter.createURLFilter=function(url,options){"undefined"===typeof options&&(options={});checkArguments(arguments.length,1,"createURLFilter","(string, object)",[[url,"string"],[options,"object"]]);return getUrlAsBuffer(url,options).then(function(data){return PDFNet.Filter.createFromMemory(data)})};PDFNet.Filter.createFlateEncode=function(input_filter,compression_level,buf_sz){"undefined"===typeof input_filter&&(input_filter=new PDFNet.Filter("0"));"undefined"===typeof compression_level&& 1332(compression_level=-1);"undefined"===typeof buf_sz&&(buf_sz=256);apiFunctionCheck("Filter.createFlateEncode",arguments.length,0,"(PDFNet.Filter, number, number)",[[input_filter,"Object",PDFNet.Filter,"Filter"],[compression_level,"number"],[buf_sz,"number"]]);return PDFNet.sendWithPromise("Filter.createFlateEncode",{input_filter:input_filter.id,compression_level:compression_level,buf_sz:buf_sz}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.PDFDoc.prototype.importPages= 1333function(page_arr,import_bookmarks){"undefined"===typeof import_bookmarks&&(import_bookmarks=!1);apiFunctionCheck("PDFDoc.importPages",arguments.length,1,"(Array<Core.PDFNet.Page>, boolean)",[[page_arr,"Array"],[import_bookmarks,"boolean"]]);page_arr=page_arr.map(function(p){return p.id});return PDFNet.sendWithPromise("PDFDoc.importPages",{doc:this.id,page_arr:page_arr,import_bookmarks:import_bookmarks}).then(function(idArray){return idArray?idArray.map(function(id){return createPDFNetObj(PDFNet.Page, 1334id)}):null})};PDFNet.SDFDoc.prototype.applyCustomQuery=function(query){apiFunctionCheck("SDFDoc.applyCustomQuery",arguments.length,1,"(object)",[[query,"object"]]);return PDFNet.sendWithPromise("SDFDoc.applyCustomQuery",{doc:this.id,query:JSON.stringify(query)}).then(function(result_str){return JSON.parse(result_str)})};var origSaveMemoryBuffer=PDFNet.PDFDoc.prototype.saveMemoryBuffer,origSaveStream=PDFNet.PDFDoc.prototype.saveStream;PDFNet.PDFDoc.prototype.saveMemoryBuffer=function(flags){var me= 1335this;return Promise.resolve(me.documentCompletePromise).then(function(){return origSaveMemoryBuffer.call(me,flags)})};PDFNet.PDFDoc.prototype.saveStream=function(flags){var me=this;return Promise.resolve(me.documentCompletePromise).then(function(){return origSaveStream.call(me,flags)})};PDFNet.PDFACompliance.createFromUrl=function(convert,url,pwd,conform,excep,max_ref_objs,first_stop){"undefined"===typeof pwd&&(pwd="");"undefined"===typeof conform&&(conform=PDFNet.PDFACompliance.Conformance.e_Level1B); 1336"undefined"===typeof excep&&(excep=new Int32Array(0));"undefined"===typeof max_ref_objs&&(max_ref_objs=10);"undefined"===typeof first_stop&&(first_stop=!1);checkArguments(arguments.length,2,"createFromUrl","(boolean, string, string, number, ArrayBuffer|TypedArray, number, boolean)",[[convert,"boolean"],[url,"string"],[pwd,"string"],[conform,"number"],[excep,"ArrayBuffer"],[max_ref_objs,"number"],[first_stop,"boolean"]]);return getUrlAsBuffer(url).then(function(buf){return PDFNet.PDFACompliance.createFromBuffer(convert, 1337buf,pwd,conform,excep,max_ref_objs,first_stop)})};PDFNet.PDFACompliance.createFromBuffer=function(convert,buf,pwd,conform,excep,max_ref_objs,first_stop){"undefined"===typeof pwd&&(pwd="");"undefined"===typeof conform&&(conform=PDFNet.PDFACompliance.Conformance.e_Level1B);"undefined"===typeof excep&&(excep=new Int32Array(0));"undefined"===typeof max_ref_objs&&(max_ref_objs=10);"undefined"===typeof first_stop&&(first_stop=!1);apiFunctionCheck("PDFACompliance.createFromBuffer",arguments.length,2,"(boolean, ArrayBuffer|TypedArray, string, number, ArrayBuffer|TypedArray, number, boolean)", 1338[[convert,"boolean"],[buf,"ArrayBuffer"],[pwd,"string"],[conform,"number"],[excep,"ArrayBuffer"],[max_ref_objs,"number"],[first_stop,"boolean"]]);var bufArrayBuffer=getArrayBuffer(buf,!1),excepArrayBuffer=getArrayBuffer(excep,!1);
1338return PDFNet.sendWithPromise("pdfaComplianceCreateFromBuffer",{convert:convert,buf:bufArrayBuffer,password:pwd,conform:conform,excep:excepArrayBuffer,max_ref_objs:max_ref_objs,first_stop:first_stop}).then(function(id){return createDestroyableObj(PDFNet.PDFACompliance,id)})}; 1339PDFNet.PDFDoc.prototype.lock=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'lock'. Expected 0 arguments. Function Signature: lock()");apiFunctionCheck("PDFDoc.lock");lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlock"});return PDFNet.sendWithPromise("PDFDoc.lock",{doc:this.id})};PDFNet.PDFDoc.prototype.lockRead=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'lockRead'. Expected 0 arguments. Function Signature: lockRead()"); 1340apiFunctionCheck("PDFDoc.lockRead");lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlockRead"});return PDFNet.sendWithPromise("PDFDoc.lockRead",{doc:this.id})};PDFNet.PDFDoc.prototype.tryLock=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'tryLock'. Expected 0 arguments. Function Signature: tryLock()");apiFunctionCheck("PDFDoc.tryLock");var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlock"}); 1341return PDFNet.sendWithPromise("PDFDoc.tryLock",{doc:this.id}).then(function(success){success||lockedObjects.splice(index,1)})};PDFNet.PDFDoc.prototype.timedLock=function(milliseconds){apiFunctionCheck("PDFDoc.timedLock",arguments.length,1,"(number)",[[milliseconds,"number"]]);var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlock"});return PDFNet.sendWithPromise("PDFDoc.timedLock",{doc:this.id,milliseconds:milliseconds}).then(function(success){success||lockedObjects.splice(index, 13421)})};PDFNet.PDFDoc.prototype.tryLockRead=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'tryLockRead'. Expected 0 arguments. Function Signature: tryLockRead()");apiFunctionCheck("PDFDoc.tryLockRead");var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlockRead"});return PDFNet.sendWithPromise("PDFDoc.tryLockRead",{doc:this.id}).then(function(success){success||lockedObjects.splice(index,1)})};PDFNet.PDFDoc.prototype.timedLockRead= 1343function(milliseconds){apiFunctionCheck("PDFDoc.timedLockRead",arguments.length,1,"(number)",[[milliseconds,"number"]]);var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlockRead"});return PDFNet.sendWithPromise("PDFDoc.timedLockRead",{doc:this.id,milliseconds:milliseconds}).then(function(success){success||lockedObjects.splice(index,1)})};PDFNet.hasFullApi=!0;PDFNet.Optimizer.optimize=function(doc,optimizerSettings){"undefined"===typeof optimizerSettings&&(optimizerSettings= 1344new PDFNet.Optimizer.OptimizerSettings);apiFunctionCheck("Optimizer.optimize",arguments.length,1,"(PDFNet.PDFDoc, object)",[[doc,"PDFDoc"],[optimizerSettings,"object"]]);return PDFNet.sendWithPromise("optimizerOptimize",{doc:doc.id,color_image_settings:optimizerSettings.color_image_settings,grayscale_image_settings:optimizerSettings.grayscale_image_settings,mono_image_settings:optimizerSettings.mono_image_settings,text_settings:optimizerSettings.text_settings,remove_custom:optimizerSettings.remove_custom})}; 1345PDFNet.VerificationOptions.prototype.addTrustedCertificateFromURL=function(url,options,trust_flags){"undefined"===typeof options&&(options={});"undefined"===typeof trust_flags&&(trust_flags=PDFNet.VerificationOptions.CertificateTrustFlag.e_default_trust);checkArguments(arguments.length,1,"addTrustedCertificateFromURL","(string, object, number)",[[url,"string"],[options,"object"],[trust_flags,"number"]]);var me=this;return getUrlAsBuffer(url,options).then(function(data){return me.addTrustedCertificate(data, 1346trust_flags)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSaveFromURL=function(url,in_password,options){"undefined"===typeof options&&(options={});checkArguments(arguments.length,2,"certifyOnNextSaveFromURL","(string, string, object)",[[url,"string"],[in_password,"string"],[options,"object"]]);var me=this;return getUrlAsBuffer(url,options).then(function(data){return me.certifyOnNextSaveFromBuffer(data,in_password)})};PDFNet.DigitalSignatureField.prototype.signOnNextSaveFromURL=function(url, 1347in_password,options){"undefined"===typeof options&&(options={});checkArguments(arguments.length,2,"signOnNextSaveFromURL","(string, string, object)",[[url,"string"],[in_password,"string"],[options,"object"]]);var me=this;return getUrlAsBuffer(url,options).then(function(data){return me.signOnNextSaveFromBuffer(data,in_password)})};PDFNet.PDFRasterizer.prototype.rasterize=function(page,width,height,stride,num_comps,demult,device_mtx,clip,scrl_clp_regi
1347ons){"undefined"===typeof clip&&(clip=null);"undefined"=== 1348typeof scrl_clp_regions&&(scrl_clp_regions=null);apiFunctionCheck("PDFRasterizer.rasterize",arguments.length,7,"(PDFNet.Page, number, number, number, number, boolean, PDFNet.Matrix2D, PDFNet.Rect, PDFNet.Rect)",[[page,"Object",PDFNet.Page,"Page"],[width,"number"],[height,"number"],[stride,"number"],[num_comps,"number"],[demult,"boolean"],[device_mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[clip,"Structure",PDFNet.Rect,"Rect"],[scrl_clp_regions,"Structure",PDFNet.Rect,"Rect"]],{checkThisYield:!1,functionName:void 0}, 1349[[device_mtx,6],[clip,7],[scrl_clp_regions,8]]);return PDFNet.sendWithPromise("PDFRasterizer.rasterize",{r:this.id,page:page.id,width:width,height:height,stride:stride,num_comps:num_comps,demult:demult,device_mtx:device_mtx,clip:clip,scrl_clp_regions:scrl_clp_regions})};PDFNet.ElementBuilder.prototype.createUnicodeTextRun=function(text_data){apiFunctionCheck("ElementBuilder.createUnicodeTextRun",arguments.length,1,"(string)",[[text_data,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createUnicodeTextRun", 1350{b:this.id,text_data:text_data}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.DigitalSignatureField.prototype.getCertPathsFromCMS=function(){apiFunctionCheck("DigitalSignatureField.getCertPathsFromCMS",arguments.length,0,"()",[],{checkThisYield:!0,functionName:this.yieldFunction},[]);return PDFNet.sendWithPromise("DigitalSignatureField.getCertPathsFromCMS",{self:this}).then(function(arrArray){return arrArray.map(function(idArray){return idArray.map(function(id){return createDestroyableObj(PDFNet.X509Certificate, 1351id)})})})};PDFNet.X509Certificate.createFromURL=function(url,options){"undefined"===typeof options&&(options={});checkArguments(arguments.length,1,"createFromURL","(string, object)",[[url,"string"],[options,"object"]]);var me=this;return getUrlAsBuffer(url,options).then(function(data){return me.createFromBuffer(data)})};PDFNet.DigestAlgorithm.signDigestWithKeyfileFromURL=function(digest_buf,digest_algorithm_type,pkcs12_keyfile_url,pkcs12_password,options){"undefined"===typeof options&&(options={}); 1352checkArguments(arguments.length,4,"signDigestWithKeyfileFromURL","(ArrayBuffer|TypedArray, number, string, string, object)",[[digest_buf,"ArrayBuffer"],[digest_algorithm_type,"number"],[pkcs12_keyfile_url,"string"],[pkcs12_password,"string"],[options,"object"]]);var me=this;return getUrlAsBuffer(pkcs12_keyfile_url,options).then(function(data){return me.signDigestWithKeyfileBuffer(digest_buf,digest_algorithm_type,data,pkcs12_password)})};PDFNet.createPDFNetObj=createPDFNetObj;PDFNet.Convert.office2PDF= 1353function(input,options){apiFunctionCheck("Convert.office2PDF");return Core.officeToPDFBuffer(input,options).then(function(buffer){return PDFNet.PDFDoc.createFromBuffer(buffer).then(function(doc){doc.initSecurityHandler();return doc})})};PDFNet.PDFDoc.prototype.requirePage=function(page_number){apiFunctionCheck("PDFDoc.RequirePage",arguments.length,1,"(number)",[[page_number,"number"]]);if(0>=page_number)throw Error("1st input argument '"+page_number+"' in function 'requirePage' is invalid. Expected number between 1 and number of pages in the document."); 1354return PDFNet.sendWithPromise("PDFDoc.RequirePage",{docId:this.id,pageNum:page_number})};PDFNet.beginOperation=function(optionsObj){apiFunctionCheck("beginOperation");"undefined"===typeof optionsObj?optionsObj={allowMultipleInstances:!1}:"undefined"===typeof optionsObj.allowMultipleInstances&&console.log("Warning: passing in options object without value 'allowMultipleInstances'");if(0<beginOperationCounter&&!optionsObj.allowMultipleInstances)throw Error("a previous instance of PDFNet.beginOperation() has been called without being terminated by PDFNet.finishOperation(). If this is intentional, pass in an options object with its parameter 'allowMultipleInstances' set to 'true' (ex. optObj={}; optObj.allowMultipleInstances=true; PDFNet.beginOperation(optObj));"); 1355beginOperationCounter+=1;if(1<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'beginOperation'. Expected 0 to 1 arguments. Function Signature: beginOperation(optObj = {})");
1355return PDFNet.sendWithPromise("BeginOperation",{})};PDFNet.finishOperation=function(){apiFunctionCheck("finishOperation");if(0<beginOperationCounter){--beginOperationCounter;if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'finishOperation'. Expected 0 arguments. Function Signature: finishOperation()"); 1356return PDFNet.sendWithPromise("FinishOperation",{})}};PDFNet.runWithCleanup=function(callback,license_key){"undefined"===typeof license_key&&(license_key="");apiFunctionCheck("runWithCleanup",arguments.length,1,"(function, string)",[[callback,"function"],[license_key,"string"]]);var result,shouldFinishOperation=!1,shouldDeallocateStack=!1;return previousRunPromise=previousRunPromise.then(function(){},function(){}).then(function(){return PDFNet.initialize(license_key)}).then(function(){shouldFinishOperation= 1357!0;return PDFNet.beginOperation()}).then(function(){shouldDeallocateStack=!0;PDFNet.startDeallocateStack();return callback()}).then(function(val){result=val;shouldDeallocateStack=!1;return PDFNet.endDeallocateStack()}).then(function(){shouldFinishOperation=!1;PDFNet.finishOperation();if(0<stackCallCounter)throw Error('Detected not yet deallocated stack. You may have called "PDFNet.startDeallocateStack()" somewhere without calling "PDFNet.endDeallocateStack()" afterwards.');return result})["catch"](function(e){shouldDeallocateStack&& 1358PDFNet.endDeallocateStack();shouldFinishOperation&&PDFNet.finishOperation();throw e;})};PDFNet.runWithoutCleanup=function(callback,license_key){"undefined"===typeof license_key&&(license_key="");apiFunctionCheck("runWithoutCleanup",arguments.length,1,"(function, string)",[[callback,"function"],[license_key,"string"]]);var shouldFinishOperation=!1;return previousRunPromise=previousRunPromise.then(function(){},function(){}).then(function(){return PDFNet.initialize(license_key)}).then(function(){shouldFinishOperation= 1359!0;return PDFNet.beginOperation()}).then(function(){return callback()}).then(function(result){shouldFinishOperation=!1;PDFNet.finishOperation();return result})["catch"](function(e){shouldFinishOperation&&PDFNet.finishOperation();throw e;})};PDFNet.initialize=function(licenseKey,pdfBackendType){"undefined"===typeof licenseKey&&(licenseKey="");"undefined"===typeof pdfBackendType&&(pdfBackendType="");apiFunctionCheck("initialize",arguments.length,0,"(string, string)",[[licenseKey,"string"],[pdfBackendType, 1360"string"]]);if(!finishedInitializeCapability){var workerHandlers={emsWorkerError:function(msg,genericMsg){console.log("EmsWorkerError: "+msg+", "+genericMsg)}};finishedInitializeCapability=createPromiseCapability();var finishInit=function(pdfBackendType){exports.Core.preloadPDFWorker(pdfBackendType,workerHandlers);exports.Core.initPDFWorkerTransports(pdfBackendType,workerHandlers,licenseKey).then(function(transport){PDFNet.messageHandler=transport.messageHandler;finishedInitializeCapability.resolve()}, 1361function(e){finishedInitializeCapability.reject(e)})};pdfBackendType&&"auto"!==pdfBackendType?finishInit(pdfBackendType):exports.Core.getDefaultBackendType().then(finishInit,function(e){finishedInitializeCapability.reject(e)})}return finishedInitializeCapability.promise};var apiFunctionCheck=function(funcName,inputArgNum,minNum,funcParams,argInfoList,yieldFunction,yieldParams){void 0!==inputArgNum&&checkArguments(inputArgNum,minNum,funcName,funcParams,argInfoList);if(void 0!==yieldFunction&&yieldFunction.checkThisYield&& 1362(inputArgNum=yieldFunction.functionName,"undefined"!==typeof inputArgNum))throw Error("Function "+inputArgNum+" recently altered a struct object without yielding. That object is now being accessed by function '"+funcName+"'. Perhaps a yield statement is required for "+inputArgNum+"?");if(void 0!==yieldParams)for(inputArgNum=0;inputArgNum<yieldParams.length;inputArgNum++)if(minNum=yieldParams[inputArgNum],(funcParams=minNum[0])&&"undefined"!==typeof funcParams.yieldFunction)throw Error("Function '"+ 1363funcParams.yieldFunction+"' recently altered a struct object without yielding. That object is now being accessed by the "+positionString(minNum[1])+" input argument in function '"+funcName+"'. Perhaps a yield statement is required for '"+funcParams.yieldFunction+"'?");trackingFunction(funcName)},trackingFunction=function(){};PDFNet.setTrackingHandler=function(handler){trackingFunction=handler};exports.Core.PDFNet=PDFNet})("undefined"===typeof window?this:window)}]);}).call(this || window)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.