Hello, the solution for me was edit /bin/view/diagram/DiagramViewSheet and put this code
#elseif ($xcontext.action == 'export') image:diagram.svg #else
Ever diagram has an attachment called diagram.svg so if you put this code, the pdf will print the image.
Maybe other way is check if is an pdf export like $request.format == 'pdf'
PDF export works as expected in mi wiki now