Page position on zoom - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF

TOPIC:

Page position on zoom 6 years 3 days ago #7530

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
Hi,when I zoom the page is not center where I zooming but the page is zoomed in section. The result is that I can't do with zoom an annotation in same section of the page because this is not visible in the same momemnt.
I use the latest beta release.

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

Page position on zoom 5 years 9 months ago #8258

  • dilawer
  • dilawer's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi Team,

I am having the same problem. Can you please let me know what could be the possible solution ?

When I zoom a page, it do not stand still on the same area. It moves to another location after zooming. It happens only when I set paging enable. In PDFView, I set self.pagingEnabled=YES. Otherwise zooming is good but I need zooming and paging both.

Please send a quick response.
Thanks

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

Page position on zoom 5 years 9 months ago #8263

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 580
  • Karma: 21
  • Thank you received: 67
Hi,

you can try to disable pagingEnabled in scrollViewDidZoom method, and set it to YES at the end of scrollViewDidEndZooming method if self.zoomScale <= 1 (if entire page is shown).

If the page is not centered when you zoom out, you can also call vGoto.

in scrollViewDidEndZooming you should add something like:
if (self.zoomScale <= 1)
    {
        self.pagingEnabled = YES;
        [self vGoto:m_cur_page];
    }

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

Page position on zoom 5 years 9 months ago #8271

  • dilawer
  • dilawer's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi,

Thanks for a quick update. I will try this and will respond back. But I am also expecting a fix for this in next reader update. Please confirm reader team will fix this ?

Thanks

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

Page position on zoom 5 years 8 months ago #8446

  • wdbutt
  • wdbutt's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Hi Emanuele,
I did code as you instruct in you solution, you can see in my code image ( cloudup.com/cHj2prHEQmI ). But I'm facing problem. When I zoom out, I am taken to a different page. Please give proper solution asap.

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

Page position on zoom 5 years 8 months ago #8447

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 580
  • Karma: 21
  • Thank you received: 67
Hi,

please check the last version, that integrate some zoom improvements.

You can download it here

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

Powered by Kunena Forum