I saw the code inside insertPDF in fitz.py it uses
_fitz.Document_insertPDF(self, docsrc, from_page, to_page, start_at, rotate, links, annots)
I have very large documents of 100,000 pages. I want to see somprogress if possible after inserting every 1000/5000 pages
How can i send some logging messages to the python code from _fitz.Document_insertPDF function after every 1000/5000 pages of insertion.
Anything i can change in the source code and then recompile it.
Else the option is keep inserting 5000 pages at a time by mentioning the start and and page