Quote:
Originally Posted by Balillas
OK!!! Solved... the problem was that the const char *picture is the file name of a Picture.png that first you must include in the resources folder of the project.
How can I get a picture.png that It's stored to my Documents Directory? There is a function like CFBundleCopyResourceURL that allows to do this?
Thanks
|
Finally I use the UIImage that I have in a UIImageView instead of a image stored in my documents directory.
I use this code:
Code:
// This code block will create an image that we then draw to the page
CGImageRef *image=[imageSelected CGImage];
CGContextDrawImage (pdfContext, CGRectMake(200, 200, 207, 385),image);
CGImageRelease (image);
// End image code
The var imageSelected comes from the UIImageView.image;
Thanks again