Does anyone know if something like this exists for C? It would be nice to be able to call it from $LANGUAGE.
I managed to get away just with using command line PDF->TXT tool that came with Xpdf [1].
Also MuPDF is awesome [2]. Its bare bones demo PDF viewer replaced Foxit as my default PDF handler.
If you have some more serious budget, there is also PDFlib TET [3], a nice commercial solution with bindings for many languages (C, C++, Python, Ruby, Perl, .NET, and many others).
-----
autocmd BufReadPre *.pdf set ro
autocmd BufReadPost *.pdf silent %!pdftotext "%" -