Package org.saiku.web.svg

Examples of org.saiku.web.svg.PdfReport


      @PathParam("queryname") String queryName,
      @PathParam("format") String format,
      @FormParam("svg") @DefaultValue("") String svg) {

    try {
      PdfReport pdf = new PdfReport();
      CellDataSet cs = null;
      if (StringUtils.isNotBlank(format)) {
        cs = olapQueryService.execute(queryName, format);
      } else {
        cs = olapQueryService.execute(queryName);
      }

      byte[] doc = pdf.pdf(cs, svg);
      return Response.ok(doc).type("application/pdf").header(
          "content-disposition",
          "attachment; filename = export.pdf").header(
          "content-length", doc.length).build();
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.saiku.web.svg.PdfReport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.