SWF to PDF (vector) in real time

I have an flash application which is simple text editor. I want to save the output of that application as pdf in vector format. Is it possible? Please help me if there is any solution out there.

Thanks