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...pdf format wb . save ( path . join ( dataDir , "outputCustomPaperSiz...