@@ -74,33 +74,52 @@ class XRefWrapper {
7474}
7575
7676class PDFEditor {
77+ hasSingleFile = false ;
78+
79+ currentDocument = null ;
80+
81+ oldPages = [ ] ;
82+
83+ newPages = [ ] ;
84+
85+ xref = [ null ] ;
86+
87+ xrefWrapper = new XRefWrapper ( this . xref ) ;
88+
89+ newRefCount = 1 ;
90+
91+ namesDict = null ;
92+
93+ version = "1.7" ;
94+
95+ pageLabels = null ;
96+
97+ namedDestinations = new Map ( ) ;
98+
99+ parentTree = new Map ( ) ;
100+
101+ structTreeKids = [ ] ;
102+
103+ idTree = new Map ( ) ;
104+
105+ classMap = new Dict ( ) ;
106+
107+ roleMap = new Dict ( ) ;
108+
109+ namespaces = new Map ( ) ;
110+
111+ structTreeAF = [ ] ;
112+
113+ structTreePronunciationLexicon = [ ] ;
114+
77115 constructor ( { useObjectStreams = true , title = "" , author = "" } = { } ) {
78- this . hasSingleFile = false ;
79- this . currentDocument = null ;
80- this . oldPages = [ ] ;
81- this . newPages = [ ] ;
82- this . xref = [ null ] ;
83- this . xrefWrapper = new XRefWrapper ( this . xref ) ;
84- this . newRefCount = 1 ;
85116 [ this . rootRef , this . rootDict ] = this . newDict ;
86117 [ this . infoRef , this . infoDict ] = this . newDict ;
87118 [ this . pagesRef , this . pagesDict ] = this . newDict ;
88- this . namesDict = null ;
89119 this . useObjectStreams = useObjectStreams ;
90120 this . objStreamRefs = useObjectStreams ? new Set ( ) : null ;
91- this . version = "1.7" ;
92121 this . title = title ;
93122 this . author = author ;
94- this . pageLabels = null ;
95- this . namedDestinations = new Map ( ) ;
96- this . parentTree = new Map ( ) ;
97- this . structTreeKids = [ ] ;
98- this . idTree = new Map ( ) ;
99- this . classMap = new Dict ( ) ;
100- this . roleMap = new Dict ( ) ;
101- this . namespaces = new Map ( ) ;
102- this . structTreeAF = [ ] ;
103- this . structTreePronunciationLexicon = [ ] ;
104123 }
105124
106125 /**
0 commit comments