Forums

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

export pdf with code block cuts the code

Андрей Быков
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2024

Good afternoon, how can I make sure that when exporting pdf, the content inside the "code block" is transferred line by line, and not cut off in the pdf file as shown in the screenshot below

image.png

2 answers

0 votes
Joe Connolly
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2024

I have this problem also recently, not only is the text on long lines inside code blocks not visible, if you try to copy it out of the PDF the line is truncated and a portion of the content is lost.  This is the case viewing the PDF both in firefox and acrobat reader.

Chris Wangsanata
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2026

Has anyone here been able to find a resolution to this issue?

Joe Connolly
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2026

For me at least this problem went away at some point in the last year, our confluence pages that have code blocks exported to PDF now wrap the content to multiple lines inside the code block (not a lot, like 3 or 4 lines at most), the content is all there and is all selectable and copyable out of the PDF.

Chris Wangsanata
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2026

Thanks for the update. I’m experiencing the same issue you were encountering, but it’s been persistent for as long as I can remember.

I’m wondering whether there might be a configuration or space-level setting that could be contributing to this behavior, but thanks for responding to my necrobump.

0 votes
Barbara Szczesniak
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 Champions.
April 8, 2024

@Андрей Быков Welcome to the Atlassian Community!

I did a quick search and found:

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events