The PDF button uses wkhtmltopdf library, which unfortunately breaks the formatting.
Instead click on print
and use “Microsoft Print to PDF” option as shown below.
This will hold up the formatting.
Do let me know how it goes.