SAP Knowledge Base Article - Public

2572615 - Font difference in PDF view and HTML view of the Personal Statements

Symptom

The Compensation Statement font is different in Browser View when compared to the downloaded PDF view. Especially this happens with Custom Statements.

Environment

Compensation Statements

Reproducing the Issue

Go to Employee Profile --> Compensation Statements.

Click on the Statement Link. This will open the Statement in HTML view i.e. in the Browser. Note this font.

Now click on the download icon which will download the statement as PDF. We note that there is a difference in the font of these two views.

Cause

Only Arial font is supported for pd4ml in SF Bizx. For pd4ml a list of fonts (and its utf file) is to be declared in the pd4ml.properites. And for bizx only Arial is present, hence when generating the pdf using pd4ml all the content will be in Arial font style.
In HTML view there can be any font. But when the statement is downloaded as PDF, only Arial font is present.

Hence the difference.

NOTE: PD4ML library is used for generating the statement pdf from html, there are known limitations with PD4ML when it comes to the html and css elements that it supports. Please make sure if a customer introduces any css styling or html tags in the statement template, they should be supported by PD4ML. PD4ML documentation can be found at their support side. Please note, SF is still at an older version 3.7.x

Keywords

Personal Statement PDF view , KBA , LOD-SF-CMP-PS , Personal Statements , Problem

Product

SAP SuccessFactors Learning all versions