ofBeginSaveScreenAsPDF ignores rotation

Hello!

I try to export pdfs from manipulated ofPaths… but somehow their rotation is ignored in the PDF.
This is how I use it:

  
ofBeginSaveScreenAsPDF("thename.pdf", true, true,   ofRectangle(0,0,ofGetWindowHeight()*0.7,ofGetWindowHeight()));  
  
    ofPushMatrix();  
    ofRotate(rot.w, rot.x, rot.y, rot.z); // rot is a Vec4f  
  
    path.setFillColor(myColor); // path is an ofPath  
    path.setFilled(true);  
    path.draw();  
    ofPopMatrix();  
     
    ofEndSaveScreenAsPDF();  
  

Am I doing something wrong?
I tried different settings in the Begin-function with no success… but I can’t figure it out yet.

Is there any way how I can get nice vectorgraphics exported?

Thanks :slight_smile:

Oh yes, and I use OF v0.7.4 on a mac

okay, seems I need to unproject from 3d to 2d somehow… ?
http://forum.openframeworks.cc/t/ofeasycam-save-as-pdf/9542/0

you can rotate but you can only rotate along the z-axis. Maybe take a look at the ofxvectorgraphics example.
You can save as a postScript.

Or you can use ofImage::GrabScreen and then use ofImage::save