I read a lot of books in PDF format and highlight them. I then extract all the highlights and use them to study.
I would like to be able to do this with images too - but I don't just want to extract all the images - I want to extract the specific portion that I've drawn a rectangle around. In the sample image that I made, below, I'd like to just extract the chunk of code within the red rectangle - to a JPG or stream or something I can manipulate in the study software I'm writing.
Does anyone know of an SDK that allows this? It seems I should be able to identify the rectangles in the PDF file and their coordinates - and then extract an image based on those coordinates - but I've not been able to find anyone doing this. Worst case, how can I identify an image I've drawn a rectangle around and extract the image beneath it - in this case the entire Visual Studio image?
I'm using the SyncFusion PDF solution to extract the highlighting. I've tinkered with ITextSharp. It's possible one of these may do it - but I haven't figured out how (yet).
P.S. Page is from an excellent book called "The C# Player's Guide" by RB Whitaker