@pdftron/webviewer
Version:
[WebViewer](https://www.apryse.com/webviewer) is a powerful JavaScript Document SDK and UI Component Library that is a part of the [Apryse PDF SDK](https://www.apryse.com). It provides a slick, out-of-the-box responsive UI that interacts with the core lib
100 lines • 712 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];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;
$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);
$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={};
$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]}};
$jscomp.polyfill=function(target,polyfill,fromLang,toLang){polyfill&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(target,polyfill,fromLang,toLang):$jscomp.polyfillUnisolated(target,polyfill,fromLang,toLang))};
$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})};
$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,
split,{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})))};
$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;
AsyncExecutor.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];
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_=[];this.isRejectionHandled_=!1;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;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};PolyfillPromise.prototype.scheduleUnhandledRejectionCheck_=function(){var self=
this;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?
NativeCustomEvent=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_=
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);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,
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.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+""};
$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");
$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(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var 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*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}},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=exports.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=
function(){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=
function(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);
PDFNet.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);
PDFNet.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})};
PDFNet.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=
"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);PDFNet.ColorSpace=
function(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,
this);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";
checkConstructorCaller(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"===
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,caller){this.name="Destination";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.DictIterator=function(id,caller){this.name=
"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})};
PDFNet.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=
id};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,
this.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);
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,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=
Object.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,
caller,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=
"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=
Object.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=
"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=
function(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);
this.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"===
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,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=
function(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);
PDFNet.OCMD=function(id,caller){this.name="OCMD";checkConstructorCaller(id,caller,this.name);this.id=id};PDFNet.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=
function(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);
PDFNet.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);
PDFNet.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,
caller,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,
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,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,
caller,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=
"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";
checkConstructorCaller(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&&
(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=
"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";
checkConstructorCaller(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=
function(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=
function(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,
caller,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=
"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);
this.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"===
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,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 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";
checkConstructorCaller(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,
caller){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=
"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=
id};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,
caller,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=
"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";
checkConstructorCaller(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);
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.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.");
this.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=
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,e_ccitt:3};PDFNet.Optimizer.MonoImageSettings.DownsampleMode=
{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=
function(){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=
thicken;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.generateURLLinks=function(generate){this.mImpl.URL_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;
default: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);
PDFNet.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=
function(){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.XO