-
Notifications
You must be signed in to change notification settings - Fork 11
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
XmlPullParserException in pdf2htmlEX-Android v0.18.20 #83
Comments
Hi, If it works on 0.18.19, it should work on 0.18.20, because the exception happens in the library that I haven't updated in between these two releases. Anyways, lets see what we can do. |
This is my fonts.xml |
Thank you, @jackyhieu1211 . Could you also check if 0.18.21 works for you? I've added a try-catch for Fontconfig translator, there may be some issues with fonts, but the pdf conversion should work |
@ViliusSutkus89 |
@ViliusSutkus89
|
Error is still there, because it's printed out in the line 31, but the conversion process should still continue, is it not doing anything? |
the conversion stopped shortly after. I cannot convert successfully! |
It shouldn't have stopped. Could you post more output from logcat? |
@ViliusSutkus89 I don't see any other logcat. except for the line below
It seems like the error occurred in the C library. So logcat cannot show the C library error. |
The error is not in libc, libc only raises segmentation fault, because there's an error in our code somewhere. So this is a separate error from the XmlPullParserException, I've reproduced it on my end, will see how can I solve it, but the fix won't be today |
OK, so your PDF has a font embedded with a name "BGDGBW弫Roboto-Bold". Will later look into why iconv fails, because iconv may be used in other places too, without proper error handling. That error message: "The PostScript font name "BGDGBW弫Roboto-Bold" is invalid.\nIt should be printable ASCII,\nmust not contain (){}[]<>%/ or space\nand must be shorter than 63 characters" Also, please tell me that Google Translate is translating that symbol wrong and it doesn't mean "Kill Roboto Bold". |
@jackyhieu1211, can you confirm is the issue is fixed for you in 0.18.22 ? |
@ViliusSutkus89 By the way. Can you callback the conversion progress? |
Yeah, conversion progress would be useful. Let me quote myself from more than three years ago in Issue #20:
Haven't got around to it yet |
It working on version v0.18.19. But I use version v0.18.20. It got error above.
This is my config
You can check this file
pdf_file.pdf
The text was updated successfully, but these errors were encountered: