MVP
This commit is contained in:
		
							parent
							
								
									4c8fb156ee
								
							
						
					
					
						commit
						3c9e41bd8d
					
				| @ -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) => { | ||||
|  | ||||
| @ -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> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user