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

API/samples for dealing with template pages in PDF?

How in C# do I do something like this Acrobat Javascript?

var t = this.templates; for ( var i=0; i < t.length; i++) { if('Disclaimer' == t[i].name) t[i].hidden = false; }

Your class


Doesn't seem to be related to the Adobe template feature, or at least it doesn't list a "Hidden" attribute.

3 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team April 3, 2023 12:02 PM UTC

Syncfusion PDF library provides support to Layers, also known as Option Content refers to sections of content in a PDF document that can be selectively viewed or hidden by document authors or consumers. This capability is useful in items such as CAD drawings, layered artwork, maps, and multi-language documents.

Essential PDF provides support to create, add and merge the layers into a PDF document.

We have created a simple sample for your requirement, Please try this on your end and let us know the result:


Follow the below links for more information,


HE Henry April 3, 2023 12:16 PM UTC

Yes, the confusion here is that SyncFusion templates are Acrobat layers and hence not at all related to Acrobat template pages.  See https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#createtemplate

IJ Irfana Jaffer Sadhik Syncfusion Team April 5, 2023 12:11 PM UTC

A PDF template is a drawing surface, where contents can be added. All the elements that can be added to a PdfPage are supported in PdfTemplate as well. The template in turn can be drawn over the page or can be positioned at any part of the page.

We have created a sample for your reference. 

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Create-a-new-PDF-document-606875364

Follow the below links for more information,


Live Chat Icon For mobile
Up arrow icon