I'm new to C++, but not to programming. I'm trying to find a library that will allow me to extract the text from a PDF, preferably the first line of the PDF. A code example with the library would be appreciated. 

The reason I'm trying to do this is to rename several hundred files based on the first line within the PDF(which happens to be the title in each).