Extract PDF to ExcelPDF to XLS and XLSX conversions have become a necessity when handling client data such as tax returns. These conversions can be done manually if there are just a few of them a week. However, handling 100s or 1000s PDF to XLS and XLSX conversions daily is inefficient.

You can even start with a FREE account now!

SIGN UP FOR FREE

Benefits of Our PDF to XLS and XLSX API

Thankfully, with our PDF to XLS and XLSX API, you can do small and bulk PDF to XLS and XLSX conversions securely and fast. The API allows converting PDF to Excel using JavaScript, Java, C#, PHP, Python, and other languages.

Secure XLS/XLSX API Execution

We secure the upload and download connections using SSL and auto-delete files after 1 hour, if you upload them to the temporary storage, using the “PUT” method. You also have an option to delete a PDF immediately, after converting it to XLS/XLSX, using the “/file/delete” method.

Asynchronous Mode Execution

Furthermore, we have hundreds of ready-to-copy PDF to Excel converter code samples on Github for all those languages. Our PDF to Excel conversion API can run in the foreground and output the spreadsheet results if the conversion is not a bulky one.

We recommend you run it that way for PDF files that are less than 100 pages. And you can run it in the background when handling large PDF to XLS and XLSX conversions.

Access to API Integrations

You can use the PDF.co platform via integration on popular business automation platforms like Zapier and IntegromatUiPath, and BluePrism. You can swiftly connect with the most common applications through our 300+ API integrations.

 

PDF to XLS API – Tutorial

Here’s a DEMO on how to extract PDF to XLS format. Here’s a Sample PDF File to be used.

Screenshot of Souce File
Screenshot of Source File

You can use various programming languages to execute this program, such as C#, Python, PHP, Java, JavaScript, and others. The tutorial includes source source code samples in cURL for a better demonstration.

Here’s the output of extracted XLS file.

Screenshot of XLS Output
Screenshot of XLS Output

Before starting with the coding, it is important to check the /v1/pdf/convert/to/xls parameters and how to use them.

 

It’s time to check out and use the source code sample now.

cURL Code Sample

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

More source source code samples in cURL are available here.

Enterprise Solutions

For enterprise customers, there is a Dedicated API Server that runs as a dedicated private server with dedicated private cloud storage in the hosting region of your choice.

SIGN UP FOR FREE

Here’s PDF to XLS Extraction Demo

Output XLS using cURL
Output XLS using cURL

The source codes for PDF to XLS or XLSX in JavaScript are located here.

The source codes for PDF to XLS or XLSX in PHP are located here.

The source codes for PDF to XLS or XLSX in Python is here.

The source codes for PDF to XLS or XLSX in Java are located here.

The source codes for PDF to XLS or XLSX in C# are located here.

Convert PDF to XLS and XLSX Files in Asynchronous Mode

As mentioned above, if the PDF file is more than 100 pages, or it will take over 25 seconds to convert, then you have to run the PDF to XLS API conversion in asynchronous mode.

You can do that using the “async” input param, by setting it to “true”. Otherwise, your execution will return a time-out error.

With the API running in the background, it will output an identifier for that job, using “jobId” and an output “url”, which you can use to access the converted XLS or XLSX file.

You can check a detailed list of XLS/XLSX API options and API parameters here.

SIGN UP FOR FREE