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

Modify the left and right margins of pdf exports?

Angela Tran Jan 05, 2017

I was able to get my header and footer the way I wanted for the most part. I can't get the left and right margins to be the same. In my stylesheet, I tried: 

margin-left: 1.27cm;
margin-right: 1.27cm;

but that did not work. Any ideas on how to get these margins the same?

Screen Shot 2017-01-05 at 4.26.19 PM.png

@page
{
margin-top: 30px;
margin-bottom: 70px;
margin-left: 1.27cm;
margin-right: 1.27cm;

@top-left
{
content: "Company Name.";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
color:#ffffff; 
font-size: 10pt;
font-weight:bold;
background-color:#5EBD70;
padding-left:50px;
}
@top-right
{
content: "Engineering Docs";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
color:#ffffff; 
font-size: 10pt;
font-weight:bold;
background-color:#5EBD70;
padding-right:50px;
}
@bottom-right
{
content:counter(page);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 10pt;
background-image:url('/download/attachments/25528928/grn_on_wht2_thumb.png?api=v2/20x20');
background-repeat:no-repeat;
background-position:left center;
}
}

2 answers

1 accepted

1 vote
Answer accepted
Randy Ho Jan 05, 2017

What do you want to make the left and right match?  You're on the right track.  Set margin-left and margin-right values to adjust how much margin you want on the page.

Angela Tran Jan 05, 2017
Yes, I would like the left and right to match. Hmm, I did do that but setting those doesn't seem to be doing anything. 

 

 

Randy Ho Jan 05, 2017

try setting them to something very large and see if it's making any difference for you:

 

margin-left: 500px;

 

0 votes
Gergely Gurmai Dec 13, 2017

Check out Content Exporter for Confluence addon for easily setting up margins on the fly or using export profiles.  You can try out how it works online by exporting the documentation itself from its support site:

https://metainf.atlassian.net/wiki/spaces/CEX/overview

more details of the addon: https://marketplace.atlassian.com/plugins/com.metainf.confluence.plugin.pagetreeexporter.pagetree-word-exporter-plugin/cloud/overview Cex.PNG

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,236 views 7 18
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