@amjad.sahi, @Professionalize.Discourse, @John.He, @simon.zhao
worksheet.PageSetup.PaperSize = PaperSizeType.CusTom;
// Set cusTom paper size for A1 (width: 33.1 inches, height: 23.4 inches)
worksheet.PageSetup.CusTom…...set excel Custom Paper Size width and height using excel last...desired worksheets when rendering Excel file to PDF file format programmatically...