Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Better Code Block macro PDF and Word exporting

Hello Community. My teams very like to use Better Code macro which was installed to our Confluence Cloud, but unfortunately, when we try to export page to PDF or Word, there is nothing on the page finally? Any ideas?

bettercode.PNGbettercode2.PNGbettercode3.PNG

 

 

I try to apply CSS code, but it didn't help

div.ap-container conf-macro output-block {
font-family: ConfluenceInstalledFont !important;
}

 

3 answers

Hi there. Did you find a solution? We have the same issue (today).

I contacted with the developer and he said that he hasn't future plans to fix this issue.

The developer of "Better Code Block Macro"?

I installed the "Scroll PDF exporter" plugin - which I have used other places (it is excellent). My first tests worked well: The Better Code Macro worked with the Scroll PDF exporter plugin.

Maybe a solution for you too.

Thanks for helping out.

Hi there,

As @Mads already mentioned (thanks for that :)), our Scroll PDF Exporter supports the export of Better Code Blocks to PDF.

We're replacing the macro with a standard code block macro in the export (dealing with it like a default Code Block macro).

Feel free to try out Scroll PDF Exporter in the Atlassian Marketplace, and please reach out to us via support@k15t.com, if you have any feedback or questions.

Cheers,
Nils

Hi, it's nice, but unfortunately my management will not approve to buy your macro only for PDF export :(

You are replacing the "Better Code" Macro with the "ordinary" one? I was not aware. So, for languages not supported by the ordinary one, we loose formatting, etc, when converting to PDF?

Much better than no output, make no mistake, but annoying about the better code macro. I sort of got the impression Atlassian backed this plugin, but I guess not.

Hi @Mads,

Yes, if you export a language that is not supported by the default code block macro, the code is formatted with the default formatting.

That was the best approach we could come up with on our side, as the Better Code Block macro does not recognize that it's exported. It's not 100% ideal, but as you said better than nothing.

Cheers,
Nils

For anyone still facing this issue, new code macro Code Syntax Highlighter solves this problem. Code Syntax Highlighter produces static output from code block, thus it works with any kind of exports: to PDF, HTML, MS Word etc.

Give it a try https://marketplace.atlassian.com/apps/1219685

PS: I am add-on developer.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

269 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you