Posted by a ceTe Software moderator
Hello,
In order to merge the PDF document which is in the form of byte array you will have to use the PdfDocument class constructor which takes the PDF byte data as argument. You can also use the physical file path of the PDF document. Further you will have to use this PdfDocument object to build the MergeDocument object for merging. Below is the code for it.
Byte[] bytedata = File.ReadAllBytes(@"Path for the PDF document");
PdfDocument pdfdoc = new PdfDocument(bytedata);
MergeDocument document = new MergeDocument(pdfdoc);
document.Draw(@"Path to save the PDF document");
If you continue getting the error then kindly send over the input PDF document with which you are having trouble in merging to our support team at:
Support Team so that they can look into it further.
Thanks,
ceTe Software Support Team