Search code examples
mavenapache-fopmaven-pdf-plugin

Maven project to generate a PDF file via apache fop


I'm looking for an example maven pom that will generate a PDF document from a XML document using xsl:fo transforms.


Solution

  • The best solution for this is to use the docbkx-maven-plugin which is really good to produce pdf's and HTML from the DocBook source. See in the example to get full overview how it works.

    <plugin>
      <groupId>com.agilejava.docbkx</groupId>
      <artifactId>docbkx-maven-plugin</artifactId>
      <version>2.0.14</version>
    </plugin>