I attached the source script.
What I meanwhile found, that if to put 3 times "\n" after each line in
the Toc, the TOC is split between the pages(method makeHeader() the
line toc = header_level_markup + spaces + "[[${toc}
${ucMarkup}${parentDoc.getTitle()}>>#H${toc}${ucMarkup}${cleanedTitle}-1
]]" + header_level_markup + "\n\n\n").
Thanks!
-----Original Message-----
From: devs-bounces(a)xwiki.org [mailto:devs-bounces@xwiki.org] On Behalf
Of Sergiu Dumitriu
Sent: Monday, July 30, 2012 8:00 PM
To: XWiki Developers
Subject: Re: [xwiki-devs] export to pdf: the content is not carried on
the next page
On 07/30/2012 05:29 AM, Elena Roman wrote:
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?
It might be a styling problem, meaning that the ToC is forced to be
displayed in just one unbreakable block. It would help if you provide
the intermediary FO file for debugging.