fn collect_pages_with( tree: &impl PageTree, directory: &Path, doc: &Path, into: &mut Vec<String>, ) -> Result<(), Error>