Skip to content

Second time results in PDF with 1 blank page #40

Open
@designchapnl

Description

@designchapnl

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions