How can I include a company logo into a PDF stylesheet?

Simon Mayr April 19, 2018

For export of single sites into PDF, I created a CSS stylesheet as explained in documentation (https://confluence.atlassian.com/confcloud/advanced-pdf-export-customizations-724764827.html)

In this template I'd like to add a company logo on the right header. How does the syntax needs to be. I tested this sample without success:

@page
{
    @top-right
    {
        content: /download/attachments/4882447/xxx_logo.jpg
    }
}

 Is there also a function that can include the site's title into the header, so it is shown on every page of the PDF file?

Thanks a lot for your support.

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2018

Hi Simon,

Can you reference the URL as a URL in your CSS?

There's an example here:

Example:

content: url ("url/to/logo.jpg");

Regards,
Shannon 

Simon Mayr April 19, 2018

Hi Shannon,

Thanks for the hint but also this

content: url ("/download/attachments/4882447/xxx_logo.jpg");

is showing only an empty header - also with the full adress  https://...
:-( 

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2018

Simon,

Alright, do the other suggestions work from that thread, perhaps? I'm not that familiar with CSS personally but it seems that some users were able to get it to work with the examples there.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events