Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Export to PDF with image within header and footer on all pages

Ted Lin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 13, 2020

I am not a developer or programer however, I have been trying to play around with the pdf stylesheet and cannot get it working as I would like it. 

I am trying to place an image within the header and footer on all pages that are exported however, with the code below. I am only getting it on the first page. Any ideas?

on the @bottom-right. If I remove the background-image within that section. the page counter displays on every page. However, when having it there. It only appears on the first page...

@pagetTeng
{
@Top-center
{
background-image: url("download/thumbnails/888766476/Artboard2%20(2).png?api=v2");
height: 250px;
width: 100%;
}
@bottom-right
{
content: "Page " counter(page);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
background-image: url("download/thumbnails/888766476/Artboard2%20(2).png?api=v2");
height: 250px;
width: 100%;
}

}

1 answer

0 votes
Tom Rough
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2020

Hi @Ted Lin , thanks for the post. Had you also checked the answer provided in this post which covered a similar topic?

Additionally, had you considered using a Marketplace app to achieve the formatting for your PDF exports? We (K15t) develop Scroll PDF Exporter which comes with a built in template editor that makes it easy for non-programmers/developers to achieve the required formatting for their exports. If you're interested you can read more here and can trial the app for free from the Atlassian Marketplace listing. 

Hope this information helps.

Cheers, Thomas (K15t)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events