def determineDocument(pdf):
    """ Scans the pdf document for certain text lines and determines the type of investment vehicle traded"""
    if 'turbop' in pdf or 'turboc' in pdf:
        return 'certificate'
    elif 'minil' in pdf:
        return 'certificate'
    elif 'call' in pdf or 'put' in pdf:
        return 'warrant'
    else:
        return 'stock'