Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level

More
IP: 79.51.127.211 5 years 9 months ago - 5 years 9 months ago #15006 by Apparound
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
Last edit: 5 years 9 months ago by Apparound.
More
IP: 87.10.38.122 5 years 9 months ago - 5 years 9 months ago #15008 by federico
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.
Last edit: 5 years 9 months ago by federico.
More
IP: 79.51.127.211 5 years 9 months ago - 5 years 9 months ago #15010 by Apparound
In your PdfViewer project there are both settings with different values:
Code:
_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.
Last edit: 5 years 9 months ago by Apparound.
More
IP: 87.10.38.122 5 years 9 months ago - 5 years 9 months ago #15012 by federico
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.
Last edit: 5 years 9 months ago by federico.
More
IP: 79.51.127.211 5 years 9 months ago #15013 by Apparound
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
More
IP: 212.97.62.176 5 years 9 months ago #15014 by federico
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:
Code:
_g_layout_zoom_level = 15; //pinch to zoom
Time to create page: 0.405 seconds
Powered by Kunena Forum