Click Print to PDF below. In the print dialog, set paper size to A4, margins to None, and enable Background graphics.