Writing OpenGL images into a PostScript File

Whatever objects OpenGL may draw, they are displayed, after all, on a (2-dimensional) screen or a paper. So it seems that there should be some way to write OpenGL images into other graphics file format such as PostScript. Can anyone tell me how to do this? Thank you for reading.