Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

PDF Exporter footer (single page) Edited

Dear all, 

I've been busy trying to style the PDF exporter for a single page according to our corporate Identy. Know I'm stuck on two parts that I hope somebody has an answer to. The issues are: 

  1.  I want my footer image on the edge of the PDF page. But due to the margin set on the page. I can't seem to align the image on the edge. 
  2. On our pages sometimes the expand macro form Atlassian is used. Then the items on the pages are all expanded which is fine. But these "tables" are far to wide for the PDF page. I'd like to make sure that these are fit to the pages automatically. 

 

Image 1. Shows the yellow blocks which should be aligned to the right of the page

sshot-1.png

 

Image 2. Shows how the Expand Macro is running of the page. 

sshot-2.png

 

Below the uses CSS for the footer image. 

@bottom-right {
text-align:center;
font-family: ConfluenceInstalledFont, Verdana, sans-serif;
font-size: 11pt;
color:#263682;
vertical-align:right;
padding:0px 0px;
content: counter(page) " / " counter(pages); "; /*Shows page number*/;
white-space:nowrap;
background-image: url(https://........../footer_image_yellow_center.png?api=v2);
background-size: 100% auto;
position:absolute; right:0;
background-repeat: no-repeat;
page-break-inside: avoid;
}

 

Hopefully somebody has an answer to my problems.  

Kind regards. Harold

 

 

1 answer

@Steffen Heller

I've seen you around with these kind of issues a lot. Do you have any idea what can be done with these problems. Looking forward to your advice. 

Kind regards 
Harold 

Hi @Harold,
as regards the positioning of the image, define it as background-image of @page and not of @bottom-right. This way, the margin doesn't matter.

Something like this:

@page {
size: 210mm 297mm;
background-image: url(/download/attachments/.../image.png);
background-repeat: no-repeat;
background-position: bottom right;
}

Stefan, 

Thanks for your advice. I'll be sure to test this. Seems logical. 
Regarding point 2 the "expand macro" you don't have any advise? 

I'll test the css and report back via this post. 

Kind regards. 

Harold

I don't know the expand macro. I would need info what that is, how it works, what the css is like aso.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

113 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you