(self, content:bytearray)
| 33 | } |
| 34 | |
| 35 | def _get_format(self, content:bytearray)->str: |
| 36 | for magic_file, file_type in self._magic_numbers.items(): |
| 37 | if content.startswith(magic_file): |
| 38 | return file_type |
| 39 | return None |
| 40 | |
| 41 | def _read_pdf(self, content:bytearray, max_pages=2)->str: |
| 42 | text = "" |