Uploading Images for JSONL file for fine tuning

I have a series of pdfs with corresponding txt files, I want to create a JSONL file for fine tuning a model where I give it the prompt, pdf and expected response. How can I upload the pdfs to be able to be used for my fine tuning?