Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second time results in PDF with 1 blank page #40

Open
designchapnl opened this issue May 15, 2024 · 0 comments
Open

Second time results in PDF with 1 blank page #40

designchapnl opened this issue May 15, 2024 · 0 comments
Labels
question Further information is requested

Comments

@designchapnl
Copy link

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
}
@designchapnl designchapnl added the question Further information is requested label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant