File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1823,20 +1823,17 @@ class PDFDocument {
1823
1823
if ( ! formInfo . hasFields ) {
1824
1824
return null ;
1825
1825
}
1826
-
1827
- const [ annotationGlobals , acroForm ] = await Promise . all ( [
1828
- this . pdfManager . ensureDoc ( "annotationGlobals" ) ,
1829
- this . pdfManager . ensureCatalog ( "acroForm" ) ,
1830
- ] ) ;
1826
+ const annotationGlobals = await this . annotationGlobals ;
1831
1827
if ( ! annotationGlobals ) {
1832
1828
return null ;
1833
1829
}
1830
+ const { acroForm } = annotationGlobals ;
1834
1831
1835
1832
const visitedRefs = new RefSet ( ) ;
1836
1833
const allFields = Object . create ( null ) ;
1837
1834
const fieldPromises = new Map ( ) ;
1838
1835
const orphanFields = new RefSetCache ( ) ;
1839
- for ( const fieldRef of await acroForm . getAsync ( "Fields" ) ) {
1836
+ for ( const fieldRef of acroForm . get ( "Fields" ) ) {
1840
1837
await this . #collectFieldObjects(
1841
1838
"" ,
1842
1839
null ,
You can’t perform that action at this time.
0 commit comments