@FormParam("svg") @DefaultValue("") String svg) {
try {
CellDataSet cs = thinQueryService.getFormattedResult(queryName, format);
QueryResult qr = RestUtil.convert(cs);
PdfReport pdf = new PdfReport();
byte[] doc = pdf.pdf(qr, svg);
return Response.ok(doc).type("application/pdf").header(
"content-disposition",
"attachment; filename = export.pdf").header(
"content-length", doc.length).build();
} catch (Exception e) {