pdf to excel

Convert PDF to Excel (XLS, XLSX) with .NET REST API.

In the era of data-driven decision-making, extracting insights from a multitude of sources is critical. However, this often entails dealing with data locked within PDF files, which can be a considerable challenge. This is where the magic of PDF to Excel conversion comes into play. Converting ‘PDF to Excel’ is more than just a technical task; it’s a gateway to streamlining data extraction, analysis, and visualization. So, let’s delve into the details of effortless PDF to Excel conversion using .NET REST API, so that we can organize, manipulate, and derive valuable insights from the data.

.NET REST API for PDF to Excel Conversion

When it comes to converting PDF to Excel, efficiency and accuracy are paramount. So we recommend using Aspose.PDF Cloud SDK for .NET, a versatile and developer-friendly solution that simplifies this whole process. The SDK empowers users with a plethora of functionalities beyond conversion, making it a comprehensive tool for data extraction and manipulation. From data tables to financial reports, the .NET REST API ensures that the converted Excel files are not only accurate but also well-structured.

In order to use the SDK, please search Aspose.PDF-Cloud in NuGet packages manager inside Visual Studio IDE and click the Add Package button, so that the SDK reference is added in the project.

Obtain your client credentials from cloud dashboard. In case you do not have an existing account, simply create a free account by following the instructions specified over quick start.

Convert PDF to XLS with C# .NET

Please follow the steps given below to develop a PDF to Excel converter using C# .NET.

pdf to excel

PDF to Excel conversion preview.

Given below are the quick details regarding above stated code snippet.

PdfApi pdfApi = new PdfApi(clientSecret, clientID);

Create an object of PdfApi class while passing client credentials as input arguments.

pdfApi.GetPdfInStorageToXlsx("input.pdf", minimizeTheNumberOfWorksheets: true, uniformWorksheets: true);

Now, call the API to convert PDF to Excel workbook where we have mentioned to have uniform worksheets in output. Lastly, a custom method to save the output on local drive is utilized.

  • PutPdfInStorageToXlsx - This API converts PDF document (located on storage) to XLSX format and uploads the resultant file to storage.
  • PutPdfInRequestToXlsx - This API converts PDF document (in request content) to XLSX format and uploads the resultant file to storage.

The sample PDF files used in the above example file can be downloaded from ast_sci_data_tables_sample.pdf.

Export PDF to Excel Workbook with cURL Commands

For those who seek a versatile and scriptable approach to PDF to Excel conversion, Aspose.PDF Cloud in tandem with cURL commands offers an efficient solution. Whether your requirement is to ‘convert PDF to Excel’, ‘convert PDF to XLS’, or ‘Export PDF to Excel’, this approach is designed for seamless data transformation. By utilizing cURL commands, you can automate the process and seamlessly integrate it into your workflow.

To commence using this approach, the first step is to generate a JWT access token using the following command:

curl -v "https://api.aspose.cloud/connect/token" \
 -X POST \
 -d "grant_type=client_credentials&client_id=163c02a1-fcaa-4f79-be54-33012487e783&client_secret=c71cfe618cc6c0944f8f96bdef9813ac" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Accept: application/json"

Now that the JWT token has been generated, we need to execute the following command to export PDF to Excel online. After the conversion, the resultant Excel worksheet is stored on a local drive.

curl -v "https://api.aspose.cloud/v3.0/pdf/{sourceFile}/convert/xlsx?minimizeTheNumberOfWorksheets=true&uniformWorksheets=true" \
-X GET \
-H  "accept: multipart/form-data" \
-H  "authorization: Bearer {accessToken}" \
-o "{resultantWorkbook}"

Replace sourceFile with the name of input PDF file available in Cloud storage, resultantWorkbook with the name of the resultant Excel workbook and replace accessToken with JWT access token generated above.


In conclusion, the quest for converting PDF to Excel has been demystified through two distinct yet powerful approaches. The Aspose.PDF Cloud SDK for .NET offers a comprehensive and developer-friendly solution, simplifying the requirement of ‘PDF to Excel conversion’ while extending its capabilities beyond mere conversion. On the other hand, for those who seek a versatile, scriptable route, the combination of Aspose.PDF Cloud and cURL commands provides an automated workflow for seamless data transformation. Both methods, each with its unique strengths, aim to streamline data extraction and analysis, transforming it into a structured and efficient process.

We highly recommend visiting the following blogs: