This commit is contained in:
Skylar Grant 2024-09-10 15:45:43 -04:00
parent 4c8fb156ee
commit 3c9e41bd8d
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ module.exports = {
writeStream.on('finish', () => {
// PDF file has been saved, now print it using lp command
const printer = spawn('lp', ['-d', 'ITThermal', pdfFilePath]); // Replace 'ITThermal' with your actual printer name
const printer = spawn('lp', ['-d', 'ITThermal', pdfFilePath]);
// Handle error if the printing process fails
printer.on('error', (err) => {

View File

@ -38,7 +38,7 @@
</button>
<button
id="print-mcc"
class="w-full bg-indigo-700 text-white py-2 px-4 rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50">
class="w-full bg-indigo-700 text-white py-2 px-4 rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 mt-2">
Print MaineCC Contact
</button>
</div>