PDF files

Overview

This page outlines our guidelines for parsing data from PDF files to a primary model.

Strategy

  • Use the pypdf library to extract text from the input pdf file.

  • Handle variations in spacing. This is IMPORTANT. It is common in PDF extractions - expect that wherever a space occurs in an expected token, there may be zero or more spaces in the extracted text.

  • Then proceed with the same strategies as for text based files.