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

TOPIC:

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15006

  • Apparound
  • Apparound's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
I've updated to version 3.61 from 3.58. In my settings I'm not using _g_layout_zoom_level.
Without setting it, pdf is not shown (try PdfViewer project and remove _g_layout_zoom_level = 11) and also tapping on a thumb results in a crash.
Is this setting mandatory from 3.61 version? what's the meaning of 11?

Thanks

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

Last edit: by Apparound.

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15008

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
g_layout_zoom_level represents pdf viewer's maximum zoom level.
RadaeePDF CALayer 3.61 has now globals' name aligned with android, before variable's name was g_zoom_level and now g_layout_zoom_level
This value determines how large the content can be scaled. It must be greater than the minimum zoom scale for zooming to be enabled so if you're not interested in zooming feature you could just set maximum level (g_layout_zoom_level) as 1.

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

Last edit: by federico.

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15010

  • Apparound
  • Apparound's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
In your PdfViewer project there are both settings with different values:
_g_zoom_level = 3; //double tap, (2-5)
_g_layout_zoom_level = 11; //pinch to zoom
removing the second causes the problems mentioned in the last post.
Are they both mandatory? or _g_zoom_level is obsolete and can be remove and_g_layout_zoom_level is mandatory?
Why they have different values?

Thanks for the support.

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

Last edit: by Apparound.

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15012

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
In 3.61 version or newer these globals are both mandatory because from this version globals in Android and iOS are aligned.
g_zoom_level global represent the max steps that double tap could to about zooming in and zooming out and it has to be a value between 2 and 5 included.
g_layout_zoom_level global determines how large the content can be scaled.

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

Last edit: by federico.

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15013

  • Apparound
  • Apparound's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
So I have to use both. One last thing: is there a range of permitted values for g_layout_zoom_level? which value can be considered the default of the previous version? I would like to maintain the same behavior as before.

Thanks

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

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15014

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
If you would like to maintain the same behavior as before you should just set g_layout_zoom_level as was g_zoom_level before in RDVGlobal class:
_g_layout_zoom_level = 15; //pinch to zoom

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum