InteractiveChecklists
InteractiveChecklists copied to clipboard
🚨 Large PDF outline parsing re-parses document on every page change
Summary
When opening large PDF files, outline and page-list parsing fails to complete and effectively gets stuck.
The outlines do not load, and the parser repeatedly re-runs expensive parsing logic.
Small PDF files do not exhibit this issue.
Steps to Reproduce
- Open a large PDF (e.g.
F18-ABCD-Flight_Manual.pdf, ~900 pages) in the app. - Navigate between pages (swipe or jump).
- Observe Logcat output, UI responsiveness, and CPU usage.
Actual Behavior
PdfStructureParserrepeatedly parses xref tables and rebuilds the page list on every page change.- Parsing is triggered even though the document is already open and flagged as cached.
- Outline and page-list loading never completes for large PDFs.
- Each page navigation causes:
- High CPU usage
- UI stalls/freezes
- Repetitive log output
Expected Behavior
- Outline and page-list parsing should complete once per document.
- Parsed structures should be cached and reused for all page navigations.
- Large PDFs should behave the same as small PDFs, without repeated parsing or UI degradation.
Fixed in 1.0.9 Commit 1f9eb9e "PDF_Parser big file FULL FIX"