To get data out of PDFs, invoices and forms automatically, you set up a pipeline that collects each document as it arrives, reads it with OCR and an extraction model, checks the fields against rules you define, and writes the clean values into your accounting software or database. Anything the system is unsure about goes to a person with the doubtful fields highlighted. The cloud services that do the reading cost cents per page. Most of the work is in the checks and the connection to your own systems.
This guide walks through how that pipeline works, what the reading services cost, how to keep mistakes out of your books, and how to tell whether your document volume is worth automating.
Why re-keying is still so common
Most small and mid-sized businesses already have accounting software, a CRM or a job management system. The problem is the gap between those systems and the documents that feed them. Supplier invoices arrive as PDF attachments. Receipts arrive as phone photos. Inspection reports, work orders and application forms arrive as scans, portal downloads or paper.
Somebody has to read each one and type the numbers in. That work is slow, it is easy to get wrong, and it piles up whenever volume spikes or the person who does it is away. A typo in an invoice total or a missed GST/HST amount often surfaces weeks later, during reconciliation, when it is harder to trace.
How automated document intake works
A document intake pipeline usually has five stages.
- Collect. Documents are picked up from wherever they land: a shared mailbox such as invoices@, a scanning folder, a portal or a phone upload. If email is the main channel, this step overlaps with shared inbox triage, where messages are sorted before attachments are processed.
- Read. OCR turns the page image into text, and an extraction model finds the fields that matter: vendor, invoice number, date, subtotal, tax, total and line items.
- Check. Validation rules compare what was read with what should be true. Do the line items add up to the subtotal? Does the tax match the rate for that province? Is this vendor already in your system? Has this invoice number been seen before?
- Write. Clean values go straight into your accounting platform, ERP, database or spreadsheet through its API, with no copy and paste.
- File. The original is renamed and stored in a consistent place, linked to the record it produced, so anyone can open the source in one click.
The reading step gets the attention. The checking and writing steps are what make the result trustworthy.
What the reading services can do today
You do not need to build OCR from scratch. The major cloud platforms sell document reading as a service.
Microsoft's Azure AI Document Intelligence has a prebuilt invoice model. Microsoft's documentation says it extracts key fields and line items from invoices, utility bills, sales orders and purchase orders, including customer name, billing address, due date and amount due, and returns them as structured JSON. It handles phone-captured images, scanned documents and digital PDFs, and supports invoices in 27 languages. On the paid tier it can process PDFs of up to 2,000 pages and files up to 500 MB. The free tier processes only the first two pages of a document.
Google Cloud's Document AI offers similar building blocks. Its Enterprise Document OCR processor turns pages into text, and its Form Parser and custom extractor pull out fields and tables. Google also offers a custom classifier that sorts mixed document types before extraction.
Microsoft says Document Intelligence returns an estimated confidence between 0 and 1 for words, key-value pairs and other results, though not every field gets one. Its own guidance is to use that score to decide whether to accept a value automatically or flag it for human review. That is what lets you send uncertain documents to a person instead of straight into your books.
What it costs to run
The per-page cost of the reading step is small. Google publishes its Document AI prices in US dollars:
- Enterprise Document OCR: the first 1,000 pages are free, then US$1.50 per 1,000 pages up to 5 million.
- Form Parser and custom extractor: US$30 per 1,000 pages up to 1 million pages.
- Custom classifier: US$5 per 1,000 pages up to 1 million pages.
Google's own example puts 100 pages through Form Parser at US$3 for the month. A business handling a few thousand invoices a month is looking at a reading bill in the tens of dollars, not thousands.
Microsoft and other providers price their services differently, so check the current rate before you budget, because cloud prices change.
The bigger cost is the setup: defining your fields and rules, connecting to your systems, handling your edge cases and testing on real documents. That is a one-time project, and it is where most of the value is made or lost.
Keeping mistakes out of your books
A pipeline that is right most of the time and silent when it is wrong is worse than typing. Good document intake is built on the assumption that the model will sometimes misread a field.
The protections that matter:
- Confidence thresholds. Any field below a set confidence goes to review instead of being written.
- Arithmetic checks. Line items must add up to the subtotal, and subtotal plus tax must equal the total.
- Lookups. The vendor, customer or job number must match a record that already exists.
- Duplicate detection. The same vendor and invoice number cannot be entered twice.
- A review queue. Exceptions show the original page next to the extracted values, with the doubtful fields highlighted, so the reviewer fixes one field instead of re-keying the whole document.
Over time, the review queue tells you where the pipeline struggles. One supplier's layout might always confuse it, or handwritten forms might need a different approach. You fix the pattern once instead of correcting the same mistake every week.
Records, retention and privacy in Canada
Automating intake does not change your record-keeping duties. The Canada Revenue Agency says you must generally keep required records and supporting documents for six years from the end of the last tax year they relate to, and keep them at your place of business or residence in Canada unless the CRA gives you written permission to keep them elsewhere. It also notes that records kept outside Canada and accessed electronically from Canada are not considered records kept in Canada.
That matters when you choose where documents and extracted data are stored. Pick a storage location that meets those rules, and file originals somewhere you can produce them on request.
For electronic and imaged records, the CRA points to Information Circular IC05-1, Electronic Record Keeping. The CRA notes that the national standard on electronic records as documentary evidence, CAN/CGSB-72.34-2017, was updated in 2017 to include electronic imaging. If you plan to scan paper and discard the original, read that guidance with your accountant first.
Documents such as applications and onboarding forms often contain personal information. Keep extraction limited to the fields you need, control who can see the review queue, and know where every copy is stored.
Is your volume worth automating?
Spend an hour with a month of documents and write down:
- Each document type you receive, and roughly how many of each per month.
- Which fields from each type end up in which system.
- How long one document takes to enter by hand, start to finish.
- How often errors from manual entry cause rework.
Multiply the count by the minutes and you have a rough figure for the hours you are spending. If it is a few documents a week, a good scanning app and a tidy folder may be enough. If someone spends hours each week re-keying invoices, receipts or forms, or if errors keep showing up at month end, automation is worth scoping.
Start with one document type that has high volume and a consistent shape, usually supplier invoices or expense receipts. Get that working reliably, then add the next. Once the data is flowing, it can feed real-time reporting and automated invoice reminders without anyone touching it in between.
How Zeitwerk builds it
Zeitwerk builds document intake and processing for finance teams, property and field operations and offices that run intake forms across Toronto and the GTA. We inventory what arrives, build the extraction pipeline with validation rules, connect it to the systems you already use and route exceptions to a review queue, so your team handles judgment calls instead of volume.
Frequently asked questions
Can software read scanned documents and phone photos?
Yes. Services such as Azure AI Document Intelligence accept phone-captured images, scans and digital PDFs. Image quality still matters, so a pipeline should send blurry or skewed pages to review rather than guess.
Is document extraction the same as OCR?
No. OCR turns an image of a page into text. Extraction goes further: it finds specific fields such as the invoice total or due date, checks them and writes them into another system.
How much does it cost to extract data from an invoice?
The reading itself is cheap. Google lists its Form Parser at US$30 per 1,000 pages, or about three cents a page, and its basic OCR at US$1.50 per 1,000 pages after the first 1,000. Setup and integration are the larger, one-time cost.
How long do I have to keep invoices and receipts in Canada?
The CRA says you generally must keep required records and supporting documents for six years from the end of the last tax year they relate to. Some situations require longer.
What happens when the system reads a field wrong?
A well-built pipeline catches most errors with confidence thresholds, arithmetic checks and lookups, and sends the document to a person with the doubtful field highlighted.
Sources
- Microsoft Learn: Document Intelligence invoice model (opens in a new tab) - fields and line items extracted, 27 languages, 2,000 pages and 500 MB limits on the paid tier.
- Microsoft Learn: Interpret and improve accuracy and confidence scores (opens in a new tab) - confidence between 0 and 1, used to accept a value or flag it for review.
- Google Cloud: Document AI pricing (opens in a new tab) - OCR, Form Parser, custom extractor and classifier prices per 1,000 pages.
- Canada Revenue Agency: Where to keep your records and for how long (opens in a new tab) - six-year retention and records kept in Canada.
- Canada Revenue Agency: IC05-1R1 Electronic Record Keeping (opens in a new tab) - electronic records guidance and the CAN/CGSB-72.34-2017 imaging update.
Prices and figures are as published by each source on the date shown and can change. This guide is general information, not legal or financial advice.