Get xref of PDF catalog.
(self)
| 6063 | yield (self.load_page(pno)) |
| 6064 | |
| 6065 | def pdf_catalog(self): |
| 6066 | """Get xref of PDF catalog.""" |
| 6067 | pdf = _as_pdf_document(self, required=0) |
| 6068 | xref = 0 |
| 6069 | if not pdf.m_internal: |
| 6070 | return xref |
| 6071 | root = mupdf.pdf_dict_get(mupdf.pdf_trailer(pdf), PDF_NAME('Root')) |
| 6072 | xref = mupdf.pdf_to_num(root) |
| 6073 | return xref |
| 6074 | |
| 6075 | def pdf_trailer(self, compressed=0, ascii=0): |
| 6076 | """Get PDF trailer as a string.""" |