jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 1.x PDF Plugin
  • Maven 1.x PDF Plugin
  • MPPDF-1

PDF Plug-In 2.0

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major 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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Java Archive File
    maven-pdf-plugin-2.0.jar
    08/Jan/04 9:09 AM
    408 kB
    Arnaud Heritier
    1. Text File
      META-INF/LICENSE.txt 3 kB
    2. File
      META-INF/MANIFEST.MF 0.4 kB
    3. File
      plugin.jelly 6 kB
    4. File
      plugin.properties 0.8 kB
    5. File
      plugin-resources/fo-body.xslt 17 kB
    6. File
      plugin-resources/fo-layouts.xslt 2 kB
    7. File
      plugin-resources/fonts/gara.ttf 192 kB
    8. File
      plugin-resources/fonts/garabd.ttf 194 kB
    9. File
      plugin-resources/fonts/garait.ttf 184 kB
    10. XML File
      plugin-resources/fonts/ttf-gara.xml 28 kB
    11. XML File
      plugin-resources/fonts/ttf-garabd.xml 28 kB
    12. XML File
      plugin-resources/fonts/ttf-garait.xml 28 kB
    13. File
      plugin-resources/fo-table-column-widths.xslt 11 kB
    14. File
      plugin-resources/fo-tables.xslt 18 kB
    15. File
      plugin-resources/fo-toc.xslt 9 kB
    16. File
      plugin-resources/project2fo.xslt 7 kB
    17. XML File
      plugin-resources/userconfig.xml 2 kB
    18. File
      project.properties 0.3 kB
    19. XML File
      project.xml 2 kB
    Download Zip
    Show
    Java Archive File
    maven-pdf-plugin-2.0.jar
    08/Jan/04 9:09 AM
    408 kB
    Arnaud Heritier
  2. GZip Archive
    maven-pdf-plugin-2.0.tar.gz
    24/Jun/03 9:13 AM
    409 kB
    Andrew Jaquith

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andrew Jaquith added a comment - 24/Jun/03 9:13 AM

Here is the tarball for the plug-in...

Show
Andrew Jaquith added a comment - 24/Jun/03 9:13 AM Here is the tarball for the plug-in...
Hide
Permalink
bob mcwhirter added a comment - 24/Jun/03 9:21 AM

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.

Show
bob mcwhirter added a comment - 24/Jun/03 9:21 AM 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.
Hide
Permalink
Andrew Jaquith added a comment - 24/Jun/03 9:37 AM

The plug-in also requires an updated Batik jar, which is the version that comes with FOP 0.20.5-rc3-alpha (attached).

Show
Andrew Jaquith added a comment - 24/Jun/03 9:37 AM The plug-in also requires an updated Batik jar, which is the version that comes with FOP 0.20.5-rc3-alpha (attached).
Hide
Permalink
Andrew Jaquith added a comment - 24/Jun/03 9:44 AM

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.

Show
Andrew Jaquith added a comment - 24/Jun/03 9:44 AM 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.
Hide
Permalink
dion gillard added a comment - 24/Jun/03 7:15 PM

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.

Show
dion gillard added a comment - 24/Jun/03 7:15 PM 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.
Hide
Permalink
Arnaud Heritier added a comment - 08/Jan/04 8:34 AM

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.

Show
Arnaud Heritier added a comment - 08/Jan/04 8:34 AM 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.
Hide
Permalink
Arnaud Heritier added a comment - 08/Jan/04 8:37 AM

fo-cover.xslt is missing.
You need to remove it from the project2fo.xslt

Show
Arnaud Heritier added a comment - 08/Jan/04 8:37 AM fo-cover.xslt is missing. You need to remove it from the project2fo.xslt
Hide
Permalink
Arnaud Heritier added a comment - 08/Jan/04 9:09 AM

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.
Show
Arnaud Heritier added a comment - 08/Jan/04 9:09 AM 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.
Hide
Permalink
Emmanuel Venisse added a comment - 08/Jan/04 9:57 AM

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.

Show
Emmanuel Venisse added a comment - 08/Jan/04 9:57 AM 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.
Hide
Permalink
Arnaud Heritier added a comment - 08/Jan/04 10:08 AM

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 ??

Show
Arnaud Heritier added a comment - 08/Jan/04 10:08 AM 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 ??
Hide
Permalink
Emmanuel Venisse added a comment - 08/Jan/04 10:19 AM

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]

Show
Emmanuel Venisse added a comment - 08/Jan/04 10:19 AM 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]
Hide
Permalink
Arnaud Heritier added a comment - 08/Jan/04 10:30 AM

ok. I will look at this.

Show
Arnaud Heritier added a comment - 08/Jan/04 10:30 AM ok. I will look at this.
Hide
Permalink
Arnaud HERITIER added a comment - 23/Jan/04 4:15 PM

It's done in the plugin's HEAD branch (release 2.0-SNAPSHOT).
Thanks a lot to the work done by Andrew Jaquith.

Show
Arnaud HERITIER added a comment - 23/Jan/04 4:15 PM It's done in the plugin's HEAD branch (release 2.0-SNAPSHOT). Thanks a lot to the work done by Andrew Jaquith.

People

  • Assignee:
    Unassigned
    Reporter:
    Andrew Jaquith
Vote (0)
Watch (0)

Dates

  • Created:
    24/Jun/03 9:12 AM
    Updated:
    26/Jan/04 1:01 AM
    Resolved:
    26/Jan/04 1:01 AM

Time Tracking

Estimated:
20m
Original Estimate - 20 minutes
Remaining:
20m
Remaining Estimate - 20 minutes
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.