Hello,
I've seen the different posts on Core Properties and how to create them. I have been successful in creating Core Properties (Author (dc:creator), Subject (dc:description) and Title (dc:title)). These are in my docx file after merging xml with a template. (I set the Core Properties with values found from xml).
The problem I'm having is that I can't get these Core Properties to show up in my PDF.
I set up the FO exporter and use Docx4j.toFO to generate the PDF. But I don't see where I should set a setting to convert Core Properties as well. (If such a setting/capability even exists.)
boolean saveFO = true;
FOSettings foSettings = Docx4J.createFOSettings();
if (saveFO) {
foSettings.setFoDumpFile(new java.io.File(outpdf + ".fo"));
}
foSettings.setWmlPackage(wordMLPackage);
OutputStream os = new java.io.FileOutputStream(outpdf);
Docx4J.toFO(foSettings, os, Docx4J.FLAG_EXPORT_PREFER_XSL);
I realize this is probably a FO question as opposed to a Docx4J question, but I'll ask here anyways. Has anyone had Core Properties brought over into a PDF from a DOCX using Docx4J? If so, do you have any sample code anywhere? Or something that can point me in the right direction?
Thank you for any assistance
Mike