// Create a new workbook Workbook workbook = new Workbook(); //Load template file from resource InputStream templateFile = this.getResourceStream("xlsx/Template_EmbedFontForFormFields.xlsx"); workbook.open(templateFile); //Init template global settings workbook.getNames().add("TemplateOptions.EmbedFontForFormFields", "false"); //Invoke to process the template workbook.processTemplate(); // Save to a pdf file workbook.save("EmbedFontForFormFields.pdf");