It works fine in a Console Application. I extracted the code into a method however when I run the code in a Class Library Project, I get the following error at the line:
- Code: Select all
org.docx4j.Docx4J.toPDF(wordMLPackage, fos);
Message: "The type initializer for 'org.docx4j.fonts.IdentityPlusMapper' threw an exception."
Inner Exception: "No dir configured for temp fonts! Either set system property user.home to a writable dir, or configure docx4j property ...