In the solution, two methods are mainly called to perform the task of adding attachments. The first method is byte[] ReadAllBytes(string path) which is applied to load the certain file that you want to attach in PDF. The other method isPdfAttachmentAnnotation(RectangleF rectangle, string fileName, byte[] data) that is used to add PDF attachment with attachment annotation.












