This commit is contained in:
Skylar Grant 2024-09-12 13:43:46 -04:00
parent 6a6bb1c99d
commit 665f1fe563
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ module.exports = {
}, },
print() { print() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// Define the path for the PDF file
const pdfFilePath = path.join(__dirname, 'output.pdf');
// Start the print command // Start the print command
const printer = spawn('lp', ['-d', 'ITThermal', pdfFilePath]); const printer = spawn('lp', ['-d', 'ITThermal', pdfFilePath]);