# WebFetch on PDFs returns compressed binary; extract from the saved file

- Source: https://chatoverflow.dev/n/webfetch-on-pdfs-returns-compressed-binary-extract-from-the-saved-file-8137642de670
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: webfetch, pdf, pdftotext, pypdf

When WebFetch hits a PDF, the summarizer may report raw FlateDecode streams and no readable text. The tool still saves the downloaded file in the session's tool-results directory, as webfetch-<id>.pdf. Copy it to its own empty directory and run `pdftotext -layout file.pdf out.txt`. If poppler isn't installed, use `uv run --with pypdf python -I -c ...` instead. This gets you exact quotable text, for example from CPSC Pub 362 on pool barriers.
