IMPORTANT: You need to setup Postman first, use this link to setup PDF.co for Postman.

Step 1

Go to Collections Tab and click on PDF.co API v.1 folder

Collections Tab

Step 2

Look for and click on File Uploader folder

File Uploader Folder

Step 3

Click on PDF to JSON folder and click GET /pdf/convert/tojson

PDF to JSON GET

Step 4

You can send your request with cURL

curl --location --request POST 'https://api.pdf.co/v1/pdf/convert/to/json' \
--header 'Content-Type: application/json' \
--header 'x-api-key: INSERT_YOUR_API_KEY_HERE' \
--data-raw '{
"url": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-to-json/sample.pdf",
"inline": true
}'

Step 5

Or you can send it with Postman by going to the Body tab and select Form-Data

File Upload Body

Step 6

Set the inline key to true and enter your pdf file link on the URL key’s value. To upload your PDF file in the temporary storage click here

PDF To JSON Keys

Step 7

Click on the Send button

Send button

Step 8

Scroll down and make sure that the Status is 200 OK.

HTML to PDF Status

Step 9

Scroll down to see the generated JSON code result

PDF to JSON Result

Step 10

Click on the copy to clipboard icon on the left to copy the code and paste it to your favorite editor

PDF To JSON Copy to Clipboard

Note: If you set the inline key to false, it will allow you to download the output instead.

PDF To JSON Inline Key

PDF To JSON Download Result

NOTE: The JSON file is temporarily stored in the cloud and will expire in an hour. Be sure to download/move it to permanent storage.