- Posts: 8
- Thank you received: 0
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
IP: 79.51.127.211
5 years 9 months ago - 5 years 9 months ago #15006
by Apparound
iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level was created 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
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.
IP: 87.10.38.122
5 years 9 months ago - 5 years 9 months ago #15008
by federico
Replied by federico on topic iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level
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.
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.
IP: 79.51.127.211
5 years 9 months ago - 5 years 9 months ago #15010
by Apparound
Replied by Apparound on topic iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level
In your PdfViewer project there are both settings with different values:
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.
Code:
_g_zoom_level = 3; //double tap, (2-5)
_g_layout_zoom_level = 11; //pinch to zoom
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.
IP: 87.10.38.122
5 years 9 months ago - 5 years 9 months ago #15012
by federico
Replied by federico on topic iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level
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.
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.
IP: 79.51.127.211
5 years 9 months ago #15013
by Apparound
Replied by Apparound on topic iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level
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
Thanks
IP: 212.97.62.176
5 years 9 months ago #15014
by federico
Replied by federico on topic iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level
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:
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