Since I'm almost never interested in the formatting I run all pdf files through pdftotext from the Poppler library before llm use.