How to Convert a Quotation PDF to XLSX in PHP using PDF.co Web API

Sep 2, 2024·2 Minutes Read

In this tutorial, we will show you how to convert a quotation PDF to XLSX in PHP using PDF.co Web API. The image below shows the source file and the XLSX output.

Step 1: Source Code

To begin, let’s copy the HTML and the PHP source code. Save it in a folder inside the /www or /htdocs directory depending on whether you are using XAMPP or WampServer.

Source code

Step 2: Start Apache

Next, let’s start the Apache server so we can run the program on our local machine.

Step 3: Run Program

Now, let’s run our program. Type in localhost/folder_name/sample.html in your browser. Then, enter your PDF.co API Key and the DOC file to be converted. You can get your API Key in the PDF.co dashboard.

Run program

Step 4: XLSX Output

PDF.co will return a temporary URL to download the XLSX output. Kindly open the URL to download the result.

XLSX Output

In this tutorial, you learned how to convert quotation PDF to XLSX in PHP using PDF.co Web API. You also learned how easy it is to set up the code samples to get your program running right away.

Related Tutorials

See Related Tutorials