Images not present when generating PDFs

book

Article ID: 136621

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

After upgrading or installing 3.7.3 or later

When printing/emailing dashboards/reports/context pages, the PDF reports do not show images.

The CSV and web formats show data/images without issues.

Error seen in PCService.log:

INFO  | qtp123456789-1234        | YYYY-MM-DD HH:MM:SS,### | org.apache.fop.apps.FOUserAgent                                  
      | Rendered page ##.
ERROR | qtp123456789-1234        | YYYY-MM-DD HH:MM:SS,### | org.apache.fop.apps.FOUserAgent                                  
      | Image not available. URI: (instream-object). Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for null (No context info available)
org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for null
 at org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181)
 at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:317)
 at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:289)
 at org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1312)
...

no charts in emails, charts missing from emails.

Cause

Missing OS package fontconfig.

Environment

Release: All supported releases requiring the fontconfig package

Resolution

  1. Install fontconfig package if not present.

  2. Restart the console process:

        systemctl restart caperfcenter_console

Additional Information

If you run rpm  -qa |grep fontconfig and you find it is installed then run the following command which will list available fonts:

fc-list 

If that command produces no results then fontconfig should be updated with the following command:

yum upgrade fontconfig  

If you run fc-list again you should now see a list of available fonts.  The version of fontconfig that we know works is fontconfig-2.13.0-4.3.el7.x86_64.  After updating fontconfig you should once again restart the console service with the following command for RHEL 7: 

systemctl restart caperfcenter_console

or for RHEL 6.x

/etc/init.d/caperfcenter_console [stop/start