Hi there.
Aspose.Pdf.Kit.PdfFileMend mend = new Aspose.Pdf.Kit.PdfFileMend(sourceStream, resultStream);
RetrieveInfo(sourceContent);foreach (KeyValuePair<int, byte[]> kvp in layersContent)
mend.AddImage(new MemoryStream(kvp.Value), kvp.Key + 1, 0, 0, Width, Height);mend.Close();
result = resultStream.ToArray();
The pdf file in attachments