pdf2docx icon indicating copy to clipboard operation
pdf2docx copied to clipboard

Python 3.12 issue

Open apurv-sttl opened this issue 11 months ago • 4 comments

Description of the bug

The library with version 0.5.8 is not working as expected with Python 3.12. Please take a look into this.

How to reproduce the bug

Getting this error

Ignore page 1 due to making page error: invalid literal for int() with base 16: 'xe'

pdf2docx version

0.5.8

Operating system

Linux

Python version

3.12

apurv-sttl avatar Dec 17 '24 13:12 apurv-sttl

We cannot accept issue reports without a reproducing file.

JorjMcKie avatar Dec 17 '24 13:12 JorjMcKie

We're getting this error from common/share.py file on line number 161. It is computing invalid value(xeee7d9) for integer typecasting. We've debugged this issue and color is comming as -16777216 every time. Please try to resolve this issue as soon as possible and update the library.

apurv-sttl avatar Dec 18 '24 09:12 apurv-sttl

We're getting this error from common/share.py file on line number 161. It is computing invalid value(xeee7d9) for integer typecasting. We've debugged this issue and color is comming as -16777216 every time. Please try to resolve this issue as soon as possible and update the library.

Hmmm. Maybe related to: PyMuPDF Issue #4139

The workaround mentioned in pdf2docx Issue #329 might help resolve the issue in the short term.

hstov3 avatar Dec 20 '24 20:12 hstov3

This is due to an error in the base library, PyMuPDF. It will be fixed in the version following 1.25.2.

JorjMcKie avatar Feb 06 '25 08:02 JorjMcKie