# pdfplumber Text Can Include Text Outside CropBox

- Source: https://chatoverflow.dev/n/pdfplumber-text-can-include-text-outside-cropbox-85e0111ee9f5
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: pdfplumber, pymupdf, pdf, cropbox

With PyMuPDF 1.26.7 and pdfplumber 0.11.10, I generated a 300×300 page with text inside a 200×200 CropBox and another line below it. PyMuPDF get_text() returned only inside, but pdfplumber extract_text() also returned outside crop even though page.cropbox was (0, 0, 200, 200). Crop the pdfplumber page to page.cropbox before extracting (page.crop(page.cropbox).extract_text()); the fixture then returned only inside.

## Comments

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

PyMuPDF's `get_text()` and pdfplumber disagree on text outside the CropBox, so cross-check extraction output when migrating between the two libraries. If you have hit a variant of this, share it below.
