We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set PDFDocument background.

Thread ID:





69787 Nov 12,2007 02:35 PM UTC Nov 13,2007 09:31 AM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Asked On November 12, 2007 02:35 PM UTC

Is there any possibility to set PDFDocument background - like image, another pdf document
(impose two pdf documents)
Something like in Adobe Acrobat?

Administrator [Syncfusion]
Replied On November 13, 2007 09:31 AM UTC

Hi Vaks,

Thank you for your interest in syncfusion products.

The background to the Pdf document can be applied using DrawWatermark method.

The sample code snippet

String image = Server.MapPath (@"Data\Sunset.jpg");
pdfDoc.LastPage.Graphics.DrawWatermark (image, WatermarkImageType.Stretched);
//Draw some content on the page.
System.IO.StreamReader myFile = new System.IO.StreamReader(Server.MapPath(@"Data\SampleText.txt"));
String read = myFile.ReadToEnd ();

Please refer the sample in the below link


Please let me know if you have any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon