Skip to content

Tag: apache-fop

Apache FOP – is there a way to embed font programmatically?

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

Apache FOP embedded remote fonts

I’m using Apache FOP v2.1 embedded in a Java program. I’m trying to retrieve a remote font using a configuration file similar to the following: However, when I run the application to generate a PDF file from XML and XSL files it gives me an error: By checking the source code of FOP I discovered that FOP is trying to