I'm working on an Android app that's already on production stage. The app generates PDF reports. Lately we've been receiving complaints from customers about not being able to open a PDF file. I've found many free online tools to check the PDF, but I'm receiving stuff like 'unable to process due to PDF error'.
I found a usefull tool online: Ghostscript.
It turns out that the corrupted PDF files generated have an invalid xref entry in the table. Does someone know how to detect it on Android programatically, so I can retry the generation process or seomthing? Or is it possible to fix it programatically?
Any suggestion is much appreciated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.