简体   繁体   中英

How to debug PDF files on Android?

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.

我结束了使用是iText7进行调试,并PDFBOX用于生产目的,检测时产生的PDF被破坏,并留下责任给用户遍布生成PDF。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM