my webview displays a pdf file that has bookmarks for certain pages. How to I get the code to automatically scroll to the page of a particular bookmark in the pdf?
You better use iOS PDF viewers. (E.g. FastPdfKit)
Related
How to show PDF file with UIWebView horizontal with paging scroll PDF.
I can show PDF with UIWebView but can not show horizontal with pagination.
I searched but did not resolve.
UIWebView does not support pagination for PDF files, you'll have to implement such control on your own or use one of third-party solutions like PSPDFKit.
How can I split a multi-page PDF file into single pages in an array using Swift?
I have a six page PDF document that I would like to display using webview with a nice page turning effect. The first part is done, displaying some html text on each page, but I would like to display pages from a PDF document instead.
Any help would be most appreciated.
I am using vfr reader in my project to read pdf files. There is no problem with showing different pdf files. However, main page bar showing the previews of pages of the first document that I loaded. Also,the thumbnail which is displayed before the CATiledLayer starts to render the PDF page is also not refreshing. It must be a caching problem but I couldn't handle it.
I deleted the Caches folder in App directory. After that the problem is solved.
I have a PDF rendering app that loads PDF content from a URL (CGPDFDocumentCreateWithURL). The PDF loads fine, and I can display on screen no problem. These PDF also contain text for searching. I'm trying to make this comtent visible to the VoiceOver API. I've never worked with this frameowrk before.
Anyone have any hints or links that can help me get started?
If you have access to the text from the particular PDF page, you can set the accessibilityValue of the view you are using to display the page to the text value. This will then read the contents out.
If for some reason your PDF view is not accessible to voiceover, you can use an overlay view, and update its accessibility value as you change pages.
I have some code that generates a pdf from text files, and adds bookmarks to various locations within said pdf using UIGraphicsAddPDFContextDestinationAtPoint and UIGraphicsSetPDFContextDestinationForRect. The UIWebView appears to be bugged, where clicking certain bookmarks temporarily renders other bookmarks to send the view to the top of the document. I say "temporarily" because clicking on an unaffected bookmark seems to reset all bookmarks so they point where they are supposed to.
This doesn't appear to be a coding problem, as it only occurs in UIWebView. When I open the pdf in iBooks, the links always work fine. However I would prefer to view the pdf in app, and the only other ways to do it that I'm aware of (UIImageView & UISliderView) would probably eliminate the bookmarks altogether. So I'm hoping there could be a way to fix UIWebView so this problem no longer occurs.
Any suggestions?