Hi,
I try to generate a lot of pdf (more than 15000 for invoicing).
My program must be really performant, not more than 40min per 15000.
So, here how i’m doing for now :
- 3 xmls templates : 1 for the first page (client info + terms of sale), 1 for invoice summary, 1 for details
For each invoice,
- create an Aspose.Pdf.Generator.Pdf object and load first page (xml template) -> Pdf1
- Bind data in Pdf1
- create an Aspose.Pdf.Generator.Pdf object and load invoice summary (xml template) -> Pdf2
- Bind data in Pdf2
- Insert the Pdf2 's first section (single) into the end of Pdf1 sections
- create an Aspose.Pdf.Generator.Pdf object and load invoice details (xml template) -> Pdf3
- Bind data in Pdf3
- Insert the Pdf3 's first section (single) into the end of Pdf1 sections
- Save Pdf1 (final pdf)
I’m not really sure that’s the best way (result more than 2h per 15000), so I tried to create a single Pdf with multiple Sections (for page break) but it was the same. I also tried to save every part and finally concatenate them but it was worse.
So, do you know a better way ?
Second question, is it possible to Clone an Aspose.Pdf.Generator.Pdf object?
ps: I didn’t try to use xslt
Thanks