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

TOPIC:

Single Page Mode 7 years 8 months ago #11044

  • ssaguado
  • ssaguado's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Hello,

How can I use single page mode? By default, Vertical mode is used and there is no button to switch between modes.

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

Single Page Mode 7 years 8 months ago #11045

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

in demo project you can set the render mode in Settings tab, selecting Default View Mode.
To force a specific viewMode, you can set g_def_view to a specific value in vOpen method of PDFView.m:
0: vertical
1: horizontal
2: right continuous
3: double page left
4: double page right
5: reflow

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

Single Page Mode 7 years 8 months ago #11046

  • ssaguado
  • ssaguado's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Tank you.

Using that option we can change the page horizontally but it's a continuous scroll. We need to scroll page by page, like Android. Whe have tried to use " g_paging_enabled = true" but it didn't works as expected. Sometimes the scroll stops between two pages. Maybe because the page witdh doesn't macth de screen width. Is there any way to scroll page by page in iOS?

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

Single Page Mode 7 years 8 months ago #11047

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

can you share the pdf used for testing?

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

Single Page Mode 7 years 8 months ago #11050

  • ssaguado
  • ssaguado's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
PDF for testing:

we.tl/36znIHimDJ

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

Single Page Mode 7 years 8 months ago #11062

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

I checked your file and everything seems to work correctly.
Which mode are you using?
I suggest to use mode 3, so you can set g_paging_enabled = true to enable paging.
By default mode 3 shows double page, but in vOpen method (PDFView.m) you can follow comments to toggle double page/single page.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum