I am currently using UIDocumentInteractionController to view pdf files. I know I can use UIWebView also.
My question is,
Is it possible to do text reflow for pdf files in swift where I can change font size and make it easier to read ? Is there any open source library for that?
I am saying something like this
Does apple PDFKit able to do it? Has any one tried it before?
Thanks!
Related
I have an app using phonegap. But When I open voiceover function, it read the out the html code for me. For example . It will read "banner png Image". Is there any method that I can use to skip reading div?
Thank you.
I don't think your assumption is correct. I believe it is reading out the file name of the image. Give it a label of some kind!
I am using FastPdfKit and PDFKitten to search texts in a PDF in iOS. Searching works fine for PDFs with embedded fonts. If the font is not embedded, both libraries fail to give the correct location of the searched text.
If I open the PDFs in Preview (Mac) and use Duplicate function of Preview. The generated PDFs will have embedded fonts and will work correctly when searched using FastPdfKit and PDFKitten.
Should I programmatically recreate the PDF with the font embedded? But not sure on how to actually do this.
Or are there other workarounds for FastPdfKit or PDFKitten for this?
Thanks in advance for any help!
How can I open or display PDF file without using UIWebView. I need to use UIView for horizontal scroll for PDF View.
If don't want to use UIWebView then your alternative is to use QLPreviewController for showing PDF file.
Can also use UIDocumentInteractionController
Check sample from apple ie docInteraction for more reference.
Check out the OpenSource Reader project on GitHub.
Look up CGPDFDocument and the related APIs. That should get you going.
I have to develop a iPad app which can view a PDF file and draw some predefined annotations on it dynamically. It's like http://plangrid.com/ do.
I went though WWDC videos, stackoverflow and some other blogs.
But could not find a way to add a controller bar on the PDF. And drag a annotation from it and drop on the PDF.
I have an idea about to view a PDF. I followed ZoomingPDFViewer example.
Please advise me.
I'm using XCode 4 and iOS 4.3.
I'm not sure if you found the following stackoverflow post:
Annotate PDF within iPhone SDK
The first answer shows how to add text to a pdf page at a given location. This should be helpful for your purposes.
I have this help page I want to add to my application, but I'm not sure of how to format it. At the moment it's just an image in a scrollview, but surely there's a better way?
Many apps use a WebView to display formatted text. You can then use CSS to style your content as needed.
You could use NSAttribuatedString + RTLabel to display it (or of cause the default cheat of a UIWebView).
To display RichText (NSAttribuatedString use one of these).
http://www.cocoacontrols.com/platforms/ios/controls/rtlabel
https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML
http://www.cocoanetics.com/2011/01/uiwebview-must-die/
https://github.com/AliSoftware/OHAttributedLabel
https://github.com/mattt/TTTAttributedLabel
Use webview to and with webservices so u can change it later so on