Page Curl effect for PDF on iOS / Android?

Q: How do I add Page Curl effect for PDF in my mobile app based on PDFNet SDK?

Page curl effect is not a built-in feature of PDFNet, but there are ways to achieve that. For example, if you are looking for this feature on a mobile platform you can use our Mobile SDK and:

  • For iOS:

To add a page turning animation you will likely want to use the iOS class UIPageViewController.

Because the main control we ship, PDFViewCtrl, is a UIView, you can perform a page turn animation with it like you would using any other UIView. The only thing to keep in mind is that you will need to use a separate PDFViewCtrl for each independent interactive page you expect to simultaneously show. During the animation, you could also use non-interactive renderings of a PDF page (displayed in a UIImage) to limit the number of instantiated PDFViewCtrls to a maximum of two, and when the animation finishes move the PDFViewCtrl(s) from the “old” view controller(s) to the new one(s).

  • For Android:

Although Android lacks a standard OS method for achieving this effect, you can use a third party library (or of course a custom one if you wish). You could use the pdftron.PDF.PDFDraw class to obtain a page snapshot and then simulate the curling effect using, for example,