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:

Created:

Updated:

Platform:

Replies:

69787 Nov 12,2007 09:35 AM Nov 13,2007 04:31 AM ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Vaks
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

http://websamples.syncfusion.com/samples/PDF.Web/5.2.0.25_Pdf.Legacy/39017/main.htm

Please let me know if you have any questions.

Thanks,
Prakash


CONFIRMATION

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.

;