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
close icon

how do you go about insert page number in the header

how do you go about insert page number in the header

1 Reply

RT Ramya Thirugnanam Syncfusion Team January 7, 2019 07:10 AM UTC

Hi Sampurnima, 
 
Currently, we don’t have support for inserting page number directly in to header region. But, we have support for inserting page number at current cursor position. We have provided code example to represent this. Please find the code example as below. 
 
/** 
* Initialize document editor 
*/ 
let documenteditor: DocumentEditor = new DocumentEditor(); 
 
documenteditor.appendTo("#container") 
 
// Insert Page number at current cursor position  
documenteditor.editor.insertPageNumber(); 
 
 
Regards, 
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon