Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Environment:All
-
Number of attachments :2
Description
I have completely re-written 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.
-
Hide
- maven-pdf-plugin-2.0.jar
- 08/Jan/04 9:09 AM
- 408 kB
- Arnaud Heritier
-
- META-INF/LICENSE.txt 3 kB
- META-INF/MANIFEST.MF 0.4 kB
- plugin.jelly 6 kB
- plugin.properties 0.8 kB
- plugin-resources/fo-body.xslt 17 kB
- plugin-resources/fo-layouts.xslt 2 kB
- plugin-resources/fonts/gara.ttf 192 kB
- plugin-resources/fonts/garabd.ttf 194 kB
- plugin-resources/fonts/garait.ttf 184 kB
- plugin-resources/fonts/ttf-gara.xml 28 kB
- plugin-resources/fonts/ttf-garabd.xml 28 kB
- plugin-resources/fonts/ttf-garait.xml 28 kB
- plugin-resources/fo-table-column-widths.xslt 11 kB
- plugin-resources/fo-tables.xslt 18 kB
- plugin-resources/fo-toc.xslt 9 kB
- plugin-resources/project2fo.xslt 7 kB
- plugin-resources/userconfig.xml 2 kB
- project.properties 0.3 kB
- project.xml 2 kB
-
- maven-pdf-plugin-2.0.tar.gz
- 24/Jun/03 9:13 AM
- 409 kB
- Andrew Jaquith
Activity
I'm not very familiar at all with the pdf plugin, but I'd like to suggest renaming it to address the source file format, not the target output format.
The 'latex' plugin, for example, can produce PDFs also, but from LaTeX sources.
The plug-in also requires an updated Batik jar, which is the version that comes with FOP 0.20.5-rc3-alpha (attached).
I take that back; the Batik jar is too big. However, it is the Batik jar found in the most recent FOP binary distribution.
Here's the link to the FOP binary:
http://xml.apache.org/dist/fop/fop-0.20.5rc3a-bin.tar.gz
When added to the repository, it ought to have (per dion's recommendation) the filename batik-1.5-0.20-5.rc3.jar... that is what is in the plug-in's project.xml.
this is an existing plugin, and i'm not too keen on renaming it....
It converts xdocs -> pdf. Same way the site plugin produces html from the xdocs.
New link to FOP binaries :
http://mir2.ovh.net/ftp.apache.org/dist/xml/fop/fop-0.20.5-bin.zip
You need to extract the fop and the batik jars and put them in your local repository.
Rename them : batik-1.5-fop-0.20-5.jar and fop-0.20.5.jar.
Modify the project.xml to update dependencies.
fo-cover.xslt is missing.
You need to remove it from the project2fo.xslt
Updated jar plug-in.
copy it in your MAVEN_HOME/plugins to use it.
- Dependencies to fop 0.20-5 final jar. See comments to download and install it.
- Dependency to fo-cover.xslt removed from project2fo.xslt.
I tested the plugin for commit it to cvs but there are some problems.
- it's necessary to have thead tag arround tr/th. I prefer test if thead is present, and if not use only tr/th
- pdf doens't work with maven xodc content due to duplicate fo:block id
It's an excellent work, I'll update it in cvs when problems are resolved.
For the cover page, we can have the project name and the short description.
I'm agree with you.
I'll try to correct the thead limitation and the cover page when possible.
I tested the plugin with maven changes page and maven dependencies page and it worked (after plugins modifications to generate thead tags).
With which page had you a problem ??
Checkout maven cvs and generate the pdf for the full content.
...
[java] [INFO] area contents overflows area in line
[java] [ERROR] file:/D:/cvs_repo/jakarta/maven/target/pdf/project.fo:2660:37 The id "/
start/download.html" already exists in this document
[java] org.apache.fop.apps.FOPException: file:/D:/cvs_repo/jakarta/maven/target/pdf/pr
oject.fo:2660:37 The id "/start/download.html" already exists in this document
[java] at org.apache.fop.datatypes.IDReferences.createID(IDReferences.java:119)
[java] at org.apache.fop.fo.flow.Block.layout(Block.java:203)
[java] at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
[java] at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
[java] at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:40
0)
[java] at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
[java] at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
[java] at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
[java] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
[java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spatcher.dispatch(Unknown Source)
[java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own Source)
[java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[java] at org.apache.fop.apps.Driver.render(Driver.java:498)
[java] at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
[java] at org.apache.fop.apps.Fop.main(Fop.java:62)
[java]
[java]
It's done in the plugin's HEAD branch (release 2.0-SNAPSHOT).
Thanks a lot to the work done by Andrew Jaquith.
Here is the tarball for the plug-in...