diff --git a/pdf/plugin.jelly b/pdf/plugin.jelly index 4bec4591..c1d952ec 100644 --- a/pdf/plugin.jelly +++ b/pdf/plugin.jelly @@ -1,14 +1,47 @@ - + - + - - - - - + + + + + + + + + + + + + + + + + + + - - Generating ${docsDest}/project.fo ... - - - - - - - - - - - - - - - - - - - - - - + + ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')} + - + + + + + + + + + + + + + + + + + + + + + - Generating ${docsDest}/project.pdf ... - + + Generating ${docsPdf}/project.pdf ... + Config file: ${docsPdf}/userconfig.xml + - + + - + - + + - diff --git a/pdf/plugin.properties b/pdf/plugin.properties index d1a27c5a..106bd617 100644 --- a/pdf/plugin.properties +++ b/pdf/plugin.properties @@ -3,4 +3,18 @@ # ------------------------------------------------------------------- # PDF plugin. # ------------------------------------------------------------------- - +maven.pdf.confidential=false +maven.pdf.paperType=US +maven.pdf.companyName=Apache Software Foundation +maven.pdf.companyIncName=Apache Software Foundation, Inc. +maven.pdf.copyrightYear=2003 +maven.pdf.imageDpi=150 +maven.pdf.debug=false +# Reserved for future use... +maven.pdf.cover.projectCompany=Apache Software Foundation +maven.pdf.cover.projectName=Microsoft Windows Server 2003 with .NET Framework and IBM WebSphere +maven.pdf.cover.type=Research Report +maven.pdf.cover.version=1.0 +maven.pdf.cover.date=June 2, 2003 +maven.pdf.projectLogo=project_logo.gif +maven.pdf.companyLogo=company_logo.gif diff --git a/pdf/project.properties b/pdf/project.properties index 3b0eb828..df6f93f4 100644 --- a/pdf/project.properties +++ b/pdf/project.properties @@ -2,6 +2,6 @@ # P R O J E C T P R O P E R T I E S # ------------------------------------------------------------------- maven.xdoc.date=left -## maven.xdoc.version=${pom.currentVersion} -maven.license.licenseFile=${basedir}/../LICENSE.txt +maven.xdoc.version=${pom.currentVersion} +maven.license.licenseFile=${basedir}/../../../LICENSE.txt diff --git a/pdf/project.xml b/pdf/project.xml index 4b511b84..ab09dbf0 100644 --- a/pdf/project.xml +++ b/pdf/project.xml @@ -1,15 +1,17 @@ - ../project.xml + ${basedir}/../project.xml 3 - maven-pdf-plugin + maven + maven-pdf-plugin Maven PDF Plug-in - 1.2 + 2.0-SNAPSHOT - Create PDF version of site docs + Java Project Management Tools http://maven.apache.org/reference/plugins/pdf/ /www/maven.apache.org/reference/plugins/pdf/ + http://jira.codehaus.org/secure/BrowseProject.jspa?id=10356 scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/pdf/ http://cvs.apache.org/viewcvs/maven-plugins/pdf/ @@ -34,47 +36,50 @@ Release Manager + + Andrew Jaquith + arjaquith + arjaquith@mindspring.com + freshcookies.org + + Architect + Documentation + + - fop - fop - 0.20.5rc2 + fop + 0.20.5 - batik - batik - 1.1.1 + batik + 1.5-fop-0.20-5 - logkit - logkit + logkit 1.0.1 - avalon-framework - avalon-framework + avalon-framework 4.0 - xerces - xerces - 2.4.0 + xerces + 2.3.0 root - xml-apis - xml-apis + xml-apis 1.0.b2 root - xalan - xalan + xalan 2.4.1 diff --git a/pdf/src/plugin-resources/fo-body.xslt b/pdf/src/plugin-resources/fo-body.xslt new file mode 100644 index 00000000..13a309a0 --- /dev/null +++ b/pdf/src/plugin-resources/fo-body.xslt @@ -0,0 +1,488 @@ + + + + + + + + Garamond,serif + + + + Helvetica,sans-serif + #000000 + always + + + + monospace + + + + + 11pt + 12pt + true + + + + 10pt + + + + 8pt + wrap + false + black + dotted + 0.5pt + + 1.0em + 1.25em + 0.75em + 0.75em + inherited-property-value(start-indent) + 2.5em + inherited-property-value(end-indent) + 3em + 0.75em + 1em + + + + Helvetica,sans-serif + 9.0pt + + + + 16pt + bold + + + + 12pt + bold + 18pt + 6pt + + + + 9.5pt + bold + 18pt + 5pt + + + + 9.5pt + 15pt + 3pt + + + + 9.5pt + 9pt + 3pt + + + + 9.5pt + italic + 3pt + + + + + + 10pt + 6pt + + + + 100% + dots + 1pt + + + + + + 9.5pt + + 10pt + right + + + + + 2pt + Helvetica,sans-serif + 6pt + + + + + 2pt + Helvetica,sans-serif + 6pt + + left + + + + Helvetica,sans-serif + 9.5pt + right + black + + + + + black + + + + + 3pt + 6pt + + + + + inherited-property-value(start-indent) + 1em + 1em + + + + + inherited-property-value(start-indent) + .5em + 0.15em + 0.25em + + + + 1em + 1em + + + + 1em + 1em + + + + 1em + 1em + 0.6em + 0.6em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.125 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pdf/src/plugin-resources/fo-layouts.xslt b/pdf/src/plugin-resources/fo-layouts.xslt new file mode 100644 index 00000000..5985c36e --- /dev/null +++ b/pdf/src/plugin-resources/fo-layouts.xslt @@ -0,0 +1,73 @@ + + + + + + + 8.5 + 8.25 + 8.5 + + + + 11 + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pdf/src/plugin-resources/fo-table-column-widths.xslt b/pdf/src/plugin-resources/fo-table-column-widths.xslt new file mode 100644 index 00000000..65654bee --- /dev/null +++ b/pdf/src/plugin-resources/fo-table-column-widths.xslt @@ -0,0 +1,230 @@ + + + + + ----------111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999" + 5? 5? 5? 5? 5? 5? 5? 5? 5? 5? + + + 1 + 1 + ---------- + ---------- + + + + + + + + + 1 + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cell (,) text()='' rowspan= colspan= width= + Current cell mask : in out + Next row mask : in out + Estimated cell widths: + Cell widths so far : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + 1? + 0 + 0 + + + + + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + Columns= ( resizable), width=, leftover= + + + + + + + + + + + + + + 1 + 1 + 1? + 0 + 0 + 1 + + + + + + + + + + + + + + + in + + + + + + + + + + + + + + + + + diff --git a/pdf/src/plugin-resources/fo-tables.xslt b/pdf/src/plugin-resources/fo-tables.xslt new file mode 100644 index 00000000..4a1a99cb --- /dev/null +++ b/pdf/src/plugin-resources/fo-tables.xslt @@ -0,0 +1,408 @@ + + + + + + + + 2.5pt + 5pt + + + + Helvetica,sans-serif + 1.2em + + + + + + 9pt + 12pt + + + + always + always + + + + solid + 0.5pt + black + + + + 9.5pt + bold + + + + 5pt + + + + 7pt + italic + + + + 7pt + after + + + + 7pt + + + + + 100% + rule + + 0.5pt + black + + + + 6pt + + + + 7pt + italic + + + + always + always + + + + 1pt + + solid + 2.5pt + + after + + + + 7pt + bold + bottom + + + + always + always + + + + 100% + rule + 1pt + white + + + + 100% + dots + 0.5pt + + + + + 100% + rule + 0.5pt + black + + + + + 4pt + 1.5pt + + + + 7pt + + + + 7pt + + + + + + + + Warning: the supplied <table> did not contain a <thead> element. It was excluded from the generated XSL:FO file. + + + + + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + :::::: New table :::::: + + + + + + + + This table has a @title, so add a row for it + + + + + + + + + + + + + + + + This table has a caption, so add a row for it + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + Table heading bottom spacer + + + + + + + + + + + ::: Table heading row ::: + + + + + + + + : Table heading cell : + + + solid + 0.75pt + black + + + + + + + + + + ::: Subheading row ::: + + + + + + + + 1 + + + ::: Table body row ( columns) ::: + + + + + ::: Table row spacer for last row ::: + + + + Ending border (solid rule) + + + + + + + + 1 + + + + + ::: Table body row ( columns) ::: + + + + + ::: Table row spacer for row ::: + + + + + + + Spacer only + + + + + Regular border (rule) + + + + + Ending border (rule) + + + + + + + + + + : Table subheading cell : + + + + + + + + + + : Table body cell : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pdf/src/plugin-resources/fo-toc.xslt b/pdf/src/plugin-resources/fo-toc.xslt new file mode 100644 index 00000000..f56588c4 --- /dev/null +++ b/pdf/src/plugin-resources/fo-toc.xslt @@ -0,0 +1,216 @@ + + + + + + + after + + + + Helvetica,sans-serif + 16pt + start + no-wrap + + + + dots + 5pt + + + + + 9.5pt + end + + 16pt + 6pt + + + + 12pt + bold + 18pt + + + + 9.5pt + 15pt + 3pt + + + + 9.5pt + 4pt + + + + 9.5pt + 4pt + + + + + + + + + + + + + + + + + + + Table of Contents + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pdf/src/plugin-resources/fonts/gara.ttf b/pdf/src/plugin-resources/fonts/gara.ttf new file mode 100644 index 00000000..4188767d Binary files /dev/null and b/pdf/src/plugin-resources/fonts/gara.ttf differ diff --git a/pdf/src/plugin-resources/fonts/garabd.ttf b/pdf/src/plugin-resources/fonts/garabd.ttf new file mode 100644 index 00000000..1042d39f Binary files /dev/null and b/pdf/src/plugin-resources/fonts/garabd.ttf differ diff --git a/pdf/src/plugin-resources/fonts/garait.ttf b/pdf/src/plugin-resources/fonts/garait.ttf new file mode 100644 index 00000000..8f5ac554 Binary files /dev/null and b/pdf/src/plugin-resources/fonts/garait.ttf differ diff --git a/pdf/src/plugin-resources/fonts/ttf-gara.xml b/pdf/src/plugin-resources/fonts/ttf-gara.xml new file mode 100644 index 00000000..bfb067cf --- /dev/null +++ b/pdf/src/plugin-resources/fonts/ttf-gara.xml @@ -0,0 +1,2 @@ + +Garamond6390861-263-138-30610629863300TYPE0CIDFontType20 \ No newline at end of file diff --git a/pdf/src/plugin-resources/fonts/ttf-garabd.xml b/pdf/src/plugin-resources/fonts/ttf-garabd.xml new file mode 100644 index 00000000..e4cbe3c1 --- /dev/null +++ b/pdf/src/plugin-resources/fonts/ttf-garabd.xml @@ -0,0 +1,2 @@ + +Garamond6350861-263-146-37211679963300TYPE0CIDFontType20 \ No newline at end of file diff --git a/pdf/src/plugin-resources/fonts/ttf-garait.xml b/pdf/src/plugin-resources/fonts/ttf-garait.xml new file mode 100644 index 00000000..e45a93a5 --- /dev/null +++ b/pdf/src/plugin-resources/fonts/ttf-garait.xml @@ -0,0 +1,2 @@ + +Garamond6460861-263-216-3141128992970-12TYPE0CIDFontType20 \ No newline at end of file diff --git a/pdf/src/plugin-resources/project2fo.xslt b/pdf/src/plugin-resources/project2fo.xslt index 9db4ec9f..2ef69d20 100644 --- a/pdf/src/plugin-resources/project2fo.xslt +++ b/pdf/src/plugin-resources/project2fo.xslt @@ -1,447 +1,169 @@ - + + + + + + + + + + . + US + The Jakarta Project + Apache Software Foundation, Inc. + false + 2003 + 150 + + + Apache Software Foundation + Jakarta Maven + Project Documentation + 1.0 + January 1, 1901 + + + abcdefghijklmnopqrstuvwxyz + ABCDEFGHIJKLMNOPQRSTUVWXYZ + © + • All rights reserved + + • Proprietary and Confidential + + + #454545 + #A9A9A9 + #D3D3D3 + + #4b4542 - + -. + - - serif - + + + 8pt + bold + red + solid + 0.5pt + red + 0.75em + inherited-property-value(start-indent) + 2.5em + inherited-property-value(end-indent) + 3em + - - sans-serif - #000036 - - - 14pt - right - + - - 0.5em - 16pt - right - 5em - + + + - - 1.5em - 1.2em - 2.0em - - - - 1.0em - 0.8em - 1.2em - - - - no-wrap - false - monospace - gray - dotted thin gray - 0.5em - 0.5em - 0.5em - - - + - - - - - - - - - - + + - + - + + + + + + - + + + - + + + + . + + + - - - - Table of Contents - – - - - + + + + .. + + + + + + + ... + + + + + Foo + + + + + auto + + + 1 + + + + + + + + + + + +Href = + +Doc Name = + +Doc Path = + Creating XSL:FO for + + + + + + + + + - - - - - - - - - Table of Contents - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - – - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1em - - - 1em - - - - - inherit - - - - - 1em - 1em - - - - 1em - 1em - - - - 1em - - 1em - 0.6em - 0.6em - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + diff --git a/pdf/src/plugin-resources/userconfig.xml b/pdf/src/plugin-resources/userconfig.xml new file mode 100644 index 00000000..5d0f99b7 --- /dev/null +++ b/pdf/src/plugin-resources/userconfig.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pdf/xdocs/changes.xml b/pdf/xdocs/changes.xml index 4819c563..273a874e 100644 --- a/pdf/xdocs/changes.xml +++ b/pdf/xdocs/changes.xml @@ -6,6 +6,13 @@ + + + MAVEN-MPPDF-1. Completely re-writte of the PDF plug-in. It solves most of the thorniest + issues, such as table formatting, more levels in the table of contents, + and image sizing. The graphic design is also dramatically improved. + + update to use maven.docs.*/maven.gen.docs