Support bulk invoice upload - earmuff-jam/invoicer GitHub Wiki

Purpose

The main purpose of this page is to determine how we can extract text from a pdf and build out a invoice from it. It is important to note that the impression of this workflow is to realize that the json extract must match the system accepted key, value pairs. Without this match, data might not be shown as expected by the audience.

Introduction

From an initial quick glance, we noticed that react-pdftotext npm package is sufficient to handle our needs. npm install react-pdftotext to begin. An onClick handler function to handle the import of the bulk invoice upload.

Fork Number 1

The problem we encountered with this approach is that the json payload might not be available. By using the above library, we were only able to extract the text. Since all the input are customizable we would not be able to decode the appropriate length of the text.