Skip to main content
Pentaho Documentation

Set a Default Font for PDF Exports

Before following this procedure, stop the Pentaho Server and the User Console.

When displaying data in Analyzer, your reports will use the default browser fonts. However, the PDF export function may not have the same fonts available to it when creating a PDF from your Analyzer report, resulting in output that doesn't look the same way in PDF format as it does in the browser. The default font for PDFs is Helvetica, but you can specify any TrueType font or collection to replace it. Follow the instructions below to specify a different font for PDF exports.

Note: If you have localized your schema in a language that uses a multi-byte character set (most Asian languages fit into this category), this process is required to make PDF output appear without errors.
  1. Edit the analyzer.properties file in the /pentaho/server/pentaho-server/pentaho-solutions/system/analyzer/ directory.
  2. Uncomment the renderer.pdf.font.path line.
    renderer.pdf.font.path=C:/WINDOWS/Fonts/MSGOTHIC.TTC,1
  3. Replace the value of this line with the TrueType font or collection that you want to use as the default. If you are specifying a collection, you must enter a ',1' after the font name, as shown in the above example. This does not apply to individual fonts (TTF files).
    renderer.pdf.font.path=/usr/share/fonts/truetype/freefont/FreeSans.ttf
  4. Save and close the file, and start the Pentaho Server.
Your PDF exports from Analyzer should have the font you specified.