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

This widget could not be displayed.

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.

This widget could not be displayed.

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

 

 

This widget could not be displayed.

Thank you

This widget could not be displayed.

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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 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...

625 views 8 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