you can convert pdf to text and text to pdf easily, i made it in streamlit
a web site for working with pdf and text files made in streamlit library in python