Check if xref is an image object.
(self, xref)
| 7988 | return False |
| 7989 | |
| 7990 | def xref_is_image(self, xref): |
| 7991 | """Check if xref is an image object.""" |
| 7992 | if self.is_closed or self.is_encrypted: |
| 7993 | raise ValueError("document closed or encrypted") |
| 7994 | if self.xref_get_key(xref, "Subtype")[1] == "/Image": |
| 7995 | return True |
| 7996 | return False |
| 7997 | |
| 7998 | def xref_is_stream(self, xref=0): |
| 7999 | """Check if xref is a stream object.""" |
no test coverage detected