Create a CSV file using matched content from PDFs

Hi,
I had an idea and I was curious to know if that might be possible.
I would like an hazel rule that match some data on a PDF and append the results in a CSV file.
I receive an email everytime there is a transaction on my bank account. If I save that email to PDF in the watched folder, I could extract data from that transaction (date, payee, etc..) and create a list of all transactions in the CSV file that I could then import in my budgeting software.
Would you have an idea on how to do that ?
Thanks
I had an idea and I was curious to know if that might be possible.
I would like an hazel rule that match some data on a PDF and append the results in a CSV file.
I receive an email everytime there is a transaction on my bank account. If I save that email to PDF in the watched folder, I could extract data from that transaction (date, payee, etc..) and create a list of all transactions in the CSV file that I could then import in my budgeting software.
Would you have an idea on how to do that ?
Thanks