A Static Library to be embedded on iOS applications to display pdf documents derived from Fast PDF
See the codeThis 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.
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.
For more information, see the FastPdfKit website and the Support website.


In the Xcode project you'll find some targets
ReaderViewControllerand its dependencies;ReaderViewController.In FastPdfKit.framework and FPKReaderLib the libFastPdfKit.athat contains the compiled core rendering engine.
All the other classes are public and can be customized or subclassed at will.
Every target can be compiled and recompiled for your needs.
This guide is also available as screencast number 4.
Clone the repository from github or just grab the compressed archive;
Open your existing project in Xcode;
Open the downloaded folder in the Finder and locate FastPdfKit.embeddedframework;
Drag the framework on the Xcode workspace;
Inherit the project options: select the Project an from info tab and configurations line choose FastPdfKitFramework from the drop down list;
Open the framework's Resource folder and locate the Snippets.txt document;
Copy in you controller interface these lines:
#import <FastPdfKit/FastPdfKit.h>
@class MFDocumentManager;
-(IBAction)actionOpenPlainDocument:(id)sender;
Copy 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];
}
Choose a pdf from the finder and drop it in the project;
Change the documentName to the corresponding name;
Call the actionOpenPlainDocument method to open the document;
Enjoy.
The new version will attempt to cache pdf page images. If no documentId is set in the MFDocumentViewController, the default folders are in Library/Caches/shared, otherwise the cache is located in Library/Caches/.
Default settings should provide good performance on all devices, from the first iPad to the new one. Thumbnails generation has been moved inside the lib. Customization options for the thumbnail scroll view will be available in the final version.
For more informations reagarding Extensions git.io/fpke.
MFTextItem representing the matches of teh search term on the page passed as arguments. It is a good choice running this method in a secondary thread.FPKSearchMode has the following values:FPKSearchModeHard - if you search for 'bèzier' it will match 'bèzier' only but not
'bezier'. If you search for 'bezier' it will match 'bezier' only.FPKSearchModeSoft - if you search for term 'bèzier' it will match both 'bezier' and 'bèzier'. Same if you search for 'bezier'.FPKSearchModeSmart - if you search for term 'bezier', it will also match 'bèzier', but if you search for 'bèzier' it will match 'bèzier' only.FPKSearchModeSmart and ignoreCase to YES.ReaderViewController user interface.MFDocumentViewControllerDelegate callbacks.Disabled the 2.1.1 font cache due to an implementation oversight. Will be re-introduced as soon as it will behave as expected.
If you have any other question please post it in the Support Site
477 followers · starred Oct 2010
269 followers · starred Oct 2010
1,458 followers · starred May 2013
12 followers · starred May 2018
A Static Library to be embedded on iOS applications to display pdf documents derived from Fast PDF
See the codeThis 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.
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.
For more information, see the FastPdfKit website and the Support website.


In the Xcode project you'll find some targets
ReaderViewControllerand its dependencies;ReaderViewController.In FastPdfKit.framework and FPKReaderLib the libFastPdfKit.athat contains the compiled core rendering engine.
All the other classes are public and can be customized or subclassed at will.
Every target can be compiled and recompiled for your needs.
This guide is also available as screencast number 4.
Clone the repository from github or just grab the compressed archive;
Open your existing project in Xcode;
Open the downloaded folder in the Finder and locate FastPdfKit.embeddedframework;
Drag the framework on the Xcode workspace;
Inherit the project options: select the Project an from info tab and configurations line choose FastPdfKitFramework from the drop down list;
Open the framework's Resource folder and locate the Snippets.txt document;
Copy in you controller interface these lines:
#import <FastPdfKit/FastPdfKit.h>
@class MFDocumentManager;
-(IBAction)actionOpenPlainDocument:(id)sender;
Copy 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];
}
Choose a pdf from the finder and drop it in the project;
Change the documentName to the corresponding name;
Call the actionOpenPlainDocument method to open the document;
Enjoy.
The new version will attempt to cache pdf page images. If no documentId is set in the MFDocumentViewController, the default folders are in Library/Caches/shared, otherwise the cache is located in Library/Caches/.
Default settings should provide good performance on all devices, from the first iPad to the new one. Thumbnails generation has been moved inside the lib. Customization options for the thumbnail scroll view will be available in the final version.
For more informations reagarding Extensions git.io/fpke.
MFTextItem representing the matches of teh search term on the page passed as arguments. It is a good choice running this method in a secondary thread.FPKSearchMode has the following values:FPKSearchModeHard - if you search for 'bèzier' it will match 'bèzier' only but not
'bezier'. If you search for 'bezier' it will match 'bezier' only.FPKSearchModeSoft - if you search for term 'bèzier' it will match both 'bezier' and 'bèzier'. Same if you search for 'bezier'.FPKSearchModeSmart - if you search for term 'bezier', it will also match 'bèzier', but if you search for 'bèzier' it will match 'bèzier' only.FPKSearchModeSmart and ignoreCase to YES.ReaderViewController user interface.MFDocumentViewControllerDelegate callbacks.Disabled the 2.1.1 font cache due to an implementation oversight. Will be re-introduced as soon as it will behave as expected.
If you have any other question please post it in the Support Site
477 followers · starred Oct 2010
269 followers · starred Oct 2010
1,458 followers · starred May 2013
12 followers · starred May 2018