I have a PDF with maximum of 6 pages. I need to extract the table(not in table format, looks like text with rows and columns) under the specific header.
Sample content - Here the header is Holiday Holiday : Year:2022
Holiday : Year:2022
S:No Holidays occurring on weekends Date Day
1 New Year 1-Jan-2022 Saturday
2 Makara Sankranti ( for Karnataka) 15-Jan-2022 Saturday
3 Pongal 2-Apr-2022 Saturday
4 May day 1-May-2022 Sunday
5 Mother's day 8-May-2022 Sunday
6 Father's day 19-Jun-2022 Sunday
Unwanted text to ignore Unwanted text to ignore
Unwanted text to ignore Unwanted text to ignore
Holiday : Year:2022
S.No Holidays occurring on weekends Date Day
7 Bakrid 10-Jul-2022 Sunday
8 Parents day 24-Jul-2022 Sunday
9 Maha Saptami /Gandhi Jayanti 2-Oct-2022 Sunday
10 Valmiki Jayanthi / Milad-un-Nabi (Bday of Prophet ) 9-Oct-2022 Sunday
11 Men's day 19-Nov-2022 Saturday
12 Disability Day 3-Dec-2022 Saturday
13 Christmas 25-Dec-2022 Sunday
Unwanted text to ignore Unwanted text to ignore
Unwanted text to ignore Unwanted text to ignore
Could anyone please check on this