You can always use pandoc to convert pdf to md/plaintext and print it to console.
Pandoc can convert to PDF, but not from PDF.
https://pandoc.org/faqs.html#how-can-i-convert-pdfs-to-other...