Check out this tutorial to convert PDF to JSON using PDF.co Web API and Postman. Follow this step-by-step tutorial to extract PDF files in JSON format.

  1. Open PDF.co API v.1
  2. Select File Uploader
  3. Select PDF to JSON
  4. Send Request with cURL or with Postman
  5. Set Inline Key and Enter PDF Link
  6. Send and Check the Status
  7. See Result
  8. Copy and Paste Code to Editor
  9. Video Tutorial: Convert PDF to JSON using Postman
  10. Benefits of PDF to JSON Extraction

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

Step 1: Open PDF.co API v.1

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

PDF.co Postman API

Step 2: Select File Uploader

Look for and click on the File Uploader folder

File Uploader Folder

Step 3: Select PDF to JSON

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

PDF to JSON Endpoint

Step 4: Send Request with cURL or with Postman

Option 1: 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
}'

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

File Upload Body

Step 5: Set Inline Key and Enter PDF Link

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 Params And Values

Step 6: Send and Check the Status

6a. Click on the Send button

Send Button

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

200 OK Status Code

Step 7: See Result

Scroll down to see the generated JSON code result

PDF to JSON Inline Result

Step 8: Copy and Paste Code to Editor

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 Button

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

PDF To JSON Inline False

PDF To JSON URL 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.

Now, you’ve learned how to quickly convert PDF to JSON format using PDF.co Web API and Postman.

Convert PDF to JSON using Postman – Video Guide

Benefits of PDF to JSON Extraction

Converting a PDF file to JSON format can provide several benefits, including:

Data Extraction

PDF files are often used for storing data, but it can be challenging to extract that data without a specific software tool. Converting PDF to JSON can help extract data from the PDF file and organize it into a structured format, making it easier to work with and manipulate.

Improved Readability

JSON is a more human-readable format than PDF. JSON files can be opened and edited using a text editor, and the structure of the data is easily discernable. This can make it easier for developers and non-technical users alike to understand and work with the data.

Enhanced Flexibility

JSON is a lightweight data format that can be used with a wide range of programming languages. This flexibility makes it easy to integrate the extracted data into other systems or processes.

Simplified Data Analysis

JSON is a commonly used format for data analysis and can be imported into a variety of tools and applications that specialize in data analysis, such as Excel or Python libraries.

Automation

JSON files can be easily processed by software programs, making it an ideal format for automation. This can save time and reduce errors in manual data entry.

Overall, converting PDF to JSON can streamline the process of extracting and analyzing data from PDF files, making it a valuable tool for businesses and individuals working with PDF data.