PDA

View Full Version : PDF export & printing



vbovio
09-05-2007, 02:47 PM
Hi,

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,
Thanks.

OneSadCookie
09-09-2007, 12:10 AM
ReadPixels is the obvious way to go...

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

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

vbovio
09-13-2007, 09: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?)..

OneSadCookie
09-14-2007, 05: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.