Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

casperreports

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casperreports

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

CasperReports

V 0.1.0

Casper wraps a jRuby sheet over the jasper reporting engineto make it more ruby friendly. Just like your friendly ghost :-)

Requirements

This gem requires jruby > 1.6.0

Install

gem install casperreports

Input Paramters

  • JasperReport Template or jrxml file (String of XML)
  • Xml Data (String of XML)
  • XPath Selection (String)
  • Type ('pdf','xls')

How does it work?

Casper will use the JasperReports library to take the two xml documents along with the filter string to build a jasper report return the report as a pdf or xls, based on the type parameter.

Output

A pdf document in string of bytes

Usage Examples


require 'casper_reports'

movie_jrxml = open('moviereport.jrxml').read
movies = open('movies.xml').read

pdf_string = Casper.new.compile(movie_jrxml, movies, '//movie')
open('movie.pdf', 'wb').write(pdf_string)

FAQs

Package last updated on 29 Jun 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc