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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using a pdf document as a template

Thread ID:

Created:

Updated:

Platform:

Replies:

72140 Mar 5,2008 01:03 AM UTC Mar 5,2008 12:52 PM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Devon Dorrity
Asked On March 5, 2008 01:03 AM UTC

I would like to use an existing pdf document as a template for creating reports. In this case, I want to use our company's letterhead as a template and use it on every page. Is this possible? I am having a difficult time figuring out how this is done.


Administrator [Syncfusion]
Replied On March 5, 2008 12:52 PM UTC

Hi Devon,

Thank you for your interest in Syncfusion products.

1.I would like to use an existing pdf document:

We don't have support for open an existing PDF documnet in our new PDF. In our PDF legacy version, we can open the existing PDF documents. We can read the PDF document only page by page. But Reading feature for new PDF will be available in our next release, it’s in under development.

2.I want to use our company's letterhead as a template and use it on every page. Is this possible?

Essential PDF has support for drawing a Header and a Footer to a pdf document. It is possible to display company's letterhead on every page by using Addheader. Please refer the below code snippet:


[C#]
PDFDocument pdfDoc = new PDFDocument(Server.MapPath(@"Data\sample1.pdf"));


foreach (IPDFPage p in pdfDoc.Pages)
{
PDFTemplateArea header = AddHeader(pdfDoc , "Company Logo ","customer");
p.Header = header;
}



Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/PDF.Web/6.1.0.34_Legacy/72140/main.htm

Please try this and let me know if this helps.

Regards,
G.Yavana





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

;