UNPKG

@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

1 lines • 570 kB
!function(){var n,i,u=u||{};u.scope={},u.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value),e},u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$";function r(e){var t;return(i[e]||(t=i[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}u.polyfill=function(e,t,n,i){t&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,t,n,i):u.polyfillUnisolated(e,t,n,i))},u.polyfillUnisolated=function(e,t,n,i){for(n=u.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))return;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&u.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},u.polyfillIsolated=function(e,t,n,i){var r=e.split(".");e=1===r.length,i=r[0],i=!e&&i in u.polyfills?u.polyfills:u.global;for(var o=0;o<r.length-1;o++){var s=r[o];if(!(s in i))return;i=i[s]}r=r[r.length-1],null!=(t=t(n=u.IS_SYMBOL_NATIVE&&"es6"===n?i[r]:null))&&(e?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:t}):t!==n&&(void 0===u.propertyToPolyfillSymbol[r]&&(n=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+n+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:t})))},u.polyfill("Promise",function(e){function t(){this.batch_=null}function s(n){return n instanceof a?n:new a(function(e,t){e(n)})}if(e&&(!(u.FORCE_POLYFILL_PROMISE||u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===u.global.PromiseRejectionEvent)||!u.global.Promise||-1===u.global.Promise.toString().indexOf("[native code]")))return e;t.prototype.asyncExecute=function(e){var t;null==this.batch_&&(this.batch_=[],(t=this).asyncExecuteFunction(function(){t.executeBatch_()})),this.batch_.push(e)};function a(e){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var t=this.createResolveAndReject_();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}var n=u.global.setTimeout,r=(t.prototype.asyncExecuteFunction=function(e){n(e,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var e=this.batch_;this.batch_=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.asyncThrow_(e)}}}this.batch_=null},t.prototype.asyncThrow_=function(e){this.asyncExecuteFunction(function(){throw e})},a.prototype.createResolveAndReject_=function(){function e(t){return function(e){i||(i=!0,t.call(n,e))}}var n=this,i=!1;return{resolve:e(this.resolveTo_),reject:e(this.reject_)}},a.prototype.resolveTo_=function(e){if(e===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof a)this.settleSameAsPromise_(e);else{switch(typeof e){case"object":var t=null!=e;break;case"function":t=!0;break;default:t=!1}t?this.resolveToNonPromiseObj_(e):this.fulfill_(e)}},a.prototype.resolveToNonPromiseObj_=function(e){var t=void 0;try{t=e.then}catch(e){return void this.reject_(e)}"function"==typeof t?this.settleSameAsThenable_(t,e):this.fulfill_(e)},a.prototype.reject_=function(e){this.settle_(2,e)},a.prototype.fulfill_=function(e){this.settle_(1,e)},a.prototype.settle_=function(e,t){if(0!=this.state_)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.state_);this.state_=e,this.result_=t,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},a.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;n(function(){var e;t.notifyUnhandledRejection_()&&void 0!==(e=u.global.console)&&e.error(t.result_)},1)},a.prototype.notifyUnhandledRejection_=function(){var e,t,n;return!this.isRejectionHandled_&&(e=u.global.CustomEvent,t=u.global.Event,void 0===(n=u.global.dispatchEvent)||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=u.global.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.result_,n(e)))},a.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var e=0;e<this.onSettledCallbacks_.length;++e)r.asyncExecute(this.onSettledCallbacks_[e]);this.onSettledCallbacks_=null}},new t);return a.prototype.settleSameAsPromise_=function(e){var t=this.createResolveAndReject_();e.callWhenSettled_(t.resolve,t.reject)},a.prototype.settleSameAsThenable_=function(e,t){var n=this.createResolveAndReject_();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},a.prototype.then=function(e,t){function n(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(e){r(e)}}:e}var i,r,o=new a(function(e,t){i=e,r=t});return this.callWhenSettled_(n(e,i),n(t,r)),o},a.prototype.catch=function(e){return this.then(void 0,e)},a.prototype.callWhenSettled_=function(e,t){function n(){switch(i.state_){case 1:e(i.result_);break;case 2:t(i.result_);break;default:throw Error("Unexpected state: "+i.state_)}}var i=this;null==this.onSettledCallbacks_?r.asyncExecute(n):this.onSettledCallbacks_.push(n),this.isRejectionHandled_=!0},a.resolve=s,a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){for(var n=u.makeIterator(r),i=n.next();!i.done;i=n.next())s(i.value).callWhenSettled_(e,t)})},a.all=function(e){var t=u.makeIterator(e),o=t.next();return o.done?s([]):new a(function(n,e){for(var i=[],r=0;i.push(void 0),r++,s(o.value).callWhenSettled_(function e(t){return function(e){i[t]=e,0==--r&&n(i)}}(i.length-1),e),!(o=t.next()).done;);})},a},"es6","es3"),u.checkStringArgs=function(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""},u.polyfill("String.prototype.startsWith",function(e){return e||function(e,t){var n=u.checkStringArgs(this,e,"startsWith"),i=n.length,r=(e+="").length;t=Math.max(0,Math.min(0|t,n.length));for(var o=0;o<r&&t<i;)if(n[t++]!=e[o++])return!1;return r<=o}},"es6","es3"),u.polyfill("Array.from",function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var i=[],r="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof r){e=r.call(e);for(var o=0;!(r=e.next()).done;)i.push(t.call(n,r.value,o++))}else for(r=e.length,o=0;o<r;o++)i.push(t.call(n,e[o],o));return i}},"es6","es3"),n=[function(e,t,n){e.exports=n(1)},function(e,t){function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=[],s=[],a=0,n=0,u=[],c=[],l="undefined"==typeof window?this:window;function i(){return{putBool:function(e,t,n){if(!1!==n&&!0!==n)throw new TypeError("An boolean value is expected for putBool");e[t]=n},putNumber:function(e,t,n){e[t]=0+n},putString:function(e,t,n){e[t]=""+n},jsColorToNumber:function(e){return 4278190080+65536*Math.floor(e.R)+256*Math.floor(e.G)+Math.floor(e.B)},jsColorFromNumber:function(e){return{A:5.960464477539063e-8*e&255,R:(16711680&(0|e))>>>16,G:(65280&(0|e))>>>8,B:255&(0|e)}},pushBackString:function(e,t,n){t in e||(e[t]=[]),e[t].push(n)}}}function r(i){return Promise.resolve().then(function e(t){var n=(t=i.next(t)).value;return t.done?t.value:n.then(e)})}function h(e,t,n){if(174774839!==t&&"0"!==e)throw Error("Non-null object of PDFNet."+n+" is not supposed to be created with its constructor.")}var m=l.Core.PDFNet||{};function p(r,o){o=o||{};var s=new XMLHttpRequest;return new Promise(function(t,n){s.open("GET",r,!0),s.responseType="arraybuffer",o.withCredentials&&(s.withCredentials=o.withCredentials),s.onerror=function(){n(Error("Network error occurred"))},s.onload=function(e){200==this.status?(e=new Uint8Array(s.response),t(e)):n(Error("Download Failed"))};var e=o.customHeaders;if(e)for(var i in e)s.setRequestHeader(i,e[i]);s.send()},function(){s.abort()})}function g(e){return 0===e?"1st":1===e?"2nd":2===e?"3rd":e+1+"th"}function f(e,t,i,r,n){var o=n.length;if(t===o){if(e!==t)throw new RangeError(e+" arguments passed into function '"+i+"'. Expected "+t+" argument. Function Signature: "+i+r)}else if(t<=0){if(o<e)throw new RangeError(e+" arguments passed into function '"+i+"'. Expected at most "+o+" arguments. Function Signature: "+i+r)}else if(e<t||o<e)throw new RangeError(e+" arguments passed into function '"+i+"'. Expected "+t+" to "+o+" arguments. Function Signature: "+i+r);function s(e,t,n){throw new TypeError(g(e)+" input argument in function '"+i+"' is of type '"+t+"'. Expected type '"+n+"'. Function Signature: "+i+r)}for(e=function(e,t,n){"object"===d(e)&&e.name?s(t,e.name,n):s(t,d(e),n)},t=0;t<o;t++){var a=n[t],u=a[0],c=a[1];if(u instanceof Promise)throw new TypeError(g(t)+" input argument in function '"+i+"' is a Promise object. Promises require a 'yield' statement before being accessed.");if("OptionBase"===c){if(u)if("object"===d(u)){if("function"!=typeof u.getJsonString)throw new TypeError(g(t)+" input argument in function '"+i+"' is an 'oject' which is expected to have the 'getJsonString' function")}else s(t,u.name,"object")}else"Array"===c?Array.isArray(u)||e(u,t,"Array"):"ArrayBuffer"===c?l.isArrayBuffer(u)||l.isArrayBuffer(u.buffer)||e(u,t,"ArrayBuffer|TypedArray"):"ArrayAsBuffer"===c?Array.isArray(u)||l.isArrayBuffer(u)||l.isArrayBuffer(u.buffer)||e(u,t,"ArrayBuffer|TypedArray"):"PDFDoc"===c||"SDFDoc"===c||"FDFDoc"===c?u instanceof m.PDFDoc||u instanceof m.SDFDoc||u instanceof m.FDFDoc||e(u,t,"PDFDoc|SDFDoc|FDFDoc"):"Structure"===c?u instanceof a[2]||!u||u.name===a[3]||e(u,t,a[3]):"OptionObject"===c?u instanceof a[2]||("object"===d(u)&&u.name?u.name!==a[4]&&s(t,u.name,a[3]):s(t,d(u),a[3])):"Object"===c?u instanceof a[2]||e(u,t,a[3]):"const char* = 0"===c?"string"!=typeof u&&null!==u&&s(t,d(u),"string"):d(u)!==c&&s(t,d(u),c)}}m.Convert=l.Core.PDFNet&&l.Core.PDFNet.Convert?l.Core.PDFNet.Convert:{},m.Optimizer={},l.Core&&l.Core.enableFullPDF(),l.isArrayBuffer=function(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength},m.Destroyable=function(){if(this.constructor===m.Destroyable)throw Error("Can't instantiate abstract class!")},m.Destroyable.prototype.takeOwnership=function(){A(this.id)},m.Destroyable.prototype.destroy=function(){return this.takeOwnership(),m.sendWithPromise(this.name+".destroy",{auto_dealloc_obj:this.id})},m.Action=function(e,t){this.name="Action",h(e,t,this.name),this.id=e},m.ActionParameter=function(e,t){this.name="ActionParameter",h(e,t,this.name),this.id=e},m.ActionParameter.prototype=Object.create(m.Destroyable.prototype),m.AdvancedImagingModule=function(e,t){this.name="AdvancedImagingModule",h(e,t,this.name),this.id=e},m.AlgorithmIdentifier=function(e,t){this.name="AlgorithmIdentifier",h(e,t,this.name),this.id=e},m.AlgorithmIdentifier.prototype=Object.create(m.Destroyable.prototype),m.AlgorithmParams=function(e,t){this.name="AlgorithmParams",h(e,t,this.name),this.id=e},m.AlgorithmParams.prototype=Object.create(m.Destroyable.prototype),m.Annot=function(e,t){this.name="Annot",h(e,t,this.name),this.id=e},m.AnnotBorderStyle=function(e,t){this.name="AnnotBorderStyle",h(e,t,this.name),this.id=e},m.AnnotBorderStyle.prototype=Object.create(m.Destroyable.prototype),m.AttrObj=function(e,t){this.name="AttrObj",h(e,t,this.name),this.id=e},m.Bookmark=function(e,t){this.name="Bookmark",h(e,t,this.name),this.id=e},m.ByteRange=function(e,t){if(this.name="ByteRange",!e||void 0!==t)return new m.ByteRange({m_offset:e=void 0===e?0:e,m_size:t=void 0===t?0:t});O(e,this)},m.CMSSignatureOptions=function(e,t){this.name="CMSSignatureOptions",h(e,t,this.name),this.id=e},m.CMSSignatureOptions.prototype=Object.create(m.Destroyable.prototype),m.CaretAnnot=function(e,t){this.name="CaretAnnot",h(e,t,this.name),this.id=e},m.CheckBoxWidget=function(e,t){this.name="CheckBoxWidget",h(e,t,this.name),this.id=e},m.ChunkRenderer=function(e,t){this.name="ChunkRenderer",h(e,t,this.name),this.id=e},m.CircleAnnot=function(e,t){this.name="CircleAnnot",h(e,t,this.name),this.id=e},m.ClassMap=function(e,t){this.name="ClassMap",h(e,t,this.name),this.id=e},m.ColorPt=function(e,t){this.name="ColorPt",h(e,t,this.name),this.id=e},m.ColorPt.prototype=Object.create(m.Destroyable.prototype),m.ColorSpace=function(e,t){this.name="ColorSpace",h(e,t,this.name),this.id=e},m.ColorSpace.prototype=Object.create(m.Destroyable.prototype),m.ComboBoxWidget=function(e,t){this.name="ComboBoxWidget",h(e,t,this.name),this.id=e},m.ContentElement=function(e,t){this.name="ContentElement",h(e,t,this.name),this.id=e},m.ContentItem=function(e,t){if(this.name="ContentItem",!e||void 0!==t)return new m.ContentItem({o:e=void 0===e?"0":e,p:t=void 0===t?"0":t});O(e,this)},m.ContentNode=function(e,t){this.name="ContentNode",h(e,t,this.name),this.id=e},m.ContentReplacer=function(e,t){this.name="ContentReplacer",h(e,t,this.name),this.id=e},m.ContentReplacer.prototype=Object.create(m.Destroyable.prototype),m.ConversionMonitor=function(e,t){this.name="ConversionMonitor",h(e,t,this.name),this.id=e},m.ConversionMonitor.prototype=Object.create(m.Destroyable.prototype),m.Date=function(e,t,n,i,r,o,s,a,u,c){if(this.name="Date",!e||void 0!==t)return new m.Date({year:e=void 0===e?0:e,month:t=void 0===t?0:t,day:n=void 0===n?0:n,hour:i=void 0===i?0:i,minute:r=void 0===r?0:r,second:o=void 0===o?0:o,UT:s=void 0===s?0:s,UT_hour:a=void 0===a?0:a,UT_minutes:u=void 0===u?0:u,mp_obj:c=void 0===c?"0":c});O(e,this)},m.Destination=function(e,t){this.name="Destination",h(e,t,this.name),this.id=e},m.DictIterator=function(e,t){this.name="DictIterator",h(e,t,this.name),this.id=e},m.DictIterator.prototype=Object.create(m.Destroyable.prototype),m.DigestAlgorithm=function(e,t){this.name="DigestAlgorithm",h(e,t,this.name),this.id=e},m.DigitalSignatureField=function(e){if(this.name="DigitalSignatureField","object"===d(e))O(e,this);else if(void 0!==e)return new m.DigitalSignatureField({mp_field_dict_obj:e})},m.DisallowedChange=function(e,t){this.name="DisallowedChange",h(e,t,this.name),this.id=e},m.DisallowedChange.prototype=Object.create(m.Destroyable.prototype),m.DocSnapshot=function(e,t){this.name="DocSnapshot",h(e,t,this.name),this.id=e},m.DocSnapshot.prototype=Object.create(m.Destroyable.prototype),m.Element=function(e,t){this.name="Element",h(e,t,this.name),this.id=e},m.ElementBuilder=function(e,t){this.name="ElementBuilder",h(e,t,this.name),this.id=e},m.ElementBuilder.prototype=Object.create(m.Destroyable.prototype),m.ElementReader=function(e,t){this.name="ElementReader",h(e,t,this.name),this.id=e},m.ElementReader.prototype=Object.create(m.Destroyable.prototype),m.ElementWriter=function(e,t){this.name="ElementWriter",h(e,t,this.name),this.id=e},m.ElementWriter.prototype=Object.create(m.Destroyable.prototype),m.EmbeddedTimestampVerificationResult=function(e,t){this.name="EmbeddedTimestampVerificationResult",h(e,t,this.name),this.id=e},m.EmbeddedTimestampVerificationResult.prototype=Object.create(m.Destroyable.prototype),m.FDFDoc=function(e,t){this.name="FDFDoc",h(e,t,this.name),this.id=e},m.FDFDoc.prototype=Object.create(m.Destroyable.prototype),m.FDFField=function(e,t){if(this.name="FDFField",!e||void 0!==t)return new m.FDFField({mp_leaf_node:e=void 0===e?"0":e,mp_root_array:t=void 0===t?"0":t});O(e,this)},m.Field=function(e,t){if(this.name="Field",!e||void 0!==t)return new m.Field({leaf_node:e=void 0===e?"0":e,builder:t=void 0===t?"0":t});O(e,this)},m.FileAttachmentAnnot=function(e,t){this.name="FileAttachmentAnnot",h(e,t,this.name),this.id=e},m.FileSpec=function(e,t){this.name="FileSpec",h(e,t,this.name),this.id=e},m.Filter=function(e,t){this.name="Filter",h(e,t,this.name),this.id=e},m.Filter.prototype=Object.create(m.Destroyable.prototype),m.FilterReader=function(e,t){this.name="FilterReader",h(e,t,this.name),this.id=e},m.FilterReader.prototype=Object.create(m.Destroyable.prototype),m.FilterWriter=function(e,t){this.name="FilterWriter",h(e,t,this.name),this.id=e},m.FilterWriter.prototype=Object.create(m.Destroyable.prototype),m.Flattener=function(e,t){this.name="Flattener",h(e,t,this.name),this.id=e},m.Flattener.prototype=Object.create(m.Destroyable.prototype),m.FlowDocument=function(e,t){this.name="FlowDocument",h(e,t,this.name),this.id=e},m.FlowDocument.prototype=Object.create(m.Destroyable.prototype),m.Font=function(e,t){this.name="Font",h(e,t,this.name),this.id=e},m.Font.prototype=Object.create(m.Destroyable.prototype),m.FreeTextAnnot=function(e,t){this.name="FreeTextAnnot",h(e,t,this.name),this.id=e},m.Function=function(e,t){this.name="Function",h(e,t,this.name),this.id=e},m.Function.prototype=Object.create(m.Destroyable.prototype),m.GState=function(e,t){this.name="GState",h(e,t,this.name),this.id=e},m.GeometryCollection=function(e,t){this.name="GeometryCollection",h(e,t,this.name),this.id=e},m.GeometryCollection.prototype=Object.create(m.Destroyable.prototype),m.HighlightAnnot=function(e,t){this.name="HighlightAnnot",h(e,t,this.name),this.id=e},m.Highlights=function(e,t){this.name="Highlights",h(e,t,this.name),this.id=e},m.Highlights.prototype=Object.create(m.Destroyable.prototype),m.Image=function(e,t){this.name="Image",h(e,t,this.name),this.id=e},m.InkAnnot=function(e,t){this.name="InkAnnot",h(e,t,this.name),this.id=e},m.Iterator=function(e,t,n){this.name="Iterator",h(e,t,this.name),this.id=e,this.type=n},m.Iterator.prototype=Object.create(m.Destroyable.prototype),m.KeyStrokeActionResult=function(e,t){this.name="KeyStrokeActionResult",h(e,t,this.name),this.id=e},m.KeyStrokeActionResult.prototype=Object.create(m.Destroyable.prototype),m.KeyStrokeEventData=function(e,t){this.name="KeyStrokeEventData",h(e,t,this.name),this.id=e},m.KeyStrokeEventData.prototype=Object.create(m.Destroyable.prototype),m.LineAnnot=function(e,t){this.name="LineAnnot",h(e,t,this.name),this.id=e},m.LinkAnnot=function(e,t){this.name="LinkAnnot",h(e,t,this.name),this.id=e},m.List=function(e,t){this.name="List",h(e,t,this.name),this.id=e},m.ListBoxWidget=function(e,t){this.name="ListBoxWidget",h(e,t,this.name),this.id=e},m.ListItem=function(e,t){this.name="ListItem",h(e,t,this.name),this.id=e},m.MarkupAnnot=function(e,t){this.name="MarkupAnnot",h(e,t,this.name),this.id=e},m.Matrix2D=function(e,t,n,i,r,o){if(this.name="Matrix2D",!e||void 0!==t)return new m.Matrix2D({m_a:e=void 0===e?0:e,m_b:t=void 0===t?0:t,m_c:n=void 0===n?0:n,m_d:i=void 0===i?0:i,m_h:r=void 0===r?0:r,m_v:o=void 0===o?0:o});O(e,this)},m.MovieAnnot=function(e,t){this.name="MovieAnnot",h(e,t,this.name),this.id=e},m.NameTree=function(e,t){this.name="NameTree",h(e,t,this.name),this.id=e},m.NumberTree=function(e,t){this.name="NumberTree",h(e,t,this.name),this.id=e},m.OCG=function(e,t){this.name="OCG",h(e,t,this.name),this.id=e},m.OCGConfig=function(e,t){this.name="OCGConfig",h(e,t,this.name),this.id=e},m.OCGContext=function(e,t){this.name="OCGContext",h(e,t,this.name),this.id=e},m.OCGContext.prototype=Object.create(m.Destroyable.prototype),m.OCMD=function(e,t){this.name="OCMD",h(e,t,this.name),this.id=e},m.OCRModule=function(e,t){this.name="OCRModule",h(e,t,this.name),this.id=e},m.Obj=function(e,t){this.name="Obj",h(e,t,this.name),this.id=e},m.ObjSet=function(e,t){this.name="ObjSet",h(e,t,this.name),this.id=e},m.ObjSet.prototype=Object.create(m.Destroyable.prototype),m.ObjectIdentifier=function(e,t){this.name="ObjectIdentifier",h(e,t,this.name),this.id=e},m.ObjectIdentifier.prototype=Object.create(m.Destroyable.prototype),m.OwnedBitmap=function(e,t){this.name="OwnedBitmap",h(e,t,this.name),this.id=e},m.PDFACompliance=function(e,t){this.name="PDFACompliance",h(e,t,this.name),this.id=e},m.PDFACompliance.prototype=Object.create(m.Destroyable.prototype),m.PDFAOptions=function(e,t){this.name="PDFAOptions",h(e,t,this.name),this.id=e},m.PDFDC=function(e,t){this.name="PDFDC",h(e,t,this.name),this.id=e},m.PDFDCEX=function(e,t){this.name="PDFDCEX",h(e,t,this.name),this.id=e},m.PDFDoc=function(e,t){this.name="PDFDoc",h(e,t,this.name),this.id=e},m.PDFDoc.prototype=Object.create(m.Destroyable.prototype),m.PDFDocInfo=function(e,t){this.name="PDFDocInfo",h(e,t,this.name),this.id=e},m.PDFDocViewPrefs=function(e,t){this.name="PDFDocViewPrefs",h(e,t,this.name),this.id=e},m.PDFDraw=function(e,t){this.name="PDFDraw",h(e,t,this.name),this.id=e},m.PDFDraw.prototype=Object.create(m.Destroyable.prototype),m.PDFRasterizer=function(e,t){this.name="PDFRasterizer",h(e,t,this.name),this.id=e},m.PDFRasterizer.prototype=Object.create(m.Destroyable.prototype),m.PDFTronCustomSecurityHandler=function(e,t){this.name="PDFTronCustomSecurityHandler",h(e,t,this.name),this.id=e},m.Page=function(e,t){this.name="Page",h(e,t,this.name),this.id=e},m.PageLabel=function(e,t,n){if(this.name="PageLabel",!e||void 0!==t)return new m.PageLabel({mp_obj:e=void 0===e?"0":e,m_first_page:t=void 0===t?0:t,m_last_page:n=void 0===n?0:n});O(e,this)},m.PageSet=function(e,t){this.name="PageSet",h(e,t,this.name),this.id=e},m.PageSet.prototype=Object.create(m.Destroyable.prototype),m.Paragraph=function(e,t){this.name="Paragraph",h(e,t,this.name),this.id=e},m.PatternColor=function(e,t){this.name="PatternColor",h(e,t,this.name),this.id=e},m.PatternColor.prototype=Object.create(m.Destroyable.prototype),m.PolyLineAnnot=function(e,t){this.name="PolyLineAnnot",h(e,t,this.name),this.id=e},m.PolygonAnnot=function(e,t){this.name="PolygonAnnot",h(e,t,this.name),this.id=e},m.PopupAnnot=function(e,t){this.name="PopupAnnot",h(e,t,this.name),this.id=e},m.PrinterMode=function(e,t){this.name="PrinterMode",h(e,t,this.name),this.id=e},m.PushButtonWidget=function(e,t){this.name="PushButtonWidget",h(e,t,this.name),this.id=e},m.RSASSAPSSParams=function(e,t){this.name="RSASSAPSSParams",h(e,t,this.name),this.id=e},m.RadioButtonGroup=function(e,t){this.name="RadioButtonGroup",h(e,t,this.name),this.id=e},m.RadioButtonGroup.prototype=Object.create(m.Destroyable.prototype),m.RadioButtonWidget=function(e,t){this.name="RadioButtonWidget",h(e,t,this.name),this.id=e},m.Rect=function(e,t,n,i,r){if(this.name="Rect",!e||void 0!==t)return new m.Rect({x1:e=void 0===e?0:e,y1:t=void 0===t?0:t,x2:n=void 0===n?0:n,y2:i=void 0===i?0:i,mp_rect:r=void 0===r?"0":r});O(e,this)},m.Redaction=function(e,t){this.name="Redaction",h(e,t,this.name),this.id=e},m.RedactionAnnot=function(e,t){this.name="RedactionAnnot",h(e,t,this.name),this.id=e},m.Redactor=function(e,t){this.name="Redactor",h(e,t,this.name),this.id=e},m.Reflow=function(e,t){this.name="Reflow",h(e,t,this.name),this.id=e},m.Reflow.prototype=Object.create(m.Destroyable.prototype),m.ResultSnapshot=function(e,t){this.name="ResultSnapshot",h(e,t,this.name),this.id=e},m.ResultSnapshot.prototype=Object.create(m.Destroyable.prototype),m.RoleMap=function(e,t){this.name="RoleMap",h(e,t,this.name),this.id=e},m.RubberStampAnnot=function(e,t){this.name="RubberStampAnnot",h(e,t,this.name),this.id=e},m.SDFDoc=function(e,t){this.name="SDFDoc",h(e,t,this.name),this.id=e},m.SElement=function(e,t){if(this.name="SElement",!e||void 0!==t)return new m.SElement({obj:e=void 0===e?"0":e,k:t=void 0===t?"0":t});O(e,this)},m.STree=function(e,t){this.name="STree",h(e,t,this.name),this.id=e},m.ScreenAnnot=function(e,t){this.name="ScreenAnnot",h(e,t,this.name),this.id=e},m.SecurityHandler=function(e,t){this.name="SecurityHandler",h(e,t,this.name),this.id=e},m.SecurityHandler.prototype=Object.create(m.Destroyable.prototype),m.Shading=function(e,t){this.name="Shading",h(e,t,this.name),this.id=e},m.Shading.prototype=Object.create(m.Destroyable.prototype),m.ShapedText=function(e,t){this.name="ShapedText",h(e,t,this.name),this.id=e},m.ShapedText.prototype=Object.create(m.Destroyable.prototype),m.SignatureHandler=function(e,t){this.name="SignatureHandler",h(e,t,this.name),this.id=e},m.SignatureWidget=function(e,t){this.name="SignatureWidget",h(e,t,this.name),this.id=e},m.SoundAnnot=function(e,t){this.name="SoundAnnot",h(e,t,this.name),this.id=e},m.SquareAnnot=function(e,t){this.name="SquareAnnot",h(e,t,this.name),this.id=e},m.SquigglyAnnot=function(e,t){this.name="SquigglyAnnot",h(e,t,this.name),this.id=e},m.Stamper=function(e,t){this.name="Stamper",h(e,t,this.name),this.id=e},m.Stamper.prototype=Object.create(m.Destroyable.prototype),m.StrikeOutAnnot=function(e,t){this.name="StrikeOutAnnot",h(e,t,this.name),this.id=e},m.Table=function(e,t){this.name="Table",h(e,t,this.name),this.id=e},m.TableCell=function(e,t){this.name="TableCell",h(e,t,this.name),this.id=e},m.TableRow=function(e,t){this.name="TableRow",h(e,t,this.name),this.id=e},m.TextAnnot=function(e,t){this.name="TextAnnot",h(e,t,this.name),this.id=e},m.TextExtractor=function(e,t){this.name="TextExtractor",h(e,t,this.name),this.id=e},m.TextExtractor.prototype=Object.create(m.Destroyable.prototype),m.TextExtractorLine=function(e,t,n,i,r,o){if(this.name="TextExtractorLine",!e||void 0!==t)return new m.TextExtractorLine({line:e=void 0===e?"0":e,uni:t=void 0===t?"0":t,num:n=void 0===n?0:n,cur_num:i=void 0===i?0:i,m_direction:r=void 0===r?0:r,mp_bld:o=void 0===o?"0":o});O(e,this)},m.TextExtractorStyle=function(e){if(this.name="TextExtractorStyle","object"===d(e))O(e,this);else if(void 0!==e)return new m.TextExtractorStyle({mp_imp:e})},m.TextExtractorWord=function(e,t,n,i,r,o){if(this.name="TextExtractorWord",!e||void 0!==t)return new m.TextExtractorWord({line:e=void 0===e?"0":e,word:t=void 0===t?"0":t,uni:n=void 0===n?"0":n,num:i=void 0===i?0:i,cur_num:r=void 0===r?0:r,mp_bld:o=void 0===o?"0":o});O(e,this)},m.TextMarkupAnnot=function(e,t){this.name="TextMarkupAnnot",h(e,t,this.name),this.id=e},m.TextRange=function(e,t){this.name="TextRange",h(e,t,this.name),this.id=e},m.TextRun=function(e,t){this.name="TextRun",h(e,t,this.name),this.id=e},m.TextSearch=function(e,t){this.name="TextSearch",h(e,t,this.name),this.id=e},m.TextSearch.prototype=Object.create(m.Destroyable.prototype),m.TextStyledElement=function(e,t){this.name="TextStyledElement",h(e,t,this.name),this.id=e},m.TextWidget=function(e,t){this.name="TextWidget",h(e,t,this.name),this.id=e},m.TimestampingConfiguration=function(e,t){this.name="TimestampingConfiguration",h(e,t,this.name),this.id=e},m.TimestampingConfiguration.prototype=Object.create(m.Destroyable.prototype),m.TimestampingResult=function(e,t){this.name="TimestampingResult",h(e,t,this.name),this.id=e},m.TimestampingResult.prototype=Object.create(m.Destroyable.prototype),m.TrustVerificationResult=function(e,t){this.name="TrustVerificationResult",h(e,t,this.name),this.id=e},m.TrustVerificationResult.prototype=Object.create(m.Destroyable.prototype),m.UnderlineAnnot=function(e,t){this.name="UnderlineAnnot",h(e,t,this.name),this.id=e},m.UndoManager=function(e,t){this.name="UndoManager",h(e,t,this.name),this.id=e},m.UndoManager.prototype=Object.create(m.Destroyable.prototype),m.VerificationOptions=function(e,t){this.name="VerificationOptions",h(e,t,this.name),this.id=e},m.VerificationOptions.prototype=Object.create(m.Destroyable.prototype),m.VerificationResult=function(e,t){this.name="VerificationResult",h(e,t,this.name),this.id=e},m.VerificationResult.prototype=Object.create(m.Destroyable.prototype),m.ViewChangeCollection=function(e,t){this.name="ViewChangeCollection",h(e,t,this.name),this.id=e},m.ViewChangeCollection.prototype=Object.create(m.Destroyable.prototype),m.WatermarkAnnot=function(e,t){this.name="WatermarkAnnot",h(e,t,this.name),this.id=e},m.WebFontDownloader=function(e,t){this.name="WebFontDownloader",h(e,t,this.name),this.id=e},m.WidgetAnnot=function(e,t){this.name="WidgetAnnot",h(e,t,this.name),this.id=e},m.X501AttributeTypeAndValue=function(e,t){this.name="X501AttributeTypeAndValue",h(e,t,this.name),this.id=e},m.X501AttributeTypeAndValue.prototype=Object.create(m.Destroyable.prototype),m.X501DistinguishedName=function(e,t){this.name="X501DistinguishedName",h(e,t,this.name),this.id=e},m.X501DistinguishedName.prototype=Object.create(m.Destroyable.prototype),m.X509Certificate=function(e,t){this.name="X509Certificate",h(e,t,this.name),this.id=e},m.X509Certificate.prototype=Object.create(m.Destroyable.prototype),m.X509Extension=function(e,t){this.name="X509Extension",h(e,t,this.name),this.id=e},m.X509Extension.prototype=Object.create(m.Destroyable.prototype),m.QuadPoint=function(e,t,n,i,r,o,s,a){if(this.name="QuadPoint",!e||void 0!==t)return new m.QuadPoint({p1x:e=void 0===e?0:e,p1y:t=void 0===t?0:t,p2x:n=void 0===n?0:n,p2y:i=void 0===i?0:i,p3x:r=void 0===r?0:r,p3y:o=void 0===o?0:o,p4x:s=void 0===s?0:s,p4y:a=void 0===a?0:a});O(e,this)},m.Point=function(e,t){if(this.name="Point",!e||void 0!==t)return new m.Point({x:e=void 0===e?0:e,y:t=void 0===t?0:t});O(e,this)},m.CharData=function(e){if(void 0===e)throw new TypeError("CharData requires an object to construct with.");this.name="CharData",O(e,this)},m.Separation=function(e){if(void 0===e)throw new TypeError("Separation requires an object to construct with.");this.name="Separation",O(e,this)},m.Optimizer.createImageSettings=function(){return Promise.resolve(new m.Optimizer.ImageSettings)},m.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=m.Optimizer.ImageSettings.CompressionMode.e_retain,this.m_downsample_mode=m.Optimizer.ImageSettings.DownsampleMode.e_default,this.m_force_changes=this.m_force_recompression=!1},m.Optimizer.ImageSettings.prototype.setImageDPI=function(e,t){return this.m_max_dpi=e,this.m_resample_dpi=t,this},m.Optimizer.ImageSettings.prototype.setCompressionMode=function(e){return this.m_compression_mode=e,this},m.Optimizer.ImageSettings.prototype.setDownsampleMode=function(e){return this.m_downsample_mode=e,this},m.Optimizer.ImageSettings.prototype.setQuality=function(e){return this.m_quality=e,this},m.Optimizer.ImageSettings.prototype.forceRecompression=function(e){return this.m_force_recompression=e,this},m.Optimizer.ImageSettings.prototype.forceChanges=function(e){return this.m_force_changes=e,this},m.Optimizer.createMonoImageSettings=function(){return Promise.resolve(new m.Optimizer.MonoImageSettings)},m.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=m.Optimizer.ImageSettings.CompressionMode.e_retain,this.m_downsample_mode=m.Optimizer.ImageSettings.DownsampleMode.e_default,this.m_force_changes=this.m_force_recompression=!1},m.Optimizer.MonoImageSettings.prototype.setImageDPI=function(e,t){return this.m_max_dpi=e,this.m_resample_dpi=t,this},m.Optimizer.MonoImageSettings.prototype.setCompressionMode=function(e){return this.m_compression_mode=e,this},m.Optimizer.MonoImageSettings.prototype.setDownsampleMode=function(e){return this.m_downsample_mode=e,this},m.Optimizer.MonoImageSettings.prototype.setJBIG2Threshold=function(e){return this.m_jbig2_threshold=quality,this},m.Optimizer.MonoImageSettings.prototype.forceRecompression=function(e){return this.m_force_recompression=e,this},m.Optimizer.MonoImageSettings.prototype.forceChanges=function(e){return this.m_force_changes=e,this},m.Optimizer.createTextSettings=function(){return Promise.resolve(new m.Optimizer.TextSettings)},m.Optimizer.TextSettings=function(){this.m_embed_fonts=this.m_subset_fonts=!1},m.Optimizer.TextSettings.prototype.subsetFonts=function(e){return this.m_subset_fonts=e,this},m.Optimizer.TextSettings.prototype.embedFonts=function(e){return this.m_embed_fonts=e,this},m.Optimizer.createOptimizerSettings=function(){return Promise.resolve(new m.Optimizer.OptimizerSettings)},m.Optimizer.OptimizerSettings=function(){this.color_image_settings=new m.Optimizer.ImageSettings,this.grayscale_image_settings=new m.Optimizer.ImageSettings,this.mono_image_settings=new m.Optimizer.MonoImageSettings,this.text_settings=new m.Optimizer.TextSettings,this.remove_custom=!0},m.Optimizer.OptimizerSettings.prototype.setColorImageSettings=function(e){return this.color_image_settings=e,this},m.Optimizer.OptimizerSettings.prototype.setGrayscaleImageSettings=function(e){return this.grayscale_image_settings=e,this},m.Optimizer.OptimizerSettings.prototype.setMonoImageSettings=function(e){return this.mono_image_settings=e,this},m.Optimizer.OptimizerSettings.prototype.setTextSettings=function(e){return this.text_settings=e,this},m.Optimizer.OptimizerSettings.prototype.removeCustomEntries=function(e){return this.remove_custom=e,this},m.Optimizer.ImageSettings.CompressionMode={e_retain:0,e_flate:1,e_jpeg:2,e_jpeg2000:3,e_none:4},m.Optimizer.ImageSettings.DownsampleMode={e_off:0,e_default:1},m.Optimizer.MonoImageSettings.CompressionMode={e_jbig2:0,e_flate:1,e_none:2,e_ccitt:3},m.Optimizer.MonoImageSettings.DownsampleMode={e_off:0,e_default:1},m.Convert.ConversionOptions=function(e){this.name="PDFNet.Convert.ConversionOptions",e&&O(JSON.parse(e),this)},m.Convert.ConversionOptions.prototype.setFileExtension=function(e){return this.FileExtension=e,this},m.Convert.ConversionOptions.prototype.setEnableExternalMediaDownloads=function(e){return this.EnableExternalMediaDownloads=e,this},m.Convert.OverprintPreviewMode={e_op_off:0,e_op_on:1,e_op_pdfx_on:2},m.Convert.XPSOutputCommonOptions=function(){this.name="PDFNet.Convert.XPSOutputCommonOptions",this.mImpl={}},m.Convert.XPSOutputCommonOptions.prototype.setPrintMode=function(e){return this.mImpl.PRINTMODE=e,this},m.Convert.XPSOutputCommonOptions.prototype.setDPI=function(e){return this.mImpl.DPI=e,this},m.Convert.XPSOutputCommonOptions.prototype.setRenderPages=function(e){return this.mImpl.RENDER=e,this},m.Convert.XPSOutputCommonOptions.prototype.setThickenLines=function(e){return this.mImpl.THICKENLINES=e,this},m.Convert.XPSOutputCommonOptions.prototype.generateURLLinks=function(e){return this.mImpl.URL_LINKS=e,this},m.Convert.XPSOutputCommonOptions.prototype.setOverprint=function(e){switch(e){case m.Convert.OverprintPreviewMode.e_op_off:this.mImpl.OVERPRINT_MODE="OFF";break;case m.Convert.OverprintPreviewMode.e_op_on:this.mImpl.OVERPRINT_MODE="ON";break;case m.Convert.OverprintPreviewMode.e_op_pdfx_on:this.mImpl.OVERPRINT_MODE="PDFX"}return this},m.Convert.XPSOutputCommonOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)},m.Convert.createXPSOutputOptions=function(){return Promise.resolve(new m.Convert.XPSOutputOptions)},m.Convert.XPSOutputOptions=function(){m.Convert.XPSOutputCommonOptions.call(this),this.name="PDFNet.Convert.XPSOutputOptions"},m.Convert.XPSOutputOptions.prototype=Object.create(m.Convert.XPSOutputCommonOptions.prototype),m.Convert.XPSOutputOptions.prototype.setOpenXps=function(e){return this.mImpl.OPENXPS=e,this},m.Convert.FlattenFlag={e_off:0,e_simple:1,e_fast:2,e_high_quality:3},m.Convert.FlattenThresholdFlag={e_very_strict:0,e_strict:1,e_default:2,e_keep_most:3,e_keep_all:4},m.Convert.AnnotationOutputFlag={e_internal_xfdf:0,e_external_xfdf:1,e_flatten:2},m.Convert.createXODOutputOptions=function(){return Promise.resolve(new m.Convert.XODOutputOptions)},m.Convert.XODOutputOptions=function(){m.Convert.XPSOutputCommonOptions.call(this),this.name="PDFNet.Convert.XODOutputOptions"},m.Convert.XODOutputOptions.prototype=Object.create(m.Convert.XPSOutputCommonOptions.prototype),m.Convert.XODOutputOptions.prototype.setExtractUsingZorder=function(e){return this.mImpl.USEZORDER=e,this},m.Convert.XODOutputOptions.prototype.setOutputThumbnails=function(e){return this.mImpl.NOTHUMBS=e,this},m.Convert.XODOutputOptions.prototype.setThumbnailSize=function(e,t){return this.mImpl.THUMB_SIZE=e,this.mImpl.LARGE_THUMB_SIZE=t||e,this},m.Convert.XODOutputOptions.prototype.setElementLimit=function(e){return this.mImpl.ELEMENTLIMIT=e,this},m.Convert.XODOutputOptions.prototype.setOpacityMaskWorkaround=function(e){return this.mImpl.MASKRENDER=e,this},m.Convert.XODOutputOptions.prototype.setMaximumImagePixels=function(e){return this.mImpl.MAX_IMAGE_PIXELS=e,this},m.Convert.XODOutputOptions.prototype.setFlattenContent=function(e){switch(e){case m.Convert.FlattenFlag.e_off:this.mImpl.FLATTEN_CONTENT="OFF";break;case m.Convert.FlattenFlag.e_simple:this.mImpl.FLATTEN_CONTENT="SIMPLE";break;case m.Convert.FlattenFlag.e_fast:this.mImpl.FLATTEN_CONTENT="FAST";break;case m.Convert.FlattenFlag.e_high_quality:this.mImpl.FLATTEN_CONTENT="HIGH_QUALITY"}return this},m.Convert.XODOutputOptions.prototype.setFlattenThreshold=function(e){switch(e){case m.Convert.FlattenThresholdFlag.e_very_strict:this.mImpl.FLATTEN_THRESHOLD="VERY_STRICT";break;case m.Convert.FlattenThresholdFlag.e_strict:this.mImpl.FLATTEN_THRESHOLD="STRICT";break;case m.Convert.FlattenThresholdFlag.e_default:this.mImpl.FLATTEN_THRESHOLD="DEFAULT";break;case m.Convert.FlattenThresholdFlag.e_keep_most:this.mImpl.FLATTEN_THRESHOLD="KEEP_MOST";break;case m.Convert.FlattenThresholdFlag.e_keep_all:this.mImpl.FLATTEN_THRESHOLD="KEEP_ALL"}return this},m.Convert.XODOutputOptions.prototype.setPreferJPG=function(e){return this.mImpl.PREFER_JPEG=e,this},m.Convert.XODOutputOptions.prototype.setJPGQuality=function(e){return this.mImpl.JPEG_QUALITY=e,this},m.Convert.XODOutputOptions.prototype.setSilverlightTextWorkaround=function(e){return this.mImpl.REMOVE_ROTATED_TEXT=e,this},m.Convert.XODOutputOptions.prototype.setAnnotationOutput=function(e){switch(e){case m.Convert.AnnotationOutputFlag.e_internal_xfdf:this.mImpl.ANNOTATION_OUTPUT="INTERNAL";break;case m.Convert.AnnotationOutputFlag.e_external_xfdf:this.mImpl.ANNOTATION_OUTPUT="EXTERNAL";break;case m.Convert.AnnotationOutputFlag.e_flatten:this.mImpl.ANNOTATION_OUTPUT="FLATTEN"}return this},m.Convert.XODOutputOptions.prototype.setExternalParts=function(e){return this.mImpl.EXTERNAL_PARTS=e,this},m.Convert.XODOutputOptions.prototype.setEncryptPassword=function(e){return this.mImpl.ENCRYPT_PASSWORD=e,this},m.Convert.XODOutputOptions.prototype.useSilverlightFlashCompatible=function(e){return this.mImpl.COMPATIBLE_XOD=e,this},m.Convert.createTiffOutputOptions=function(){return Promise.resolve(new m.Convert.TiffOutputOptions)},m.Convert.TiffOutputOptions=function(){this.name="PDFNet.Convert.TiffOutputOptions",this.mImpl={}},m.Convert.TiffOutputOptions.prototype.setBox=function(e){switch(e){case m.Page.Box.e_media:this.mImpl.BOX="media";break;case m.Page.Box.e_crop:this.mImpl.BOX="crop";break;case m.Page.Box.e_bleed:this.mImpl.BOX="bleed";break;case m.Page.Box.e_trim:this.mImpl.BOX="trim";break;case m.Page.Box.e_art:this.mImpl.BOX="art"}return this},m.Convert.TiffOutputOptions.prototype.setRotate=function(e){switch(e){case m.Page.Box.e_0:this.mImpl.ROTATE="0";break;case m.Page.Box.e_90:this.mImpl.ROTATE="90";break;case m.Page.Box.e_180:this.mImpl.ROTATE="180";break;case m.Page.Box.e_270:this.mImpl.ROTATE="270"}return this},m.Convert.TiffOutputOptions.prototype.setClip=function(e,t,n,i){return this.mImpl.CLIP_X1=e,this.mImpl.CLIP_Y1=t,this.mImpl.CLIP_X2=n,this.mImpl.CLIP_Y2=i,this},m.Convert.TiffOutputOptions.prototype.setPages=function(e){return this.mImpl.PAGES=e,this},m.Convert.TiffOutputOptions.prototype.setOverprint=function(e){switch(e){case m.PDFRasterizer.OverprintPreviewMode.e_op_off:this.mImpl.OVERPRINT_MODE="OFF";break;case m.PDFRasterizer.OverprintPreviewMode.e_op_on:this.mImpl.OVERPRINT_MODE="ON";break;case m.PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on:this.mImpl.OVERPRINT_MODE="PDFX"}return this},m.Convert.TiffOutputOptions.prototype.setCMYK=function(e){return this.mImpl.CMYK=e,this},m.Convert.TiffOutputOptions.prototype.setDither=function(e){return this.mImpl.DITHER=e,this},m.Convert.TiffOutputOptions.prototype.setGray=function(e){return this.mImpl.GRAY=e,this},m.Convert.TiffOutputOptions.prototype.setMono=function(e){return this.mImpl.MONO=e,this},m.Convert.TiffOutputOptions.prototype.setAnnots=function(e){return this.mImpl.ANNOTS=e,this},m.Convert.TiffOutputOptions.prototype.setSmooth=function(e){return this.mImpl.SMOOTH=e,this},m.Convert.TiffOutputOptions.prototype.setPrintmode=function(e){return this.mImpl.PRINTMODE=e,this},m.Convert.TiffOutputOptions.prototype.setTransparentPage=function(e){return this.mImpl.TRANSPARENT_PAGE=e,this},m.Convert.TiffOutputOptions.prototype.setPalettized=function(e){return this.mImpl.PALETTIZED=e,this},m.Convert.TiffOutputOptions.prototype.setDPI=function(e){return this.mImpl.DPI=e,this},m.Convert.TiffOutputOptions.prototype.setGamma=function(e){return this.mImpl.GAMMA=e,this},m.Convert.TiffOutputOptions.prototype.setHRes=function(e){return this.mImpl.HRES=e,this},m.Convert.TiffOutputOptions.prototype.setVRes=function(e){return this.mImpl.VRES=e,this},m.Convert.TiffOutputOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)},m.Convert.createHTMLOutputOptions=function(){return Promise.resolve(new m.Convert.HTMLOutputOptions)},m.Convert.HTMLOutputOptions=function(){this.name="PDFNet.Convert.HTMLOutputOptions",this.mImpl={}},m.Convert.HTMLOutputOptions.prototype.setPreferJPG=function(e){return this.mImpl.PREFER_JPEG=e,this},m.Convert.HTMLOutputOptions.prototype.setJPGQuality=function(e){return this.mImpl.JPEG_QUALITY=e,this},m.Convert.HTMLOutputOptions.prototype.setDPI=function(e){return this.mImpl.DPI=e,this},m.Convert.HTMLOutputOptions.prototype.setMaximumImagePixels=function(e){return this.mImpl.MAX_IMAGE_PIXELS=e,this},m.Convert.HTMLOutputOptions.prototype.setScale=function(e){return this.mImpl.SCALE=e,this},m.Convert.HTMLOutputOptions.prototype.setExternalLinks=function(e){return this.mImpl.EXTERNAL_LINKS=e,this},m.Convert.HTMLOutputOptions.prototype.setInternalLinks=function(e){return this.mImpl.INTERNAL_LINKS=e,this},m.Convert.HTMLOutputOptions.prototype.setSimplifyText=function(e){return this.mImpl.SIMPLIFY_TEXT=e,this},m.Convert.HTMLOutputOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)},m.Convert.createEPUBOutputOptions=function(){return Promise.resolve(new m.Convert.EPUBOutputOptions)},m.Convert.EPUBOutputOptions=function(){this.name="PDFNet.Convert.EPUBOutputOptions",this.mImpl={}},m.Convert.EPUBOutputOptions.prototype.setExpanded=function(e){return this.mImpl.EPUB_EXPANDED=e,this},m.Convert.EPUBOutputOptions.prototype.setReuseCover=function(e){return this.mImpl.EPUB_REUSE_COVER=e,this},m.PDFDoc.createViewerOptimizedOptions=function(){return Promise.resolve(new m.PDFDoc.ViewerOptimizedOptions)},m.PDFDoc.ViewerOptimizedOptions=function(){this.name="PDFNet.PDFDoc.ViewerOptimizedOptions",this.mImpl={}},m.PDFDoc.ViewerOptimizedOptions.prototype.setThumbnailRenderingThreshold=function(e){return this.mImpl.COMPLEXITY_THRESHOLD=e,this},m.PDFDoc.ViewerOptimizedOptions.prototype.setMinimumInitialThumbnails=function(e){return this.mImpl.MINIMUM_INITIAL_THUMBNAILS=e,this},m.PDFDoc.ViewerOptimizedOptions.prototype.setThumbnailSize=function(e){return this.mImpl.THUMB_SIZE=e,this},m.PDFDoc.ViewerOptimizedOptions.prototype.setOverprint=function(e){switch(e){case m.PDFRasterizer.OverprintPreviewMode.e_op_off:this.mImpl.OVERPRINT_MODE="OFF";break;case m.PDFRasterizer.OverprintPreviewMode.e_op_on:this.mImpl.OVERPRINT_MODE="ON";break;case m.PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on:this.mImpl.OVERPRINT_MODE="PDFX"}return this},m.PDFDoc.ViewerOptimizedOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)},m.Convert.createOfficeToPDFOptions=function(e){return Promise.resolve(new m.Convert.OfficeToPDFOptions(e))},m.Convert.OfficeToPDFOptions=function(e){this.mImpl={},this.mHelpers=i(),this.name="PDFNet.Convert.ConversionOptions",this.mImpl.name="PDFNet.Convert.ConversionOptions",m.Convert.ConversionOptions.call(this.mImpl,e)},m.Convert.OfficeToPDFOptions.StructureTagLevel={e_default:0,e_none:1},m.Convert.OfficeToPDFOptions.DisplayComments={e_off:0,e_annotations:1},m.Convert.OfficeToPDFOptions.DisplaySpeakerNotes={e_no_speaker_notes:0,e_speaker_notes_annotations:1},m.Convert.OfficeToPDFOptions.UpdateDynamicFields={e_update_all:-1,e_update_none:0,e_update_doc_props:1},m.Convert.OfficeToPDFOptions.prototype.getApplyPageBreaksToSheet=function(){return"ApplyPageBreaksToSheet"in this.mImpl&&!!this.mImpl.ApplyPageBreaksToSheet},m.Convert.OfficeToPDFOptions.prototype.setApplyPageBreaksToSheet=function(e){return this.mHelpers.putBool(this.mImpl,"ApplyPageBreaksToSheet",e),this},m.Convert.OfficeToPDFOptions.prototype.getDisplayChangeTracking=function(){return!("DisplayChangeTracking"in this.mImpl&&!this.mImpl.DisplayChangeTracking)},m.Convert.OfficeToPDFOptions.prototype.setDisplayChangeTracking=function(e){return this.mHelpers.putBool(this.mImpl,"DisplayChangeTracking",e),this},m.Convert.OfficeToPDFOptions.prototype.getDisplayComments=function(){return"DisplayComments"in this.mImpl?this.mImpl.DisplayComments:0},m.Convert.OfficeToPDFOptions.prototype.setDisplayComments=function(e){return this.mHelpers.putNumber(this.mImpl,"DisplayComments",e),this},m.Convert.OfficeToPDFOptions.prototype.getDisplayHiddenCells=function(){return"DisplayHiddenCells"in this.mImpl&&!!this.mImpl.DisplayHiddenCells},m.Convert.OfficeToPDFOptions.prototype.setDisplayHiddenCells=function(e){return this.mHelpers.putBool(this.mImpl,"DisplayHiddenCells",e),this},m.Convert.OfficeToPDFOptions.prototype.getDisplayHiddenText=function(){return"DisplayHiddenText"in this.mImpl&&!!this.mImpl.DisplayHiddenText},m.Convert.OfficeToPDFOptions.prototype.setDisplayHiddenText=function(e){return this.mHelpers.putBool(this.mImpl,"DisplayHiddenText",e),this},m.Convert.OfficeToPDFOptions.prototype.getDisplaySpeakerNotes=function(){return"DisplaySpeakerNotes"in this.mImpl?this.mImpl.DisplaySpeakerNotes:0},m.Convert.OfficeToPDFOptions.prototype.setDisplaySpeakerNotes=function(e){return this.mHelpers.putNumber(this.mImpl,"DisplaySpeakerNotes",e),this},m.Convert.OfficeToPDFOptions.prototype.getExcelDefaultCellBorderWidth=function(){return"ExcelDefaultCellBorderWidth"in this.mImpl?this.mImpl.ExcelDefaultCellBorderWidth:0},m.Convert.OfficeToPDFOptions.prototype.setExcelDefaultCellBorderWidth=function(e){return this.mHelpers.putNumber(this.mImpl,"ExcelDefaultCellBorderWidth",e),this},m.Convert.OfficeToPDFOptions.prototype.getExcelMaxAllowedCellCount=function(){return"ExcelMaxAllowedCellCount"in this.mImpl?this.mImpl.ExcelMaxAllowedCellCount:0},m.Convert.OfficeToPDFOptions.prototype.setExcelMaxAllowedCellCount=function(e){return this.mHelpers.putNumber(this.mImpl,"ExcelMaxAllowedCellCount",e),this},m.Convert.OfficeToPDFOptions.prototype.getHideTotalNumberOfPages=function(){return"HideTotalNumberOfPages"in this.mImpl&&!!this.mImpl.HideTotalNumberOfPages},m.Convert.OfficeToPDFOptions.prototype.setHideTotalNumberOfPages=function(e){return this.mHelpers.putBool(this.mImpl,"HideTotalNumberOfPages",e),this},m.Convert.OfficeToPDFOptions.prototype.getIncludeBookmarks=function(){return!("IncludeBookmarks"in this.mImpl&&!this.mImpl.IncludeBookmarks)},m.Convert.OfficeToPDFOptions.prototype.setIncludeBookmarks=function(e){return this.mHelpers.putBool(this.mImpl,"IncludeBookmarks",e),this},m.Convert.OfficeToPDFOptions.prototype.getIncrementalSave=function(){return"IncrementalSave"in this.mImpl&&!!this.mImpl.IncrementalSave},m.Convert.OfficeToPDFOptions.prototype.setIncrementalSave=function(e){return this.mHelpers.putBool(this.mImpl,"IncrementalSave",e),this},m.Convert.OfficeToPDFOptions.prototype.getLocale=function(){return"Locale"in this.mImpl?this.mImpl.Locale:""},m.Convert.OfficeToPDFOptions.prototype.setLocale=function(e){return this.mHelpers.putString(this.mImpl,"Locale",""+e),this},m.Convert.OfficeToPDFOptions.prototype.getPassword=function(){return"Password"in this.mImpl?this.mImpl.Password:""},m.Convert.OfficeToPDFOptions.prototype.setPassword=function(e){return this.mHelpers.putString(this.mImpl,"Password",""+e),this},m.Convert.OfficeToPDFOptions.prototype.getStructureTagLevel=function(){return"structure_tag_level"in this.mImpl?this.mImpl.structure_tag_level:0},m.Convert.OfficeToPDFOptions.prototype.setStructureTagLevel=function(e){return this.mHelpers.putNumber(this.mImpl,"structure_tag_level",e),this},m.Convert.OfficeToPDFOptions.prototype.getTemplateLeftDelimiter=function(){return"TemplateLeftDelimiter"in this.mImpl?this.mImpl.TemplateLeftDelimiter:"{{"},m.Convert.OfficeToPDFOptions.prototype.setTemplateLeftDelimiter=function(e){return this.mHelpers.putString(this.mImpl,"TemplateLeftDelimiter",""+e),this},m.Convert.OfficeToPDFOptions.prototype.getTemplateParamsJson=function(){return"TemplateParamsJson"in this.mImpl?this.mImpl.TemplateParamsJson:""},m.Convert.OfficeToPDFOptions.prototype.setTemplateParamsJson=function(e){return this.mHelpers.putString(this.mImpl,"TemplateParamsJson",""+e),this},m.Convert.OfficeToPDFOptions.prototype.getTemplateRightDelimiter=function(){return"TemplateRightDelimiter"in this.mImpl?this.mImpl.TemplateRightDelimiter:"}}"},m.Convert.OfficeToPDFOptions.prototype.setTemplateRightDelimiter=function(e){return this.mHelpers.putString(this.mImpl,"TemplateRightDelimiter",""+e),this},m.Convert.OfficeToPDFOptions.prototype.getTemplateStrictMode=function(){return"TemplateStrictMode"in t