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.
拖动方式的伸缩,搜索字符串高亮,预览和缩略图观察,甚至插入多媒体,对各种设备进行过特别优化。效果见下面:
深
更多的内容可以参考: FastPdfKit website 以及他们的技术支持 Support website. 据说在全世界很多国家有app developer用了他们的咚咚了。看看中国是哪家:
xx有限公司创立于2010年,是一家新兴的互联网企业。公司专注于移动互联网应用开发,拥有技术一流的iOS、Android专业开发、设计人才和自主研发核心能力。
如果你们是开发公司,并且会销售 FastPdfKit licenses,还是选择加入 Authorized Reseller: 加入是免费的,所以尽管加入吧,买一套自己用,从第一年就大折,看起来是不超3万一套的:
特征就不去看了,看杂项:
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];
}