ofBeginSaveScreenAsPDF not working in iOS

Hi All,

I’d like to save export a pdf from what’s drawn on the screen in a iOS app, but that functions fail at building

Undefined symbols for architecture x86_64:
  "ofBeginSaveScreenAsPDF(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, bool, ofRectangle)", referenced from:
      ofApp::setup() in ofApp.o
  "ofEndSaveScreenAsPDF()", referenced from:
      ofApp::setup() in ofApp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

That has been reported in the past, but I found no solution to that.


Does anybody has any idea on how to do it?

I’m using OF 0.9.8 for iOS and Xcode 8.2.1

Best

we don’t include cairo with the iOS distribution, you would need to compile cairo for iOS and include it in the xcode project

Ok. Thanks for the info.