File tree 4 files changed +5
-6
lines changed
4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,6 @@ class Page {
411
411
intent,
412
412
cacheKey,
413
413
annotationStorage = null ,
414
- isEditing = false ,
415
414
modifiedIds = null ,
416
415
} ) {
417
416
const contentStreamPromise = this . getContentStream ( ) ;
@@ -570,6 +569,7 @@ class Page {
570
569
return { length : pageOpList . totalLength } ;
571
570
}
572
571
const renderForms = ! ! ( intent & RenderingIntentFlag . ANNOTATIONS_FORMS ) ,
572
+ isEditing = ! ! ( intent & RenderingIntentFlag . IS_EDITING ) ,
573
573
intentAny = ! ! ( intent & RenderingIntentFlag . ANY ) ,
574
574
intentDisplay = ! ! ( intent & RenderingIntentFlag . DISPLAY ) ,
575
575
intentPrint = ! ! ( intent & RenderingIntentFlag . PRINT ) ;
Original file line number Diff line number Diff line change @@ -752,7 +752,6 @@ class WorkerMessageHandler {
752
752
intent : data . intent ,
753
753
cacheKey : data . cacheKey ,
754
754
annotationStorage : data . annotationStorage ,
755
- isEditing : data . isEditing ,
756
755
modifiedIds : data . modifiedIds ,
757
756
} )
758
757
. then (
Original file line number Diff line number Diff line change @@ -1818,7 +1818,6 @@ class PDFPageProxy {
1818
1818
renderingIntent,
1819
1819
cacheKey,
1820
1820
annotationStorageSerializable,
1821
- isEditing,
1822
1821
modifiedIds,
1823
1822
} ) {
1824
1823
if ( typeof PDFJSDev === "undefined" || PDFJSDev . test ( "TESTING" ) ) {
@@ -1836,7 +1835,6 @@ class PDFPageProxy {
1836
1835
intent : renderingIntent ,
1837
1836
cacheKey,
1838
1837
annotationStorage : map ,
1839
- isEditing,
1840
1838
modifiedIds,
1841
1839
} ,
1842
1840
transfer
@@ -2473,6 +2471,9 @@ class WorkerTransport {
2473
2471
warn ( `getRenderingIntent - invalid annotationMode: ${ annotationMode } ` ) ;
2474
2472
}
2475
2473
2474
+ if ( isEditing ) {
2475
+ renderingIntent += RenderingIntentFlag . IS_EDITING ;
2476
+ }
2476
2477
if ( isOpList ) {
2477
2478
renderingIntent += RenderingIntentFlag . OPLIST ;
2478
2479
}
@@ -2483,15 +2484,13 @@ class WorkerTransport {
2483
2484
const cacheKeyBuf = [
2484
2485
renderingIntent ,
2485
2486
annotationStorageSerializable . hash ,
2486
- isEditing ? 1 : 0 ,
2487
2487
modifiedIdsHash ,
2488
2488
] ;
2489
2489
2490
2490
return {
2491
2491
renderingIntent,
2492
2492
cacheKey : cacheKeyBuf . join ( "_" ) ,
2493
2493
annotationStorageSerializable,
2494
- isEditing,
2495
2494
modifiedIds,
2496
2495
} ;
2497
2496
}
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ const RenderingIntentFlag = {
56
56
ANNOTATIONS_FORMS : 0x10 ,
57
57
ANNOTATIONS_STORAGE : 0x20 ,
58
58
ANNOTATIONS_DISABLE : 0x40 ,
59
+ IS_EDITING : 0x80 ,
59
60
OPLIST : 0x100 ,
60
61
} ;
61
62
You can’t perform that action at this time.
0 commit comments