I\'m porting a block of code from an iOS4 project to iOS5 and I\'m having some troubles with ARC. The code generates a PDF from a screen capture.
PDF Generation Code
I was able to duplicate your problem. This is what fixed it for me.
Add QuartzCore.framework to your project and this line to your .m file.
#import <QuartzCore/QuartzCore.h>