githubbob42 / mingle2github2

0 stars 1 forks source link

Add ability to use a Background Image on PDF Report #5686

Open githubbob42 opened 5 years ago

githubbob42 commented 5 years ago

Mingle Card: 6050 In the PDF Report, we should implement a feature to be able to add a Background Image. This is currently not available right now in the PDF Reports.

We have a client, Key Energy, who uses a Background Image in their HTML Report but we do not currently support this same functionality in our PDF Reports.

Example from Client HTML Report:

**HTML Code**

{{#if FX5__Status__r.FX5__Prevent_Report__c '==' true}}
    html:after 
    {

      /* common custom values */
      content: "FOR INTERNAL USE ONLY"; /* your site name */
      font-size: 50px;         /* font size */
      color: rgba(255, 0, 0, .5);
      /* alpha, could be even rgba(0,0,0,.05) */

      /* rest of the logic */
      z-index: 9999;
      cursor: default;
      display: block;
      position: fixed;
      top: 33%;
      right: 0;
      bottom: 0;
      left: 15%;
      font-family: sans-serif;
      font-weight: bold;
      font-style: italic;
      text-align: center;
      line-height: 100%;

      /* not sure about who implemented what ..
        ... so bring it all */
      -webkit-pointer-events: none;
      -moz-pointer-events: none;
      -ms-pointer-events: none;
      -o-pointer-events: none;
      pointer-events: none;

      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);

      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      -o-user-select: none;
      user-select: none;
    }
    {{/if}}

**Image from their HTML Report**

!clip-338e-133f.png!

!clip-7cf5-0c40.png!

!clip-4edb-a52e.png!

!clip-c7e0-520e.png!

Related Stories

back_office/#1460