Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting page to PDF truncate code when it is too wide

Siméon Capy May 30, 2024

Hello,

I exported one of my pages with a bloc of code inside. This code is wide and need a horizontal scroll bar. But when I exported the page into PDF, no line breaks have been added and the code is not visible on the right.

You can see in on the line 10 and 25 of my screenshot.

Screenshot 2024-05-31 135355.png

How to change this behaviour, or is it a bug?

1 answer

3 votes
Kristian Klima
Community Champion
May 30, 2024

Hi @Siméon Capy and welcome to the community.

A couple of years ago I was a tech writer on a CA Technologies mainframe product and we faced the same issue when exporting wide mainframe printscreens into a PDF format from Confluence. LIke this:

Mainframe screen.png

Your options include:

  • Try a different code macro app from the marketplace
  • Tweak your PDF export stylesheet - it's available in Settings under Look and Feel
  • Try Scroll PDF Exporter from K15t, it offers tweaks for code export 

In our case, we developed our own macro (as an app, I believe) that defaulted to a smaller font and used customeze Scroll PDF exporter to do the trick.

Siméon Capy June 2, 2024

Hello @Kristian Klima thank you for your answer.

I will try to look on the app marketplace if I can find suitable PDF macro and doing my one stylesheet if I have enough time :)

Like • Kristian Klima likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events