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.
Unfortunately, activation email could not send to your email. Please try again.

Set PDFDocument background.

Thread ID:





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

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 04:31 AM

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.

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.