Closed cole-dda closed 1 week ago
Cannot confirm: Works for me on Linux and Windows, PyMuPDF 1.24.13 and 1.24.11.
You did not even mention what error happened by the way.
I'am sorry
import fitz
doc = fitz.open('x.pdf')
doc.fullcopy_page(1)
This time yes.
This happens only if the duplicated page is empty (has no /Contents
objects).
Easy fix.
Fixed in PyMuPDF-1.24.14.
Description of the bug
res may be bytes type ,so no "m_internal" attribute
How to reproduce the bug
x.pdf
import fitz doc = fitz.open('x.pdf') doc.fullcopy_page(0)
PyMuPDF version
1.24.13
Operating system
MacOS
Python version
3.12