From 665f1fe563adf3260caf324ec0046ce278904890 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 12 Sep 2024 13:43:46 -0400 Subject: [PATCH] . --- mccs-it/thermal/modules/Thermal.js | 2 ++ 1 file changed, 2 insertions(+) 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]);