Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Save multi pages PDF

$
0
0

@Radeise wrote:

Hi,

I try to save a multi page PDF with ofBeginSaveScreenAsPDF(“file.pdf”,true) function.
I don’t use the ofApp::draw() function but just a loop for() to iterate all shapes what I want save.

I don’t find solution on the forum or with cairo :expressionless:

for (auto sh : shapes) {

    ofBeginSaveScreenAsPDF("/Users/Desktop/shapes.pdf",true);
    ofDrawRectangle(sh.position, sh.getWidth, sh.getHeight);
    ofEndSaveScreenAsPDF();
}

:v:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles