Page numbers not getting displayed for the Table of contents in the downloaded document

hi Team, I need to show the page numbers for the Table of Contents in the word document(rtf). Below is the piece of snippet code which is not working. The left hand title are displayed properly and when we click on that it takes to the appropriate page but the page numbers are not getting displayed. Just for debugging purpose I tried generate-id() but it doesnt do anything.Any inputs on making this work would be appreciated.Thanks  

Answers

  • Not sure which content type you are looking for. The DocumentDescriptionFactory use the RTFPortraitHeaderFooterFO.xml or RTFLandscapeHeaderFooterFO.xml style sheets which have a >
    I think it is also possible that Document or Search generate FO and might need a flag to include the page number? Or it could be a bug.