Open nekooei opened 2 years ago
example usage: const options = { useRemoteChrome: true, chromeRemoteWs: 'ws://localhost:3000', format: 'A4', printBackground: true, }; const pdfBuffer = await html_to_pdf.generatePdf(fc, options))
const options = {
useRemoteChrome: true,
chromeRemoteWs: 'ws://localhost:3000',
format: 'A4',
printBackground: true,
};
const pdfBuffer = await html_to_pdf.generatePdf(fc, options))
@mrafiqk is there any problem for review?
by this contribution, you can connect to remote chrome(browser) instance
example usage:
const options = {
useRemoteChrome: true,
chromeRemoteWs: 'ws://localhost:3000',
format: 'A4',
printBackground: true,
};
const pdfBuffer = await html_to_pdf.generatePdf(fc, options))