I have multiple PDF files containing QR codes, barcodes, or data matrix codes that are embedded in various pages and are relatively small in size. I am seeking a solution to read these PDF files, detect and extract the codes, and output the results in JSON format. After exploring various services and APIs, I have not found a suitable solution that meets these requirements. I would greatly appreciate any assistance or advice on how to achieve this.