How to Auto Detect Table in a PDF using PDF.co Document Parser

Sep 2, 2024·5 Minutes Read

In this tutorial, we will show you how to auto-detect the table in a PDF using PDF.co Document Parser.

Here’s the sample PDF with a table that we’re going to use in this tutorial.

Screenshot of Sample PDF with Table
Screenshot of Sample PDF with Table

Step 1: Open Document Parser

To start, you will need to log in to your PDF.co account.

From the API Tools tab, select Document Parser.

Document Parser Manager

Step 2: Create New Template

Click on the Manage Templates button.

Manage Templates

Next, click on the New Template button to create a new template.

Create a New Template

Step 3: Load Test PDF

Then, load the Source File to create a template.

Load Test PDF

Step 4: Add Object

Click on the Add Object button and choose the Add Table from Auto Detection.

Add Object

Step 5: Run Template

After adding the object, click on the Run Template button.

Run Template

Step 6: Test Result

Here’s the extracted output using the template.

Test Result
Extracted Output using Template

Step 7: Save the Template

Once you are done creating the template, you may now save it.

Save Template

In this tutorial, you learned how to auto-detect the table in a PDF using PDF.co Document Parser. You also learned how to create a new template using the Document Parser Template Editor.

Related Tutorials

See Related Tutorials