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.
Syncfusion Feedback

Set PDFDocument background.

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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.

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

;