PDF 阅读和PDF 全功能库

PDF 阅读,专业的,无冲突的市场,从什么地方来,买国外的library,搞自己的底层library?

看了好几个了:

(当然可以先学习下QLPreviewController

QLPreviewController and on the QLPreviewController is a dataSource that has to conform to QLPreviewItem. The documentation states that NSURL does conform to QLPriewItem so I'm setting the preview.dataSource to an NSURL which is throwing an error:)
http://www.pdf-technologies.com/Products.aspx http://www.foxitsoftware.com/  http://fastpdfkit.com/pdf-reader-ipad#1

相对open一点的就是fast pdf kit,看起来更大方,不用接口保密啊什么的。但似乎多不支持扫描版本的PDF文件,这个要OCR的。有难度的,即使是 desktop上的,常常copy内容出来也会发生乱码的,别说提供个简化版本的了。

 

A Static Library to be embedded on iOS applications to display pdf documents derived from Fast PDF

FastPdfKit

This repository contains the FastPdfKit iOS library with some sample projects.

FastPdfKit is a library that let you show pdf documents in iOS applications bypassing all performances and missing features problems related to QuickLook.

fastpdkit是个帮助你在ios程序中显示操作PDF文档的库,可以避免使用quicklook带来的两个主要问题: 第一是性能,第二是有限的feature(比如无法批注,无法xxx)

Side scrolling, search with highlighted results, preview and thumbnails, text extraction, overlay views, embedded multimedia, optimization for every device, single and double page are just some of countless features included in FastPdfKit.

拖动方式的伸缩,搜索字符串高亮,预览和缩略图观察,甚至插入多媒体,对各种设备进行过特别优化。效果见下面:

Interface iPadSearch iPad

Interface iPhoneSearch iPhone

更多的内容可以参考:  FastPdfKit website 以及他们的技术支持 Support website. 据说在全世界很多国家有app developer用了他们的咚咚了。看看中国是哪家:

isyna 

xx有限公司创立于2010年,是一家新兴的互联网企业。公司专注于移动互联网应用开发,拥有技术一流的iOS、Android专业开发、设计人才和自主研发核心能力。

 

如果你们是开发公司,并且会销售 FastPdfKit licenses,还是选择加入 Authorized Reseller: 加入是免费的,所以尽管加入吧,买一套自己用,从第一年就大折,看起来是不超3万一套的:

 

 FreeBasicPlusExtra
 ChooseChooseChooseChoose
First licenseEUR 0EUR 990EUR 1,990EUR 2,990
Second license (-20%)EUR 0EUR 790EUR 1,590EUR 2,390
Following licenses (-35%)EUR 0EUR 640EUR 1,290EUR 1,940
Fully customizable interfaceyesyesyesyes
Universal Binaryyesyesyesyes
FastPdfKit Logoyes-no-no-no
Text searchyes-noyesyes
Text extractionyes-noyesyes
Multimediayes-no-no这个就好yes多媒体

 

特征就不去看了,看杂项:

Miscellanous

  •   True PDF 真的pdf
  • Free version for low budget projects with complete features 有免费版本可以用,肯定cut features
  •   Fully multitouch 多点触摸
  •   Large document support
  • Retina Displayoptimization
  • Customizable interface
  •   Support for encrypted documents  加密文档也可以处理
  •   Works on every iOS version since 3.2  在新版本上全面支持

作为开发人员,一定要看点代码的:0

ReaderViewController *pdfViewController = [[ReaderViewController alloc]initWithDocumentManager:documentManager];   

//那到一个VC

 /** Set resources folder on the manager */   

 documentManager.resourceFolder = thumbnailsPath;    /** Set document id for thumbnail generation */   

pdfViewController.documentId = documentName;  给上一个文档属性

  /** Present the pdf on screen in a modal view */   

 [self presentModalViewController:pdfViewController animated:YES];     //presentModalViewcontroller 展现VC,应该可以用uinavigationcontroller来做,一回事

 /** Release the pdf controller*/    [pdfViewController release];

 


in your controller implementation these other lines:

-(IBAction)actionOpenPlainDocument:(id)sender{
    /** Set document name */
    NSString *documentName = @"Manual";

    /** Get temporary directory to save thumbnails */
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

    /** Set thumbnails path */
    NSString *thumbnailsPath = [[paths objectAtIndex:0] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@",documentName]];

    /** Get document from the App Bundle */
    NSURL *documentUrl = [NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:documentName ofType:@"pdf"]];

    /** Instancing the documentManager */
    MFDocumentManager *documentManager = [[MFDocumentManager alloc]initWithFileUrl:documentUrl];

    /** Instancing the readerViewController */
    ReaderViewController *pdfViewController = [[ReaderViewController alloc]initWithDocumentManager:documentManager];

    /** Set resources folder on the manager */
    documentManager.resourceFolder = thumbnailsPath;

    /** Set document id for thumbnail generation */
    pdfViewController.documentId = documentName;

    /** Present the pdf on screen in a modal view */
    [self presentModalViewController:pdfViewController animated:YES]; 

    /** Release the pdf controller*/
    [pdfViewController release];
}


 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值