How to create custom template for document parser API in Java and PDF.co Web API

PDF.co Web API is the flexible Web API that includes full set of functions from e-signature requests to data extraction, OCR, images recognition, pdf splitting and pdf splitting. Can also generate barcodes and read barcodes from images, scans and pdf.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

ByteScoutWebApiExample.iml

      
<?xml version="1.0" encoding="UTF-8"?> <module type="JAVA_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR{code}quot;> <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="com.google.code.gson:gson:2.8.1" level="project" /> <orderEntry type="library" name="com.squareup.okhttp3:okhttp:3.8.1" level="project" /> </component> </module>

SampleTemplate.yml

      
sourceId: My Custom Template detectionRules: keywords: - Your Company Name - Invoice No\. - TOTAL fields: total: expression: TOTAL {{DECIMAL}} type: decimal pageIndex: 0 dateIssued: expression: Invoice Date {{DATE}} type: date dateFormat: auto-mdy pageIndex: 0 invoiceId: expression: Invoice No. {{123}} pageIndex: 0 companyName: expression: Vendor Company static: true pageIndex: 0 billTo: rect: - 32.25 - 150 - 348 - 70.5 pageIndex: 0 notes: rect: - 32.25 - 227.25 - 531 - 47.25 pageIndex: 0 tables: - name: table1 start: expression: Item\s+Quantity\s+Price\s+Total end: expression: TOTAL subItemStart: {} subItemEnd: {} row: expression: ^\s*(?<description>\w+.*)(?<quantity>\d+)\s+(?<unitPrice>\d+\.\d{2})\s+(?<itemTotal>\d+\.\d{2})\s*$

VIDEO

ON-PREMISE OFFLINE SDK

Get 60 Day Free Trial

See also:

ON-DEMAND REST WEB API

Get Your API Key

See also: