CC内置read读取PDF经常提示PDF有密码保护

2026-04-11 15:111阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

如图,这个是我一个word转成的pdf文件,没有设置密码,任何pdf软件都可以正常打开不用输密码,cc内置的read读取的话就会报有密码保护

CC内置read读取PDF经常提示PDF有密码保护 搞七捻三
费了一点token说可能是这个原因 [image]
网友解答:
--【壹】--:

要和ai沟通,最好用md文件
都转文件了,就直接转成md格式更好
或者用notebooklm来处理pdf无敌好用


--【贰】--:

费了一点token说可能是这个原因
image2127×1440 245 KB


--【叁】--:

看是共性问题,等官方修复了

github.com/anthropics/claude-code

[BUG] bug in Claude Code's PDF parser

已打开 08:19PM - 04 Mar 26 UTC Tpike2020 bug has repro platform:windows area:tools platform:vscode

### Preflight Checklist - [x] I have searched [existing issues](https://github.…com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet - [x] This is a single bug report (please file separate reports for different bugs) - [x] I am using the latest version of Claude Code ### What's Wrong? I am asking Claude Code to read some pdf files. Each time I get an error saying that "PDF is password-protected. Please provide an unprotected version." Unfortunately, there is no security on the file. After running some bash command, Claude says "Good news — the file has no /Encrypt dictionary, so it's genuinely not password-protected. This appears to be a bug in Claude Code's PDF parser incorrectly flagging the file." (confirmed by command line search). The same PDF file opens fine in Claude.ai (web) I am using Windows 11 and I'm running Claude in visual studio. ### What Should Happen? Claude should be able to read the file easily. ### Error Messages/Logs ```shell ``` ### Steps to Reproduce I simply ask Claude if it can read the file and it says "The PDF is password-protected, so I can't read it." I have attached screenshots of the messages from Claude below. ### Claude Model Sonnet (default) ### Is this a regression? No, this never worked ### Last Working Version _No response_ ### Claude Code Version 2.1.68 ### Platform Anthropic API ### Operating System Windows ### Terminal/Shell VS Code integrated terminal ### Additional Information <img width="795" height="889" alt="Image" src="https://github.com/user-attachments/assets/1d07821d-a4c3-4b3d-94c2-b80fde0768d8" /> <img width="809" height="817" alt="Image" src="https://github.com/user-attachments/assets/d7787678-1d91-44ac-af3c-48fb72016967" />