This article explains how to use the Node.js API via C++ to set a custom paper size for your desired worksheets when rendering an Excel file to PDF format programmatically.... join ( __dirname , "data" ); // Create workbook object...Copy Page Setup Settings from Source Worksheet into Destination...