You can print to fit the paper size you loaded in the printer.
Access the printer driver, and then make the following settings.
On the More Options tab > Output Paper, select the size of the loaded paper.