Hi, I am developing a script on groovy which compiles a table of content "manually" and then includes the children documents before exporting to PDF. So finally compiled document content looks like " =={{{ }}}[[1. Software Requirements Specification>>#H1.SoftwareRequirementsSpecification-1]]== ==={{{ }}}[[1.1. Use cases>>#H1.1.Usecases-1]]=== ===={{{ }}}[[1.1.1. Bite registration and occlusal clearance UC ...... ...... == 1. Software Requirements Specification== {{include document="Polaris.SoftwareRequirementsSpecification" context="new"/}} === 1.1. Use cases=== {{include document="Polaris.Use cases" context="new"/}} ...... " But when I export the document to PDf my compiled TOC(which is rather large) is not carried on the next page, it is just cut in the middle. The Export to RTF passes ok with carrying the TOC on the next page. Could somebody help to understand where is the problem? Thanks, elena