}
private void addCrosstab(JSONObject content) {
try {
CrosstabPDFExporter csExporter = new CrosstabPDFExporter();
String crosstab = content.getString(WorkSheetXLSExporter.CROSSTAB);
JSONObject crosstabJSON = new JSONObject(crosstab);
csExporter.export(crosstabJSON, pdfDocument,numberFormat);
} catch (Exception e) {
throw new RuntimeException("Error while adding chart", e);
}
}