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

Free Support Forum - aspose.com

How do i add Background Text to each page (Watermark text as background) in aspose.pdf

Hi Team,



I am able to set background image with Aspose using below logic.

// Create a new Document object
Document doc = new Document();
// Add a new page to document object
Page page = doc.Pages.Add();
// Create BackgroundArtifact object
BackgroundArtifact background = new BackgroundArtifact();
// Specify the image for backgroundartifact object
background.BackgroundImage = File.OpenRead(“c:/pdftest/ANZAC+DAY+BBQ_out.jpg”);
// Add backgroundartifact to artifacts collection of page
page.Artifacts.Add(background);
// Save the document
doc.Save(“c:/pdftest/BackGround.pdf”);

I want to know how do i set the same with text. How can i set BACKGROUND TEXT for PDF page 

Hi Ravindra,


Thanks for contacting support.

Please visit the following link for required information on Adding Text Stamp in the PDF File