MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / delete_page

Method delete_page

src/__init__.py:4350–4353  ·  view source on GitHub ↗

Delete one page from a PDF.

(self, pno: int =-1)

Source from the content-addressed store, hash-verified

4348 mupdf.pdf_dict_del( root, PDF_NAME('Metadata'))
4349
4350 def delete_page(self, pno: int =-1):
4351 """ Delete one page from a PDF.
4352 """
4353 return self.delete_pages(pno)
4354
4355 def delete_pages(self, *args, **kw):
4356 """Delete pages from a PDF.

Callers 4

__delitem__Method · 0.95
test_deletionFunction · 0.80
test_4462Function · 0.80
test_4309Function · 0.80

Calls 1

delete_pagesMethod · 0.95

Tested by 3

test_deletionFunction · 0.64
test_4462Function · 0.64
test_4309Function · 0.64