diff --git a/pdf/plugin.jelly b/pdf/plugin.jelly index 4f442943..e2a1d042 100644 --- a/pdf/plugin.jelly +++ b/pdf/plugin.jelly @@ -102,6 +102,7 @@ maven.pdf.cover.date = [${maven.pdf.cover.date}] maven.pdf.projectLogo = [${maven.pdf.projectLogo}] maven.pdf.companyLogo = [${maven.pdf.companyLogo}] maven.pdf.createBookmarks = [${maven.pdf.createBookmarks}] +maven.pdf.generateTOC = [${maven.pdf.generateTOC}] maven.jar.jimi = [${maven.jar.jimi}] maven.jar.jaicore = [${maven.jar.jaicore}] maven.jar.jaicodec = [${maven.jar.jaicodec}] @@ -170,6 +171,12 @@ plugin.currentVersion = [${plugin.currentVersion}] + + + + + + diff --git a/pdf/plugin.properties b/pdf/plugin.properties index e7df310f..e59a351d 100644 --- a/pdf/plugin.properties +++ b/pdf/plugin.properties @@ -21,6 +21,8 @@ # PDF plugin. # ------------------------------------------------------------------- maven.pdf.confidential=false +# generateTOC: may be 'start', 'end' or 'none' +maven.pdf.generateTOC=start maven.pdf.paperType=A4 maven.pdf.companyIncName=${pom.organization.name} #maven.pdf.copyrightYear=Not defined by default diff --git a/pdf/src/plugin-resources/project2fo.xslt b/pdf/src/plugin-resources/project2fo.xslt index 107a3eb8..cea7e26d 100644 --- a/pdf/src/plugin-resources/project2fo.xslt +++ b/pdf/src/plugin-resources/project2fo.xslt @@ -43,6 +43,7 @@ 0.5 0.3 false + start abcdefghijklmnopqrstuvwxyz @@ -70,8 +71,13 @@ - + + + + + + diff --git a/pdf/xdocs/changes.xml b/pdf/xdocs/changes.xml index 0b7118c7..e66bd7a1 100644 --- a/pdf/xdocs/changes.xml +++ b/pdf/xdocs/changes.xml @@ -26,8 +26,11 @@ + New property + maven.pdf.generateTOCto specify the position of the Table of Contents. This can be used to work around some memory problems with large files. + Add support for ]]> and ]]> tags. - PDF generates content for ]]>. + PDF generates content for ]]> . Unable to remove cover type and version. diff --git a/pdf/xdocs/properties.xml b/pdf/xdocs/properties.xml index cdceb4c8..2117d4e1 100644 --- a/pdf/xdocs/properties.xml +++ b/pdf/xdocs/properties.xml @@ -88,6 +88,16 @@ Yes false + + maven.pdf.generateTOC + + If/Where to generate the Table of Contents. Possible values are 'start' (default), 'end' and 'none'. + Use this in particular if you experience memory problems with large documents: moving the Table of Contents to the end of the file, + or excluding it, greatly reduces memory consumption. + + Yes + start + maven.pdf.navigationFile Filename for the navigation file used to generate the