View Full Version : PDF export & printing

09-05-2007, 01:47 PM

I have a Cocoa application with an OpenGL window, what options are available for generating PDF files and for printing ??
in the window, I render 3D objects, either wireframe and solid objects, and texts as textured quads in 2D.
I was looking at the GL2PS library, but I guess if there are other (better) ways for generating PDFs..

any hints or directions are greately appreciated,

09-08-2007, 11:10 PM
ReadPixels is the obvious way to go...

09-10-2007, 07:20 AM
that's ok for bitmap printing, what about for a vector graphics solution (I should have mentioned that :p ) ?

09-12-2007, 12:28 AM
OpenGL is a raster API, so you're going to print a raster image, surely?

09-13-2007, 08:12 AM
I know OpenGL is a raster library :rolleyes:
but I need to export to PDF and print as vector graphics, thats why I mentioned GL2PS (http://www.geuz.org/gl2ps/) as a possible solution, but I wanted to know if there is something available on the Mac APIs (cocoa maybe?)..

09-14-2007, 04:48 AM
Why? Just render the raster image at the resolution of the printer :p

GL2PS is the only thing I know of that even attempts to turn OpenGL commands into vector graphics, and it's seriously limited.