(self, xref)
| 4060 | _remove_dest_range(pdf, numbers) |
| 4061 | |
| 4062 | def _remove_toc_item(self, xref): |
| 4063 | # "remove" bookmark by letting it point to nowhere |
| 4064 | pdf = _as_pdf_document(self) |
| 4065 | item = mupdf.pdf_new_indirect(pdf, xref, 0) |
| 4066 | mupdf.pdf_dict_del( item, PDF_NAME('Dest')) |
| 4067 | mupdf.pdf_dict_del( item, PDF_NAME('A')) |
| 4068 | color = mupdf.pdf_new_array( pdf, 3) |
| 4069 | for i in range(3): |
| 4070 | mupdf.pdf_array_push_real( color, 0.8) |
| 4071 | mupdf.pdf_dict_put( item, PDF_NAME('C'), color) |
| 4072 | |
| 4073 | def _reset_page_refs(self): |
| 4074 | """Invalidate all pages in document dictionary.""" |
no test coverage detected