This method would be the best possibility in order to retain as much formatting from the initial PDF as you can. It's also helpful If the PDF has scanned textual content, as the conversion will go through and convert text from pictures. The answer offers a extensive House for experiments. https://www.thepdffox.com