Extract structured table from pdf spanning in multiple pages


I have a pdf file in which i have a table which is spanning in two pages and also these pages is having headers and footers,
so how can i extract that table and write it into datatable by excluding header and footers.

                     thanks in advance