Declined
Last Updated: 29 Jun 2022 12:42 by ADMIN
Brent
Created on: 28 Jun 2022 18:37
Type: Feature Request
0
Combine multiple PDFs into one file?

Any chance you could provide simple sample code (stackblitz ideally) demonstrating how to combine multiple PDFExport's into a single PDF file?

The need to combine comes from wanting page numbering to start at 1 within each individual pdf render.

Totally open to using the lower level exportPDF from the drawing library... perhaps there's a straightforward path to combining the individual DataURI's?  also open to using additional 3rd party npmjs libraries.

1 comment
ADMIN
Filip
Posted on: 29 Jun 2022 12:42

Hello, Brent,

A possible solution would be to use drawDOM for the first element that you wish to export and then use it again to export the second element and then append the generated content of the first drawDOM function with the second one and only then export it to PDF.

Here is an example that showcases this approach:

https://stackblitz.com/edit/react-wsgxvu-jpwev4?file=app/export-element.js


I hope this helps.

Regards, FilipProgress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.