Quantcast
Channel: User Sefran - Stack Overflow
Viewing all articles
Browse latest Browse all 36

Create a document with embedded images

$
0
0

I'm trying to create a document (i.e. .doc,.html) with embedded images with objective-c.
The images are stored locally on the iPhone.
For example, I've created an html using img tag and the file uri scheme. Then I saved the html code on a .doc file. But the images are not displayed.
The same thing happens if I save the html code as an .html file.

[body appendString:@"<img src='"];[body appendFormat:@"file:/%@", absolutePath];[body appendString:@"' />"];

where absolutePath is the path of the image on the device (I printed it and it's right).

Any suggestion?


Viewing all articles
Browse latest Browse all 36

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>