.
This commit is contained in:
parent
6a6bb1c99d
commit
665f1fe563
@ -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]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user