Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Can we embed external javascript visualization objects in Pentaho reports?

  1. #1
    Join Date
    May 2017

    Question Can we embed external javascript visualization objects in Pentaho reports?

    We have an existing application built on node.js, looking to bolt in the Community Reporting module but very important to be able to preserve, embed, and link to our existing code for interoperability and to avoid rewrite. Any luck? Thx

  2. #2
    Join Date
    Mar 2003


    Expose your visualisation as raster image or SVG that is reachable via a HTTP GET call and you can do that easily for all output formats. If you have a choice - supply SVG as this allow beautiful high-resolution print outs for PDF.

    Otherwise you can embed custom HTML via the "html::extra-raw-content" attribute. Put global stuff on to the master-report, and element specific ones on to the element itself. The engine will not interpret that injected code - any syntax errors are your fault - but obviously this injection will only work in the browser, not in Print, PDF or any other output format.

    If your visualisation requires a full browser to run you could always cheat and run that code in PhantomJS or a Webkit-to-html engine and generate a PNG (screenshot) or SVG (for instance via canvas2svg.js).
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.