Render node to variable

Hi

I need to write the rendered output of a NEOS node to a variable. I’d like to paste the output into a special template in order to create a PDF file. Has anyone an idea on howto get the rendered node?

Best regards,
Jan