How to Convert an Excel File into PDF | HTML to PDF using JavaScript | Saving PDF using Puppeteer
Code : const puppeteerVar = require(‘puppeteer’) var xlsx = require(“xlsx”) var fs = require(‘fs’) describe(‘Title : Convert Excel To PDF’,()=(greather than){ it(‘Test Case : Convert Excel To PDF’, async function(){ const browser = await puppeteerVar.launch({headless:true, slowMo:500}) const page = await browser.newPage(); var dataPathExcelToRead = “Sample.xlsx” var wb = xlsx.readFile(dataPathExcelToRead) var sheetName = wb.SheetNames var htmlData…