Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Restrict scroll of pages 6 years 11 months ago #12309

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • 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 6 years 11 months ago #12311

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Which platform your are interested in?

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

Restrict scroll of pages 6 years 11 months ago #12405

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

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

Restrict scroll of pages 6 years 11 months ago #12410

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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 6 years 10 months ago #12416

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • 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 6 years 10 months ago #12447

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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