2025 AI Readiness Report: Survey Insights on Enterprise AI Maturity – Now Available!

Automatically Recognize Invoices from Different Vendors using C#

By Apryse | 2025 Feb 19

Sanity Image
Read time

4 min

When working in a paperless office, businesses receive hundreds of different forms and invoices from different vendors. It is often a major pain point and bottleneck to manually find, extract, and store all the necessary information. Thankfully with a Template Extraction SDK, everything can be easily automated to improve workflow productivity and efficiency.

With Apryse, users need only to create templates for each of the different invoices or form types. These templates are then stored in a repository and used to automatically recognize which type of filled form is currently being processed.

In the demonstration below, we take a directory of files and compare them to a list of templates.

For more details on Template Extraction, check out How to Extract ACORD Form Data using Template Extraction in .NET 

Let’s break down this sample code to understand what each part does.

First, loading the templates:

using TemplatesCollection templates = new TemplatesCollection.Builder()    .FromSourceFolder(templatesDirectory)    
.Build(); 

Next, we set up and use the Classifier object to classify the files to be extracted to the correct template:

That’s how Apryse Template Extraction supports automated data classification from a large set of form files, including different types of forms, documents, and invoices.

Extracting the Data

The code which extracts the specified data from target files using the template is included in the snippet above. See:

And:

To learn more about creating the templates, visit our documentation guide. 

If you’re interested in getting started with Template Extraction, contact us. 

Sanity Image

Apryse

Share this post

email
linkedIn
twitter