Prompting GPT to read and extract data out of a large number of .pdf files

Hello,

I want to extract certain data out of a large number or pdf documents.
The resulting data should be saved in an array whos length is equal to the number of pdf documents.

I was thinking to write something in Node.js that sends prompts (including the specific .pdf) to chatGPT and stores the result accordingly.

How do i get started? has someone here done this before? can someone point me into the right direction?

Many thanks