Skip to content

fix: add pypdf to Docker requirements for PDFContentScrapingStrategy - #2170

Closed
Battleplus wants to merge 1 commit into
unclecode:mainfrom
Battleplus:fix/2127-add-pypdf-docker
Closed

fix: add pypdf to Docker requirements for PDFContentScrapingStrategy#2170
Battleplus wants to merge 1 commit into
unclecode:mainfrom
Battleplus:fix/2127-add-pypdf-docker

Conversation

@Battleplus

Copy link
Copy Markdown

这次改了什么

Fixes #2127

Docker image was missing pypdf dependency, causing PDFContentScrapingStrategy to fail at runtime.

修法: Added pypdf>=5.0.0 to deploy/docker/requirements.txt.

怎么验证的

  1. Build Docker image: docker build -t crawl4ai .
  2. Start server: docker run -p 8000:8000 crawl4ai
  3. Send POST request with PDF URL and PDFContentScrapingStrategy
  4. Should return extracted PDF content instead of failing

风险

Low risk — adds a required dependency that was missing from the Docker image.

Docker image was missing pypdf dependency, causing PDFContentScrapingStrategy
to fail at runtime. Added pypdf>=5.0.0 to deploy/docker/requirements.txt.

Fixes unclecode#2127

Signed-off-by: Battleplus <3559424769@qq.com>
@Battleplus
Battleplus force-pushed the fix/2127-add-pypdf-docker branch from cc26081 to 095679b Compare August 21, 2026 16:24
@Battleplus

Copy link
Copy Markdown
Author

此 PR 包含了其他 PR 的改动(stacked PR 问题)。请从最新 upstream/main 重建分支,只保留此 PR 相关的 commit。

@Battleplus

Copy link
Copy Markdown
Author

Superseded by clean PR #2184 from upstream/main base.

@Battleplus Battleplus closed this Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Docker image ships without pypdf, so PDFContentScrapingStrategy fails at runtime

1 participant