Parse Values for Columns 2 and 3 only

  1. Go to PDF.co Document Parser Interface
  2. Create a New Template
  3. Load Source PDF or Image File
  4. Add Objects
  5. Set the Expression and Data Type
  6. Run Template
  7. Result
  8. Save Template

In this tutorial, you will learn how to parse values for columns 2 and 3 only using PDF.co Document Parser.

We have a sample PDF that has a table with 3 columns that we can use for this tutorial.

Screenshot of Sample PDF with 3 columns
Screenshot of Sample PDF with 3 columns

To begin, log in to your PDF.co account here.

Step 1 – Go to PDF.co Document Parser Interface

  • On your PDF.co dashboard, click the Document Parser menu at the top of the page

Go to PDF.co Document Parser Interface

Step 2 – Create a New Template

  • Create a New Template by clicking the New Template URL

Create a New Template

Step 3 – Load Source PDF or Image File

  • Load the Source PDF or Image File that you’re going to use for creating your template

Load Source PDF or Image File

Step 4 – Add Objects

  • Use Add FIELD based on TEXT SEARCH object for your template

Add field based on text search object

Step 5 – Set the Expression and Data Type

  • To get the value of Row 2 Column 2 set the Expression to ITEM 2{{Spaces}}(?<value>{{Number}}) and set the Data Type to String
  • To get the value of Row 2 Column 3 set the Expression to ITEM 2{{Spaces}}{{Number}}{{Spaces}}(?<value>{{Number}}) and set the Data Type to String

Get the value of row 2 column 2

Get the value of row 2 column 3

Step 6 – Run Template

  • After setting up the objects you may now run the template

Run template

Step 7 – Result

  • Here’s the output
Screenshot of the Output
Screenshot of the Output

Step 8 – Save Template

  • Once you’re done creating your template, you may now save it

Save template

You’ve learned how to parse values for columns 2 and 3 only using PDF.co Document Parser.

Parse Values for Columns – Videos

 

Related Pages:

Related Samples: