diff --git a/mccs-it/thermal/modules/Thermal.js b/mccs-it/thermal/modules/Thermal.js index e26c94a..5583089 100644 --- a/mccs-it/thermal/modules/Thermal.js +++ b/mccs-it/thermal/modules/Thermal.js @@ -110,6 +110,8 @@ module.exports = { }, print() { return new Promise((resolve, reject) => { + // Define the path for the PDF file + const pdfFilePath = path.join(__dirname, 'output.pdf'); // Start the print command const printer = spawn('lp', ['-d', 'ITThermal', pdfFilePath]);