// Create a new workbook Workbook workbook = new Workbook(); // Set Workbook.ValueJsonSerializer to deserialize the cell value in json Workbook.setValueJsonSerializer(new CustomObjectJsonSerializer()); InputStream fileStream = this.getResourceStream("json/RangeTemplate.json"); workbook.fromJson(fileStream); // Save to a pdf file workbook.save("RangeTemplate.pdf");