Closed Sun3 closed 10 years ago
If anyone else is having the same issue below is what I did.
NSString *stringImageBase64 = [UIImageJPEGRepresentation([[UIImage imageWithData:[imagesNamesArray objectAtIndex:0], 0.5) base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
htmlString = [htmlString stringByAppendingString:[NSString stringWithFormat:@"<div align=\"left\"><img src=\"data:image/png;base64,%@\" align=\"absmiddle\" /> </div>", stringImageBase64]];
Thanks for the quick tip!
I am having issues to have images show up with the createPDFWithHTML. In the PDF File that is created I see the image tag but not the actual image.
Since the images are stored as external binary files in Core Data, how would you pass each image as an HTML tag?
Any ideas?