File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -526,8 +526,8 @@ class Doc extends PDFObject {
526
526
return this . _securityHandler ;
527
527
}
528
528
529
- set securityHandler ( securityHandler ) {
530
- this . _securityHandler = securityHandler ;
529
+ set securityHandler ( _ ) {
530
+ throw new Error ( "doc. securityHandler is read-only" ) ;
531
531
}
532
532
533
533
get selectedAnnots ( ) {
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class Field extends PDFObject {
58
58
this . richText = data . richText ;
59
59
this . richValue = data . richValue ;
60
60
this . rotation = data . rotation ;
61
+ this . securityHandler = data . securityHandler ;
61
62
this . style = data . style ;
62
63
this . submitName = data . submitName ;
63
64
this . textFont = data . textFont ;
Original file line number Diff line number Diff line change @@ -852,7 +852,7 @@ const PDFViewerApplication = {
852
852
this . _downloadUrl = "" ;
853
853
this . documentInfo = null ;
854
854
this . metadata = null ;
855
- this . _securityHandler = null ;
855
+ this . securityHandler = null ;
856
856
this . _contentDispositionFilename = null ;
857
857
this . _contentLength = null ;
858
858
this . _saveInProgress = false ;
@@ -1451,7 +1451,7 @@ const PDFViewerApplication = {
1451
1451
authors : this . metadata ?. get ( "dc:creator" ) ,
1452
1452
numPages : this . pagesCount ,
1453
1453
URL : this . url ,
1454
- securityHandler : this . _securityHandler ,
1454
+ securityHandler : this . securityHandler ,
1455
1455
} ;
1456
1456
} ,
1457
1457
@@ -1533,7 +1533,7 @@ const PDFViewerApplication = {
1533
1533
}
1534
1534
this . documentInfo = info ;
1535
1535
this . metadata = metadata ;
1536
- this . _securityHandler = securityHandler ;
1536
+ this . securityHandler = securityHandler ;
1537
1537
this . _contentDispositionFilename ??= contentDispositionFilename ;
1538
1538
this . _contentLength ??= contentLength ; // See `getDownloadInfo`-call above.
1539
1539
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ async function docPropertiesLookup(pdfDocument) {
31
31
const { length } = await pdfDocument . getDownloadInfo ( ) ;
32
32
contentLength = length ;
33
33
}
34
- console . log ( `HERE GEER_SRC` ) ;
35
34
36
35
return {
37
36
...info ,
You can’t perform that action at this time.
0 commit comments