(function(){var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(array){var index=0;return function(){return index>>16,G:((number|0)&65280)>>>8,B:(number|0)&255}}}}function finishGenerator(iterator){function iterate(val){val=iterator.next(val);var promise=val.value;return val.done?val.value:promise.then(iterate)}return Promise.resolve().then(iterate)}var PDFNet=exports.PDFNet?exports.PDFNet:{};PDFNet.Convert=exports.PDFNet&&exports.PDFNet.Convert? exports.PDFNet.Convert:{};exports.CoreControls&&exports.CoreControls.enableFullPDF(!0);exports.isArrayBuffer=function(obj){return obj instanceof ArrayBuffer||null!=obj&&null!=obj.constructor&&"ArrayBuffer"===obj.constructor.name&&"number"===typeof obj.byteLength};PDFNet.createDiffOptions=function(){return Promise.resolve(new PDFNet.DiffOptions)};PDFNet.DiffOptions=function(){this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.DiffOptions.prototype.getAddGroupAnnots=function(){return"AddGroupAnnots"in this.mImpl?!!this.mImpl.AddGroupAnnots:!1};PDFNet.DiffOptions.prototype.setAddGroupAnnots=function(value){this.mHelpers.putBool(this.mImpl,"AddGroupAnnots",value);return this};PDFNet.DiffOptions.prototype.getBlendMode=function(){return"BlendMode"in this.mImpl?this.mImpl.BlendMode:5};PDFNet.DiffOptions.prototype.setBlendMode=function(value){this.mHelpers.putNumber(this.mImpl,"BlendMode",value);return this};PDFNet.DiffOptions.prototype.getColorA=function(){return"ColorA"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorA): this.mHelpers.jsColorFromNumber(4291559424)};PDFNet.DiffOptions.prototype.setColorA=function(value){this.mHelpers.putNumber(this.mImpl,"ColorA",this.mHelpers.jsColorToNumber(value));return this};PDFNet.DiffOptions.prototype.getColorB=function(){return"ColorB"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorB):this.mHelpers.jsColorFromNumber(4278242508)};PDFNet.DiffOptions.prototype.setColorB=function(value){this.mHelpers.putNumber(this.mImpl,"ColorB",this.mHelpers.jsColorToNumber(value)); return this};PDFNet.DiffOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.Iterator=function(id,type){this.name="Iterator";this.id=id;this.type=type};PDFNet.DictIterator=function(id){this.name="DictIterator";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.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.FDFDoc=function(id){this.name="FDFDoc";this.id= id};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.Filter=function(id){this.name="Filter";this.id=id};PDFNet.FilterReader=function(id){this.name="FilterReader";this.id=id};PDFNet.FilterWriter= function(id){this.name="FilterWriter";this.id=id};PDFNet.OCG=function(id){this.name="OCG";this.id=id};PDFNet.OCGConfig=function(id){this.name="OCGConfig";this.id=id};PDFNet.OCGContext=function(id){this.name="OCGContext";this.id=id};PDFNet.OCMD=function(id){this.name="OCMD";this.id=id};PDFNet.PDFACompliance=function(id){this.name="PDFACompliance";this.id=id};PDFNet.AttrObj=function(id){this.name="AttrObj";this.id=id};PDFNet.ClassMap=function(id){this.name="ClassMap";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.RoleMap=function(id){this.name="RoleMap";this.id=id};PDFNet.SElement=function(obj,k){this.name="SElement";if(obj&&"undefined"===typeof k)copyFunc(obj,this);else return"undefined"===typeof obj&&(obj="0"),"undefined"===typeof k&&(k="0"),new PDFNet.SElement({obj:obj,k:k})};PDFNet.STree=function(id){this.name= "STree";this.id=id};PDFNet.Action=function(id){this.name="Action";this.id=id};PDFNet.KeyStrokeActionResult=function(id){this.name="KeyStrokeActionResult";this.id=id};PDFNet.KeyStrokeEventData=function(id){this.name="KeyStrokeEventData";this.id=id};PDFNet.Page=function(id){this.name="Page";this.id=id};PDFNet.Annot=function(id){this.name="Annot";this.id=id};PDFNet.AnnotBorderStyle=function(id){this.name="AnnotBorderStyle";this.id=id};PDFNet.CaretAnnot=function(id){this.name="CaretAnnot";this.id=id}; PDFNet.LineAnnot=function(id){this.name="LineAnnot";this.id=id};PDFNet.CircleAnnot=function(id){this.name="CircleAnnot";this.id=id};PDFNet.FileAttachmentAnnot=function(id){this.name="FileAttachmentAnnot";this.id=id};PDFNet.FreeTextAnnot=function(id){this.name="FreeTextAnnot";this.id=id};PDFNet.HighlightAnnot=function(id){this.name="HighlightAnnot";this.id=id};PDFNet.InkAnnot=function(id){this.name="InkAnnot";this.id=id};PDFNet.LinkAnnot=function(id){this.name="LinkAnnot";this.id=id};PDFNet.MarkupAnnot= function(id){this.name="MarkupAnnot";this.id=id};PDFNet.MovieAnnot=function(id){this.name="MovieAnnot";this.id=id};PDFNet.PolyLineAnnot=function(id){this.name="PolyLineAnnot";this.id=id};PDFNet.PolygonAnnot=function(id){this.name="PolygonAnnot";this.id=id};PDFNet.PopupAnnot=function(id){this.name="PopupAnnot";this.id=id};PDFNet.RedactionAnnot=function(id){this.name="RedactionAnnot";this.id=id};PDFNet.RubberStampAnnot=function(id){this.name="RubberStampAnnot";this.id=id};PDFNet.ScreenAnnot=function(id){this.name= "ScreenAnnot";this.id=id};PDFNet.SoundAnnot=function(id){this.name="SoundAnnot";this.id=id};PDFNet.SquareAnnot=function(id){this.name="SquareAnnot";this.id=id};PDFNet.SquigglyAnnot=function(id){this.name="SquigglyAnnot";this.id=id};PDFNet.StrikeOutAnnot=function(id){this.name="StrikeOutAnnot";this.id=id};PDFNet.TextAnnot=function(id){this.name="TextAnnot";this.id=id};PDFNet.UnderlineAnnot=function(id){this.name="UnderlineAnnot";this.id=id};PDFNet.WatermarkAnnot=function(id){this.name="WatermarkAnnot"; this.id=id};PDFNet.TextMarkupAnnot=function(id){this.name="TextMarkupAnnot";this.id=id};PDFNet.WidgetAnnot=function(id){this.name="WidgetAnnot";this.id=id};PDFNet.SignatureWidget=function(id){this.name="SignatureWidget";this.id=id};PDFNet.ComboBoxWidget=function(id){this.name="ComboBoxWidget";this.id=id};PDFNet.ListBoxWidget=function(id){this.name="ListBoxWidget";this.id=id};PDFNet.TextWidget=function(id){this.name="TextWidget";this.id=id};PDFNet.CheckBoxWidget=function(id){this.name="CheckBoxWidget"; this.id=id};PDFNet.RadioButtonWidget=function(id){this.name="RadioButtonWidget";this.id=id};PDFNet.PushButtonWidget=function(id){this.name="PushButtonWidget";this.id=id};PDFNet.Bookmark=function(id){this.name="Bookmark";this.id=id};PDFNet.ColorPt=function(id){this.name="ColorPt";this.id=id};PDFNet.ColorSpace=function(id){this.name="ColorSpace";this.id=id};PDFNet.ContentReplacer=function(id){this.name="ContentReplacer";this.id=id};PDFNet.DocumentConversion=function(id){this.name="DocumentConversion"; this.id=id};PDFNet.ConversionMonitor=function(id){this.name="ConversionMonitor";this.id=id};PDFNet.Date=function(year,month,day,hour,minute,second,UT,UT_hour,UT_minutes,mp_obj){this.name="Date";if(year&&"undefined"===typeof month)copyFunc(year,this);else return"undefined"===typeof year&&(year=0),"undefined"===typeof month&&(month=0),"undefined"===typeof day&&(day=0),"undefined"===typeof hour&&(hour=0),"undefined"===typeof minute&&(minute=0),"undefined"===typeof second&&(second=0),"undefined"===typeof UT&& (UT=0),"undefined"===typeof UT_hour&&(UT_hour=0),"undefined"===typeof UT_minutes&&(UT_minutes=0),"undefined"===typeof mp_obj&&(mp_obj="0"),new PDFNet.Date({year:year,month:month,day:day,hour:hour,minute:minute,second:second,UT:UT,UT_hour:UT_hour,UT_minutes:UT_minutes,mp_obj:mp_obj})};PDFNet.Destination=function(id){this.name="Destination";this.id=id};PDFNet.GState=function(id){this.name="GState";this.id=id};PDFNet.Element=function(id){this.name="Element";this.id=id};PDFNet.ElementBuilder=function(id){this.name= "ElementBuilder";this.id=id};PDFNet.ElementReader=function(id){this.name="ElementReader";this.id=id};PDFNet.ElementWriter=function(id){this.name="ElementWriter";this.id=id};PDFNet.FileSpec=function(id){this.name="FileSpec";this.id=id};PDFNet.Flattener=function(id){this.name="Flattener";this.id=id};PDFNet.Font=function(id){this.name="Font";this.id=id};PDFNet.Function=function(id){this.name="Function";this.id=id};PDFNet.Highlights=function(id){this.name="Highlights";this.id=id};PDFNet.HTML2PDF_Proxy= function(id){this.name="HTML2PDF_Proxy";this.id=id};PDFNet.HTML2PDF_WebPageSettings=function(id){this.name="HTML2PDF_WebPageSettings";this.id=id};PDFNet.HTML2PDF_TOCSettings=function(id){this.name="HTML2PDF_TOCSettings";this.id=id};PDFNet.HTML2PDF=function(id){this.name="HTML2PDF";this.id=id};PDFNet.Image=function(id){this.name="Image";this.id=id};PDFNet.Optimizer=function(id){this.name="Optimizer";this.id=id};PDFNet.PageLabel=function(mp_obj,m_first_page,m_last_page){this.name="PageLabel";if(mp_obj&& "undefined"===typeof m_first_page)copyFunc(mp_obj,this);else return"undefined"===typeof mp_obj&&(mp_obj="0"),"undefined"===typeof m_first_page&&(m_first_page=0),"undefined"===typeof m_last_page&&(m_last_page=0),new PDFNet.PageLabel({mp_obj:mp_obj,m_first_page:m_first_page,m_last_page:m_last_page})};PDFNet.PageSet=function(id){this.name="PageSet";this.id=id};PDFNet.PatternColor=function(id){this.name="PatternColor";this.id=id};PDFNet.GeometryCollection=function(id){this.name="GeometryCollection";this.id= id};PDFNet.DigitalSignatureField=function(mp_field_dict_obj){this.name="DigitalSignatureField";"undefined"!==typeof mp_field_dict_obj&&(this.mp_field_dict_obj=mp_field_dict_obj)};PDFNet.PDFDoc=function(id){this.name="PDFDoc";this.id=id};PDFNet.PDFDocInfo=function(id){this.name="PDFDocInfo";this.id=id};PDFNet.PDFDocViewPrefs=function(id){this.name="PDFDocViewPrefs";this.id=id};PDFNet.PDFRasterizer=function(id){this.name="PDFRasterizer";this.id=id};PDFNet.PDFDraw=function(id){this.name="PDFDraw";this.id= id};PDFNet.PDFNet=function(id){this.name="PDFNet";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.Redactor=function(id){this.name="Redactor";this.id=id};PDFNet.RedactionAppearance= function(id){this.name="RedactionAppearance";this.id=id};PDFNet.Shading=function(id){this.name="Shading";this.id=id};PDFNet.Stamper=function(id){this.name="Stamper";this.id=id};PDFNet.TextExtractor=function(id){this.name="TextExtractor";this.id=id};PDFNet.TextExtractorStyle=function(mp_imp){this.name="TextExtractorStyle";"undefined"!==typeof mp_imp&&(this.mp_imp=mp_imp)};PDFNet.TextExtractorWord=function(line,word,end,uni,num,cur_num,mp_bld){this.name="TextExtractorWord";if(line&&"undefined"===typeof word)copyFunc(line, this);else return"undefined"===typeof line&&(line="0"),"undefined"===typeof word&&(word="0"),"undefined"===typeof end&&(end="0"),"undefined"===typeof uni&&(uni="0"),"undefined"===typeof num&&(num=0),"undefined"===typeof cur_num&&(cur_num=0),"undefined"===typeof mp_bld&&(mp_bld="0"),new PDFNet.TextExtractorWord({line:line,word:word,end:end,uni:uni,num:num,cur_num:cur_num,mp_bld:mp_bld})};PDFNet.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.TextSearch=function(id){this.name="TextSearch";this.id=id};PDFNet.NameTree=function(id){this.name= "NameTree";this.id=id};PDFNet.NumberTree=function(id){this.name="NumberTree";this.id=id};PDFNet.Obj=function(id){this.name="Obj";this.id=id};PDFNet.ObjSet=function(id){this.name="ObjSet";this.id=id};PDFNet.SDFDoc=function(id){this.name="SDFDoc";this.id=id};PDFNet.SecurityHandler=function(id){this.name="SecurityHandler";this.id=id};PDFNet.SignatureHandler=function(id){this.name="SignatureHandler";this.id=id};PDFNet.ProgressMonitor=function(id){this.name="ProgressMonitor";this.id=id};PDFNet.RadioButtonGroup= function(id){this.name="RadioButtonGroup";this.id=id};PDFNet.PDFDC=function(id){this.name="PDFDC";this.id=id};PDFNet.PDFDCEX=function(id){this.name="PDFDCEX";this.id=id};PDFNet.ChunkRenderer=function(id){this.name="ChunkRenderer";this.id=id};PDFNet.PDFView=function(id){this.name="PDFView";this.id=id};PDFNet.PDFViewCtrl=function(id){this.name="PDFViewCtrl";this.id=id};PDFNet.ViewChangeCollection=function(id){this.name="ViewChangeCollection";this.id=id};PDFNet.ActionParameter=function(id){this.name= "ActionParameter";this.id=id};PDFNet.AppearanceReferenceList=function(id){this.name="AppearanceReferenceList";this.id=id};PDFNet.OwnedBitmap=function(id){this.name="OwnedBitmap";this.id=id};PDFNet.Redaction=function(id){this.name="Redaction";this.id=id};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.SVGOutputOptions=function(id){this.id=id;this.name="SVGOutputOptions"}; PDFNet.XPSOutputOptions=function(id){this.id=id;this.name="XPSOutputOptions"};PDFNet.XODOutputOptions=function(id){this.id=id;this.name="XODOutputOptions"};PDFNet.MarkupAnnot.prototype=new PDFNet.Annot;PDFNet.TextMarkupAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.CaretAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.LineAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.CircleAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.FileAttachmentAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.FreeTextAnnot.prototype= new PDFNet.MarkupAnnot;PDFNet.HighlightAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.InkAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.LinkAnnot.prototype=new PDFNet.Annot;PDFNet.MovieAnnot.prototype=new PDFNet.Annot;PDFNet.PolyLineAnnot.prototype=new PDFNet.LineAnnot;PDFNet.PolygonAnnot.prototype=new PDFNet.PolyLineAnnot;PDFNet.PopupAnnot.prototype=new PDFNet.Annot;PDFNet.RedactionAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.RubberStampAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.ScreenAnnot.prototype= new PDFNet.Annot;PDFNet.SoundAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.SquareAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.SquigglyAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.StrikeOutAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.TextAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.UnderlineAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.WatermarkAnnot.prototype=new PDFNet.Annot;PDFNet.WidgetAnnot.prototype=new PDFNet.Annot;PDFNet.SignatureWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.ComboBoxWidget.prototype= new PDFNet.WidgetAnnot;PDFNet.ListBoxWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.TextWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.CheckBoxWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.RadioButtonWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.PushButtonWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.Field.EventType={e_action_trigger_keystroke:13,e_action_trigger_format:14,e_action_trigger_validate:15,e_action_trigger_calculate:16};PDFNet.Field.Type={e_button:0,e_check:1,e_radio:2,e_text:3,e_choice:4, e_signature:5,e_null:6};PDFNet.Field.Flag={e_read_only:0,e_required:1,e_no_export:2,e_pushbutton_flag:3,e_radio_flag:4,e_toggle_to_off:5,e_radios_in_unison:6,e_multiline:7,e_password:8,e_file_select:9,e_no_spellcheck:10,e_no_scroll:11,e_comb:12,e_rich_text:13,e_combo:14,e_edit:15,e_sort:16,e_multiselect:17,e_commit_on_sel_change:18};PDFNet.Field.TextJustification={e_left_justified:0,e_centered:1,e_right_justified:2};PDFNet.Filter.StdFileOpenMode={e_read_mode:0,e_write_mode:1,e_append_mode:2};PDFNet.Filter.ReferencePos= {e_begin:0,e_end:2,e_cur:1};PDFNet.OCGContext.OCDrawMode={e_VisibleOC:0,e_AllOC:1,e_NoOC:2};PDFNet.OCMD.VisibilityPolicyType={e_AllOn:0,e_AnyOn:1,e_AnyOff:2,e_AllOff:3};PDFNet.PDFACompliance.Conformance={e_Level1A:1,e_Level1B:2,e_Level2A:3,e_Level2B:4,e_Level2U:5,e_Level3A:6,e_Level3B:7,e_Level3U:8};PDFNet.PDFACompliance.ErrorCode={e_PDFA0_1_0:10,e_PDFA0_1_1:11,e_PDFA0_1_2:12,e_PDFA0_1_3:13,e_PDFA0_1_4:14,e_PDFA0_1_5:15,e_PDFA1_2_1:121,e_PDFA1_2_2:122,e_PDFA1_3_1:131,e_PDFA1_3_2:132,e_PDFA1_3_3:133, e_PDFA1_3_4:134,e_PDFA1_4_1:141,e_PDFA1_4_2:142,e_PDFA1_6_1:161,e_PDFA1_7_1:171,e_PDFA1_7_2:172,e_PDFA1_7_3:173,e_PDFA1_7_4:174,e_PDFA1_8_1:181,e_PDFA1_8_2:182,e_PDFA1_8_3:183,e_PDFA1_8_4:184,e_PDFA1_8_5:185,e_PDFA1_8_6:186,e_PDFA1_10_1:1101,e_PDFA1_11_1:1111,e_PDFA1_11_2:1112,e_PDFA1_12_1:1121,e_PDFA1_12_2:1122,e_PDFA1_12_3:1123,e_PDFA1_12_4:1124,e_PDFA1_12_5:1125,e_PDFA1_12_6:1126,e_PDFA1_13_1:1131,e_PDFA2_2_1:221,e_PDFA2_3_2:232,e_PDFA2_3_3:233,e_PDFA2_3_3_1:2331,e_PDFA2_3_3_2:2332,e_PDFA2_3_4_1:2341, e_PDFA2_4_1:241,e_PDFA2_4_2:242,e_PDFA2_4_3:243,e_PDFA2_4_4:244,e_PDFA2_5_1:251,e_PDFA2_5_2:252,e_PDFA2_6_1:261,e_PDFA2_7_1:271,e_PDFA2_8_1:281,e_PDFA2_9_1:291,e_PDFA2_10_1:2101,e_PDFA3_2_1:321,e_PDFA3_3_1:331,e_PDFA3_3_2:332,e_PDFA3_3_3_1:3331,e_PDFA3_3_3_2:3332,e_PDFA3_4_1:341,e_PDFA3_5_1:351,e_PDFA3_5_2:352,e_PDFA3_5_3:353,e_PDFA3_5_4:354,e_PDFA3_5_5:355,e_PDFA3_5_6:356,e_PDFA3_6_1:361,e_PDFA3_7_1:371,e_PDFA3_7_2:372,e_PDFA3_7_3:373,e_PDFA4_1:41,e_PDFA4_2:42,e_PDFA4_3:43,e_PDFA4_4:44,e_PDFA4_5:45, e_PDFA4_6:46,e_PDFA5_2_1:521,e_PDFA5_2_2:522,e_PDFA5_2_3:523,e_PDFA5_2_4:524,e_PDFA5_2_5:525,e_PDFA5_2_6:526,e_PDFA5_2_7:527,e_PDFA5_2_8:528,e_PDFA5_2_9:529,e_PDFA5_2_10:5210,e_PDFA5_2_11:5211,e_PDFA5_3_1:531,e_PDFA5_3_2_1:5321,e_PDFA5_3_2_2:5322,e_PDFA5_3_2_3:5323,e_PDFA5_3_2_4:5324,e_PDFA5_3_2_5:5325,e_PDFA5_3_3_1:5331,e_PDFA5_3_3_2:5332,e_PDFA5_3_3_3:5333,e_PDFA5_3_3_4:5334,e_PDFA5_3_4_0:5340,e_PDFA5_3_4_1:5341,e_PDFA5_3_4_2:5342,e_PDFA5_3_4_3:5343,e_PDFA6_1_1:611,e_PDFA6_1_2:612,e_PDFA6_2_1:621, e_PDFA6_2_2:622,e_PDFA6_2_3:623,e_PDFA7_2_1:721,e_PDFA7_2_2:722,e_PDFA7_2_3:723,e_PDFA7_2_4:724,e_PDFA7_2_5:725,e_PDFA7_3_1:731,e_PDFA7_3_2:732,e_PDFA7_3_3:733,e_PDFA7_3_4:734,e_PDFA7_3_5:735,e_PDFA7_3_6:736,e_PDFA7_3_7:737,e_PDFA7_3_8:738,e_PDFA7_3_9:739,e_PDFA7_5_1:751,e_PDFA7_8_1:781,e_PDFA7_8_2:782,e_PDFA7_8_3:783,e_PDFA7_8_4:784,e_PDFA7_8_5:785,e_PDFA7_8_6:786,e_PDFA7_8_7:787,e_PDFA7_8_8:788,e_PDFA7_8_9:789,e_PDFA7_8_10:7810,e_PDFA7_8_11:7811,e_PDFA7_8_12:7812,e_PDFA7_8_13:7813,e_PDFA7_8_14:7814, e_PDFA7_8_15:7815,e_PDFA7_8_16:7816,e_PDFA7_8_17:7817,e_PDFA7_8_18:7818,e_PDFA7_8_19:7819,e_PDFA7_8_20:7820,e_PDFA7_8_21:7821,e_PDFA7_8_22:7822,e_PDFA7_8_23:7823,e_PDFA7_8_24:7824,e_PDFA7_8_25:7825,e_PDFA7_8_26:7826,e_PDFA7_8_27:7827,e_PDFA7_8_28:7828,e_PDFA7_8_29:7829,e_PDFA7_8_30:7830,e_PDFA7_8_31:7831,e_PDFA7_11_1:7111,e_PDFA7_11_2:7112,e_PDFA7_11_3:7113,e_PDFA7_11_4:7114,e_PDFA7_11_5:7115,e_PDFA9_1:91,e_PDFA9_2:92,e_PDFA9_3:93,e_PDFA9_4:94,e_PDFA3_8_1:381,e_PDFA8_2_2:822,e_PDFA8_3_3_1:8331,e_PDFA8_3_3_2:8332, e_PDFA8_3_4_1:8341,e_PDFA1_2_3:123,e_PDFA1_10_2:1102,e_PDFA1_10_3:1103,e_PDFA1_12_10:11210,e_PDFA1_13_5:1135,e_PDFA2_3_10:2310,e_PDFA2_4_2_10:24220,e_PDFA2_4_2_11:24221,e_PDFA2_4_2_12:24222,e_PDFA2_4_2_13:24223,e_PDFA2_5_10:2510,e_PDFA2_5_11:2511,e_PDFA2_5_12:2512,e_PDFA2_8_3_1:2831,e_PDFA2_8_3_2:2832,e_PDFA2_8_3_3:2833,e_PDFA2_8_3_4:2834,e_PDFA2_8_3_5:2835,e_PDFA2_10_20:21020,e_PDFA2_10_21:21021,e_PDFA11_0_0:11E3,e_PDFA6_2_11_8:62118,e_PDFA8_1:81,e_PDFA_3E1:1,e_PDFA_3E2:2,e_PDFA_3E3:3,e_PDFA_LAST:4}; PDFNet.ContentItem.Type={e_MCR:0,e_MCID:1,e_OBJR:2,e_Unknown:3};PDFNet.Action.Type={e_GoTo:0,e_GoToR:1,e_GoToE:2,e_Launch:3,e_Thread:4,e_URI:5,e_Sound:6,e_Movie:7,e_Hide:8,e_Named:9,e_SubmitForm:10,e_ResetForm:11,e_ImportData:12,e_JavaScript:13,e_SetOCGState:14,e_Rendition:15,e_Trans:16,e_GoTo3DView:17,e_RichMediaExecute:18,e_Unknown:19};PDFNet.Action.FormActionFlag={e_exclude:0,e_include_no_value_fields:1,e_export_format:2,e_get_method:3,e_submit_coordinates:4,e_xfdf:5,e_include_append_saves:6,e_include_annotations:7, e_submit_pdf:8,e_canonical_format:9,e_excl_non_user_annots:10,e_excl_F_key:11,e_embed_form:13};PDFNet.Page.EventType={e_action_trigger_page_open:11,e_action_trigger_page_close:12};PDFNet.Page.Box={e_media:0,e_crop:1,e_bleed:2,e_trim:3,e_art:4};PDFNet.Page.Rotate={e_0:0,e_90:1,e_180:2,e_270:3};PDFNet.Annot.EventType={e_action_trigger_activate:0,e_action_trigger_annot_enter:1,e_action_trigger_annot_exit:2,e_action_trigger_annot_down:3,e_action_trigger_annot_up:4,e_action_trigger_annot_focus:5,e_action_trigger_annot_blur:6, e_action_trigger_annot_page_open:7,e_action_trigger_annot_page_close:8,e_action_trigger_annot_page_visible:9,e_action_trigger_annot_page_invisible:10};PDFNet.Annot.Type={e_Text:0,e_Link:1,e_FreeText:2,e_Line:3,e_Square:4,e_Circle:5,e_Polygon:6,e_Polyline:7,e_Highlight:8,e_Underline:9,e_Squiggly:10,e_StrikeOut:11,e_Stamp:12,e_Caret:13,e_Ink:14,e_Popup:15,e_FileAttachment:16,e_Sound:17,e_Movie:18,e_Widget:19,e_Screen:20,e_PrinterMark:21,e_TrapNet:22,e_Watermark:23,e_3D:24,e_Redact:25,e_Projection:26, e_RichMedia:27,e_Unknown:28};PDFNet.Annot.Flag={e_invisible:0,e_hidden:1,e_print:2,e_no_zoom:3,e_no_rotate:4,e_no_view:5,e_annot_read_only:6,e_locked:7,e_toggle_no_view:8,e_locked_contents:9};PDFNet.AnnotBorderStyle.Style={e_solid:0,e_dashed:1,e_beveled:2,e_inset:3,e_underline:4};PDFNet.Annot.State={e_normal:0,e_rollover:1,e_down:2};PDFNet.LineAnnot.EndingStyle={e_Square:0,e_Circle:1,e_Diamond:2,e_OpenArrow:3,e_ClosedArrow:4,e_Butt:5,e_ROpenArrow:6,e_RClosedArrow:7,e_Slash:8,e_None:9,e_Unknown:10}; PDFNet.LineAnnot.IntentType={e_LineArrow:0,e_LineDimension:1,e_null:2};PDFNet.LineAnnot.CapPos={e_Inline:0,e_Top:1};PDFNet.FileAttachmentAnnot.Icon={e_Graph:0,e_PushPin:1,e_Paperclip:2,e_Tag:3,e_Unknown:4};PDFNet.FreeTextAnnot.IntentName={e_FreeText:0,e_FreeTextCallout:1,e_FreeTextTypeWriter:2,e_Unknown:3};PDFNet.LinkAnnot.HighlightingMode={e_none:0,e_invert:1,e_outline:2,e_push:3};PDFNet.MarkupAnnot.BorderEffect={e_None:0,e_Cloudy:1};PDFNet.PolyLineAnnot.IntentType={e_PolygonCloud:0,e_PolyLineDimension:1, e_PolygonDimension:2,e_Unknown:3};PDFNet.RedactionAnnot.QuadForm={e_LeftJustified:0,e_Centered:1,e_RightJustified:2,e_None:3};PDFNet.RubberStampAnnot.Icon={e_Approved:0,e_Experimental:1,e_NotApproved:2,e_AsIs:3,e_Expired:4,e_NotForPublicRelease:5,e_Confidential:6,e_Final:7,e_Sold:8,e_Departmental:9,e_ForComment:10,e_TopSecret:11,e_ForPublicRelease:12,e_Draft:13,e_Unknown:14};PDFNet.ScreenAnnot.ScaleType={e_Anamorphic:0,e_Proportional:1};PDFNet.ScreenAnnot.ScaleCondition={e_Always:0,e_WhenBigger:1, e_WhenSmaller:2,e_Never:3};PDFNet.ScreenAnnot.IconCaptionRelation={e_NoIcon:0,e_NoCaption:1,e_CBelowI:2,e_CAboveI:3,e_CRightILeft:4,e_CLeftIRight:5,e_COverlayI:6};PDFNet.SoundAnnot.Icon={e_Speaker:0,e_Mic:1,e_Unknown:2};PDFNet.TextAnnot.Icon={e_Comment:0,e_Key:1,e_Help:2,e_NewParagraph:3,e_Paragraph:4,e_Insert:5,e_Note:6,e_Unknown:7};PDFNet.WidgetAnnot.HighlightingMode={e_none:0,e_invert:1,e_outline:2,e_push:3,e_toggle:4};PDFNet.WidgetAnnot.ScaleType={e_Anamorphic:0,e_Proportional:1};PDFNet.WidgetAnnot.IconCaptionRelation= {e_NoIcon:0,e_NoCaption:1,e_CBelowI:2,e_CAboveI:3,e_CRightILeft:4,e_CLeftIRight:5,e_COverlayI:6};PDFNet.WidgetAnnot.ScaleCondition={e_Always:0,e_WhenBigger:1,e_WhenSmaller:2,e_Never:3};PDFNet.ColorSpace.Type={e_device_gray:0,e_device_rgb:1,e_device_cmyk:2,e_cal_gray:3,e_cal_rgb:4,e_lab:5,e_icc:6,e_indexed:7,e_pattern:8,e_separation:9,e_device_n:10,e_null:11};PDFNet.DocumentConversion._Result={e_Success:0,e_Incomplete:1,e_Failure:2};PDFNet.Destination.FitType={e_XYZ:0,e_Fit:1,e_FitH:2,e_FitV:3,e_FitR:4, e_FitB:5,e_FitBH:6,e_FitBV:7};PDFNet.GState.Attribute={e_transform:0,e_rendering_intent:1,e_stroke_cs:2,e_stroke_color:3,e_fill_cs:4,e_fill_color:5,e_line_width:6,e_line_cap:7,e_line_join:8,e_flatness:9,e_miter_limit:10,e_dash_pattern:11,e_char_spacing:12,e_word_spacing:13,e_horizontal_scale:14,e_leading:15,e_font:16,e_font_size:17,e_text_render_mode:18,e_text_rise:19,e_text_knockout:20,e_text_pos_offset:21,e_blend_mode:22,e_opacity_fill:23,e_opacity_stroke:24,e_alpha_is_shape:25,e_soft_mask:26,e_smoothnes:27, e_auto_stoke_adjust:28,e_stroke_overprint:29,e_fill_overprint:30,e_overprint_mode:31,e_transfer_funct:32,e_BG_funct:33,e_UCR_funct:34,e_halftone:35,e_null:36};PDFNet.GState.LineCap={e_butt_cap:0,e_round_cap:1,e_square_cap:2};PDFNet.GState.LineJoin={e_miter_join:0,e_round_join:1,e_bevel_join:2};PDFNet.GState.TextRenderingMode={e_fill_text:0,e_stroke_text:1,e_fill_stroke_text:2,e_invisible_text:3,e_fill_clip_text:4,e_stroke_clip_text:5,e_fill_stroke_clip_text:6,e_clip_text:7};PDFNet.GState.RenderingIntent= {e_absolute_colorimetric:0,e_relative_colorimetric:1,e_saturation:2,e_perceptual:3};PDFNet.GState.BlendMode={e_bl_compatible:0,e_bl_normal:1,e_bl_multiply:2,e_bl_screen:3,e_bl_difference:4,e_bl_darken:5,e_bl_lighten:6,e_bl_color_dodge:7,e_bl_color_burn:8,e_bl_exclusion:9,e_bl_hard_light:10,e_bl_overlay:11,e_bl_soft_light:12,e_bl_luminosity:13,e_bl_hue:14,e_bl_saturation:15,e_bl_color:16};PDFNet.Element.Type={e_null:0,e_path:1,e_text_begin:2,e_text:3,e_text_new_line:4,e_text_end:5,e_image:6,e_inline_image:7, e_shading:8,e_form:9,e_group_begin:10,e_group_end:11,e_marked_content_begin:12,e_marked_content_end:13,e_marked_content_point:14};PDFNet.Element.PathSegmentType={e_moveto:1,e_lineto:2,e_cubicto:3,e_conicto:4,e_rect:5,e_closepath:6};PDFNet.ElementWriter.WriteMode={e_underlay:0,e_overlay:1,e_replacement:2};PDFNet.Flattener.Threshold={e_threshold_very_strict:0,e_threshold_strict:1,e_threshold_default:2,e_threshold_keep_most:3,e_threshold_keep_all:4};PDFNet.Flattener.Mode={e_mode_simple:0,e_mode_fast:1}; PDFNet.Font.StandardType1Font={e_times_roman:0,e_times_bold:1,e_times_italic:2,e_times_bold_italic:3,e_helvetica:4,e_helvetica_bold:5,e_helvetica_oblique:6,e_helvetica_bold_oblique:7,e_courier:8,e_courier_bold:9,e_courier_oblique:10,e_courier_bold_oblique:11,e_symbol:12,e_zapf_dingbats:13,e_null:14};PDFNet.Font.Encoding={e_IdentityH:0,e_Indices:1};PDFNet.Font.Type={e_Type1:0,e_TrueType:1,e_MMType1:2,e_Type3:3,e_Type0:4,e_CIDType0:5,e_CIDType2:6};PDFNet.Function.Type={e_sampled:0,e_exponential:2,e_stitching:3, e_postscript:4};PDFNet.HTML2PDF._WebPageSettings_ErrorHandling={e_WebPageSettings_abort:0,e_WebPageSettings_skip:1,e_WebPageSettings_ignore:2};PDFNet.HTML2PDF._Proxy_Type={e_Proxy_default:0,e_Proxy_none:1,e_Proxy_http:2,e_Proxy_socks5:3};PDFNet.Image.InputFilter={e_none:0,e_jpeg:1,e_jp2:2,e_flate:3,e_g3:4,e_g4:5,e_ascii_hex:6};PDFNet.Optimizer._ImageSettings_CompressionMode={e_ImageSettings_retain:0,e_ImageSettings_flate:1,e_ImageSettings_jpeg:2,e_ImageSettings_jpeg2000:3,e_ImageSettings_none:4}; PDFNet.Optimizer._ImageSettings_DownsampleMode={e_ImageSettings_off:0,e_ImageSettings_default:1};PDFNet.Optimizer._MonoImageSettings_CompressionMode={e_MonoImageSettings_jbig2:0,e_MonoImageSettings_flate:1,e_MonoImageSettings_none:2};PDFNet.Optimizer._MonoImageSettings_DownsampleMode={e_MonoImageSettings_off:0,e_MonoImageSettings_default:1};PDFNet.PageLabel.Style={e_decimal:0,e_roman_uppercase:1,e_roman_lowercase:2,e_alphabetic_uppercase:3,e_alphabetic_lowercase:4,e_none:5};PDFNet.PageSet.Filter= {e_all:0,e_even:1,e_odd:2};PDFNet.PatternColor.Type={e_uncolored_tiling_pattern:0,e_colored_tiling_pattern:1,e_shading:2,e_null:3};PDFNet.PatternColor.TilingType={e_constant_spacing:0,e_no_distortion:1,e_constant_spacing_fast_fill:2};PDFNet.GeometryCollection._SnappingMode={e_DefaultSnapMode:14,e_PointOnLine:1,e_LineMidpoint:2,e_LineIntersection:4,e_PathEndpoint:8};PDFNet.DigitalSignatureField._SubFilterType={e_adbe_x509_rsa_sha1:0,e_adbe_pkcs7_detached:1,e_adbe_pkcs7_sha1:2,e_ETSI_CAdES_detached:3, e_ETSI_RFC3161:4,e_unknown:5,e_absent:6};PDFNet.DigitalSignatureField._DocumentPermissions={e_no_changes_allowed:1,e_formfilling_signing_allowed:2,e_annotating_formfilling_signing_allowed:3,e_unrestricted:4};PDFNet.DigitalSignatureField._FieldPermissions={e_lock_all:0,e_include:1,e_exclude:2};PDFNet.PDFDoc.EventType={e_action_trigger_doc_will_close:17,e_action_trigger_doc_will_save:18,e_action_trigger_doc_did_save:19,e_action_trigger_doc_will_print:20,e_action_trigger_doc_did_print:21};PDFNet.PDFDoc.InsertFlag= {e_none:0,e_insert_bookmark:1};PDFNet.PDFDoc.ExtractFlag={e_forms_only:0,e_annots_only:1,e_both:2};PDFNet.PDFDocViewPrefs.PageMode={e_UseNone:0,e_UseThumbs:1,e_UseBookmarks:2,e_FullScreen:3,e_UseOC:4,e_UseAttachments:5};PDFNet.PDFDocViewPrefs.PageLayout={e_Default:0,e_SinglePage:1,e_OneColumn:2,e_TwoColumnLeft:3,e_TwoColumnRight:4,e_TwoPageLeft:5,e_TwoPageRight:6};PDFNet.PDFDocViewPrefs.ViewerPref={e_HideToolbar:0,e_HideMenubar:1,e_HideWindowUI:2,e_FitWindow:3,e_CenterWindow:4,e_DisplayDocTitle:5}; PDFNet.PDFRasterizer.Type={e_BuiltIn:0,e_GDIPlus:1};PDFNet.PDFRasterizer.OverprintPreviewMode={e_op_off:0,e_op_on:1,e_op_pdfx_on:2};PDFNet.PDFRasterizer.ColorPostProcessMode={e_postprocess_none:0,e_postprocess_invert:1};PDFNet.PDFDraw.PixelFormat={e_rgba:0,e_bgra:1,e_rgb:2,e_bgr:3,e_gray:4,e_gray_alpha:5,e_cmyk:6};PDFNet.CMSType={e_lcms:0,e_icm:1,e_no_cms:2};PDFNet.CharacterOrdering={e_Identity:0,e_Japan1:1,e_Japan2:2,e_GB1:3,e_CNS1:4,e_Korea1:5};PDFNet.LogLevel={e_LogLevel_Off:-1,e_LogLevel_Fatal:5, e_LogLevel_Error:4,e_LogLevel_Warning:3,e_LogLevel_Info:2,e_LogLevel_Trace:1,e_LogLevel_Debug:0};PDFNet.Shading.Type={e_function_shading:0,e_axial_shading:1,e_radial_shading:2,e_free_gouraud_shading:3,e_lattice_gouraud_shading:4,e_coons_shading:5,e_tensor_shading:6,e_null:7};PDFNet.Stamper.SizeType={e_relative_scale:1,e_absolute_size:2,e_font_size:3};PDFNet.Stamper.TextAlignment={e_align_left:-1,e_align_center:0,e_align_right:1};PDFNet.Stamper.HorizontalAlignment={e_horizontal_left:-1,e_horizontal_center:0, e_horizontal_right:1};PDFNet.Stamper.VerticalAlignment={e_vertical_bottom:-1,e_vertical_center:0,e_vertical_top:1};PDFNet.TextExtractor.ProcessingFlags={e_no_ligature_exp:1,e_no_dup_remove:2,e_punct_break:4,e_remove_hidden_text:8,e_no_invisible_text:16};PDFNet.TextExtractor.XMLOutputFlags={e_words_as_elements:1,e_output_bbox:2,e_output_style_info:4};PDFNet.TextSearch.ResultCode={e_done:0,e_page:1,e_found:2};PDFNet.TextSearch.Mode={e_reg_expression:1,e_case_sensitive:2,e_whole_word:4,e_search_up:8, e_page_stop:16,e_highlight:32,e_ambient_string:64};PDFNet.Obj.Type={e_null:0,e_bool:1,e_number:2,e_name:3,e_string:4,e_dict:5,e_array:6,e_stream:7};PDFNet.SDFDoc.SaveOptions={e_incremental:1,e_remove_unused:2,e_hex_strings:4,e_omit_xref:8,e_linearized:16,e_compatibility:32};PDFNet.SecurityHandler.Permission={e_owner:1,e_doc_open:2,e_doc_modify:3,e_print:4,e_print_high:5,e_extract_content:6,e_mod_annot:7,e_fill_forms:8,e_access_support:9,e_assemble_doc:10};PDFNet.SecurityHandler.AlgorithmType={e_RC4_40:1, e_RC4_128:2,e_AES:3,e_AES_256:4};PDFNet.Iterator.prototype.hasNext=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'hasNext'. Expected 0 arguments. Function Signature: hasNext()");return PDFNet.messageHandler.sendWithPromise("Iterator.hasNext",{itr:this.id},this.userPriority)};PDFNet.Iterator.prototype.next=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'next'. Expected 0 arguments. Function Signature: next()"); return PDFNet.messageHandler.sendWithPromise("Iterator.next",{itr:this.id},this.userPriority)};PDFNet.Iterator.prototype.assign=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'assign'. Expected 0 arguments. Function Signature: assign()");return PDFNet.messageHandler.sendWithPromise("Iterator.assign",{right:this.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Iterator(id);createdObjects.push({name:id.name,id:id.id}); return id})};PDFNet.Iterator.prototype.destroy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()");for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(thisIndexownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("fdfDocCreateFromStream",{no_own_stream:no_own_stream.id},this.userPriority).then(function(id){if("0"== id)return null;id=new PDFNet.FDFDoc(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.FDFDoc.createFromMemoryBuffer=function(buf){buf instanceof Array&&(buf=new Float64Array(buf));if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFromMemoryBuffer'. Expected 1 argument. Function Signature: createFromMemoryBuffer(ArrayBuffer)");if(buf instanceof Promise)throw new TypeError("1st input argument in function 'createFromMemoryBuffer' is a Promise object. Promises require a 'yield' statement before being accessed."); if(!exports.isArrayBuffer(buf.buffer)){if("object"==typeof buf)throw new TypeError("1st input argument in function 'createFromMemoryBuffer' is of type '"+buf.name+"'. Expected type 'ArrayBuffer'. Function Signature: createFromMemoryBuffer(ArrayBuffer).");throw new TypeError("1st input argument '"+buf+"' in function 'createFromMemoryBuffer' is of type '"+typeof buf+"'. Expected type 'ArrayBuffer'. Function Signature: createFromMemoryBuffer(ArrayBuffer).");}return PDFNet.messageHandler.sendWithPromise("fdfDocCreateFromMemoryBuffer", {buf:buf.buffer},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.FDFDoc(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.FDFDoc.prototype.destroy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()");for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex, 1),i=deallocStackCounter.length-1;0<=i;i--)if(thisIndexarguments.length||3arguments.length||2ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("Filter.createASCII85Encode", {no_own_input_filter:this.id,line_width:line_width,buf_sz:buf_sz},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createMemoryFilter=function(buf_sz,is_input){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createMemoryFilter'. Expected 2 arguments. Function Signature: createMemoryFilter(number, boolean)");if(buf_sz instanceof Promise)throw new TypeError("1st input argument in function 'createMemoryFilter' is a Promise object. Promises require a 'yield' statement before being accessed."); if("number"!=typeof buf_sz)throw new TypeError("1st input argument '"+buf_sz+"' in function 'createMemoryFilter' is of type '"+typeof buf_sz+"'. Expected type 'number'. Function Signature: createMemoryFilter(number, boolean).");if(is_input instanceof Promise)throw new TypeError("2nd input argument in function 'createMemoryFilter' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof is_input)throw new TypeError("2nd input argument '"+is_input+"' in function 'createMemoryFilter' is of type '"+ typeof is_input+"'. Expected type 'boolean'. Function Signature: createMemoryFilter(number, boolean).");return PDFNet.messageHandler.sendWithPromise("filterCreateMemoryFilter",{buf_sz:buf_sz,is_input:is_input},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createImage2RGBFromElement=function(elem){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createImage2RGBFromElement'. Expected 1 argument. Function Signature: createImage2RGBFromElement(Element)"); if(elem instanceof Promise)throw new TypeError("1st input argument in function 'createImage2RGBFromElement' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(elem instanceof PDFNet.Element)){if("object"==typeof elem)throw new TypeError("1st input argument in function 'createImage2RGBFromElement' is of type '"+elem.name+"'. Expected type 'Element'. Function Signature: createImage2RGBFromElement(Element).");throw new TypeError("1st input argument '"+elem+"' in function 'createImage2RGBFromElement' is of type '"+ typeof elem+"'. Expected type 'Element'. Function Signature: createImage2RGBFromElement(Element).");}return PDFNet.messageHandler.sendWithPromise("filterCreateImage2RGBFromElement",{elem:elem.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createImage2RGBFromObj=function(obj){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createImage2RGBFromObj'. Expected 1 argument. Function Signature: createImage2RGBFromObj(Obj)"); if(obj instanceof Promise)throw new TypeError("1st input argument in function 'createImage2RGBFromObj' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(obj instanceof PDFNet.Obj)){if("object"==typeof obj)throw new TypeError("1st input argument in function 'createImage2RGBFromObj' is of type '"+obj.name+"'. Expected type 'Obj'. Function Signature: createImage2RGBFromObj(Obj).");throw new TypeError("1st input argument '"+obj+"' in function 'createImage2RGBFromObj' is of type '"+ typeof obj+"'. Expected type 'Obj'. Function Signature: createImage2RGBFromObj(Obj).");}return PDFNet.messageHandler.sendWithPromise("filterCreateImage2RGBFromObj",{obj:obj.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createImage2RGB=function(img){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createImage2RGB'. Expected 1 argument. Function Signature: createImage2RGB(Image)"); if(img instanceof Promise)throw new TypeError("1st input argument in function 'createImage2RGB' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(img instanceof PDFNet.Image)){if("object"==typeof img)throw new TypeError("1st input argument in function 'createImage2RGB' is of type '"+img.name+"'. Expected type 'Image'. Function Signature: createImage2RGB(Image).");throw new TypeError("1st input argument '"+img+"' in function 'createImage2RGB' is of type '"+typeof img+ "'. Expected type 'Image'. Function Signature: createImage2RGB(Image).");}return PDFNet.messageHandler.sendWithPromise("filterCreateImage2RGB",{img:img.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createImage2RGBAFromElement=function(elem,premultiply){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createImage2RGBAFromElement'. Expected 2 arguments. Function Signature: createImage2RGBAFromElement(Element, boolean)"); if(elem instanceof Promise)throw new TypeError("1st input argument in function 'createImage2RGBAFromElement' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(elem instanceof PDFNet.Element)){if("object"==typeof elem)throw new TypeError("1st input argument in function 'createImage2RGBAFromElement' is of type '"+elem.name+"'. Expected type 'Element'. Function Signature: createImage2RGBAFromElement(Element, boolean).");throw new TypeError("1st input argument '"+ elem+"' in function 'createImage2RGBAFromElement' is of type '"+typeof elem+"'. Expected type 'Element'. Function Signature: createImage2RGBAFromElement(Element, boolean).");}if(premultiply instanceof Promise)throw new TypeError("2nd input argument in function 'createImage2RGBAFromElement' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof premultiply)throw new TypeError("2nd input argument '"+premultiply+"' in function 'createImage2RGBAFromElement' is of type '"+ typeof premultiply+"'. Expected type 'boolean'. Function Signature: createImage2RGBAFromElement(Element, boolean).");return PDFNet.messageHandler.sendWithPromise("filterCreateImage2RGBAFromElement",{elem:elem.id,premultiply:premultiply},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createImage2RGBAFromObj=function(obj,premultiply){if(2!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'createImage2RGBAFromObj'. Expected 2 arguments. Function Signature: createImage2RGBAFromObj(Obj, boolean)");if(obj instanceof Promise)throw new TypeError("1st input argument in function 'createImage2RGBAFromObj' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(obj instanceof PDFNet.Obj)){if("object"==typeof obj)throw new TypeError("1st input argument in function 'createImage2RGBAFromObj' is of type '"+obj.name+"'. Expected type 'Obj'. Function Signature: createImage2RGBAFromObj(Obj, boolean)."); throw new TypeError("1st input argument '"+obj+"' in function 'createImage2RGBAFromObj' is of type '"+typeof obj+"'. Expected type 'Obj'. Function Signature: createImage2RGBAFromObj(Obj, boolean).");}if(premultiply instanceof Promise)throw new TypeError("2nd input argument in function 'createImage2RGBAFromObj' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof premultiply)throw new TypeError("2nd input argument '"+premultiply+"' in function 'createImage2RGBAFromObj' is of type '"+ typeof premultiply+"'. Expected type 'boolean'. Function Signature: createImage2RGBAFromObj(Obj, boolean).");return PDFNet.messageHandler.sendWithPromise("filterCreateImage2RGBAFromObj",{obj:obj.id,premultiply:premultiply},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createImage2RGBA=function(img,premultiply){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createImage2RGBA'. Expected 2 arguments. Function Signature: createImage2RGBA(Image, boolean)"); if(img instanceof Promise)throw new TypeError("1st input argument in function 'createImage2RGBA' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(img instanceof PDFNet.Image)){if("object"==typeof img)throw new TypeError("1st input argument in function 'createImage2RGBA' is of type '"+img.name+"'. Expected type 'Image'. Function Signature: createImage2RGBA(Image, boolean).");throw new TypeError("1st input argument '"+img+"' in function 'createImage2RGBA' is of type '"+ typeof img+"'. Expected type 'Image'. Function Signature: createImage2RGBA(Image, boolean).");}if(premultiply instanceof Promise)throw new TypeError("2nd input argument in function 'createImage2RGBA' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof premultiply)throw new TypeError("2nd input argument '"+premultiply+"' in function 'createImage2RGBA' is of type '"+typeof premultiply+"'. Expected type 'boolean'. Function Signature: createImage2RGBA(Image, boolean)."); return PDFNet.messageHandler.sendWithPromise("filterCreateImage2RGBA",{img:img.id,premultiply:premultiply},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createCustomWithStruct=function(mode,user_data,callbacks){if(1>arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("Filter.attachFilter",{filter:this.id,no_own_attach_filter:no_own_attach_filter.id},this.userPriority)};PDFNet.Filter.prototype.releaseAttachedFilter=function(){if(0!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'releaseAttachedFilter'. Expected 0 arguments. Function Signature: releaseAttachedFilter()");return PDFNet.messageHandler.sendWithPromise("Filter.releaseAttachedFilter",{filter:this.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.prototype.getAttachedFilter=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getAttachedFilter'. Expected 0 arguments. Function Signature: getAttachedFilter()"); return PDFNet.messageHandler.sendWithPromise("Filter.getAttachedFilter",{filter:this.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Filter(id)})};PDFNet.Filter.prototype.getSourceFilter=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getSourceFilter'. Expected 0 arguments. Function Signature: getSourceFilter()");return PDFNet.messageHandler.sendWithPromise("Filter.getSourceFilter",{filter:this.id},this.userPriority).then(function(id){return"0"== id?null:new PDFNet.Filter(id)})};PDFNet.Filter.prototype.getName=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getName'. Expected 0 arguments. Function Signature: getName()");return PDFNet.messageHandler.sendWithPromise("Filter.getName",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.getDecodeName=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getDecodeName'. Expected 0 arguments. Function Signature: getDecodeName()"); return PDFNet.messageHandler.sendWithPromise("Filter.getDecodeName",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.begin=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'begin'. Expected 0 arguments. Function Signature: begin()");return PDFNet.messageHandler.sendWithPromise("Filter.begin",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.size=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'size'. Expected 0 arguments. Function Signature: size()"); return PDFNet.messageHandler.sendWithPromise("Filter.size",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.consume=function(num_bytes){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'consume'. Expected 1 argument. Function Signature: consume(number)");if(num_bytes instanceof Promise)throw new TypeError("1st input argument in function 'consume' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!= typeof num_bytes)throw new TypeError("1st input argument '"+num_bytes+"' in function 'consume' is of type '"+typeof num_bytes+"'. Expected type 'number'. Function Signature: consume(number).");return PDFNet.messageHandler.sendWithPromise("Filter.consume",{filter:this.id,num_bytes:num_bytes},this.userPriority)};PDFNet.Filter.prototype.count=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'count'. Expected 0 arguments. Function Signature: count()"); return PDFNet.messageHandler.sendWithPromise("Filter.count",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.setCount=function(new_count){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'setCount'. Expected 1 argument. Function Signature: setCount(number)");if(new_count instanceof Promise)throw new TypeError("1st input argument in function 'setCount' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!= typeof new_count)throw new TypeError("1st input argument '"+new_count+"' in function 'setCount' is of type '"+typeof new_count+"'. Expected type 'number'. Function Signature: setCount(number).");return PDFNet.messageHandler.sendWithPromise("Filter.setCount",{filter:this.id,new_count:new_count},this.userPriority)};PDFNet.Filter.prototype.setStreamLength=function(bytes){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'setStreamLength'. Expected 1 argument. Function Signature: setStreamLength(number)"); if(bytes instanceof Promise)throw new TypeError("1st input argument in function 'setStreamLength' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof bytes)throw new TypeError("1st input argument '"+bytes+"' in function 'setStreamLength' is of type '"+typeof bytes+"'. Expected type 'number'. Function Signature: setStreamLength(number).");return PDFNet.messageHandler.sendWithPromise("Filter.setStreamLength",{filter:this.id,bytes:bytes},this.userPriority)}; PDFNet.Filter.prototype.flush=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'flush'. Expected 0 arguments. Function Signature: flush()");return PDFNet.messageHandler.sendWithPromise("Filter.flush",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.flushAll=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'flushAll'. Expected 0 arguments. Function Signature: flushAll()");return PDFNet.messageHandler.sendWithPromise("Filter.flushAll", {filter:this.id},this.userPriority)};PDFNet.Filter.prototype.isInputFilter=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'isInputFilter'. Expected 0 arguments. Function Signature: isInputFilter()");return PDFNet.messageHandler.sendWithPromise("Filter.isInputFilter",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.canSeek=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'canSeek'. Expected 0 arguments. Function Signature: canSeek()"); return PDFNet.messageHandler.sendWithPromise("Filter.canSeek",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.seek=function(offset,origin){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'seek'. Expected 2 arguments. Function Signature: seek(number, number)");if(offset instanceof Promise)throw new TypeError("1st input argument in function 'seek' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!= typeof offset)throw new TypeError("1st input argument '"+offset+"' in function 'seek' is of type '"+typeof offset+"'. Expected type 'number'. Function Signature: seek(number, number).");if(origin instanceof Promise)throw new TypeError("2nd input argument in function 'seek' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof origin)throw new TypeError("2nd input argument '"+origin+"' in function 'seek' is of type '"+typeof origin+"'. Expected type 'number'. Function Signature: seek(number, number)."); return PDFNet.messageHandler.sendWithPromise("Filter.seek",{filter:this.id,offset:offset,origin:origin},this.userPriority)};PDFNet.Filter.prototype.tell=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'tell'. Expected 0 arguments. Function Signature: tell()");return PDFNet.messageHandler.sendWithPromise("Filter.tell",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.createInputIterator=function(){if(0!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'createInputIterator'. Expected 0 arguments. Function Signature: createInputIterator()");return PDFNet.messageHandler.sendWithPromise("Filter.createInputIterator",{filter:this.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.prototype.getFilePath=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getFilePath'. Expected 0 arguments. Function Signature: getFilePath()"); return PDFNet.messageHandler.sendWithPromise("Filter.getFilePath",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.memoryFilterGetBuffer=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'memoryFilterGetBuffer'. Expected 0 arguments. Function Signature: memoryFilterGetBuffer()");return PDFNet.messageHandler.sendWithPromise("Filter.memoryFilterGetBuffer",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.memoryFilterSetAsInputFilter= function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'memoryFilterSetAsInputFilter'. Expected 0 arguments. Function Signature: memoryFilterSetAsInputFilter()");return PDFNet.messageHandler.sendWithPromise("Filter.memoryFilterSetAsInputFilter",{filter:this.id},this.userPriority)};PDFNet.Filter.prototype.memoryFilterReset=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'memoryFilterReset'. Expected 0 arguments. Function Signature: memoryFilterReset()"); return PDFNet.messageHandler.sendWithPromise("Filter.memoryFilterReset",{filter:this.id},this.userPriority)};PDFNet.FilterReader.create=function(filter){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'create'. Expected 1 argument. Function Signature: create(Filter)");if(filter instanceof Promise)throw new TypeError("1st input argument in function 'create' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(filter instanceof PDFNet.Filter)){if("object"==typeof filter)throw new TypeError("1st input argument in function 'create' is of type '"+filter.name+"'. Expected type 'Filter'. Function Signature: create(Filter).");throw new TypeError("1st input argument '"+filter+"' in function 'create' is of type '"+typeof filter+"'. Expected type 'Filter'. Function Signature: create(Filter).");}return PDFNet.messageHandler.sendWithPromise("filterReaderCreate",{filter:filter.id},this.userPriority).then(function(id){if("0"==id)return null; id=new PDFNet.FilterReader(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.FilterReader.prototype.destroy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()");for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(thisIndex< deallocStackCounter[i])--deallocStackCounter[i];else break;else console.log("[WARNING], the object to be destroyed was not found in the deallocation list. Deallocating may cause errors.");return PDFNet.messageHandler.sendWithPromise("FilterReader.destroy",{auto_dealloc_obj:this.id},this.userPriority)};PDFNet.FilterReader.prototype.attachFilter=function(filter){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'attachFilter'. Expected 1 argument. Function Signature: attachFilter(Filter)"); if(filter instanceof Promise)throw new TypeError("1st input argument in function 'attachFilter' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(filter instanceof PDFNet.Filter)){if("object"==typeof filter)throw new TypeError("1st input argument in function 'attachFilter' is of type '"+filter.name+"'. Expected type 'Filter'. Function Signature: attachFilter(Filter).");throw new TypeError("1st input argument '"+filter+"' in function 'attachFilter' is of type '"+ typeof filter+"'. Expected type 'Filter'. Function Signature: attachFilter(Filter).");}return PDFNet.messageHandler.sendWithPromise("FilterReader.attachFilter",{reader:this.id,filter:filter.id},this.userPriority)};PDFNet.FilterReader.prototype.getAttachedFilter=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getAttachedFilter'. Expected 0 arguments. Function Signature: getAttachedFilter()");return PDFNet.messageHandler.sendWithPromise("FilterReader.getAttachedFilter", {reader:this.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Filter(id)})};PDFNet.FilterReader.prototype.seek=function(offset,origin){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'seek'. Expected 2 arguments. Function Signature: seek(number, number)");if(offset instanceof Promise)throw new TypeError("1st input argument in function 'seek' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!= typeof offset)throw new TypeError("1st input argument '"+offset+"' in function 'seek' is of type '"+typeof offset+"'. Expected type 'number'. Function Signature: seek(number, number).");if(origin instanceof Promise)throw new TypeError("2nd input argument in function 'seek' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof origin)throw new TypeError("2nd input argument '"+origin+"' in function 'seek' is of type '"+typeof origin+"'. Expected type 'number'. Function Signature: seek(number, number)."); return PDFNet.messageHandler.sendWithPromise("FilterReader.seek",{reader:this.id,offset:offset,origin:origin},this.userPriority)};PDFNet.FilterReader.prototype.tell=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'tell'. Expected 0 arguments. Function Signature: tell()");return PDFNet.messageHandler.sendWithPromise("FilterReader.tell",{reader:this.id},this.userPriority)};PDFNet.FilterReader.prototype.count=function(){if(0!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'count'. Expected 0 arguments. Function Signature: count()");return PDFNet.messageHandler.sendWithPromise("FilterReader.count",{reader:this.id},this.userPriority)};PDFNet.FilterReader.prototype.flush=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'flush'. Expected 0 arguments. Function Signature: flush()");return PDFNet.messageHandler.sendWithPromise("FilterReader.flush",{reader:this.id},this.userPriority)}; PDFNet.FilterReader.prototype.flushAll=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'flushAll'. Expected 0 arguments. Function Signature: flushAll()");return PDFNet.messageHandler.sendWithPromise("FilterReader.flushAll",{reader:this.id},this.userPriority)};PDFNet.FilterReader.prototype.get=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'get'. Expected 0 arguments. Function Signature: get()"); return PDFNet.messageHandler.sendWithPromise("FilterReader.get",{reader:this.id},this.userPriority)};PDFNet.FilterReader.prototype.peek=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'peek'. Expected 0 arguments. Function Signature: peek()");return PDFNet.messageHandler.sendWithPromise("FilterReader.peek",{reader:this.id},this.userPriority)};PDFNet.FilterWriter.create=function(filter){if(1!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'create'. Expected 1 argument. Function Signature: create(Filter)");if(filter instanceof Promise)throw new TypeError("1st input argument in function 'create' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(filter instanceof PDFNet.Filter)){if("object"==typeof filter)throw new TypeError("1st input argument in function 'create' is of type '"+filter.name+"'. Expected type 'Filter'. Function Signature: create(Filter).");throw new TypeError("1st input argument '"+ filter+"' in function 'create' is of type '"+typeof filter+"'. Expected type 'Filter'. Function Signature: create(Filter).");}return PDFNet.messageHandler.sendWithPromise("filterWriterCreate",{filter:filter.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.FilterWriter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.FilterWriter.prototype.destroy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()"); for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(thisIndexarguments.length||2arguments.length||2arguments.length||3arguments.length||3arguments.length||2arguments.length||2arguments.length||4ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("soundAnnotCreateWithData",{doc:doc.id,pos:pos,no_own_stream:no_own_stream.id, sample_bits:sample_bits,sample_freq:sample_freq,num_channels:num_channels},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.SoundAnnot(id)})};PDFNet.SoundAnnot.createAtPoint=function(doc,pos){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createAtPoint'. Expected 2 arguments. Function Signature: createAtPoint(SDFDoc, Point)");if(doc instanceof Promise)throw new TypeError("1st input argument in function 'createAtPoint' is a Promise object. Promises require a 'yield' statement before being accessed."); if(!(doc instanceof PDFNet.PDFDoc||doc instanceof PDFNet.SDFDoc||doc instanceof PDFNet.FDFDoc)){if("object"==typeof doc)throw new TypeError("1st input argument in function 'createAtPoint' is of type '"+doc.name+"'. Expected type 'SDFDoc'. Function Signature: createAtPoint(SDFDoc, Point).");throw new TypeError("1st input argument '"+doc+"' in function 'createAtPoint' is of type '"+typeof doc+"'. Expected type 'SDFDoc'. Function Signature: createAtPoint(SDFDoc, Point).");}if(pos instanceof Promise)throw new TypeError("2nd input argument in function 'createAtPoint' is a Promise object. Promises require a 'yield' statement before being accessed."); if(!(pos instanceof PDFNet.Point)&&"Point"!=pos.name){if("object"==typeof pos)throw new TypeError("2nd input argument in function 'createAtPoint' is of type '"+pos.name+"'. Expected type 'Point'. Function Signature: createAtPoint(SDFDoc, Point).");throw new TypeError("2nd input argument '"+pos+"' in function 'createAtPoint' is of type '"+typeof pos+"'. Expected type 'Point'. Function Signature: createAtPoint(SDFDoc, Point).");}if("undefined"!=typeof pos.yieldFunction)throw Error("Function '"+pos.yieldFunction+ "' recently altered a struct object without yielding. That object is now being accessed by the 2nd input argument in function 'createAtPoint'. Perhaps a yield statement is required for '"+pos.yieldFunction+"'?");return PDFNet.messageHandler.sendWithPromise("soundAnnotCreateAtPoint",{doc:doc.id,pos:pos},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.SoundAnnot(id)})};PDFNet.SoundAnnot.prototype.getSoundStream=function(){if(0!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'getSoundStream'. Expected 0 arguments. Function Signature: getSoundStream()");return PDFNet.messageHandler.sendWithPromise("SoundAnnot.getSoundStream",{sound:this.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Obj(id)})};PDFNet.SoundAnnot.prototype.setSoundStream=function(icon){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'setSoundStream'. Expected 1 argument. Function Signature: setSoundStream(Obj)"); if(icon instanceof Promise)throw new TypeError("1st input argument in function 'setSoundStream' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(icon instanceof PDFNet.Obj)){if("object"==typeof icon)throw new TypeError("1st input argument in function 'setSoundStream' is of type '"+icon.name+"'. Expected type 'Obj'. Function Signature: setSoundStream(Obj).");throw new TypeError("1st input argument '"+icon+"' in function 'setSoundStream' is of type '"+typeof icon+ "'. Expected type 'Obj'. Function Signature: setSoundStream(Obj).");}return PDFNet.messageHandler.sendWithPromise("SoundAnnot.setSoundStream",{sound:this.id,icon:icon.id},this.userPriority)};PDFNet.SoundAnnot.prototype.getIcon=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getIcon'. Expected 0 arguments. Function Signature: getIcon()");return PDFNet.messageHandler.sendWithPromise("SoundAnnot.getIcon",{sound:this.id},this.userPriority)};PDFNet.SoundAnnot.prototype.setIcon= function(type){"undefined"===typeof type&&(type=PDFNet.SoundAnnot.Icon.e_Speaker);if(1arguments.length||3arguments.length||3arguments.length||3arguments.length||3arguments.length||3arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("colorSpaceCreateICCFromFilter",{doc:doc.id, no_own_filter:no_own_filter.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.ColorSpace(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.ColorSpace.createICCFromBuffer=function(doc,buf){buf instanceof Array&&(buf=new Float64Array(buf));if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createICCFromBuffer'. Expected 2 arguments. Function Signature: createICCFromBuffer(SDFDoc, ArrayBuffer)");if(doc instanceof Promise)throw new TypeError("1st input argument in function 'createICCFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(doc instanceof PDFNet.PDFDoc||doc instanceof PDFNet.SDFDoc||doc instanceof PDFNet.FDFDoc)){if("object"==typeof doc)throw new TypeError("1st input argument in function 'createICCFromBuffer' is of type '"+doc.name+"'. Expected type 'SDFDoc'. Function Signature: createICCFromBuffer(SDFDoc, ArrayBuffer).");throw new TypeError("1st input argument '"+ doc+"' in function 'createICCFromBuffer' is of type '"+typeof doc+"'. Expected type 'SDFDoc'. Function Signature: createICCFromBuffer(SDFDoc, ArrayBuffer).");}if(buf instanceof Promise)throw new TypeError("2nd input argument in function 'createICCFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!exports.isArrayBuffer(buf.buffer)){if("object"==typeof buf)throw new TypeError("2nd input argument in function 'createICCFromBuffer' is of type '"+buf.name+ "'. Expected type 'ArrayBuffer'. Function Signature: createICCFromBuffer(SDFDoc, ArrayBuffer).");throw new TypeError("2nd input argument '"+buf+"' in function 'createICCFromBuffer' is of type '"+typeof buf+"'. Expected type 'ArrayBuffer'. Function Signature: createICCFromBuffer(SDFDoc, ArrayBuffer).");}return PDFNet.messageHandler.sendWithPromise("colorSpaceCreateICCFromBuffer",{doc:doc.id,buf:buf.buffer},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.ColorSpace(id);createdObjects.push({name:id.name, id:id.id});return id})};PDFNet.ColorSpace.prototype.assign=function(right){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'assign'. Expected 1 argument. Function Signature: assign(ColorSpace)");if(right instanceof Promise)throw new TypeError("1st input argument in function 'assign' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(right instanceof PDFNet.ColorSpace)){if("object"==typeof right)throw new TypeError("1st input argument in function 'assign' is of type '"+ right.name+"'. Expected type 'ColorSpace'. Function Signature: assign(ColorSpace).");throw new TypeError("1st input argument '"+right+"' in function 'assign' is of type '"+typeof right+"'. Expected type 'ColorSpace'. Function Signature: assign(ColorSpace).");}return PDFNet.messageHandler.sendWithPromise("ColorSpace.assign",{left:this.id,right:right.id},this.userPriority)};PDFNet.ColorSpace.prototype.destroy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()"); for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(thisIndexownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("convertOfficeToPdfWithFilter", {in_pdfdoc:in_pdfdoc.id,no_own_in_data:no_own_in_data.id,options:options.id},this.userPriority)};PDFNet.Convert.streamingPdfConversionWithFilter=function(no_own_in_data,options){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'streamingPdfConversionWithFilter'. Expected 2 arguments. Function Signature: streamingPdfConversionWithFilter(Filter, Obj)");if(no_own_in_data instanceof Promise)throw new TypeError("1st input argument in function 'streamingPdfConversionWithFilter' is a Promise object. Promises require a 'yield' statement before being accessed."); if(!(no_own_in_data instanceof PDFNet.Filter)){if("object"==typeof no_own_in_data)throw new TypeError("1st input argument in function 'streamingPdfConversionWithFilter' is of type '"+no_own_in_data.name+"'. Expected type 'Filter'. Function Signature: streamingPdfConversionWithFilter(Filter, Obj).");throw new TypeError("1st input argument '"+no_own_in_data+"' in function 'streamingPdfConversionWithFilter' is of type '"+typeof no_own_in_data+"'. Expected type 'Filter'. Function Signature: streamingPdfConversionWithFilter(Filter, Obj)."); }if(options instanceof Promise)throw new TypeError("2nd input argument in function 'streamingPdfConversionWithFilter' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(options instanceof PDFNet.Obj)){if("object"==typeof options)throw new TypeError("2nd input argument in function 'streamingPdfConversionWithFilter' is of type '"+options.name+"'. Expected type 'Obj'. Function Signature: streamingPdfConversionWithFilter(Filter, Obj).");throw new TypeError("2nd input argument '"+ options+"' in function 'streamingPdfConversionWithFilter' is of type '"+typeof options+"'. Expected type 'Obj'. Function Signature: streamingPdfConversionWithFilter(Filter, Obj).");}var ownedObjIndex=-1;if(0!=no_own_in_data.id){for(var i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==no_own_in_data.id){ownedObjIndex=i;break}if(-1!=ownedObjIndex)for(createdObjects.splice(ownedObjIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(deallocStackCounter[i]>ownedObjIndex)--deallocStackCounter[i]; else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("convertStreamingPdfConversionWithFilter",{no_own_in_data:no_own_in_data.id,options:options.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.DocumentConversion(id)})};PDFNet.Convert.streamingPdfConversionWithPdfAndFilter=function(in_pdfdoc,no_own_in_data,options){if(3!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'streamingPdfConversionWithPdfAndFilter'. Expected 3 arguments. Function Signature: streamingPdfConversionWithPdfAndFilter(PDFDoc, Filter, Obj)");if(in_pdfdoc instanceof Promise)throw new TypeError("1st input argument in function 'streamingPdfConversionWithPdfAndFilter' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(in_pdfdoc instanceof PDFNet.PDFDoc||in_pdfdoc instanceof PDFNet.SDFDoc||in_pdfdoc instanceof PDFNet.FDFDoc)){if("object"== typeof in_pdfdoc)throw new TypeError("1st input argument in function 'streamingPdfConversionWithPdfAndFilter' is of type '"+in_pdfdoc.name+"'. Expected type 'PDFDoc'. Function Signature: streamingPdfConversionWithPdfAndFilter(PDFDoc, Filter, Obj).");throw new TypeError("1st input argument '"+in_pdfdoc+"' in function 'streamingPdfConversionWithPdfAndFilter' is of type '"+typeof in_pdfdoc+"'. Expected type 'PDFDoc'. Function Signature: streamingPdfConversionWithPdfAndFilter(PDFDoc, Filter, Obj)."); }if(no_own_in_data instanceof Promise)throw new TypeError("2nd input argument in function 'streamingPdfConversionWithPdfAndFilter' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(no_own_in_data instanceof PDFNet.Filter)){if("object"==typeof no_own_in_data)throw new TypeError("2nd input argument in function 'streamingPdfConversionWithPdfAndFilter' is of type '"+no_own_in_data.name+"'. Expected type 'Filter'. Function Signature: streamingPdfConversionWithPdfAndFilter(PDFDoc, Filter, Obj)."); throw new TypeError("2nd input argument '"+no_own_in_data+"' in function 'streamingPdfConversionWithPdfAndFilter' is of type '"+typeof no_own_in_data+"'. Expected type 'Filter'. Function Signature: streamingPdfConversionWithPdfAndFilter(PDFDoc, Filter, Obj).");}if(options instanceof Promise)throw new TypeError("3rd input argument in function 'streamingPdfConversionWithPdfAndFilter' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(options instanceof PDFNet.Obj)){if("object"== typeof options)throw new TypeError("3rd input argument in function 'streamingPdfConversionWithPdfAndFilter' is of type '"+options.name+"'. Expected type 'Obj'. Function Signature: streamingPdfConversionWithPdfAndFilter(PDFDoc, Filter, Obj).");throw new TypeError("3rd input argument '"+options+"' in function 'streamingPdfConversionWithPdfAndFilter' is of type '"+typeof options+"'. Expected type 'Obj'. Function Signature: streamingPdfConversionWithPdfAndFilter(PDFDoc, Filter, Obj).");}var ownedObjIndex= -1;if(0!=no_own_in_data.id){for(var i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==no_own_in_data.id){ownedObjIndex=i;break}if(-1!=ownedObjIndex)for(createdObjects.splice(ownedObjIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(deallocStackCounter[i]>ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("convertStreamingPdfConversionWithPdfAndFilter", {in_pdfdoc:in_pdfdoc,no_own_in_data:no_own_in_data.id,options:options.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.DocumentConversion(id)})};PDFNet.Convert.fromCAD=function(in_pdfdoc,in_filename,options){"undefined"===typeof options&&(options=new PDFNet.Obj("0"));if(2>arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("convertFromTiff", {in_pdfdoc:in_pdfdoc.id,no_own_in_data:no_own_in_data.id},this.userPriority)};PDFNet.Date.init=function(year,month,day,hour,minute,second){if(6!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'init'. Expected 6 arguments. Function Signature: init(number, number, number, number, number, number)");if(year instanceof Promise)throw new TypeError("1st input argument in function 'init' is a Promise object. Promises require a 'yield' statement before being accessed."); if("number"!=typeof year)throw new TypeError("1st input argument '"+year+"' in function 'init' is of type '"+typeof year+"'. Expected type 'number'. Function Signature: init(number, number, number, number, number, number).");if(month instanceof Promise)throw new TypeError("2nd input argument in function 'init' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof month)throw new TypeError("2nd input argument '"+month+"' in function 'init' is of type '"+ typeof month+"'. Expected type 'number'. Function Signature: init(number, number, number, number, number, number).");if(day instanceof Promise)throw new TypeError("3rd input argument in function 'init' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof day)throw new TypeError("3rd input argument '"+day+"' in function 'init' is of type '"+typeof day+"'. Expected type 'number'. Function Signature: init(number, number, number, number, number, number)."); if(hour instanceof Promise)throw new TypeError("4th input argument in function 'init' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof hour)throw new TypeError("4th input argument '"+hour+"' in function 'init' is of type '"+typeof hour+"'. Expected type 'number'. Function Signature: init(number, number, number, number, number, number).");if(minute instanceof Promise)throw new TypeError("5th input argument in function 'init' is a Promise object. Promises require a 'yield' statement before being accessed."); if("number"!=typeof minute)throw new TypeError("5th input argument '"+minute+"' in function 'init' is of type '"+typeof minute+"'. Expected type 'number'. Function Signature: init(number, number, number, number, number, number).");if(second instanceof Promise)throw new TypeError("6th input argument in function 'init' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof second)throw new TypeError("6th input argument '"+second+"' in function 'init' is of type '"+ typeof second+"'. Expected type 'number'. Function Signature: init(number, number, number, number, number, number).");return PDFNet.messageHandler.sendWithPromise("dateInit",{year:year,month:month,day:day,hour:hour,minute:minute,second:second},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Date(id)})};PDFNet.Date.prototype.assign=function(right){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'assign'. Expected 1 argument. Function Signature: assign(Date)"); if(right instanceof Promise)throw new TypeError("1st input argument in function 'assign' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(right instanceof PDFNet.Date)&&"Date"!=right.name){if("object"==typeof right)throw new TypeError("1st input argument in function 'assign' is of type '"+right.name+"'. Expected type 'Date'. Function Signature: assign(Date).");throw new TypeError("1st input argument '"+right+"' in function 'assign' is of type '"+typeof right+ "'. Expected type 'Date'. Function Signature: assign(Date).");}if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'assign'. Perhaps a yield statement is required for "+this.yieldFunction+"?");if("undefined"!=typeof right.yieldFunction)throw Error("Function '"+right.yieldFunction+"' recently altered a struct object without yielding. That object is now being accessed by the 1st input argument in function 'assign'. Perhaps a yield statement is required for '"+ right.yieldFunction+"'?");var me=this;this.yieldFunction="Date.assign";return PDFNet.messageHandler.sendWithPromise("Date.assign",{left:this,right:right},this.userPriority).then(function(id){me.yieldFunction=void 0;copyFunc(id.left,me)})};PDFNet.Date.prototype.isValid=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'isValid'. Expected 0 arguments. Function Signature: isValid()");if("undefined"!==typeof this.yieldFunction)throw Error("Function "+ this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'isValid'. Perhaps a yield statement is required for "+this.yieldFunction+"?");return PDFNet.messageHandler.sendWithPromise("Date.isValid",{date:this},this.userPriority)};PDFNet.Date.prototype.attach=function(d){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'attach'. Expected 1 argument. Function Signature: attach(Obj)");if(d instanceof Promise)throw new TypeError("1st input argument in function 'attach' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(d instanceof PDFNet.Obj)){if("object"==typeof d)throw new TypeError("1st input argument in function 'attach' is of type '"+d.name+"'. Expected type 'Obj'. Function Signature: attach(Obj).");throw new TypeError("1st input argument '"+d+"' in function 'attach' is of type '"+typeof d+"'. Expected type 'Obj'. Function Signature: attach(Obj).");}if("undefined"!== typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'attach'. Perhaps a yield statement is required for "+this.yieldFunction+"?");var me=this;this.yieldFunction="Date.attach";return PDFNet.messageHandler.sendWithPromise("Date.attach",{date:this,d:d.id},this.userPriority).then(function(id){me.yieldFunction=void 0;copyFunc(id.date,me)})};PDFNet.Date.prototype.update=function(d){"undefined"=== typeof d&&(d=new PDFNet.Obj("__null"));if(1arguments.length||2arguments.length||3arguments.length||2arguments.length||2arguments.length||5arguments.length||2arguments.length||3arguments.length|| 3arguments.length||2arguments.length||7arguments.length||3arguments.length||7arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("imageCreateFromStream2", {doc:doc.id,no_own_image_data:no_own_image_data.id,encoder_hints:encoder_hints.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Image(id)})};PDFNet.Image.createImageMask=function(doc,buf,width,height,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));buf instanceof Array&&(buf=new Float64Array(buf));if(4>arguments.length||5arguments.length||5arguments.length||6arguments.length||6arguments.length||4arguments.length||3arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("pdfDocCreateFromFilter",{no_own_stream:no_own_stream.id},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.PDFDoc(id);createdObjects.push({name:id.name,id:id.id});return id})}; PDFNet.PDFDoc.createFromBuffer=function(buf){buf instanceof Array&&(buf=new Float64Array(buf));if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFromBuffer'. Expected 1 argument. Function Signature: createFromBuffer(ArrayBuffer)");if(buf instanceof Promise)throw new TypeError("1st input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!exports.isArrayBuffer(buf.buffer)){if("object"== typeof buf)throw new TypeError("1st input argument in function 'createFromBuffer' is of type '"+buf.name+"'. Expected type 'ArrayBuffer'. Function Signature: createFromBuffer(ArrayBuffer).");throw new TypeError("1st input argument '"+buf+"' in function 'createFromBuffer' is of type '"+typeof buf+"'. Expected type 'ArrayBuffer'. Function Signature: createFromBuffer(ArrayBuffer).");}return PDFNet.messageHandler.sendWithPromise("pdfDocCreateFromBuffer",{buf:buf.buffer},this.userPriority).then(function(id){if("0"== id)return null;id=new PDFNet.PDFDoc(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.PDFDoc.createFromLayoutEls=function(buf){buf instanceof Array&&(buf=new Float64Array(buf));if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFromLayoutEls'. Expected 1 argument. Function Signature: createFromLayoutEls(ArrayBuffer)");if(buf instanceof Promise)throw new TypeError("1st input argument in function 'createFromLayoutEls' is a Promise object. Promises require a 'yield' statement before being accessed."); if(!exports.isArrayBuffer(buf.buffer)){if("object"==typeof buf)throw new TypeError("1st input argument in function 'createFromLayoutEls' is of type '"+buf.name+"'. Expected type 'ArrayBuffer'. Function Signature: createFromLayoutEls(ArrayBuffer).");throw new TypeError("1st input argument '"+buf+"' in function 'createFromLayoutEls' is of type '"+typeof buf+"'. Expected type 'ArrayBuffer'. Function Signature: createFromLayoutEls(ArrayBuffer).");}return PDFNet.messageHandler.sendWithPromise("pdfDocCreateFromLayoutEls", {buf:buf.buffer},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.PDFDoc(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.PDFDoc.prototype.createShallowCopy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createShallowCopy'. Expected 0 arguments. Function Signature: createShallowCopy()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.createShallowCopy",{source:this.id},this.userPriority).then(function(id){if("0"== id)return null;id=new PDFNet.PDFDoc(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.PDFDoc.prototype.destroy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()");for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(thisIndex< deallocStackCounter[i])--deallocStackCounter[i];else break;else console.log("[WARNING], the object to be destroyed was not found in the deallocation list. Deallocating may cause errors.");return PDFNet.messageHandler.sendWithPromise("PDFDoc.destroy",{auto_dealloc_obj:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.isEncrypted=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'isEncrypted'. Expected 0 arguments. Function Signature: isEncrypted()"); return PDFNet.messageHandler.sendWithPromise("PDFDoc.isEncrypted",{doc:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.initStdSecurityHandler=function(password,password_sz){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initStdSecurityHandler'. Expected 2 arguments. Function Signature: initStdSecurityHandler(string, number)");if(password instanceof Promise)throw new TypeError("1st input argument in function 'initStdSecurityHandler' is a Promise object. Promises require a 'yield' statement before being accessed."); if("string"!=typeof password)throw new TypeError("1st input argument '"+password+"' in function 'initStdSecurityHandler' is of type '"+typeof password+"'. Expected type 'string'. Function Signature: initStdSecurityHandler(string, number).");if(password_sz instanceof Promise)throw new TypeError("2nd input argument in function 'initStdSecurityHandler' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof password_sz)throw new TypeError("2nd input argument '"+ password_sz+"' in function 'initStdSecurityHandler' is of type '"+typeof password_sz+"'. Expected type 'number'. Function Signature: initStdSecurityHandler(string, number).");return PDFNet.messageHandler.sendWithPromise("PDFDoc.initStdSecurityHandler",{doc:this.id,password:password,password_sz:password_sz},this.userPriority)};PDFNet.PDFDoc.prototype.initStdSecurityHandlerUString=function(password){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initStdSecurityHandlerUString'. Expected 1 argument. Function Signature: initStdSecurityHandlerUString(string)"); if(password instanceof Promise)throw new TypeError("1st input argument in function 'initStdSecurityHandlerUString' is a Promise object. Promises require a 'yield' statement before being accessed.");if("string"!=typeof password)throw new TypeError("1st input argument '"+password+"' in function 'initStdSecurityHandlerUString' is of type '"+typeof password+"'. Expected type 'string'. Function Signature: initStdSecurityHandlerUString(string).");return PDFNet.messageHandler.sendWithPromise("PDFDoc.initStdSecurityHandlerUString", {doc:this.id,password:password},this.userPriority)};PDFNet.PDFDoc.prototype.initStdSecurityHandlerBuffer=function(password_buf){password_buf instanceof Array&&(password_buf=new Float64Array(password_buf));if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initStdSecurityHandlerBuffer'. Expected 1 argument. Function Signature: initStdSecurityHandlerBuffer(ArrayBuffer)");if(password_buf instanceof Promise)throw new TypeError("1st input argument in function 'initStdSecurityHandlerBuffer' is a Promise object. Promises require a 'yield' statement before being accessed."); if(!exports.isArrayBuffer(password_buf.buffer)){if("object"==typeof password_buf)throw new TypeError("1st input argument in function 'initStdSecurityHandlerBuffer' is of type '"+password_buf.name+"'. Expected type 'ArrayBuffer'. Function Signature: initStdSecurityHandlerBuffer(ArrayBuffer).");throw new TypeError("1st input argument '"+password_buf+"' in function 'initStdSecurityHandlerBuffer' is of type '"+typeof password_buf+"'. Expected type 'ArrayBuffer'. Function Signature: initStdSecurityHandlerBuffer(ArrayBuffer)."); }return PDFNet.messageHandler.sendWithPromise("PDFDoc.initStdSecurityHandlerBuffer",{doc:this.id,password_buf:password_buf.buffer},this.userPriority)};PDFNet.PDFDoc.prototype.getSecurityHandler=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getSecurityHandler'. Expected 0 arguments. Function Signature: getSecurityHandler()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.getSecurityHandler",{doc:this.id},this.userPriority).then(function(id){return"0"== id?null:new PDFNet.SecurityHandler(id)})};PDFNet.PDFDoc.prototype.setSecurityHandler=function(no_own_handler){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'setSecurityHandler'. Expected 1 argument. Function Signature: setSecurityHandler(SecurityHandler)");if(no_own_handler instanceof Promise)throw new TypeError("1st input argument in function 'setSecurityHandler' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(no_own_handler instanceof PDFNet.SecurityHandler)){if("object"==typeof no_own_handler)throw new TypeError("1st input argument in function 'setSecurityHandler' is of type '"+no_own_handler.name+"'. Expected type 'SecurityHandler'. Function Signature: setSecurityHandler(SecurityHandler).");throw new TypeError("1st input argument '"+no_own_handler+"' in function 'setSecurityHandler' is of type '"+typeof no_own_handler+"'. Expected type 'SecurityHandler'. Function Signature: setSecurityHandler(SecurityHandler).");}var ownedObjIndex= -1;if(0!=no_own_handler.id){for(var i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==no_own_handler.id){ownedObjIndex=i;break}if(-1!=ownedObjIndex)for(createdObjects.splice(ownedObjIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(deallocStackCounter[i]>ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("PDFDoc.setSecurityHandler", {doc:this.id,no_own_handler:no_own_handler.id},this.userPriority)};PDFNet.PDFDoc.prototype.removeSecurity=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'removeSecurity'. Expected 0 arguments. Function Signature: removeSecurity()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.removeSecurity",{doc:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.getDocInfo=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getDocInfo'. Expected 0 arguments. Function Signature: getDocInfo()"); return PDFNet.messageHandler.sendWithPromise("PDFDoc.getDocInfo",{doc:this.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.PDFDocInfo(id)})};PDFNet.PDFDoc.prototype.getViewPrefs=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getViewPrefs'. Expected 0 arguments. Function Signature: getViewPrefs()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.getViewPrefs",{doc:this.id},this.userPriority).then(function(id){return"0"== id?null:new PDFNet.PDFDocViewPrefs(id)})};PDFNet.PDFDoc.prototype.isModified=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'isModified'. Expected 0 arguments. Function Signature: isModified()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.isModified",{doc:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.hasRepairedXRef=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'hasRepairedXRef'. Expected 0 arguments. Function Signature: hasRepairedXRef()"); return PDFNet.messageHandler.sendWithPromise("PDFDoc.hasRepairedXRef",{doc:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.isLinearized=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'isLinearized'. Expected 0 arguments. Function Signature: isLinearized()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.isLinearized",{doc:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.saveMemoryBuffer=function(flags){if(1!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'saveMemoryBuffer'. Expected 1 argument. Function Signature: saveMemoryBuffer(number)");if(flags instanceof Promise)throw new TypeError("1st input argument in function 'saveMemoryBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof flags)throw new TypeError("1st input argument '"+flags+"' in function 'saveMemoryBuffer' is of type '"+typeof flags+"'. Expected type 'number'. Function Signature: saveMemoryBuffer(number)."); return PDFNet.messageHandler.sendWithPromise("PDFDoc.saveMemoryBuffer",{doc:this.id,flags:flags},this.userPriority).then(function(id){return new Uint8Array(id)})};PDFNet.PDFDoc.prototype.saveStream=function(stream,flags){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'saveStream'. Expected 2 arguments. Function Signature: saveStream(Filter, number)");if(stream instanceof Promise)throw new TypeError("1st input argument in function 'saveStream' is a Promise object. Promises require a 'yield' statement before being accessed."); if(!(stream instanceof PDFNet.Filter)){if("object"==typeof stream)throw new TypeError("1st input argument in function 'saveStream' is of type '"+stream.name+"'. Expected type 'Filter'. Function Signature: saveStream(Filter, number).");throw new TypeError("1st input argument '"+stream+"' in function 'saveStream' is of type '"+typeof stream+"'. Expected type 'Filter'. Function Signature: saveStream(Filter, number).");}if(flags instanceof Promise)throw new TypeError("2nd input argument in function 'saveStream' is a Promise object. Promises require a 'yield' statement before being accessed."); if("number"!=typeof flags)throw new TypeError("2nd input argument '"+flags+"' in function 'saveStream' is of type '"+typeof flags+"'. Expected type 'number'. Function Signature: saveStream(Filter, number).");return PDFNet.messageHandler.sendWithPromise("PDFDoc.saveStream",{doc:this.id,stream:stream.id,flags:flags},this.userPriority)};PDFNet.PDFDoc.prototype.getPageIterator=function(page_number){"undefined"===typeof page_number&&(page_number=1);if(1arguments.length||5arguments.length||4arguments.length||5arguments.length||4arguments.length||4arguments.length||4arguments.length||2arguments.length||2ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("PDFDoc.createIndirectStreamFromFilter",{doc:this.id,data:data.id,no_own_filter_chain:no_own_filter_chain.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Obj(id)})};PDFNet.PDFDoc.prototype.createIndirectStream= function(data,data_size,no_own_filter_chain){"undefined"===typeof no_own_filter_chain&&(no_own_filter_chain=new PDFNet.Filter("0"));if(2>arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("PDFDoc.createIndirectStream",{doc:this.id,data:data,data_size:data_size,no_own_filter_chain:no_own_filter_chain.id},this.userPriority).then(function(id){return"0"== id?null:new PDFNet.Obj(id)})};PDFNet.PDFDoc.prototype.getSDFDoc=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getSDFDoc'. Expected 0 arguments. Function Signature: getSDFDoc()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.getSDFDoc",{doc:this.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.SDFDoc(id)})};PDFNet.PDFDoc.prototype.addHighlights=function(hilite){if(1!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'addHighlights'. Expected 1 argument. Function Signature: addHighlights(string)");if(hilite instanceof Promise)throw new TypeError("1st input argument in function 'addHighlights' is a Promise object. Promises require a 'yield' statement before being accessed.");if("string"!=typeof hilite)throw new TypeError("1st input argument '"+hilite+"' in function 'addHighlights' is of type '"+typeof hilite+"'. Expected type 'string'. Function Signature: addHighlights(string)."); return PDFNet.messageHandler.sendWithPromise("PDFDoc.addHighlights",{doc:this.id,hilite:hilite},this.userPriority)};PDFNet.PDFDoc.prototype.isTagged=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'isTagged'. Expected 0 arguments. Function Signature: isTagged()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.isTagged",{doc:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.hasSignatures=function(){if(0!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'hasSignatures'. Expected 0 arguments. Function Signature: hasSignatures()");return PDFNet.messageHandler.sendWithPromise("PDFDoc.hasSignatures",{doc:this.id},this.userPriority)};PDFNet.PDFDoc.prototype.addSignatureHandler=function(signature_handler){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'addSignatureHandler'. Expected 1 argument. Function Signature: addSignatureHandler(SignatureHandler)");if(signature_handler instanceof Promise)throw new TypeError("1st input argument in function 'addSignatureHandler' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(signature_handler instanceof PDFNet.SignatureHandler)){if("object"==typeof signature_handler)throw new TypeError("1st input argument in function 'addSignatureHandler' is of type '"+signature_handler.name+"'. Expected type 'SignatureHandler'. Function Signature: addSignatureHandler(SignatureHandler).");throw new TypeError("1st input argument '"+ signature_handler+"' in function 'addSignatureHandler' is of type '"+typeof signature_handler+"'. Expected type 'SignatureHandler'. Function Signature: addSignatureHandler(SignatureHandler).");}return PDFNet.messageHandler.sendWithPromise("PDFDoc.addSignatureHandler",{doc:this.id,signature_handler:signature_handler.id},this.userPriority)};PDFNet.PDFDoc.prototype.addStdSignatureHandlerFromBuffer=function(pkcs12_buffer,pkcs12_pass){pkcs12_buffer instanceof Array&&(pkcs12_buffer=new Float64Array(pkcs12_buffer)); if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'addStdSignatureHandlerFromBuffer'. Expected 2 arguments. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string)");if(pkcs12_buffer instanceof Promise)throw new TypeError("1st input argument in function 'addStdSignatureHandlerFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!exports.isArrayBuffer(pkcs12_buffer.buffer)){if("object"==typeof pkcs12_buffer)throw new TypeError("1st input argument in function 'addStdSignatureHandlerFromBuffer' is of type '"+ pkcs12_buffer.name+"'. Expected type 'ArrayBuffer'. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string).");throw new TypeError("1st input argument '"+pkcs12_buffer+"' in function 'addStdSignatureHandlerFromBuffer' is of type '"+typeof pkcs12_buffer+"'. Expected type 'ArrayBuffer'. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string).");}if(pkcs12_pass instanceof Promise)throw new TypeError("3rd input argument in function 'addStdSignatureHandlerFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed."); if("string"!=typeof pkcs12_pass)throw new TypeError("3rd input argument '"+pkcs12_pass+"' in function 'addStdSignatureHandlerFromBuffer' is of type '"+typeof pkcs12_pass+"'. Expected type 'string'. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string).");return PDFNet.messageHandler.sendWithPromise("PDFDoc.addStdSignatureHandlerFromBuffer",{doc:this.id,pkcs12_buffer:pkcs12_buffer.buffer,pkcs12_pass:pkcs12_pass},this.userPriority)};PDFNet.PDFDoc.prototype.removeSignatureHandler= function(signature_handler_id){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'removeSignatureHandler'. Expected 1 argument. Function Signature: removeSignatureHandler(number)");if(signature_handler_id instanceof Promise)throw new TypeError("1st input argument in function 'removeSignatureHandler' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof signature_handler_id)throw new TypeError("1st input argument '"+ signature_handler_id+"' in function 'removeSignatureHandler' is of type '"+typeof signature_handler_id+"'. Expected type 'number'. Function Signature: removeSignatureHandler(number).");return PDFNet.messageHandler.sendWithPromise("PDFDoc.removeSignatureHandler",{doc:this.id,signature_handler_id:signature_handler_id},this.userPriority)};PDFNet.PDFDoc.prototype.getSignatureHandler=function(signature_handler_id){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getSignatureHandler'. Expected 1 argument. Function Signature: getSignatureHandler(number)"); if(signature_handler_id instanceof Promise)throw new TypeError("1st input argument in function 'getSignatureHandler' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof signature_handler_id)throw new TypeError("1st input argument '"+signature_handler_id+"' in function 'getSignatureHandler' is of type '"+typeof signature_handler_id+"'. Expected type 'number'. Function Signature: getSignatureHandler(number).");return PDFNet.messageHandler.sendWithPromise("PDFDoc.getSignatureHandler", {doc:this.id,signature_handler_id:signature_handler_id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.SignatureHandler(id)})};PDFNet.PDFDoc.prototype.generateThumbnails=function(size){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'generateThumbnails'. Expected 1 argument. Function Signature: generateThumbnails(number)");if(size instanceof Promise)throw new TypeError("1st input argument in function 'generateThumbnails' is a Promise object. Promises require a 'yield' statement before being accessed."); if("number"!=typeof size)throw new TypeError("1st input argument '"+size+"' in function 'generateThumbnails' is of type '"+typeof size+"'. Expected type 'number'. Function Signature: generateThumbnails(number).");return PDFNet.messageHandler.sendWithPromise("PDFDoc.generateThumbnails",{doc:this.id,size:size},this.userPriority)};PDFNet.PDFDoc.prototype.appendVisualDiff=function(p1,p2,opts){if(2>arguments.length||3arguments.length||3arguments.length||3arguments.length||3arguments.length||5arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("Obj.setStreamDataWithFilter",{obj:this.id,data:data,data_size:data_size,no_own_filter_chain:no_own_filter_chain.id},this.userPriority)}; PDFNet.Obj.prototype.getRawStream=function(decrypt){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getRawStream'. Expected 1 argument. Function Signature: getRawStream(boolean)");if(decrypt instanceof Promise)throw new TypeError("1st input argument in function 'getRawStream' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof decrypt)throw new TypeError("1st input argument '"+decrypt+"' in function 'getRawStream' is of type '"+ typeof decrypt+"'. Expected type 'boolean'. Function Signature: getRawStream(boolean).");return PDFNet.messageHandler.sendWithPromise("Obj.getRawStream",{o:this.id,decrypt:decrypt},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Filter(id)})};PDFNet.Obj.prototype.getDecodedStream=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getDecodedStream'. Expected 0 arguments. Function Signature: getDecodedStream()");return PDFNet.messageHandler.sendWithPromise("Obj.getDecodedStream", {o:this.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Filter(id)})};PDFNet.ObjSet.create=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'create'. Expected 0 arguments. Function Signature: create()");return PDFNet.messageHandler.sendWithPromise("objSetCreate",{},this.userPriority).then(function(id){if("0"==id)return null;id=new PDFNet.ObjSet(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.ObjSet.prototype.destroy= function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()");for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(thisIndexownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("SDFDoc.setSecurityHandler", {doc:this.id,no_own_handler:no_own_handler.id},this.userPriority)};PDFNet.SDFDoc.prototype.removeSecurity=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'removeSecurity'. Expected 0 arguments. Function Signature: removeSecurity()");return PDFNet.messageHandler.sendWithPromise("SDFDoc.removeSecurity",{doc:this.id},this.userPriority)};PDFNet.SDFDoc.prototype.swap=function(obj_num1,obj_num2){if(2!=arguments.length)throw new RangeError(arguments.length+ " arguments passed into function 'swap'. Expected 2 arguments. Function Signature: swap(number, number)");if(obj_num1 instanceof Promise)throw new TypeError("1st input argument in function 'swap' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof obj_num1)throw new TypeError("1st input argument '"+obj_num1+"' in function 'swap' is of type '"+typeof obj_num1+"'. Expected type 'number'. Function Signature: swap(number, number).");if(obj_num2 instanceof Promise)throw new TypeError("2nd input argument in function 'swap' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof obj_num2)throw new TypeError("2nd input argument '"+obj_num2+"' in function 'swap' is of type '"+typeof obj_num2+"'. Expected type 'number'. Function Signature: swap(number, number).");return PDFNet.messageHandler.sendWithPromise("SDFDoc.swap",{doc:this.id,obj_num1:obj_num1,obj_num2:obj_num2},this.userPriority)};PDFNet.SDFDoc.prototype.isLinearized= function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'isLinearized'. Expected 0 arguments. Function Signature: isLinearized()");return PDFNet.messageHandler.sendWithPromise("SDFDoc.isLinearized",{doc:this.id},this.userPriority)};PDFNet.SDFDoc.prototype.getLinearizationDict=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getLinearizationDict'. Expected 0 arguments. Function Signature: getLinearizationDict()"); return PDFNet.messageHandler.sendWithPromise("SDFDoc.getLinearizationDict",{doc:this.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Obj(id)})};PDFNet.SDFDoc.prototype.getHintStream=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getHintStream'. Expected 0 arguments. Function Signature: getHintStream()");return PDFNet.messageHandler.sendWithPromise("SDFDoc.getHintStream",{doc:this.id},this.userPriority).then(function(id){return"0"== id?null:new PDFNet.Obj(id)})};PDFNet.SDFDoc.prototype.enableDiskCaching=function(use_cache_flag){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'enableDiskCaching'. Expected 1 argument. Function Signature: enableDiskCaching(boolean)");if(use_cache_flag instanceof Promise)throw new TypeError("1st input argument in function 'enableDiskCaching' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof use_cache_flag)throw new TypeError("1st input argument '"+ use_cache_flag+"' in function 'enableDiskCaching' is of type '"+typeof use_cache_flag+"'. Expected type 'boolean'. Function Signature: enableDiskCaching(boolean).");return PDFNet.messageHandler.sendWithPromise("SDFDoc.enableDiskCaching",{doc:this.id,use_cache_flag:use_cache_flag},this.userPriority)};PDFNet.SDFDoc.prototype.lock=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'lock'. Expected 0 arguments. Function Signature: lock()");var me= this;return PDFNet.messageHandler.sendWithPromise("SDFDoc.lock",{doc:this.id},this.userPriority).then(function(){lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlock"})})};PDFNet.SDFDoc.prototype.unlock=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'unlock'. Expected 0 arguments. Function Signature: unlock()");var me=this;return PDFNet.messageHandler.sendWithPromise("SDFDoc.unlock",{doc:this.id},this.userPriority).then(function(){for(var thisIndex= -1,i=lockedObjects.length-1;0<=i;i--)if(lockedObjects[i].id==me.id){thisIndex=i;break}if(-1!=thisIndex)for(lockedObjects.splice(thisIndex,1),i=unlockStackCounter.length-1;0<=i;i--)if(thisIndexarguments.length||2ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("SDFDoc.createIndirectStreamFromFilter", {doc:this.id,data:data.id,no_own_filter_chain:no_own_filter_chain.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Obj(id)})};PDFNet.SDFDoc.prototype.createIndirectStream=function(data,data_size,no_own_filter_chain){"undefined"===typeof no_own_filter_chain&&(no_own_filter_chain=new PDFNet.Filter("0"));if(2>arguments.length||3ownedObjIndex)--deallocStackCounter[i];else break;else console.log("[WARNING] Object to remove ownership from was not found in memory deallocation list. Decallocating may cause errors.")}return PDFNet.messageHandler.sendWithPromise("SDFDoc.createIndirectStream", {doc:this.id,data:data,data_size:data_size,no_own_filter_chain:no_own_filter_chain.id},this.userPriority).then(function(id){return"0"==id?null:new PDFNet.Obj(id)})};PDFNet.SecurityHandler.prototype.clone=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'clone'. Expected 0 arguments. Function Signature: clone()");return PDFNet.messageHandler.sendWithPromise("SecurityHandler.clone",{sh:this.id},this.userPriority).then(function(id){if("0"==id)return null; id=new PDFNet.SecurityHandler(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.SecurityHandler.prototype.destroy=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'destroy'. Expected 0 arguments. Function Signature: destroy()");for(var thisIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==this.id){thisIndex=i;break}if(-1!=thisIndex)for(createdObjects.splice(thisIndex,1),i=deallocStackCounter.length-1;0<= i;i--)if(thisIndexarguments.length||3unlockStackPos;){var objToUnlock=lockedObjects.pop(); objToUnlock=PDFNet.messageHandler.sendWithPromise(objToUnlock.name+"."+objToUnlock.unlocktype,{doc:objToUnlock.id},this.userPriority);objToUnlock=objToUnlock.catch(function(e){console.log(e)});promiseList.push(objToUnlock);objToDealloc++}unlockStackPos=0;if("undefined"!==typeof deallocStackPos&&0!==createdObjects.length&&createdObjects.length!==deallocStackPos)for(;createdObjects.length>deallocStackPos;)objToDealloc=createdObjects.pop(),objToDealloc=PDFNet.messageHandler.sendWithPromise(objToDealloc.name+ ".destroy",{auto_dealloc_obj:objToDealloc.id},this.userPriority),objToDealloc=objToDealloc.catch(function(e){console.log(e)}),promiseListDestroy.push(objToDealloc),unlockStackPos++;--stackCallCounter;return Promise.all(promiseList).then(function(){return Promise.all(promiseListDestroy)})};PDFNet.getStackCount=function(){return Promise.resolve(stackCallCounter)};PDFNet.deallocateAllObjects=function(){if(0==createdObjects.length){console.log("~~None~~ (nothing to deallocate)");var capability=createPromiseCapability(); capability.resolve();return capability.promise}capability=[];for(deallocStackCounter=[];lockedObjects.length;)objToUnlock=lockedObjects.pop(),unlockPromise=PDFNet.messageHandler.sendWithPromise(objToUnlock.name+"."+objToUnlock.unlocktype,{doc:objToUnlock.id},this.userPriority),unlockPromise=unlockPromise.catch(function(e){console.log(e)}),capability.push(unlockPromise);for(;createdObjects.length;){var objToDealloc=createdObjects.pop();objToDealloc=PDFNet.messageHandler.sendWithPromise(objToDealloc.name+ ".destroy",{auto_dealloc_obj:objToDealloc.id},this.userPriority);objToDealloc=objToDealloc.catch(function(e){console.log(e)});capability.push(objToDealloc)}return Promise.all(capability)};PDFNet.Redactor.redact=function(doc,red_arr,appearance,ext_neg_mode,page_coord_sys){"undefined"===typeof appearance&&(appearance={});"undefined"===typeof appearance.redaction_overlay&&(appearance.redaction_overlay=!0);"undefined"===typeof appearance.positive_overlay_color?appearance.positive_overlay_color=void 0: "undefined"!==typeof appearance.positive_overlay_color.id&&(appearance.positive_overlay_color=appearance.positive_overlay_color.id);"undefined"===typeof appearance.negative_overlay_color?appearance.negative_overlay_color=void 0:"undefined"!==typeof appearance.negative_overlay_color.id&&(appearance.negative_overlay_color=appearance.negative_overlay_color.id);"undefined"===typeof appearance.border&&(appearance.border=!0);"undefined"===typeof appearance.use_overlay_text&&(appearance.use_overlay_text= !0);"undefined"===typeof appearance.font?appearance.font=void 0:"undefined"!==typeof appearance.font.id&&(appearance.font=appearance.font.id);"undefined"===typeof appearance.min_font_size&&(appearance.min_font_size=2);"undefined"===typeof appearance.max_font_size&&(appearance.max_font_size=24);"undefined"===typeof appearance.text_color?appearance.text_color=void 0:"undefined"!==typeof appearance.text_color.id&&(appearance.text_color=appearance.text_color.id);"undefined"===typeof appearance.horiz_text_alignment&& (appearance.horiz_text_alignment=-1);"undefined"===typeof appearance.vert_text_alignment&&(appearance.vert_text_alignment=1);"undefined"===typeof appearance.show_redacted_content_regions&&(appearance.show_redacted_content_regions=!1);"undefined"===typeof appearance.redacted_content_color?appearance.redacted_content_color=void 0:"undefined"!==typeof appearance.redacted_content_color.id&&(appearance.redacted_content_color=appearance.redacted_content_color.id);"undefined"===typeof ext_neg_mode&&(ext_neg_mode= !0);"undefined"===typeof page_coord_sys&&(page_coord_sys=!0);if(2>arguments.length||5=page_number)throw Error("1st input argument '"+page_number+"' in function 'requirePage' is invalid. Expected number between 1 and number of pages in the document.");return PDFNet.messageHandler.sendWithPromise("PDFDoc.RequirePage",{docId:this.id,pageNum:page_number},this.userPriority)};PDFNet.PDFDoc.prototype.getPageIterator=function(page_number){"undefined"===typeof page_number&&(page_number=1);if(1arguments.length||3arguments.length||3arguments.length||2arguments.length||7arguments.length||7