This doesn't currently exist.
There is somewhere some code for html export. (The Ide uses this)
Based on that code you could write a printer function.
It may also be possible to subclass, and access
FPaintArea.Paint(Canvas, rcClip);
But you would also need to setup the current topline, width, height, .... and add line wrapping if needed (there is an addon in the synedit folder)