Modify the left and right margins of pdf exports?

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

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.

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. 

 

 

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

 

margin-left: 500px;

 

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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

944 views 2 13
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you