when using a ttf font file in JBoss EAP

Solution Verified - Updated -


A ttf font was installed on the operating system, but when trying to generate a pdf report by an application, the following error is generated:

05-06-2019 10:52:35,533 ERROR [com.itextpdf.html2pdf.css.parse.CssRuleSetParser] (default task-25) Invalid css property declaration: url('/usr/share/fonts/futura/FuturaStd-Book) format('truetype')
05-06-2019 10:52:35,543 ERROR [com.itextpdf.html2pdf.resolver.resource.ResourceResolver] (default task-25) Unable to retrieve stream with given base URI (file:/opt/jboss/jboss-eap-7.0/) and source path (/usr/share/fonts/futura/FuturaStd-Book.ttf): /opt/jboss/jboss-eap-7.0/usr/share/fonts/futura/FuturaStd-Book.ttf (No such file or directory)
        at Method) [rt.jar:1.8.0_172]
        at [rt.jar:1.8.0_172]
        at<init>( [rt.jar:1.8.0_172]
        at<init>( [rt.jar:1.8.0_172]
05-06-2019 10:52:35,571 ERROR [com.itextpdf.html2pdf.attach.impl.DefaultHtmlProcessor] (default task-25) Unable to retrieve font:
 @font-face {
    font-family: 'FuturaStd-Book'
    src: local(futurastd-book),url('/usr/share/fonts/futura/FuturaStd-Book.ttf') format('truetype')
05-06-2019 10:52:35,896 WARN  [com.itextpdf.html2pdf.css.resolve.DefaultCssResolver] (default task-25) Invalid css property declaration: color: rgb (76,84,109)


  • JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content