Get xref of document XML metadata.
(self)
| 8112 | return r |
| 8113 | |
| 8114 | def xref_xml_metadata(self): |
| 8115 | """Get xref of document XML metadata.""" |
| 8116 | pdf = _as_pdf_document(self) |
| 8117 | root = mupdf.pdf_dict_get( mupdf.pdf_trailer( pdf), PDF_NAME('Root')) |
| 8118 | if not root.m_internal: |
| 8119 | RAISEPY( MSG_BAD_PDFROOT, JM_Exc_FileDataError) |
| 8120 | xml = mupdf.pdf_dict_get( root, PDF_NAME('Metadata')) |
| 8121 | xref = 0 |
| 8122 | if xml.m_internal: |
| 8123 | xref = mupdf.pdf_to_num( xml) |
| 8124 | return xref |
| 8125 | |
| 8126 | __slots__ = ('this', 'page_count2', 'this_is_pdf', '__dict__') |
| 8127 |
nothing calls this directly
no test coverage detected