Dynamic Image automation

Hi I want to scrape data like section header names from all pages from scanned pdf document. Can you please help. The sections can be of varying number