analyze_layout

9 usages across 1 PDF

Working with page structure

Extract text from complex multi-column layouts while maintaining proper reading order. Learn techniques for handling academic papers, newsletters, and documents with intricate column structures using Natural PDF's layout detection features.

# default is YOLO
page.analyze_layout()
page.find_all('region').show(group_by='type')
View full example →
page.analyze_layout('tatr')
page.find_all('region').show(group_by='type')
View full example →
page.analyze_layout()
page.find_all('region').show(group_by="type")
View full example →