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

Free Support Forum - aspose.com

BackgroundArtifact displays background only on two first pages

Hi team,
I need to add same background to all PDF pages.
I’m using BackgroundArtifact class, but bg is drawn only on first two pages and missing on other pages.
TestAsposePdf.pdf (10.2 KB)
TestAsposePdf.zip (5.3 KB)

var doc = new Document();
var page = doc.Pages.Add();

var background = new BackgroundArtifact
    BackgroundImage = Assembly.GetExecutingAssembly().GetManifestResourceStream("TestAsposePdf.bg.png"),                 IsBackground = false  };
var fragment = new TextFragment(
            "Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
            "sed do eiusmod tempor incididunt ut labore et dolore magna " +
            "aliqua. Ut enim ad minim veniam, quis nostrud exercitation " +
            "ullamco laboris nisi ut aliquip ex ea commodo consequat. " +
            "Duis aute irure dolor in reprehenderit in voluptate velit esse " +
            "cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat " +
            "cupidatat non proident, sunt in culpa qui officia deserunt " +
            "mollit anim id est laborum.")
    TextState = {FontSize = 12, LineSpacing = 6}

for (int i = 0; i < 30; i++)



Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45064 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.