Consolidate linked documents into a single file