Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mlibary

macrumors newbie
Original poster
Jun 11, 2012
6
0
Hi;

:confused:
I'm using the open source PDF Reader v2.6.1 ( https://github.com/vfr/Reader).
In this source code, you can navigate between pages by swiping from Right to Left to go to the next page.
I just want to inverse the direction of the navigation to be from Left to Right.. which mean the user will swipe from left to right ( Like an Arabic book ).

Hope that my question is clear, thanks all in advance :)
 

hollersoft

macrumors regular
Feb 10, 2013
100
64
I believe this is non trivial. All that code assumes page numbers are 1-n from left to right. The scroll view contains three ReaderContentViews with coordinate systems set up assuming left to right page order. Each ReaderContentView uses the page number as the view tag. Switching to the next/previous page is done in ReaderViewController.scrollViewDidEndDecelerating I believe. In ReaderViewController.showDocumentPage there is a bunch of code that sets up the view coordinate systems (content offset) to carefully order them so scrolling works.

If you reversed the page order scheme you would have to reorder the thumbnails as well.

Can you achieve what you want just by editing the PDF (using Preview app or something) to reorder the pages, then start on the last page?
 

mlibary

macrumors newbie
Original poster
Jun 11, 2012
6
0
iOS PDF Reader

Thank you..
It is a good idea !!
but still, I need to reverse the thumbnails.. and re-order them from right to left..

right ?!!
 

Hiban

macrumors newbie
Mar 10, 2013
1
0
Hi,

Were you able to solve for this?
Let me know if you were able to do so, it will be greatly appreciated.

Thank you..
It is a good idea !!
but still, I need to reverse the thumbnails.. and re-order them from right to left..

right ?!!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.