扫描版 PDF 解析失败时,提示可以更明确
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
如果上传的是扫描件,直接报“解析失败”会让普通用户不知道怎么办。哪怕暂时不做 OCR,也可以检测文本层为空,然后提示“这可能是扫描版 PDF,需要 OCR 或换成可复制文本的版本”。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the PDF parsing failure path and the check for extracted text; verify the behavior for a scanned PDF with an empty text layer. Done means that case produces the suggested OCR or copyable-text message while other parsing failures retain appropriate errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100