lundi 25 février 2019

Apache FOP - is there a way to embed font programatically?

When creating a PDF using Apache FOP it is possible to embed a font with configuration file. The problem emerges when the app is a web application and it is necessary to embed a font that is inside WAR file (so treated as resource).

It is not acceptable to use particular container's folder structure to determine where exactly the war is located (when in configuration xml file we set tag to ./, it is set to the base folder of running container like C:\Tomcat\bin).

So the question is: Do anyone know the way to embed a font programatically?




Aucun commentaire:

Enregistrer un commentaire