ranker.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:Resume-Ranker 作者: sadmicrowave 项目源码 文件源码
def parse_pdf_doc(self):
        """
        Open a pdf document filetype and parse contents to string variable
        for matching comparison.
        """

        docText = ''
        # open the file, with read/binary priviledges
        f = open(self.file, 'rb')
        pdf = PyPDF2.PdfFileReader(f)
        for page in pdf.pages :
            docText += page.extractText()

        f.close()
        return docText.strip() or None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号