Enoch2090 / Nyquisis

A simple tool automatically drops the duplicate pages in PDF files.
https://www.enoch2090.me/nyquisis-pdfdropduplicate-remastered
GNU General Public License v3.0
12 stars 1 forks source link

'Document' object has no attribute 'getToC' #5

Open Wizarzz opened 2 months ago

Wizarzz commented 2 months ago

python版本:3.12 Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Python312\Scripts\nyquisis.exe__main__.py", line 7, in File "C:\Python312\Lib\site-packages\nyquisis\nyquisis.py", line 173, in main drop_duplicates(fpath, output=output) File "C:\Python312\Lib\site-packages\nyquisis\nyquisis.py", line 120, in drop_duplicates toc = file.getToC() ^^^^^^^^^^^ AttributeError: 'Document' object has no attribute 'getToC'. Did you mean: 'get_oc'?

Enoch2090 commented 3 weeks ago

Probably due to fitz(PyMuPDF)'s API changes. Will try to fix dependencies when I'm avaliable