Code block macro issue in PDF export

Hi All,

Has anyone noticed that the code block macro in new confluence 4.2.2 release does not get rendered in PDF export. The PDF file shows the following exception:

Error rendering macro 'code' :

Anyone knows how to resolve this please?

5 answers

1 accepted

The version will be based on the .jar file bundled in Confluence. The latest version available now is New Code Macro Plugin version 2.0.14. You can try to install this and check out if the problem persists or otherwise.

First of all, can the code be used in Confluence pages as expected? This is not reproducible on my end though. What is the version of new code macro plugin installed in your instance?

Thanks Hanis. It works well in wiki pages. Error is shown only when exported to PDF.

Isn't code block macro coming with the new version by default?

Thanks a lot for the help. It works well after installing new version. :)

The problem with exporting a code block in a PDF exists in version 6.0.0, nearly 4 years later...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

60 views 2 6
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