You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently facing an issue when using Converter to convert pdf to docx. The code was working fine 10 hours ago but now fails, with no fix. Parse fails as well
pdf2docx depends on fonttools and PyMuPDF. They were recently updated. So, I downgraded them (though I’m not sure if the issue was caused by one or both). However, this worked for me.
Thanks @jcgarciaca, downgrading to these versions made it work! pip install PyMuPDF==1.24.14 pip install fonttools==4.55.0
I found it preferable to install fonttools first, then PyMuPDF as fonttools is a dependency for PyMuPDF.
pip install fonttools==4.55.0
pip install PyMuPDF==1.24.14
Description of the bug
Currently facing an issue when using Converter to convert pdf to docx. The code was working fine 10 hours ago but now fails, with no fix. Parse fails as well
How to reproduce the bug
1) Using Converter
from pdf2docx import Converter
source = "path/to/source.pdf"
target = "path/to/target.docx"
cv = Converter(source)
cv.convert(target)
cv.close()
error: [ERROR] Ignore page 1 due to making page error: invalid literal for int() with base 16: 'x1'
2) using Parse
from pdf2docx import parse
source = "path/to/source.pdf"
target = "path/to/target.docx"
parse(source, target)
error: [ERROR] Ignore page 1 due to making page error: invalid literal for int() with base 16: 'x1'
pdf2docx version
0.5.8
Operating system
Linux
Python version
3.10
The text was updated successfully, but these errors were encountered: