Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-23-2011, 04:34 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
medwrite is on a distinguished road
Default Can I Convert RTF to PDF ???

Dear All,

RTF file was did not load in WEBVIEW but pdf was load So i want to convert rtf to pdf, is it posssible in IOS sdk??


Please give to us your suggestions.

Thank you.
Medwrite
medwrite is offline   Reply With Quote
Old 09-23-2011, 07:39 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 864
nobre84 is on a distinguished road
Default

RTF can be loaded fine in webview, but you must use the correct Mime Type. To get the mime type for each extension, use this:
objective c - Where's the iPhone MIME type database? - Stack Overflow
nobre84 is offline   Reply With Quote
Old 09-23-2011, 08:32 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
medwrite is on a distinguished road
Default

Quote:
Originally Posted by nobre84 View Post
RTF can be loaded fine in webview, but you must use the correct Mime Type. To get the mime type for each extension, use this:
objective c - Where's the iPhone MIME type database? - Stack Overflow
Dear Nobre,

Thank you for your replay I did not using any MIMETypes ,

NSString *filename=[NSString stringWithFormat:@"%@.rtf",
[[appDelegate.SignedOffReportsArray objectAtIndex:row] jobId]];
NSString *filePath=[rtfDir stringByAppendingPathComponent:filename];

NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:filePath];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:fileURL];
[objWebView loadRequest:requestObj];
we are using loadrequest in WebView , Please give to us any sample for MIMETypes for rtf files loading.

Thank you,
medwrite
medwrite is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 388
14 members and 374 guests
7twenty7, eski, EvilElf, glenn_sayers, HemiMG, iOS.Lover, jarv, n00b, pbart, Pudding, sacha1996, Sami Gh, UMAD, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,905
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:16 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0