Hi , i am facing problem with adding the image to the aspose pdf

how to add image to the aspose pdf , i tried with different codes for sample got exception “Rectangle can not be point.” like this , i will share sample code below.

filename = HttpContext.Current.Request.MapPath("~/Ad Hoc Report/RPT/logo.png");
//ImageStamp imageStamp = new ImageStamp(filename);
//FileStream imageStream = new FileStream(filename, FileMode.Open);

                        // doc.Pages[1].AddStamp(imageStamp,1,10,10,10);
                        // doc.Pages[1].Resources.Images.Add(imageStream);

doc.Pages[1].AddImage(filename, new Aspose.Pdf.Rectangle(10, 10, 10, 10));

none of the method give me result .

@valgen

Please try the code snippet given in the below documentation article to add image stamp inside PDF document: