/pdf-brand-to-json

Extracts information from brand guidelines `.pdf` file using AI and outputs json formatted string.

Primary LanguageJavaScriptMIT LicenseMIT

PDF brand to JSON

Extracts information from brand guidelines .pdf file using AI and outputs json formatted string.

Output preview

Warning Use the output only as suggestions. Results may vary depending on the information in the .pdf file and the provided questions. Always validate the accuracy of the output and the values.

Requirements

  • node >= 20.x
  • npm >= 10.x

Get started

  1. Install dependencies
$ npm i
  1. Create your .env file from the .env.example template file
$ cp .env.example .env
  1. Add value to every environment variable
  2. Start the script and provide the path to your .pdf document. (There are example files which you could use in the demo/ folder)
$ npm start demo/microsoft-brand-guidelines.pdf

Tech stack