Skip to content

Walk PDF page tree iteratively - #10185

Merged
radarhere merged 3 commits into
mainfrom
pdf-iterative-page-tree
Oct 12, 2026
Merged

radarhere merged 3 commits into
mainfrom
pdf-iterative-page-tree

Conversation

@aclark4life

Copy link
Copy Markdown
Member

PdfParser.linearize_page_tree() recursed once per level of the page tree, so a deeply nested tree raised RecursionError. This walks the tree with a stack instead. The cyclic and duplicate reference check from #10093 is unchanged.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aclark4life aclark4life added the 🤖-assisted AI-assisted label Oct 11, 2026
@aclark4life
aclark4life requested a review from radarhere October 11, 2026 22:37
@radarhere radarhere added the PDF label Oct 11, 2026
@radarhere
radarhere enabled auto-merge (squash) October 11, 2026 23:47
@radarhere
radarhere disabled auto-merge October 12, 2026 00:49
@radarhere
radarhere merged commit e2ae7ea into main Oct 12, 2026
82 of 85 checks passed
@radarhere
radarhere deleted the pdf-iterative-page-tree branch October 12, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants