Skip to content

Commit

Permalink
Support exporting each visualization of a composite report as a separ…
Browse files Browse the repository at this point in the history
…ate slide in a presentation instead of drawing everything into a single slide.
  • Loading branch information
tung-jin-chew-hp committed Mar 2, 2017
1 parent 1bce76d commit 760f131
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,12 @@ public HttpEntity<byte[]> graph(

@RequestMapping(value = PPT_REPORT_PATH, method = RequestMethod.POST)
public HttpEntity<byte[]> report(
@RequestParam("data") final String dataStr
@RequestParam("data") final String dataStr,
@RequestParam(value = "multipage", defaultValue = "false") final boolean multipage
) throws IOException, TemplateLoadException {
final ReportData report = objectMapper.readValue(dataStr, ReportData.class);

final XMLSlideShow ppt = pptService.report(report);
final XMLSlideShow ppt = pptService.report(report, multipage);

return writePPT(ppt, "report.pptx");
}
Expand Down

0 comments on commit 760f131

Please sign in to comment.