最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

pymupdf - Why can't I extract text from this pdf? - Stack Overflow

programmeradmin2浏览0评论

I have tried a variety of methods both online and using python to extract text from this pdf:

.pdf

And every time I just get seemingly random characters for instance 1$$2!!2!"34$+5

I have tried online options as well as this:

import fitz

text = ""
path = "/home/serveracct/342.pdf"

doc = fitz.open(path)

for page in doc:
    text += page.get_text()
print(text)

I believe since a court doc the format is PDF/A but not 100% sure. I tried detecting an image file but could not. ocrmypdf works but the files become huge..For now I am just trying to determine what about the structure is preventing me from extracting the text. Also when I open this pdf in Adobe there are random boxes showing up on the page:

发布评论

评论列表(0)

  1. 暂无评论