Is there a tool to extract only text from a pdf file? The tool should completely ignore images. Extra points for (i) option to ignore headers and footers, (ii) converting each inline equation to a contiguous block of text.
I have a pdf file made with latex. The file contains some images. Some of the images contain labels which can be selected (the images are made in tikz/pstricks). I have tried to convert the pdf file to plain text with a number of tools (eg.: online tools, calibre), but all of them picked up labels in the images and treated them as text. I am okay with the tool picking up the image caption (either way fine), but picking up labels in images makes the text file less useful.
Why is it less useful? (i) grammar check, (ii)
diff between such text files gives useless output if image positions are changed between versions of the pdf file (the latter happens since latex treat image as float).
If we have the source tex file, then we can suppress images, but is there a solution in cases where we only have the pdf file?