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

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

confluence page, export to pdf in landscape format

Hi,

I have created a confluence page with pie chart and some JIRA issue/filters... I have made alignments and it looks nice, but I export to pdf it always exports in portrait format...

whereas some of my colleagues page are exported in landscape format...

Do I need to add or change any settings in my page?

please let me know, where I should do my changes... Kindly do the needful.

Thanks,

Vijay

5 answers

1 accepted

3 votes
Answer accepted

You might want to look at the PDF Stylesheet in the Look and Feel for the space.

If you have (or add) something like:

@page{
size: 11in 8.5in;
}

It will be landscape.

Works Fine thanks!

Under PDF Export Stylesheet (try this)

@page
{
/*A4-sized pages in landscape orientation are 297 mm wide by 210 mm long*/
size: 307mm 220mm;
}

h5,h6
{
page-break-before: always;
}

PS: I did not change anything under PDF Layout

Thanks, mate. This works ! 

- Ash

Thanks Vijay. This works perfect.

Hi,

Is it possible to do PDF export in portrait mode for some pages, and in landscape mode for other pages in the same space? If so, how to do it?

Yes, it is possible by using named pages. With that you can define multiple pages with different settings.

I made a description at https://community.atlassian.com/t5/Confluence-questions/Confluence-How-can-we-export-PDF-in-portrait-or-landscape-in-the/qaq-p/349230#M58987

 

 

Like # people like this

Folks, I am having the same issue and would like to know how to resolve.  I am exporting from a Confluence Page into a PDF.  It defaults to Portrait. I went into Space Tools....Look and Feel...PDF Stylesheet and added

@page  landscape

size: 8.5in 11in; 
}

and when I try to export the pdf it is still Portrait.  The only thing I see, when I save the Stylesheet it loosk like this


PDF Export Stylesheet
view plain  print
                 @page  landscape  
{    
size: 8.5in 11in;    
}    
    

Any ideas would be helpful

See the comment from Milo Grika for how to create a page in landscape mode and see my comment for how to use both portrait and landscape in the same space.

From your example it seems that you are using named pages incorrectly.

 

Steffen,

Thanks!  I made the change that Milo suggested.  I have a list of daily reports that I wanted to export to pdf. An older version of the report I was able to export with no issues.  My newer reports, with Expands (Not sure if this has any impact) does not export and I get the error GET /spaces/flyingpdf/pdfpageexport.action. 

Good to hear that it works (partly).

About the other problem, I have no idea what that could be.

Thanks Steffan, I narrowed it down to what dates and reports it doesnt work for.  I have added anchors, expansions, etc..so maybe something like that has an impact..Will try and troubleshoot from here

Thank you

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,530 views 7 29
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