Answer the question
In order to leave comments, you need to log in
Ejs how to determine if a table fits into a document and if it doesn't, add another one?
I have an ejs document. Columns highlighted in blue can have a different number of rows and there can be any number of them.
I am generating pdf from this document using npm html-pdf
const pdf = require('html-pdf')
const ejs = require('ejs')
pdf.create(ejs.render(тут_ejs_строка), {/* опции html-pdf */}).toFile(path, function(err, res) {
if (err) return console.log(err)
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question