Reading Open-XML documents in IOS

前端 未结 3 1525
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 02:55

I have used the CGPDFDocument class to read .pdf documents and retrieve the # of pages or pull back a page by number.

I am looking for a si

3条回答
  •  [愿得一人]
    2020-12-04 03:43

    Loading a document using a UIWebView :

    -(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webView
    {
        NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil];
        NSURL *url = [NSURL fileURLWithPath:path];
        NSURLRequest *request = [NSURLRequest requestWithURL:url];
        [webView loadRequest:request];
    }
    
    // Calling -loadDocument:inView:
    [self loadDocument:@"mydocument.rtfd.zip" inView:self.myWebview];
    

    Taken from here. Besides, also check out this forum discussion.

提交回复
热议问题