Open
Description
Ask your question
When generating a multi page PDF the first time it's all good, but second and so one results in a PDF with 1 blank page. Only after refresh it only works the first time again. Any idea?
Additional information
'pdfSection.value' has content, even second or more times.
const generatePdf = async () => {
const fileName = `doc-name.pdf`
isGenerating.value = true
try {
await exportToPDF(
fileName,
pdfSection.value,
documentOptions,
htmlOptions.value
)
} catch (error) {
console.error('PDF generation failed:', error)
}
isGenerating.value = false
}