jsvine / pdfplumber

Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.
MIT License
6.57k stars 659 forks source link

Save pdf file after cropping a page #240

Closed AntonioMarsella closed 4 years ago

AntonioMarsella commented 4 years ago

Hi, I need to use the pdfminer pdf2txt.py script, so I think I need to save the cropped pdf that I get from here. Is there a way to save a cropped single page into a .pdf format file?

Thank you

jsvine commented 4 years ago

Hi @AntonioMarsella, pdfplumber currently focuses only on analyzing PDFs, not generating them. For your purposes (cropping a PDF and then saving the result), you might try either of these tools: