Invoices / Receipts - max_pages_to_process: 15

https://api.veryfi.com/api/v8/partner/documents/

max_pages_to_process is a parameter that controls how many pages of the document Veryfi should read and extract. The current limitation is *15 pages.

*It means that if you submit a 20-page PDF document, Veryfi will extract the data from the first 15 pages only.

Use case:

You have a 10-page PDF, but want Veryfi to extract information only from the first 1-5 pages and increase processing time. Just add {"max_pages_to_process" : X} to your API call and Veryfi will extract the data only from the first X pages, skipping the rest.

Please note the following file limitations/requirements:

For .pdf documents, 300 DPI is optimal.

Optimal image resolution is dependent on the size of print in the image. Generally, 1000px on the smaller dimension is recommended for images to avoid blur in images.

Please note, that accuracy is largely dependent on the quality and clarity of the image and file size. The file size limit is 20Mb

For Images, the image size should be equal to or bigger than 100 pixels (100x100).

Please note, that file compression tools reduce the image size and thus can affect the data extraction accuracy.

Please refer for the most recent information to Interactive API and JSON schema inside your Veryfi user account.


Limits for other documents types Veryfi supports:

  • W9 - max_pages_to_process: 1

  • Checks - max_pages_to_process: 1

  • W2 - max_pages_to_process: 2*

    *max_pages_to_process capped to [1,2]. If you use any other value you will receive an error describing what’s wrong and why. [change from Sept 20, 2022]

Other Related Articles:

File requirements

File formats Veryfi supports?

Processing Zip files code samples

Document Data Extraction Fields Explained

Languages Veryfi OCR API works with

What Document Types Veryfi Supports


Questions? Please reach out to us at support@veryfi.com



Did this answer your question?