harveyai/pdfplumber ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python tool for digging into PDFs in a really detailed way. I want it to read a PDF and let me inspect each page, each character, line, rectangle, curve, image, and annotation, then make it easy to pull out text and tables too. It should work best on regular generated PDFs, and I’d like a simple command line version that can output the page data as CSV or JSON, plus a small Python API where I can open a file, look at pages, crop parts of a page, filter objects, and close things cleanly when I’m done.

Also add the visual debugging helpers so I can see what it thinks is on the page, because I know PDF extraction can be messy. If you need to check current docs for the PDF parsing library it depends on, go ahead and look those up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab