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. Image for the cookie policy date

How to get PdfTemplate from the PdfPage

Hi,

After creating PdfTemplate from the PdfPage(i.e Pdfpage.CreateTemplate()). I have Drawn some images on that PdfTemplate & saved the Pdf. Again after loading the pdf, How to get my PdfTemplate.

Thanks & Regards,
Vijay

1 Reply

KM Karthik M Syncfusion Team March 11, 2010 08:45 AM UTC

Hi Vijay,

Could you please try with the below code-snippet to access the existing page template and let us know if this helps.

[Code Snippet]

//Load the existing PDF document.
PdfLoadedDocument ldoc = new PdfLoadedDocument("Sample.pdf");

//Create new template from the existing page.
PdfPageBase page = ldoc.Pages[0];
PdfTemplate loadedTemplate = page.CreateTemplate();


Best Regards,
Karthik

Loader.
Live Chat Icon For mobile
Up arrow icon