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 PDF Text and Tables Extraction subfolder

PDF Text and Tables Extraction

Step 3

Click on PDF to CSV subfolder and click Get /pdf/convert/to/csv

PDF to CSV Get

Step 4

You can send your request with cURL

curl --location --request POST 'https://api.pdf.co/v1/pdf/convert/to/csv' \
--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-csv/sample.pdf",
"lang": "eng",
"inline": "true",
"unwrap": "",
"pages": "0-",
"rect": "",
"async": "false",
"encrypt": "false",
"name": "result.csv",
"password": "",
"lineGrouping": "",
"profiles": ""
}'

Step 5

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

PDF to CSV Body

Step 6

Enter your CSV file URL in URL values and your desired file name on Name values. To upload your CSV file in the temporary storage click here

PDF to CSV url and name

Optional

Enter your PDF file password on the password‘s value for password-protected PDF files. You can set a range for specific PDF file pages that you want to be converted. The first page starts at 0, use dash (-) to set range i.e 2-5 for pages 3 to 6 and 2- for pages 3 to last, otherwise leave the field empty.

PDF To CSV Password

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

Copy the URL and paste it in your browser’s address bar to see your converted HTML Code to PDF.

PDF To CSV Result

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