PDF.js : How to stop PDF turns into 180 Degree when using page navigation - pdf.js

I want to use PDF.js for loading PDF into viewer. While loading and navigating pdf pages. It gets turn into 180 Degree.
For example see this video : https://youtu.be/4w0276IFv58
For example see this demo : http://testchat32.tk/PDF/
You can get all files used in page source.
Any suggestion or solution much appriciated.
Thanks in advance.

Related

displaying a power point presentation through a grails application

I'm working on a grails application and being asked if it's possible to display a viewable embedded powerpoint. Someone said, I should take each slide and make an image and display it that way. Anyone know of a simpler solution?
I would use SlideShare. Upload the PowerPoint to SlideShare and click "Embed" to generate an iframe element that can be embedded in your GSP.

Render PPT files in iOS 6

I am developing an application where it will load Power point presentation file in UIWebView and capture the screen of the UIWebView for each page. And I am able to display as images one by one like a presentation.
Targetted platforms are: iOS6, iOS7
(1) Now when I want to display a Power Point document that has slides with multiple layered images/ elements or slides with animation
(2) Ppt files with custom size of slides
are not properly rendered by UIWebView. And hence I am seeing those slides in a different alignment and orientation. Basically not able to display as original images.
I searched in Google, Stack Overflow and even Apple documentation. Nowhere documented that this is not possible. Is there any other approach for loading ppt files where I will not lose any content or alignment?
SlideShark or Key Note are the apps which will display ppts as if original ppt slides.
Follow App Guidelines for UIDocumentInteractionController
Documentation
Sample Code
I think this will help you.
You can check file support using QLPreviewController here.

How can I load a specific part of webpage in UIWebView ??

I need to load or hide a part of a web page that can be viewed in my WebView.
Take a look at these two StackOverflow questions - between them, you should be able to solve your problem.
First:
Objective C - UIWebview to load only a certain part of the webpage?
Then, take a look at:
Reading HTML content from a UIWebView

Page curl left and right for uiwebview with html contents

I am working on a epub book reader application and displaying the contents of
book in web view and i want to give a horizontal page curl effect for that just a turning the page of a real book. I couldnt find any tutorials for that . Help is appreciated
Like this? https://github.com/zeroCoder1/Epub-Reader/blob/master/testPubb%2FtestPubb%2FViewController.m#L41
// Aw, stackoverflow need me to enter at least 30 characters, so here's it another wasted characters they need. ;p

Image Rendering problem

application is e-book reader, we are using svg format to render the pages ,the prob is while rendering the pages in ipad, images are getting rendered but they are taking time to get render,can any one please tell me to solve this issue ?
thank in advance..
prasad
cvvprasad.dingari#gmail.com
Rendering an image will always take time. With an e-book reader you have the advantage of knowing by-in-large that page views will be sequential. One idea is to render in the background while the user is viewing the previous page, and swapping which is on top when they change the page.

Resources