Hi,
Thanks for your feedback.
Yes sure. I'll inform you in time when we release the maven version.
String inputFile="data/before.docx";
String fontFile="data/gulim.ttc";
String outputFile="output/after_embedNoninstalledFonts.pdf";
Document document = new Document();
document.loadFromFile(inputFile);
//embed the non-installed fonts.
ToPdfParameterList parms = new ToPdfParameterList();
List<PrivateFontPath> fonts = new ArrayList<PrivateFontPath>();
fonts.add(new PrivateFontPath("Gulim", fontFile));
parms.setPrivateFontPaths(fonts);
//save the document to a PDF file.
document.saveToFile(outputFile, parms);
ToPdfParameterList ppl = new ToPdfParameterList();
ppl.isEmbeddedAllFonts(true);
List<PrivateFontPath> fonts = new ArrayList<PrivateFontPath>();
fonts.add(new PrivateFontPath("Gulim", getClass().getClassLoader().getResource("gulim.ttc").getPath()));
ppl.setPrivateFontPaths(fonts);
doc.saveToFile(filePath+type.getCode(), ppl);