This commit is contained in:
Skylar Grant 2024-09-12 13:43:46 -04:00
parent 6a6bb1c99d
commit 665f1fe563

View File

@ -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]);