The structure is - rows, columns and the values in them. The decoration is not: fills, fonts and borders are not carried into the CSV, and merged cells are resolved into ordinary ones so the data stays machine-readable.
Pick a document target instead. Converting your PDF to DOCX, ODT, RTF or TXT keeps the text, headings and layout. The CSV route exists only for the case where the tables are the thing you actually want.