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

Modify the left and right margins of pdf exports?

Angela Tran January 5, 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

2 votes
Answer accepted
Randy
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.
January 5, 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 January 5, 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
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.
January 5, 2017

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

 

margin-left: 500px;

 

0 votes
GG December 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
TAGS
AUG Leaders

Atlassian Community Events