mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 03:27:21 -06:00
annot::page_refs, the forms page_refs and organize's walk queued every /Kids entry before the seen check, and organize cloned the inherited attributes, Resources included, for each queued entry. A page tree whose /Kids lists the same child many times, or whose nodes share one /Kids array, held all of those entries at once before they were dropped as already seen. Each walk is now a small iterator with one cursor per open /Kids array, the way pdfcraft_model::pages has walked since #1926. organize carries inherited attributes as the nodes that set them and copies them only for the pages it returns. Page order, the pages found, the inherited values and the million-node cap are unchanged.