PDF Export - Colored Boxes gone

When i use these colored boxes in xwiki like this one:

2021-07-22 11_06_57-Sandbox - XWiki

and i use the export to pdf function, the boxes (not the text in them) disapear.

Is there a chance to get them exported as well?

I think this is this issue: http://jira.xwiki.org/browse/XWIKI-11723

A workaround would to use a completely different PDF export feature. There’s one provided by the LaTeX extension and I know this one supports exporting these infoboxes (see https://extensions.xwiki.org/xwiki/bin/view/Extension/LaTeX/Syntax%201.0/#HMessage ). But it works completely differently and it may or may not be good for you depending how you customize the export.

See LaTeX (XWiki.org)