// Create a new workbook Workbook workbook = new Workbook(); InputStream fileStream = this.getResourceStream("json/CellButtons.json"); workbook.fromJson(fileStream); // Save to a pdf file workbook.save("CellButtons.pdf");