This article eXplains how to use the JavaScript API via C++ to set a custom paper size for your desired worksheets when rendering an EXcel file to PDF format programmatically....00 x 4.00 in" ; // Save the workbook...= "Pdf Page Dimensions: 6.00 x 4.00 in" ; // Save the workbook...