From 2b594b50e4f1a210392d8f928dacbdeb209433b6 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Sun, 4 Dec 2005 08:06:18 +0000 Subject: [PATCH] Add PDF bookmarks. Thanks to Greg Ludington. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@353832 13f79535-47bb-0310-9956-ffa450edef68 --- pdf/plugin.jelly | 4 +++ pdf/plugin.properties | 1 + pdf/src/plugin-resources/fo-outline.xslt | 39 ++++++++++++++++++++++++ pdf/src/plugin-resources/project2fo.xslt | 5 +++ pdf/xdocs/changes.xml | 1 + pdf/xdocs/properties.xml | 6 ++++ 6 files changed, 56 insertions(+) create mode 100644 pdf/src/plugin-resources/fo-outline.xslt diff --git a/pdf/plugin.jelly b/pdf/plugin.jelly index 9772251a..1fe4adeb 100644 --- a/pdf/plugin.jelly +++ b/pdf/plugin.jelly @@ -99,6 +99,7 @@ maven.pdf.cover.version = [${maven.pdf.cover.version}] 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.jar.jimi = [${maven.jar.jimi}] maven.jar.jaicore = [${maven.jar.jaicore}] maven.jar.jaicodec = [${maven.jar.jaicodec}] @@ -212,6 +213,9 @@ plugin.currentVersion = [${plugin.currentVersion}] + + + diff --git a/pdf/plugin.properties b/pdf/plugin.properties index d27a73ec..dfe57f82 100644 --- a/pdf/plugin.properties +++ b/pdf/plugin.properties @@ -25,6 +25,7 @@ maven.pdf.companyIncName=${pom.organization.name} #maven.pdf.copyrightYear=Not defined by default maven.pdf.imageDpi=75 maven.pdf.debug=false +maven.pdf.createBookmarks=false maven.pdf.navigationFile=navigation.xml maven.pdf.navigationFilePath=${maven.xdoc.src} maven.pdf.pdfName=${pom.artifactId}.pdf diff --git a/pdf/src/plugin-resources/fo-outline.xslt b/pdf/src/plugin-resources/fo-outline.xslt new file mode 100644 index 00000000..2ad76e74 --- /dev/null +++ b/pdf/src/plugin-resources/fo-outline.xslt @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pdf/src/plugin-resources/project2fo.xslt b/pdf/src/plugin-resources/project2fo.xslt index cc54b95b..0a45db9c 100644 --- a/pdf/src/plugin-resources/project2fo.xslt +++ b/pdf/src/plugin-resources/project2fo.xslt @@ -20,6 +20,7 @@ + @@ -41,6 +42,7 @@ 0.5 0.3 false + abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ @@ -58,6 +60,9 @@ + + + diff --git a/pdf/xdocs/changes.xml b/pdf/xdocs/changes.xml index c04e5417..52ef3a20 100644 --- a/pdf/xdocs/changes.xml +++ b/pdf/xdocs/changes.xml @@ -25,6 +25,7 @@ + New property maven.pdf.createBookmarks to create PDF bookmarks. Title and dates are incorrect when used with Maven 1.0.2. Identical ids in tables in different documents caused a build failure. Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : diff --git a/pdf/xdocs/properties.xml b/pdf/xdocs/properties.xml index 217fbc75..1d5e7346 100644 --- a/pdf/xdocs/properties.xml +++ b/pdf/xdocs/properties.xml @@ -81,6 +81,12 @@ 75 + + maven.pdf.createBookmarks + Add PDF bookmarks. + Yes + false + maven.pdf.navigationFile Filename for the navigation file used to generate the