SAP Knowledge Base Article - Public

3761641 - How to make image "Float" over the words in Document generation template to Generate Document?

Symptom

It is needed to embed an image in document generation template to generate document. The image needs to float over the words.

Environment

SAP SuccessFactors Employee central

  • Document Generation 

Resolution

  1. Click the three dots in Template content to edit the style in "Show Source Code" in Document Generation Template
  2. Using below script 
    •   <div style="position: relative;">

          <p style="margin: 0; padding: 20px;">

            This is background words。

          </p>

          <img  src="your-image.png"  style=" position: absolute; top: 50%; left: 50%; opacity: 1; " />

      </div>

  3. Change parameters to fit your requirement

See Also

Keywords

document generation, document template, image, picture, jpeg, jpg, png, embed, go through, float over, floating
, KBA , LOD-SF-EC-DOC , Document Generation , Known Error

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Core all versions ; SAP SuccessFactors HCM Suite all versions