@foreverrbum/ethsign
Version:
This package will allow you to electronically sign documents within your application
99 lines • 641 kB
JavaScript
(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)}};$jscomp.makeIterator=function(iterable){var iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&iterable[Symbol.iterator];return iteratorFunction?iteratorFunction.call(iterable):$jscomp.arrayIterator(iterable)};
$jscomp.getGlobal=function(maybeGlobal){return"undefined"!=typeof window&&window===maybeGlobal?maybeGlobal:"undefined"!=typeof global&&null!=global?global:maybeGlobal};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(target,property,descriptor){target!=Array.prototype&&target!=Object.prototype&&(target[property]=descriptor.value)};
$jscomp.polyfill=function(target,polyfill,fromLang,toLang){if(polyfill){fromLang=$jscomp.global;target=target.split(".");for(toLang=0;toLang<target.length-1;toLang++){var key=target[toLang];key in fromLang||(fromLang[key]={});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})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
$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)return NativePromise;AsyncExecutor.prototype.asyncExecute=function(f){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(f);return this};AsyncExecutor.prototype.asyncExecuteBatch_=
function(){var self=this;this.asyncExecuteFunction(function(){self.executeBatch_()})};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];executingBatch[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_=[];var resolveAndReject=this.createResolveAndReject_();try{executor(resolveAndReject.resolve,resolveAndReject.reject)}catch(e){resolveAndReject.reject(e)}};PolyfillPromise.prototype.createResolveAndReject_=function(){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=null!=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,reason)};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;this.executeOnSettledCallbacks_()};PolyfillPromise.prototype.executeOnSettledCallbacks_=function(){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_();try{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{resolveChild(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),createCallback(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):this.onSettledCallbacks_.push(callback)};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,reject)})};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-1),rejectAll),iterRec=iterator.next();while(!iterRec.done)})};return PolyfillPromise},"es6","es3");
$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,
k=0;k<iteratorFunction;k++)result.push(opt_mapFn.call(opt_thisArg,arrayLike[k],k));return result}},"es6","es3");
(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,
name,{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));if(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",
{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)};
__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";_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};return _typeof(obj$jscomp$0)}
var createdObjects=[],lockedObjects=[],stackCallCounter=0,beginOperationCounter=0,deallocStackCounter=[],unlockStackCounter=[];(function(exports){function optionsHelpers(){return{putNumber:function(implObj,key,value){implObj[key]=0+value},jsColorToNumber:function(jsColor){return 16777216*Math.floor(jsColor.A)+65536*Math.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}}}}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=exports.PDFNet?exports.PDFNet:{};PDFNet.Convert=exports.PDFNet&&exports.PDFNet.Convert?exports.PDFNet.Convert:{};PDFNet.Optimizer={};exports.CoreControls&&exports.CoreControls.enableFullPDF(!0);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=function(){avoidCleanup(this.id)};PDFNet.Destroyable.prototype.destroy=function(){this.takeOwnership();return PDFNet.messageHandler.sendWithPromise(this.name+".destroy",{auto_dealloc_obj:this.id},this.userPriority)};PDFNet.createRefreshOptions=
function(){return Promise.resolve(new PDFNet.RefreshOptions)};PDFNet.RefreshOptions=function(){this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.RefreshOptions.prototype.getDrawBackgroundOnly=function(){return"DrawBackgroundOnly"in mImpl?!!mImpl.DrawBackgroundOnly:!0};PDFNet.RefreshOptions.prototype.setDrawBackgroundOnly=function(value){mHelpers.putBool(mImpl,"DrawBackgroundOnly",value);return this};PDFNet.RefreshOptions.prototype.getRefreshExisting=function(){return"RefreshExisting"in mImpl?!!mImpl.RefreshExisting:
!0};PDFNet.RefreshOptions.prototype.setRefreshExisting=function(value){mHelpers.putBool(mImpl,"RefreshExisting",value);return this};PDFNet.RefreshOptions.prototype.getUseNonStandardRotation=function(){return"UseNonStandardRotation"in mImpl?!!mImpl.UseNonStandardRotation:!1};PDFNet.RefreshOptions.prototype.setUseNonStandardRotation=function(value){mHelpers.putBool(mImpl,"UseNonStandardRotation",value);return this};PDFNet.RefreshOptions.prototype.getUseRoundedCorners=function(){return"UseRoundedCorners"in
mImpl?!!mImpl.UseRoundedCorners:!1};PDFNet.RefreshOptions.prototype.setUseRoundedCorners=function(value){mHelpers.putBool(mImpl,"UseRoundedCorners",value);return this};PDFNet.RefreshOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.createDiffOptions=function(){return Promise.resolve(new PDFNet.DiffOptions)};PDFNet.DiffOptions=function(){this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.DiffOptions.prototype.getAddGroupAnnots=function(){return"AddGroupAnnots"in
this.mImpl?!!this.mImpl.AddGroupAnnots:!1};PDFNet.DiffOptions.prototype.setAddGroupAnnots=function(value){this.mHelpers.putBool(this.mImpl,"AddGroupAnnots",value);return this};PDFNet.DiffOptions.prototype.getBlendMode=function(){return"BlendMode"in this.mImpl?this.mImpl.BlendMode:5};PDFNet.DiffOptions.prototype.setBlendMode=function(value){this.mHelpers.putNumber(this.mImpl,"BlendMode",value);return this};PDFNet.DiffOptions.prototype.getColorA=function(){return"ColorA"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorA):
this.mHelpers.jsColorFromNumber(4291559424)};PDFNet.DiffOptions.prototype.setColorA=function(value){this.mHelpers.putNumber(this.mImpl,"ColorA",this.mHelpers.jsColorToNumber(value));return this};PDFNet.DiffOptions.prototype.getColorB=function(){return"ColorB"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorB):this.mHelpers.jsColorFromNumber(4278242508)};PDFNet.DiffOptions.prototype.setColorB=function(value){this.mHelpers.putNumber(this.mImpl,"ColorB",this.mHelpers.jsColorToNumber(value));
return this};PDFNet.DiffOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.Action=function(id){this.name="Action";this.id=id};PDFNet.ActionParameter=function(id){this.name="ActionParameter";this.id=id};PDFNet.ActionParameter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Annot=function(id){this.name="Annot";this.id=id};PDFNet.AnnotBorderStyle=function(id){this.name="AnnotBorderStyle";this.id=id};PDFNet.AnnotBorderStyle.prototype=Object.create(PDFNet.Destroyable.prototype);
PDFNet.AppearanceReferenceList=function(id){this.name="AppearanceReferenceList";this.id=id};PDFNet.AttrObj=function(id){this.name="AttrObj";this.id=id};PDFNet.Bookmark=function(id){this.name="Bookmark";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})};PDFNet.CaretAnnot=
function(id){this.name="CaretAnnot";this.id=id};PDFNet.CheckBoxWidget=function(id){this.name="CheckBoxWidget";this.id=id};PDFNet.ChunkRenderer=function(id){this.name="ChunkRenderer";this.id=id};PDFNet.CircleAnnot=function(id){this.name="CircleAnnot";this.id=id};PDFNet.ClassMap=function(id){this.name="ClassMap";this.id=id};PDFNet.ColorPt=function(id){this.name="ColorPt";this.id=id};PDFNet.ColorPt.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ColorSpace=function(id){this.name="ColorSpace";
this.id=id};PDFNet.ColorSpace.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ComboBoxWidget=function(id){this.name="ComboBoxWidget";this.id=id};PDFNet.ContentItem=function(o,p){this.name="ContentItem";if(o&&"undefined"===typeof p)copyFunc(o,this);else return"undefined"===typeof o&&(o="0"),"undefined"===typeof p&&(p="0"),new PDFNet.ContentItem({o:o,p:p})};PDFNet.ContentReplacer=function(id){this.name="ContentReplacer";this.id=id};PDFNet.ContentReplacer.prototype=Object.create(PDFNet.Destroyable.prototype);
PDFNet.ConversionMonitor=function(id){this.name="ConversionMonitor";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"===typeof 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){this.name="Destination";this.id=id};PDFNet.DictIterator=function(id){this.name="DictIterator";this.id=id};PDFNet.DictIterator.prototype=
Object.create(PDFNet.Destroyable.prototype);PDFNet.DigestAlgorithm=function(id){this.name="DigestAlgorithm";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})};PDFNet.DisallowedChange=function(id){this.name="DisallowedChange";this.id=id};PDFNet.DisallowedChange.prototype=
Object.create(PDFNet.Destroyable.prototype);PDFNet.DocSnapshot=function(id){this.name="DocSnapshot";this.id=id};PDFNet.DocSnapshot.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.DocumentConversion=function(id){this.name="DocumentConversion";this.id=id};PDFNet.Element=function(id){this.name="Element";this.id=id};PDFNet.ElementBuilder=function(id){this.name="ElementBuilder";this.id=id};PDFNet.ElementBuilder.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ElementReader=function(id){this.name=
"ElementReader";this.id=id};PDFNet.ElementReader.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ElementWriter=function(id){this.name="ElementWriter";this.id=id};PDFNet.ElementWriter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.EmbeddedTimestampVerificationResult=function(id){this.name="EmbeddedTimestampVerificationResult";this.id=id};PDFNet.EmbeddedTimestampVerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FDFDoc=function(id){this.name="FDFDoc";
this.id=id};PDFNet.FDFDoc.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.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";if(leaf_node&&
"undefined"===typeof builder)copyFunc(leaf_node,this);else return"undefined"===typeof leaf_node&&(leaf_node="0"),"undefined"===typeof builder&&(builder="0"),new PDFNet.Field({leaf_node:leaf_node,builder:builder})};PDFNet.FileAttachmentAnnot=function(id){this.name="FileAttachmentAnnot";this.id=id};PDFNet.FileSpec=function(id){this.name="FileSpec";this.id=id};PDFNet.Filter=function(id){this.name="Filter";this.id=id};PDFNet.Filter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FilterReader=
function(id){this.name="FilterReader";this.id=id};PDFNet.FilterReader.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FilterWriter=function(id){this.name="FilterWriter";this.id=id};PDFNet.FilterWriter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Flattener=function(id){this.name="Flattener";this.id=id};PDFNet.Flattener.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Font=function(id){this.name="Font";this.id=id};PDFNet.Font.prototype=Object.create(PDFNet.Destroyable.prototype);
PDFNet.FreeTextAnnot=function(id){this.name="FreeTextAnnot";this.id=id};PDFNet.Function=function(id){this.name="Function";this.id=id};PDFNet.Function.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.GState=function(id){this.name="GState";this.id=id};PDFNet.GeometryCollection=function(id){this.name="GeometryCollection";this.id=id};PDFNet.GeometryCollection.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.HighlightAnnot=function(id){this.name="HighlightAnnot";this.id=id};PDFNet.Highlights=
function(id){this.name="Highlights";this.id=id};PDFNet.Highlights.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Image=function(id){this.name="Image";this.id=id};PDFNet.InkAnnot=function(id){this.name="InkAnnot";this.id=id};PDFNet.Iterator=function(id,type){this.name="Iterator";this.id=id;this.type=type};PDFNet.Iterator.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.KeyStrokeActionResult=function(id){this.name="KeyStrokeActionResult";this.id=id};PDFNet.KeyStrokeActionResult.prototype=
Object.create(PDFNet.Destroyable.prototype);PDFNet.KeyStrokeEventData=function(id){this.name="KeyStrokeEventData";this.id=id};PDFNet.KeyStrokeEventData.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.LineAnnot=function(id){this.name="LineAnnot";this.id=id};PDFNet.LinkAnnot=function(id){this.name="LinkAnnot";this.id=id};PDFNet.ListBoxWidget=function(id){this.name="ListBoxWidget";this.id=id};PDFNet.MarkupAnnot=function(id){this.name="MarkupAnnot";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"===typeof 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){this.name="MovieAnnot";this.id=id};PDFNet.NameTree=function(id){this.name="NameTree";this.id=
id};PDFNet.NumberTree=function(id){this.name="NumberTree";this.id=id};PDFNet.OCG=function(id){this.name="OCG";this.id=id};PDFNet.OCGConfig=function(id){this.name="OCGConfig";this.id=id};PDFNet.OCGContext=function(id){this.name="OCGContext";this.id=id};PDFNet.OCGContext.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.OCMD=function(id){this.name="OCMD";this.id=id};PDFNet.Obj=function(id){this.name="Obj";this.id=id};PDFNet.ObjSet=function(id){this.name="ObjSet";this.id=id};PDFNet.ObjSet.prototype=
Object.create(PDFNet.Destroyable.prototype);PDFNet.ObjectIdentifier=function(id){this.name="ObjectIdentifier";this.id=id};PDFNet.ObjectIdentifier.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.OwnedBitmap=function(id){this.name="OwnedBitmap";this.id=id};PDFNet.PDFACompliance=function(id){this.name="PDFACompliance";this.id=id};PDFNet.PDFACompliance.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFDC=function(id){this.name="PDFDC";this.id=id};PDFNet.PDFDCEX=function(id){this.name=
"PDFDCEX";this.id=id};PDFNet.PDFDoc=function(id){this.name="PDFDoc";this.id=id};PDFNet.PDFDoc.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFDocInfo=function(id){this.name="PDFDocInfo";this.id=id};PDFNet.PDFDocViewPrefs=function(id){this.name="PDFDocViewPrefs";this.id=id};PDFNet.PDFDraw=function(id){this.name="PDFDraw";this.id=id};PDFNet.PDFDraw.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFRasterizer=function(id){this.name="PDFRasterizer";this.id=id};PDFNet.PDFRasterizer.prototype=
Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFView=function(id){this.name="PDFView";this.id=id};PDFNet.PDFViewCtrl=function(id){this.name="PDFViewCtrl";this.id=id};PDFNet.Page=function(id){this.name="Page";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,this);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){this.name="PageSet";this.id=id};PDFNet.PageSet.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PatternColor=function(id){this.name="PatternColor";this.id=id};PDFNet.PatternColor.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PolyLineAnnot=function(id){this.name="PolyLineAnnot";this.id=id};PDFNet.PolygonAnnot=function(id){this.name="PolygonAnnot";
this.id=id};PDFNet.PopupAnnot=function(id){this.name="PopupAnnot";this.id=id};PDFNet.PrinterMode=function(id){this.name="PrinterMode";this.id=id};PDFNet.PushButtonWidget=function(id){this.name="PushButtonWidget";this.id=id};PDFNet.RadioButtonGroup=function(id){this.name="RadioButtonGroup";this.id=id};PDFNet.RadioButtonWidget=function(id){this.name="RadioButtonWidget";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&&(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){this.name="Redaction";this.id=id};PDFNet.RedactionAnnot=function(id){this.name="RedactionAnnot";this.id=id};PDFNet.Redactor=function(id){this.name="Redactor";this.id=id};PDFNet.ResultSnapshot=function(id){this.name="ResultSnapshot";this.id=id};PDFNet.ResultSnapshot.prototype=
Object.create(PDFNet.Destroyable.prototype);PDFNet.RoleMap=function(id){this.name="RoleMap";this.id=id};PDFNet.RubberStampAnnot=function(id){this.name="RubberStampAnnot";this.id=id};PDFNet.SDFDoc=function(id){this.name="SDFDoc";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){this.name="STree";
this.id=id};PDFNet.ScreenAnnot=function(id){this.name="ScreenAnnot";this.id=id};PDFNet.SecurityHandler=function(id){this.name="SecurityHandler";this.id=id};PDFNet.SecurityHandler.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Shading=function(id){this.name="Shading";this.id=id};PDFNet.Shading.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ShapedText=function(id){this.name="ShapedText";this.id=id};PDFNet.ShapedText.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.SignatureHandler=
function(id){this.name="SignatureHandler";this.id=id};PDFNet.SignatureWidget=function(id){this.name="SignatureWidget";this.id=id};PDFNet.SoundAnnot=function(id){this.name="SoundAnnot";this.id=id};PDFNet.SquareAnnot=function(id){this.name="SquareAnnot";this.id=id};PDFNet.SquigglyAnnot=function(id){this.name="SquigglyAnnot";this.id=id};PDFNet.Stamper=function(id){this.name="Stamper";this.id=id};PDFNet.Stamper.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.StrikeOutAnnot=function(id){this.name=
"StrikeOutAnnot";this.id=id};PDFNet.TextAnnot=function(id){this.name="TextAnnot";this.id=id};PDFNet.TextExtractor=function(id){this.name="TextExtractor";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"===typeof 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,end,uni,num,cur_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 end&&(end="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,end:end,uni:uni,num:num,cur_num:cur_num,mp_bld:mp_bld})};
PDFNet.TextMarkupAnnot=function(id){this.name="TextMarkupAnnot";this.id=id};PDFNet.TextSearch=function(id){this.name="TextSearch";this.id=id};PDFNet.TextSearch.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TextWidget=function(id){this.name="TextWidget";this.id=id};PDFNet.TimestampingConfiguration=function(id){this.name="TimestampingConfiguration";this.id=id};PDFNet.TimestampingConfiguration.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TimestampingTestResult=function(id){this.name=
"TimestampingTestResult";this.id=id};PDFNet.TimestampingTestResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TrustVerificationResult=function(id){this.name="TrustVerificationResult";this.id=id};PDFNet.TrustVerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.UnderlineAnnot=function(id){this.name="UnderlineAnnot";this.id=id};PDFNet.UndoManager=function(id){this.name="UndoManager";this.id=id};PDFNet.UndoManager.prototype=Object.create(PDFNet.Destroyable.prototype);
PDFNet.VerificationOptions=function(id){this.name="VerificationOptions";this.id=id};PDFNet.VerificationOptions.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.VerificationResult=function(id){this.name="VerificationResult";this.id=id};PDFNet.VerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ViewChangeCollection=function(id){this.name="ViewChangeCollection";this.id=id};PDFNet.ViewChangeCollection.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.WatermarkAnnot=
function(id){this.name="WatermarkAnnot";this.id=id};PDFNet.WidgetAnnot=function(id){this.name="WidgetAnnot";this.id=id};PDFNet.X501AttributeTypeAndValue=function(id){this.name="X501AttributeTypeAndValue";this.id=id};PDFNet.X501AttributeTypeAndValue.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X501DistinguishedName=function(id){this.name="X501DistinguishedName";this.id=id};PDFNet.X501DistinguishedName.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X509Certificate=function(id){this.name=
"X509Certificate";this.id=id};PDFNet.X509Certificate.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X509Extension=function(id){this.name="X509Extension";this.id=id};PDFNet.X509Extension.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.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})};PDFNet.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})};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=function(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=force;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;this.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=function(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=function(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;this.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=function(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};PDFNet.Optimizer.MonoImageSettings.DownsampleMode={e_off:0,e_default:1};PDFNet.Convert.ConversionOptions=function(){};PDFNet.Convert.createOfficeToPDFOptions=function(){return Promise.resolve(new PDFNet.Convert.OfficeToPDFOptions)};
PDFNet.Convert.OfficeToPDFOptions=function(){this.name="PDFNet.Convert.ConversionOptions"};PDFNet.Convert.OfficeToPDFOptions.prototype.setLayoutResourcesPluginPath=function(value){this.LayoutResourcesPluginPath=value;return this};PDFNet.Convert.OfficeToPDFOptions.prototype.setResourceDocPath=function(value){this.ResourceDocPath=value;return this};PDFNet.Convert.OfficeToPDFOptions.prototype.setSmartSubstitutionPluginPath=function(value){this.SmartSubstitutionPluginPath=value;return this};PDFNet.Convert.OfficeToPDFOptions.prototype.setExcelDefaultCellBorderWidth=
function(width){this.ExcelDefaultCellBorderWidth=width;return this};PDFNet.Convert.OverprintPreviewMode={e_op_off:0,e_op_on:1,e_op_pdfx_on:2};PDFNet.Convert.XPSOutputCommonOptions=function(){this.name="PDFNet.Convert.XPSOutputCommonOptions"};PDFNet.Convert.XPSOutputCommonOptions.prototype.setPrintMode=function(print_mode){this.PRINTMODE=print_mode;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setDPI=function(dpi){this.DPI=dpi;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setRenderPages=
function(render){this.RENDER=render;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setThickenLines=function(thicken){this.THICKENLINES=thicken;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.generateURLLinks=function(generate){this.URL_LINKS=generate;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setOverprint=function(mode){switch(mode){case PDFNet.Convert.OverprintPreviewMode.e_op_off:this.OVERPRINT_MODE="OFF";break;case PDFNet.Convert.OverprintPreviewMode.e_op_on:this.OVERPRINT_MODE=
"ON";break;case PDFNet.Convert.OverprintPreviewMode.e_op_pdfx_on:this.OVERPRINT_MODE="PDFX";break;default:console.log("unrecognized PDFNet.Convert.OverprintPreviewMode type: "+mode)}return this};PDFNet.Convert.createXPSOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.XPSOutputOptions)};PDFNet.Convert.XPSOutputOptions=function(){this.name="PDFNet.Convert.XPSOutputOptions"};PDFNet.Convert.XPSOutputOptions.prototype=Object.create(PDFNet.Convert.XPSOutputCommonOptions.prototype);PDFNet.Convert.XPSOutputOptions.prototype.setOpenXps=
function(openxps){this.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=function(){this.name="PDFNet.Convert.XODOutputOptions"};
PDFNet.Convert.XODOutputOptions.prototype=Object.create(PDFNet.Convert.XPSOutputCommonOptions.prototype);PDFNet.Convert.XODOutputOptions.prototype.setOutputThumbnails=function(include_thumbs){this.NOTHUMBS=include_thumbs;return this};PDFNet.Convert.XODOutputOptions.prototype.setOutputThumbnails=function(include_thumbs){this.NOTHUMBS=include_thumbs;return this};PDFNet.Convert.XODOutputOptions.prototype.setThumbnailSize=function(regular_size,large_size){this.THUMB_SIZE=regular_size;this.LARGE_THUMB_SIZE=
large_size?large_size:regular_size;return this};PDFNet.Convert.XODOutputOptions.prototype.setElementLimit=function(element_limit){this.ELEMENTLIMIT=element_limit;return this};PDFNet.Convert.XODOutputOptions.prototype.setOpacityMaskWorkaround=function(opacity_render){this.MASKRENDER=opacity_render;return this};PDFNet.Convert.XODOutputOptions.prototype.setMaximumImagePixels=function(max_pixels){this.MAX_IMAGE_PIXELS=max_pixels;return this};PDFNet.Convert.XODOutputOptions.prototype.setFlattenContent=
function(flatten){switch(flatten){case PDFNet.Convert.FlattenFlag.e_off:this.FLATTEN_CONTENT="OFF";break;case PDFNet.Convert.FlattenFlag.e_simple:this.FLATTEN_CONTENT="SIMPLE";break;case PDFNet.Convert.FlattenFlag.e_fast:this.FLATTEN_CONTENT="FAST";break;case PDFNet.Convert.FlattenFlag.e_high_quality:this.FLATTEN_CONTENT="HIGH_QUALITY";break;default:console.log("unrecognized PDFNet.Convert.FlattenFlag type: "+flatten)}return this};PDFNet.Convert.XODOutputOptions.prototype.setFlattenThreshold=function(threshold){switch(threshold){case PDFNet.Convert.FlattenThresholdFlag.e_very_strict:this.FLATTEN_THRESHOLD=
"VERY_STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_strict:this.FLATTEN_THRESHOLD="STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_default:this.FLATTEN_THRESHOLD="DEFAULT";break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_most:this.FLATTEN_THRESHOLD="KEEP_MOST";break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_all:this.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.PREFER_JPEG=prefer_jpg;return this};PDFNet.Convert.XODOutputOptions.prototype.setJPGQuality=function(quality){this.JPEG_QUALITY=quality;return this};PDFNet.Convert.XODOutputOptions.prototype.setSilverlightTextWorkaround=function(workaround){this.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.ANNOTATION_OUTPUT=
"INTERNAL";break;case PDFNet.Convert.AnnotationOutputFlag.e_external_xfdf:this.ANNOTATION_OUTPUT="EXTERNAL";break;case PDFNet.Convert.AnnotationOutputFlag.e_flatten:this.ANNOTATION_OUTPUT="FLATTEN";break;default:console.log("unrecognized PDFNet.Convert.AnnotationOutputFlag type: "+annot_output)}return this};PDFNet.Convert.XODOutputOptions.prototype.setExternalParts=function(generate){this.EXTERNAL_PARTS=generate;return this};PDFNet.Convert.XODOutputOptions.prototype.setEncryptPassword=function(pass){this.ENCRYPT_PASSWORD=
pass;return this};PDFNet.Convert.XODOutputOptions.prototype.useSilverlightFlashCompatible=function(compatible){this.COMPATIBLE_XOD=compatible;return this};PDFNet.MarkupAnnot.prototype=new PDFNet.Annot;PDFNet.TextMarkupAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.CaretAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.LineAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.CircleAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.FileAttachmentAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.FreeTextAnnot.prototype=
new PDFNet.MarkupAnnot;PDFNet.HighlightAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.InkAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.LinkAnnot.prototype=new PDFNet.Annot;PDFNet.MovieAnnot.prototype=new PDFNet.Annot;PDFNet.PolyLineAnnot.prototype=new PDFNet.LineAnnot;PDFNet.PolygonAnnot.prototype=new PDFNet.PolyLineAnnot;PDFNet.PopupAnnot.prototype=new PDFNet.Annot;PDFNet.RedactionAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.RubberStampAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.ScreenAnnot.prototype=
new PDFNet.Annot;PDFNet.SoundAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.SquareAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.SquigglyAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.StrikeOutAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.TextAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.UnderlineAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.WatermarkAnnot.prototype=new PDFNet.Annot;PDFNet.WidgetAnnot.prototype=new PDFNet.Annot;PDFNet.SignatureWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.ComboBoxWidget.prototype=
new PDFNet.WidgetAnnot;PDFNet.ListBoxWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.TextWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.CheckBoxWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.RadioButtonWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.PushButtonWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.PrinterMode.PaperSize={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,e_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,e_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,e_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,e_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,e_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={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};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,e_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,e_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,e_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,e_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:7811,e_PDFA7_8_12:7812,e_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:9