File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -768,18 +768,20 @@ class OperatorList {
768768 switch ( fnArray [ i ] ) {
769769 case OPS . paintInlineImageXObject :
770770 case OPS . paintInlineImageXObjectGroup :
771- case OPS . paintImageMaskXObject :
772- const arg = argsArray [ i ] [ 0 ] ; // First parameter in imgData.
773- if ( arg . data ?. buffer instanceof ArrayBuffer ) {
774- transfers . push ( arg . data . buffer ) ;
771+ case OPS . paintImageMaskXObject : {
772+ const { bitmap , data } = argsArray [ i ] [ 0 ] ; // First parameter in imgData.
773+ if ( bitmap || data ?. buffer ) {
774+ transfers . push ( bitmap || data . buffer ) ;
775775 }
776776 break ;
777- case OPS . constructPath :
777+ }
778+ case OPS . constructPath : {
778779 const [ , [ data ] , minMax ] = argsArray [ i ] ;
779780 if ( data ) {
780781 transfers . push ( data . buffer , minMax . buffer ) ;
781782 }
782783 break ;
784+ }
783785 case OPS . paintFormXObjectBegin :
784786 const [ matrix , bbox ] = argsArray [ i ] ;
785787 if ( matrix ) {
You can’t perform that action at this time.
0 commit comments