The print preview in Print mode uses the selected paper size/dimensions in the Print Options panel (on the right), but if you’re exporting graphics (e.g. a PDF), the settings for the page size, orientation etc set in Layout Options are used for the resulting exported file.