PDF data extraction

I'm not sure if Hazel can do this but I'm looking to extract text from PDFs. I've noticed some posts in this forum talk about what sounds like text extraction but I've never found a post that explains how it's done.
TL;DR - I want to be able to extract text from batches of PDFs to be able to import that data into our accounting software.
Full story
We have a business, one software does the day to day processes and management of clients (Realtime). Internally, we then have our business accounting software (Xero). Xero has an API but Realtime doesn't.
At the end of the deal, Realtime exports a PDF invoice that goes to the client. We hold money in a trust account which covers the invoice so we then create the same invoice in Xero for internal paper trail purposes which allows us to then pay for the invoice from the trust.
Some invoices might have 2 line items, other invoices might have 8-10 items and its time consuming.
TL;DR - I want to be able to extract text from batches of PDFs to be able to import that data into our accounting software.
Full story
We have a business, one software does the day to day processes and management of clients (Realtime). Internally, we then have our business accounting software (Xero). Xero has an API but Realtime doesn't.
At the end of the deal, Realtime exports a PDF invoice that goes to the client. We hold money in a trust account which covers the invoice so we then create the same invoice in Xero for internal paper trail purposes which allows us to then pay for the invoice from the trust.
Some invoices might have 2 line items, other invoices might have 8-10 items and its time consuming.