Posted by a ceTe Software moderator
Hello Ajith,
The sample code which we have posted earlier is to merge a single PDF document. If you are generating reports in a loop then you can use Append method of the MergeDocument object and append all your reports to make a single PDF document. Below is the code for appending the PDF document which is in the form of byte array. You will have to make sure that each time you are loading the required PDF stream in the PdfDocument object.
MergeDocument document = new MergeDocument();
Byte[] bytedata = File.ReadAllBytes(@"C:\temp\DocumentC.pdf");
PdfDocument pdfdoc = new PdfDocument(bytedata);
document.Append(pdfdoc);
document.Draw(@"C:\temp\Test.pdf");
If the above suggestions do not meet your requirements then please send over the sample code which you are using to our support team at
support@cete.com so that they can look into it further.
Thanks,
ceTe Software Support Team