-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: invalid literal for int() with base 10 #23
Comments
@mortang2410 The error says that we cannot determine the page number given its title. I found no way to determine a page's title using python-djvulibre. It is certainly possible, but as far as I understand it is something that only actively maintained libdjvu bindings support (or maybe not?). Anyway, just for the sake of not raising exceptions, in 2.2.3 warnings are logged instead. PS: This is not the only problem encountered during conversion of that particular DjVu file. It is a popular book, perhaps there are better DjVu/PDF files over the internet? |
With the new commit, I have been able to convert the djvu file successfully, but bookmarks / outline is gone. |
I tried to explain in my previous comment that the DjVu file uses "page titles", a relatively obscure feature that the libdjvu bindings we use does not support. I know of no way to generate the outline without some work into our dependencies. This issue can remain open. Somebody has to volunteer to work on DjVuLibre and its bindings in order to fix it, however. |
I was trying to convert this djvu file to pdf.
Gerald_B._Folland-Real_Analysis__Modern_Techniques_and_Their_Applications,_2nd_Ed.djvu.zip
And I got this error. Do you know what's going wrong? I'm on Mac OS using Python 3.11.6, pip 23.3.1, Poetry 1.7.1, and dpsprep 2.2.2.
The text was updated successfully, but these errors were encountered: