PyPDF2只从页面读取换行符

时间:2017-02-24 17:59:51

标签: python pypdf2

我正在阅读pdf文件中的文字,如下:

/customapi

但是输出是一个长的unicode对象,只包含pdf_reader = PyPDF2.PdfFileReader(pdf_file_obj) page_count = pdf_reader.numPages text = '' for i in xrange(page_count): text += pdf_reader.getPage(i).extractText() 个字符。该文件未加密。

无法从此文件中读取文字的任何解释?

0 个答案:

没有答案
相关问题