Customize paper size
Print using windows.print() with a custom size paper
I think there is no API for that. The browser will show the default values for that printer. The only thing, you can probably do, is set the print width using the media query, so that it will look weird in the preview for the user if he selects a different size that has a lot of variation.