Customizing PDF Export

Hello everyone,

I have created a rather large product user manual and I need to export it to PDF and print it. This is an easy process, however, after finishing the space export (by only selecting the pages I need) I can see that the there is no spacing between each page, and that makes the content to get squeezed.

I have attached a screenshot that will hopefully illustrate my issue, please let me know if there's a way to solve this via PDF stylesheet customization or any other workaround:

Thank you!

2 answers

1 accepted

2 votes
Answer accepted

Globally (as Confluence Admin -> PDF Stylesheet) or locally (Space Admin -> Look and Feel menu tab) change your PDF Stylesheet to something similar to this:

  1. @page
  2. {
  3. /*The A4 paper size is 210 mm wide by 297 mm long*/
  4. size: 210mm 297mm;
  5. margin: 25mm;
  6. }
  7. .pagetitle
  8. {page-break-before: always;
  9. }
  10. div {
  11. word-wrap: break-word;
  12. }

Thanks Ole, it appears to have worked just fine!


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...

272 views 2 10
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