This article explains how to programmatically get headers and footers from Excel or OpenOffice files using the Node.js via C++ API....to the documents directory. const dataDir = path . join ( __dirname..."data" ); const filePath = path . join ( dataDir , "HeaderFooter.xlsx"...