when you have the print dialog box, change settings at that time, or you could setup another printer, call it legal for example, and set paper size to legal and select that printer when printing. This only works for entire document.
if you are going to mix sizes within same document, you would have to look within the program you are using to create the document.