Retrieve a list of images used on a page.
(self, pno: int, full: bool =False)
| 5065 | return val |
| 5066 | |
| 5067 | def get_page_images(self, pno: int, full: bool =False) -> list: |
| 5068 | """Retrieve a list of images used on a page. |
| 5069 | """ |
| 5070 | if self.is_closed or self.is_encrypted: |
| 5071 | raise ValueError("document closed or encrypted") |
| 5072 | if not self.is_pdf: |
| 5073 | return () |
| 5074 | val = self._getPageInfo(pno, 2) |
| 5075 | if not full: |
| 5076 | return [v[:-1] for v in val] |
| 5077 | return val |
| 5078 | |
| 5079 | def get_page_labels(self): |
| 5080 | """Return page label definitions in PDF document. |