
Auto Extract Tables from PDFs and Convert to Excel
6 MIN READ
5 MIN READ
Create a reusable Document Parser template that detects a table and extracts its contents as structured data.
Sign in to PDF.co and open the Document Parser Template Manager.
Create a new template and open it in the editor.
Load a PDF containing the table you want to extract.
For this example, use a document with a table on its first page. Keep the source PDF available so you can compare it with the extracted results.
Give the object a descriptive name, such as ExtractedTable.
Configure it to target:
0 for the first page.0 for the first detected table on that page.To target another table, adjust these indexes. Page and table numbering begin at zero.
See the Document Parser Template Creation Guide for details about automatic table detection and template settings.
Run the template against your sample PDF and review the extracted table in the results.
Compare the output with the original, checking that:
Adjust the configuration and rerun the test if needed.
Save the template with a recognizable name and copy its Template ID.
Use that ID with the Document Parser API or a Document Parser action in Make or Zapier to apply the saved extraction settings to other PDFs.
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.
Create an account, get an API key and test a request.