[]
(PDF 1.7) A flag specifying whether the PDF page size is used to select the input paper tray.
public bool? PickTrayByPDFSize { get; set; }
Public Property PickTrayByPDFSize As Boolean?
PdfSaveOptions options = new PdfSaveOptions();
options.ViewerPreferences.PickTrayByPDFSize = true;
bool? pickTrayByPdfSize = options.ViewerPreferences.PickTrayByPDFSize;
using MemoryStream stream = new MemoryStream();
workbook.Save(stream, options);