Giter Site home page Giter Site logo

mobfarm / fastpdfkit Goto Github PK

View Code? Open in Web Editor NEW
1.2K 1.2K 325.0 765.58 MB

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

Home Page: http://fastpdfkit.com

License: Other

Objective-C 77.33% Objective-C++ 0.70% C 19.67% C++ 2.30%

fastpdfkit's People

Contributors

onaxxis avatar s1g53gv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastpdfkit's Issues

SearchViewController remains visible

  1. Open pdf
  2. Tap "search" button
  3. Tap "close" button.

Pdf is gone, but SearchViewController is visible.

I add


on 521 line in DocumentViewController_Kiosk.m but there is another issue.

  1. Open pdf
  2. Tap "search" button
  3. Tap "close" button.
  4. Open the same pdf again
  5. Tap "search" button
  6. Enter any phrase and try to search. App is crashing.

Crash

*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

this happens pressing quickly the buttons on top-left of the PDF Reader (layout buttons).
this happens usually when the PDF is Zoomed In.

Sticky Notes

Is it possible to read the Stick Notes from pdf File and add them as overlay in the correct page?

showShadow seems not to work anymore

Assigned to Problems #599. As reported in Tender:

Hello Nicolò, hello FastPdfKit team,

I migrated recently from the older version of the FastPdfKit to the latest version. In the older version a non full screen pdf page had a shadow. In the newer version it's not the case. If I open ReadMe document in your KioskApp the shadow is also not to see. Was it depricated? Setting showShadow in the viewdidload function has no effect to...

best regards,
Ilya

fetching problem to run the app store source code properly

hi, There

from app store every functions and annotations are working but when I download the source and run it on xcode some annotations are not working well like image gallery. I've tried it on FPK kiosk app version 4.0, Build 440, Deployment Target 3.2

any suggestion please......

automodeOnRotation causing missing pages in ReaderViewController

When rotating an iPad while viewing a multi-page PDF with automodeOnRotation enabled, it is causing the reader to lose some pages when rotated into portrait mode. For example, if you have a 2-page PDF, load the app in portrait mode, then rotate to landscape, then back to portrait, you'll see that the second page is no longer visible.

iOS 6 and Multimedia Overlay

Assigned to Problems #709. Is there a known issue with using the utube:// multimedia
overlay in ios 6. The video I have included does not show up when
fastpdf is compiled under ios 6 but works fine in ios 5? Is there a
workaround to get it working in ios 6?

Bookmarks and Thumbnails not relevant to the document

I have a UITableViewController that directly initialises DocumentViewController_Kiosk by passing an instance of MFDocumentManager. Weird issue I'm facing is bookmarks and thumbnails are being shared across documents. I.e. if I bookmark page 20 in A.pdf then, go back to the TableView and open B.pdf then page 20 appears in bookmarks for B.pdf even if B.pdf has just 5 pages. Also the bottom preview shows an accumulated list of thumbnails rather thanks showing thumbnails for the current doc.

I'm considering purchasing a license, need to get past this issue first!

Cheers,
Zuhair

Crash

While opening some pdf files ,it is throwing this error "transfer_fixed_point Excess_Bad_Access".I guess it's happening only in ios7.Please could you help me out,it is very urgent.

Thanks and Regards
Harish

Embedded youtube problem

Embedded youtube link does not work on FastPdfKit Extended and Kiosk applications. Did you stop supporting embedded youtube link ? Is there any solution for that problem ?

fetching problem to run the app store source code properly

hi, There
from app store every functions and annotations are working but when I download the source code and run it on xcode some annotations are not working well like image gallery.
i would be glad if there is any suggetion ....!!!!!!!

Hide the keyboard in the search view

Tested over iPhone GUI.

When you open the search view, if you want to cancel is impossible to hide the keyboard and you need to search something to cancel.

Could be useful hide the keyboard when the user taps the list under the keyboard to allow to cancel the operation.

Namespacing of C functions

Noticing an issue in the linker. _isHex in MFToUnicodeCMapScannerMultibyte.o is conflicting with a function of the same name in another compiled library we're trying to roll in.

While I have reached out to the author of the other library, FastPDF should namespace this C function as well.

Crash with stack trace

I get a crash in handlePageDataInternal method of MFDefferredContentLayerWrapper.

The crash is [MFDocumentViewController mode]: message sent to deallocated instance

Screenshot attached, I copied the relevant console message to the bottom without exposing identifying application data.
PdfKitCrash

Frequent crashes on dismissMiniSearchView

Hi I've been experiencing intermittent but frequent crashes related to dismissing of certain views, it's most frequent with the dismissMiniSearchView when closing the minisearchview and it crashes with a similar exception even when dismissing the main modal view (FYI I'm pushing the pdf viewer into the navigation controller stack instead of displaying it as a modal view, here's the implementation - [[self navigationController] pushViewController:pdfViewController animated:YES]; Also, pdfViewController simple extends DocumentViewController_Kiosk and overrides loadView)

The debugger generally breaks at:

-(void)handleSearchGotCancelledNotification:(NSNotification *)notification {
// Setup the view accordingly.

[documentDelegate dismissMiniSearchView];

}

Debug info:

2011-08-22 12:33:39.563 Forums[39887:12503] SVC didLoad
2011-08-22 12:34:01.534 Forums[39887:12503] SVC dealloc
2011-08-22 12:34:08.621 Forums[39887:12503] SVC didLoad
2011-08-22 12:34:14.243 Forums[39887:12503] -[NSPathStore2 dismissMiniSearchView]: unrecognized selector sent to instance 0x62d27c0
2011-08-22 12:34:14.285 Forums[39887:12503] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSPathStore2 dismissMiniSearchView]: unrecognized selector sent to instance 0x62d27c0'
*** Call stack at first throw:
(
0 CoreFoundation 0x019ca5a9 exceptionPreprocess + 185
1 libobjc.A.dylib 0x01b1e313 objc_exception_throw + 44
2 CoreFoundation 0x019cc0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x0193b966 __forwarding
+ 966
4 CoreFoundation 0x0193b522 _CF_forwarding_prep_0 + 50
5 Forums 0x00025494 -[MiniSearchView handleSearchGotCancelledNotification:] + 68
6 Foundation 0x0138e669 _nsnote_callback + 145
7 CoreFoundation 0x019a29f9 __CFXNotificationPost_old + 745
8 CoreFoundation 0x0192193a _CFXNotificationPostNotification + 186
9 Foundation 0x01384306 -[NSNotificationCenter postNotification:] + 210
10 Forums 0x000295a2 -[SearchManager cancelSearch] + 338
11 Forums 0x000255c0 -[MiniSearchView actionCancel:] + 160
12 UIKit 0x00c1c4fd -[UIApplication sendAction:to:from:forEvent:] + 119
13 UIKit 0x00cac799 -[UIControl sendAction:to:forEvent:] + 67
14 UIKit 0x00caec2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
15 UIKit 0x00cad7d8 -[UIControl touchesEnded:withEvent:] + 458
16 UIKit 0x00c40ded -[UIWindow _sendTouchesForEvent:] + 567
17 UIKit 0x00c21c37 -[UIApplication sendEvent:] + 447
18 UIKit 0x00c26f2e _UIApplicationHandleEvent + 7576
19 GraphicsServices 0x02403992 PurpleEventCallback + 1550
20 CoreFoundation 0x019ab944 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 52
21 CoreFoundation 0x0190bcf7 __CFRunLoopDoSource1 + 215
22 CoreFoundation 0x01908f83 __CFRunLoopRun + 979
23 CoreFoundation 0x01908840 CFRunLoopRunSpecific + 208
24 CoreFoundation 0x01908761 CFRunLoopRunInMode + 97
25 GraphicsServices 0x024021c4 GSEventRunModal + 217
26 GraphicsServices 0x02402289 GSEventRun + 115
27 UIKit 0x00c2ac93 UIApplicationMain + 1160
28 Forums 0x00002909 main + 121
29 Forums 0x00002885 start + 53
)
terminate called throwing an exceptionCurrent language: auto; currently objective-c

Web pages

Remote web pages with modal view

  • http://
    Remote web pages on overlay
  • fpkw://
    Local web pages on overlay
  • fpkh://
    Local web pages with modal view
  • fpki://

PDF Rendering slow for iPad 3

Hi Macteo,

Here is the problem I am having. Given that the FastPDFKit PDF document view controller is running in a subview (mind you at fullscreen) and has the following settings:

documentViewController.zoomInOnDoubleTapEnabled = YES;
documentViewController.showShadow = YES;
documentViewController.startingPage = currentPage;
documentViewController.automodeOnRotation = YES;
documentViewController.pageFlipOnEdgeTouchEnabled = YES;
documentViewController.padding = 0;
documentViewController.previewsCount = 6;
[documentViewController setAutoMode:MFDocumentAutoModeOverflow];
documentViewController.documentInteractionEnabled = YES;
documentViewController.view.frame = CGRectMake(0,0, self.view.frame.size.width, self.view.frame.size.height + kNavigationBarHeight);
documentViewController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
documentViewController.view.clipsToBounds = YES;

When initializing the controller the previewCount cache variable seems to handle the consecutive rendering of pages. The problem mostly happens when setting an arbitrary page via [documentViewController setPage:pageNum]; method. The rendering of the specific page happens fairly quickly and the delegate willfocus and didfocus do get called almost immediately but when swiping or tapping the outer regions of the page the previous or next pages require 5-7 seconds to render even though the delegates get called normally as if the page is rendered - this then happens for each page after this arbitrary page change unless you wait on the currently rendered page for 5-7 seconds for the cache thread to catch up (not sure if I am right here but it's just a guess).

Mach-O Linker Error when using as framework with target iOS 7

  1. add the latest version as framework
  2. make sure to target iOS 7.0
  3. try to build:

ld: in /path/to/FastPdfKit/FastPdfKit.embeddedframework/FastPdfKit.framework/FastPdfKit(FastPdfKit), too many compact unwind infos in function anon for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

  1. workaround: target 6.1 or lower

This (http://stackoverflow.com/questions/18731667/xcode-5-gm-linker-error-too-many-compact-unwind-infos-in-function-anon-for-arch) is exactly the same problem.

tryUnlockWithPassword and isLocked not functioning correctly.

tryUnlockWithPassword and isLocked not functioning correctly.

However when I check the password manually using CGPDF on the same document instance, I get the correct responses. It used to work with the same code.

I tried creating a category with these, it worked to check if the document is locked and replace the isLocked function.

Unlocking is a different story, after unlocking the document instance variable with a category there must be more code because the document still will not load even though the unlock returns successful.

I checked with this code manually on the same instance and everything processes successfully.

CGPDFDocumentUnlockWithPassword(document, [inPassword cStringUsingEncoding:NSUTF8StringEncoding]);

CGPDFDocumentIsEncrypted(document)

CGPDFDocumentIsUnlocked(document)

PDF-Forms possible?

Dear authors and users of FastPdfKit,

I am trying to evaluate wether the kit could solve the problem I have: I would like to load an arbitrary PDF form and fill it out in my app. Form elements could be textfields, radio buttons, checkboxes and even custom elements like an imagemap.

So far, my approach was to parse the PDF myself and add the needed form elements manually.

Could FastPdfKit help me with this, or is it not designed for that?

Sorry, I know it's not an "issue", but I can't think of a better place to ask.

Thanks for any reply,

lexar

FastPdfKit Logo

Hello,

i have just download and started working on example of fastpdf given in github, but when i load any pdf, it is first showing the Logo of fast pdf including url of fastkit.com and fastkit.au.

how can i hide that logo and directly load pdf.

any help will be appreciable , please help me asap.

Thank you.

Sound

Local sound

  • fpka://
    Remote Sound
  • fpkb://

Crash caused by overlayViewsForPage call on a deallocated instance of MFDocumentViewController

2011-08-09 16:32:09.336 eDocs[11293:12503] *** -[PDFDocumentViewController overlayViewsForPage:]: message sent to deallocated instance 0xfeba370

PDFDocumentViewController is a sub class of MFDocumentViewController.
This occurs when I load a new MFDocumentViewController with a new MFDocumentManager thereby replacing and deallocating the old one. Apparently there are still some performSelectors happening that cause a message to be sent to the deallocated instance.

Warnings.

A popular set of Xcode warnings can be found here: http://boredzo.org/blog/archives/2009-11-07/warnings (check the bottom of the article for a script that will flip them on for you).

The current FastPDFKit headers throw up a couple small warnings in relation to them, specifically sign comparison mismatches in Stuff.h (as an aside, I'd love to have a more informative name for this header. Whenever I see it come up in the issues sidebar I am confused and blame my coworkers before I realize it is a FastPDF file :-), a few unused constants and some missing newlines at the ends of headers. If you like I can make the changes and submit a pull request. Thanks.

FastPdfKit_Sample-Info.plist...... missing

hi that's a fantabulous code, framework out there. i am a newbie. i have downloaded the fastpdfkit and tried to Run it. it is showing an error.

"ProcessInfoPlistFile "/Users/**/Library/Developer/Xcode/DerivedData/FastPdfKit-eezcmepvaslxyjaebudqlkfoocds/Build/Products/Debug-iphonesimulator/FastPdfKit Sample.app/Info.plist" Resources/FastPdfKit_Sample-Info.plist
cd "/Users/**
/Downloads/mobfarm-FastPdfKit-feb4b79 2"
setenv PATH "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Volumes/Xcode/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-infoPlistUtility Resources/FastPdfKit_Sample-Info.plist -genpkginfo "/Users/_/Library/Developer/Xcode/DerivedData/FastPdfKit-eezcmepvaslxyjaebudqlkfoocds/Build/Products/Debug-iphonesimulator/FastPdfKit Sample.app/PkgInfo" -expandbuildsettings -format binary -platform iphonesimulator -o "/Users/_
/Library/Developer/Xcode/DerivedData/FastPdfKit-eezcmepvaslxyjaebudqlkfoocds/Build/Products/Debug-iphonesimulator/FastPdfKit Sample.app/Info.plist"

iOS7 Appstore Validation Warning which may cause App to be Rejected

The App Store Validator is complaining about the occurrence of "lines" using a non-public API which is pointing to your libFastPdfKit.a lib.

Executing....

find . | grep -v .svn | grep ".a" | grep -v ".app" | xargs grep lines

Produces the output...

Binary file ./FastPdfKit/FPKCore/libFastPdfKit.a matches

Randomly shows other document's pages

This is a random, and uncommon bug but it is reported by customers. Sometimes a document will show the first page of another document that was opened, sometimes other pages from other documents as well.

This has only started happening after the last upgrade.

No known trigger or pattern, and it is hard to reproduce.

Also an the thumbnail strip below the pdf, the first page is from another document. Not sure i this is related, but that is more reproducible. Reported from an iPhone 5.

Supporting links to other documents

I don't see a way to get a call-back for those currently. Do you need to update the parsing/rendering to handle these links? Or is there some way that I can get a call-back when a link to another PDF document is tapped?

UIView overlay

Custom UIViews can be precisely positioned over the pdf page in page coordinates.

Unable to extract text from PDF

Hello mobfarm,

When I try to extract the text from this pdf:
www.flitelinesoftware.com/example.pdf

I get a result like this:

(� ������������������"#��!��������
� � �(�������!
����%����
;!������������"��!�<
;�������9� ���������&� ��<
((((((
�� ((((((

�����#����������������������

�� ������#���#!���#�����!
��������� ��!'����� !���������#�����! �?��#!��=�"!3������������������

�� ��� ����$�������#���
!� ������������� � ����� ����������
������
�!'���
;������

���������&��� <
((((((!��!��"���(((

�� 9��������������������������!����!����
����!��!����������������!����!����
;��������������������� ���<
�������27+,08����!"����
�� �
����������������������������������������

,HD�������

Any ideas on how I can get the correct text?

Regards,

Ron

Movies

Embedded movies on overlay (one every two pages due to hardware acceleration needs).

  • fpkv://
    Embedded movies on modal view.
  • fpke://
    Remote movie on overlay (one every two pages due to hardware acceleration needs).
  • fpky://
    Remote movies on modal view.
  • fpkz://

iOS 7 interface

Hi guys,

Keen to find out if and when you are planning on updating UI to be optimised for iOS7 based on the new UI guidelines?

Cheers,
Zuhair

reinitializeWithDocumentManager:

Hiyas

I downloaded the FastPDFKit and played around with its samples. This looks like a very cool library with a ton of very cool features. However.. there's one thing I particularly miss, and that's the ability to not only have an initWithDocumentManager, but also something like setDocumentManager.
I don't know how to say it, but currently, there's only one way to display a PDF:

MFDocumentViewController* d = [[MFDocumentViewController alloc] initWithDocumentManager:docManager];
[self presentModalViewController:d animated:YES];

but once that one is open, there is no way to load another PDF in the already open MFDocumentViewController (or derivate). I'd have to close it down, create a new one with the new document and load it the same way.

So what I'm missing is actually something like

[MFDocumentViewController reinitializeWithDocumentManager:newDocManager];

or maybe even better, a way to be able to use a normal initWithNibName: and then use a setupWithDocManager later.

I hope it is understandable what my request is?

Best regards!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.