We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot create an image stamp

I am using that code from the documentation to create a image stamp but it is not working…

            Document document = new Document();
    var page = document.Pages.Add();
    ImageStamp imageStamp = new ImageStamp(@"C:\Users\{myUserID}\Documents\barcode.jpg");
    // Create image stamp
    imageStamp.Background = true;
    imageStamp.XIndent = 100;
    imageStamp.YIndent = 100;
    imageStamp.Height = 300;
    imageStamp.Width = 300;
    imageStamp.Opacity = 0.5;
    // Add stamp to particular page
    page.AddStamp(imageStamp);

document.Save(@“C:\Users{myUserID}\Documents\mypage.pdf”)
i am not getting an error…but i am not getting my image stamp either…can you tell me what i am doing wrong?

@daronr

This code is working fine with latest version of the API. I request you to share your input image and output file.