Do you mean the footer and header in the PDF? If yes Calibre can remove them as well. When you click Convert, under Structure Detection. You have the option to remove footer and header from the PDF.
Honestly PDF is the worst type to convert from.