I'm using pdftotext to make an ASCII version of a PDF document (made with LaTeX), because collaborators prefer a simple document in MS word.
The plain text version I see looks good, but upon closer inspection the f character seems to be frequently mis-converted depending on what characters follow. For example, fi and fl often seem to become one special character, which I will try to paste here: fi and fl.
What is the best way to clean up the output of pdftotext? I am thinking sed might be the right tool, but am not sure how to detect these special characters.
pdftotextfrom poppler, right, notpdftotex? – frabjous Dec 10 '10 at 3:28ebook-convertfrom calibre (calibre-ebook.com) rather thanpdftotext. It allows plain text output (and a variety of other formats), and handles ligatures for you. – frabjous Dec 10 '10 at 3:43siunitxandglossaries, and therefore it seems like going via the PDF is the best solution. I wish there were a better way. – mankoff Dec 10 '10 at 18:06