You’re better off converting to markdown with docling or markupsafe. But, if you’re careful, Qpdf offers an intermediate document format, like pandoc, but pandoc doesn’t read PDF.
Monkt.com offers an online version (no setup or configuration) for docling. Additionally, it has a few extra extraction methods. It could be tested for conversion to markdown.