How to crop image from pdf without messing up the text?

I need to crop an image from my PDF but the text gets all messed up every time. It’s a 20-page document and I have to keep the formatting intact for submission.

That is annoying, especially with a submission copy. Make a duplicate first, then use a PDF editor’s crop tool on just the page area rather than converting the whole file to Word or images. I mark up homework PDFs quite often, and cropping the page box usually leaves the text layer untouched. Check a couple of pages afterwards before saving over the original.

Had the same thing last month with a site report PDF. I always work on a copy, then in Adobe Acrobat I used the edit tool to pull just the picture out without the text shifting around. That kept the whole 20 page file looking right for submission. If you lack Acrobat maybe try Foxit PDF Editor, though I am not sure it handles it as clean.