Highlighted
Roast Chef
Roast Chef

Output Document - Cover Page

Hi All,

Quick question does anybody know how to insert a full image cover page into an output document. We have launched quoting in the field to our field service team and would like to add a cover page to the document.

I have found the below piece of HTML but will need to remove the URL reference and replace it with a reference to an image stored within our Salesforce environment.

$html = '<div style="

    background: url('.$imageSource.') center center no-repeat;

    position: absolute;

    overflow: hidden;

    height: 297mm;

    width: 100%;

    background-size: cover;

    top: 0;

    left: 0;

"></div>';

I will also be adding a page break to ensure formatting is respected when the document is generated.

Cheers,

Brenden