pdfme / pdfme

A TypeScript based PDF generator library, made with React.
https://pdfme.com
MIT License
2.16k stars 192 forks source link

Multiple page PDF generation & Attaching PDF #421

Open GustavoOS opened 3 months ago

GustavoOS commented 3 months ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Use PdfMe with a multiple page template having a PDF attachment.

Describe alternatives you've considered

As Pdfme does not offer this feature, the only way I can think of is a little complicated:

  1. Create a layout for each page
  2. Create logic to limit the amount of text in each page
  3. Generate a pdf for each page
  4. Use an external tool to merge all PDFs

Step 2 is the most concerning part because text can be splitted in a wrong manner in a multiple page PDF.

Additional context

No response