Restrict scroll of pages - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Restrict scroll of pages

Restrict scroll of pages 1 year 6 months ago #12309

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
Hi,
Can we restrict the scrolling of pages to a few pages.
eg. If there is a pdf of 20 pages. I want to view that pdf from 4 to 10 page only and restrict fro viewing other pages.

Please Log in or Create an account to join the conversation.

Restrict scroll of pages 1 year 6 months ago #12311

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Which platform your are interested in?

Please Log in or Create an account to join the conversation.

Restrict scroll of pages 1 year 5 months ago #12405

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
iOS

Please Log in or Create an account to join the conversation.

Restrict scroll of pages 1 year 5 months ago #12410

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 512
  • Karma: 15
  • Thank you received: 56
Hi,

there is not a specific method to do that, but you can customize the SDK to reach your needs, in this case you can try different ways:
- Edit the pageCount method of PDFDoc in PDFObjc class and return the last page to show (e.g.. if your pdf file has 20 pages, you can return 5 in this method to show only 5 pages and thumbnails).
- Open the pdf file to minimum page of your range.
- Check if the current page is in your range in OnPageChanged method of PDFView class and use vGoto method to limit the pdf navigation.

Please Log in or Create an account to join the conversation.

Restrict scroll of pages 1 year 5 months ago #12416

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
I need to achieve this in scroll view. Also i don't want to alter the pages of the original document. I just want to give the user access only to the set of pages. eg. in a pdf of 10 pages. i want to give the user access to pages 2 to 4.

Please Log in or Create an account to join the conversation.

Restrict scroll of pages 1 year 5 months ago #12447

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 512
  • Karma: 15
  • Thank you received: 56
You can do it with the vGoto method as described in points 2 and 3

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum