File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -462,16 +462,16 @@ def _get_ids_image(
462
462
if RES .PATTERN in cast (DictionaryObject , obj [PG .RESOURCES ]):
463
463
for patternName , pattern in obj [PG .RESOURCES ][RES .PATTERN ].items ():
464
464
if PG .RESOURCES in pattern .get_object () and RES .XOBJECT in cast (DictionaryObject , pattern [PG .RESOURCES ]):
465
- x_object = pattern [PG .RESOURCES ][RES .XOBJECT ].get_object () # type: ignore
466
- for o in x_object :
467
- if not isinstance (x_object [o ], StreamObject ):
468
- continue
469
- if x_object [o ][IA .SUBTYPE ] == "/Image" :
470
- lst .append (
471
- f"{ RES .PATTERN } { patternName } { o } "
472
- if len (ancest ) == 0
473
- else ancest + [o ]
474
- )
465
+ x_object = pattern [PG .RESOURCES ][RES .XOBJECT ].get_object () # type: ignore
466
+ for o in x_object :
467
+ if not isinstance (x_object [o ], StreamObject ):
468
+ continue
469
+ if x_object [o ][IA .SUBTYPE ] == "/Image" :
470
+ lst .append (
471
+ f"{ RES .PATTERN } { patternName } { o } "
472
+ if len (ancest ) == 0
473
+ else ancest + [o ]
474
+ )
475
475
476
476
if RES .XOBJECT in cast (DictionaryObject , obj [PG .RESOURCES ]):
477
477
x_object = obj [PG .RESOURCES ][RES .XOBJECT ].get_object () # type: ignore
You can’t perform that action at this time.
0 commit comments