Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      A new Camel FOP component could be helpful to turn Camel into a kind of printout and report generation system.

      A typical use case could be something like:

      from("amq:my.document.queue")
      .to("xslt:mystylesheet.xsl")
      .to("fop:pdf?some.extra.options.here")
      .to("file:outputdirectory")
      .to("printer:some.printer");

      1. camel-fop.diff
        42 kB
        Bilgin Ibryam

        Issue Links

          Activity

          Hide
          Jean-Baptiste Onofré added a comment -

          Patch in progress.

          Show
          Jean-Baptiste Onofré added a comment - Patch in progress.
          Hide
          Bilgin Ibryam added a comment -

          A camel-fop component that generates PDF (and other formats) using Apache FOP project

          Show
          Bilgin Ibryam added a comment - A camel-fop component that generates PDF (and other formats) using Apache FOP project
          Hide
          Christian Müller added a comment -

          org.apache.xmlgraphics:fop (and may some additional dependencies) is not an OSGI bundle. We need the SMX guys first to provide an OSGI bundle for the needed dependencies. I will request it on the SMX site...

          Show
          Christian Müller added a comment - org.apache.xmlgraphics:fop (and may some additional dependencies) is not an OSGI bundle. We need the SMX guys first to provide an OSGI bundle for the needed dependencies. I will request it on the SMX site...
          Hide
          Bilgin Ibryam added a comment -

          Thanks Christian, I forgot this part. I think this is the only dependency needed.
          Tests also use apache pdfbox to read the pdf content but I'm not sure if test dependencies need to be as OSGI bundle

          Show
          Bilgin Ibryam added a comment - Thanks Christian, I forgot this part. I think this is the only dependency needed. Tests also use apache pdfbox to read the pdf content but I'm not sure if test dependencies need to be as OSGI bundle
          Hide
          Christian Müller added a comment -

          From the pom, I see the following dependencies where we doesn't have an OSGI bundle:
          org.apache.xmlgraphics:fop:1.0
          org.apache.xmlgraphics:xmlgraphics-commons:1.4
          org.apache.xmlgraphics:batik-svg-dom:1.7
          org.apache.xmlgraphics:batik-bridge:1.7
          org.apache.xmlgraphics:batik-awt-util:1.7
          org.apache.xmlgraphics:batik-gvt:1.7
          org.apache.xmlgraphics:batik-transcoder:1.7
          org.apache.xmlgraphics:batik-extension:1.7
          org.apache.xmlgraphics:batik-ext:1.7
          org.apache.avalon.framework:avalon-framework-api:4.3.1
          org.apache.avalon.framework:avalon-framework-impl:4.3.1

          A lot...

          Show
          Christian Müller added a comment - From the pom, I see the following dependencies where we doesn't have an OSGI bundle: org.apache.xmlgraphics:fop:1.0 org.apache.xmlgraphics:xmlgraphics-commons:1.4 org.apache.xmlgraphics:batik-svg-dom:1.7 org.apache.xmlgraphics:batik-bridge:1.7 org.apache.xmlgraphics:batik-awt-util:1.7 org.apache.xmlgraphics:batik-gvt:1.7 org.apache.xmlgraphics:batik-transcoder:1.7 org.apache.xmlgraphics:batik-extension:1.7 org.apache.xmlgraphics:batik-ext:1.7 org.apache.avalon.framework:avalon-framework-api:4.3.1 org.apache.avalon.framework:avalon-framework-impl:4.3.1 A lot...
          Hide
          Christian Müller added a comment -

          I raised a JIRA for XML Graphics to get OSGI bundles in the future...

          https://issues.apache.org/bugzilla/show_bug.cgi?id=52140

          Show
          Christian Müller added a comment - I raised a JIRA for XML Graphics to get OSGI bundles in the future... https://issues.apache.org/bugzilla/show_bug.cgi?id=52140
          Hide
          Christian Müller added a comment -

          For
          org.apache.avalon.framework:avalon-framework-api:4.3.1
          org.apache.avalon.framework:avalon-framework-impl:4.3.1
          SMX already provides OSGI bundles...

          Show
          Christian Müller added a comment - For org.apache.avalon.framework:avalon-framework-api:4.3.1 org.apache.avalon.framework:avalon-framework-impl:4.3.1 SMX already provides OSGI bundles...
          Hide
          Christian Müller added a comment -

          We may also need an OSGI bundle for pdfbox, because we want also provide OSGI integration test for all our components. But may we can "wrap" the pdfbox and generate the OSGI bundle on the fly...
          Jean-Baptiste, what do you think?

          Show
          Christian Müller added a comment - We may also need an OSGI bundle for pdfbox, because we want also provide OSGI integration test for all our components. But may we can "wrap" the pdfbox and generate the OSGI bundle on the fly... Jean-Baptiste, what do you think?
          Hide
          Bilgin Ibryam added a comment -

          I'm working on committing my old patch here, but I'm not sure how karaf/sevicemix works.
          Looking at SMX4-963, I see there are 3 boundles: batik, for and xmlgraphiocs. Do I need to add all of them camel platform features or only fop bunlde?

          Show
          Bilgin Ibryam added a comment - I'm working on committing my old patch here, but I'm not sure how karaf/sevicemix works. Looking at SMX4-963 , I see there are 3 boundles: batik, for and xmlgraphiocs. Do I need to add all of them camel platform features or only fop bunlde?
          Hide
          Jean-Baptiste Onofré added a comment -

          Hi Bilgin, I gonna help you on this part.

          Show
          Jean-Baptiste Onofré added a comment - Hi Bilgin, I gonna help you on this part.
          Hide
          Bilgin Ibryam added a comment -

          Thanks Jean, I already committed it to trunk, I only have to add the documentation, which I am hoping to do these days

          Show
          Bilgin Ibryam added a comment - Thanks Jean, I already committed it to trunk, I only have to add the documentation, which I am hoping to do these days
          Hide
          Bilgin Ibryam added a comment -

          Documentation added.

          Show
          Bilgin Ibryam added a comment - Documentation added.

            People

            • Assignee:
              Bilgin Ibryam
              Reporter:
              Jean-Baptiste Onofré
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development