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

This widget could not be displayed.

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;

 

This widget could not be displayed.

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
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

425 views 4 6
Join discussion

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