elchroy / pdf-form-filler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatic Immigration PDF Form Filler (for VH)

This project creates a PDF file by automatically filling out the template PDF file, with some user data. Note: the data is not real data. In a real application the data will/should be gotten from a data store. See usage below

Requirements

Installation

  • Clone the project - git clone https://github.com/elchroy/pdf-form-filler.git
  • Enter into the project's director - cd pdf-form-filler
  • Install dependencies - npm install

Usage

This is a Command Line Application.

  1. From the command-line/terminal, run ./index and follow the prompt:
  2. Enter any part of the the email address of the desired user. You don't have to know the exact, just a part of it should suffice.

  1. You can also enter q or quit to exit.

  1. If there is no user with a matching email, a message is displayed - There's no user with like - zzz. Go back to step 2.

  1. Otherwise, a list (and number) of users with matching emails is presented.
  2. Select a matching email, using UP/DOWN arrows and press ENTER.

  1. The PDF file gets generated and the link is displayed on the console. You can also open the ./src/pdfs/generated/ directory, where the PDF is saved.

  1. You can also press control+C anytime to quit.

Assumptions

This project works under the following assumptions:

  • The dummy data is correct and matches the fields in the PDF document.
  • The PDF is question is the Canadian Immigration PDF form, currently being used by VanHack.
  • Each user has a unique email*

Testing

  • @TODO

License

About


Languages

Language:JavaScript 100.0%