Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

vZoomSet method chang the scale value I set 8 years 5 months ago #9803

  • sekorm
  • sekorm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
I've tried 3.6beta5 release , but it did not solve the problem.
And I've replied you a mail at This email address is being protected from spambots. You need JavaScript enabled to view it. , please check you mail .

As for the methods you suggested me,
I could not find anywhere to invoke it ,since I found no ways to Get the PDFView, Could you please send me a demo using PDFView to my mail
This email address is being protected from spambots. You need JavaScript enabled to view it. ?!

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

vZoomSet method chang the scale value I set 8 years 5 months ago #9806

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
I suggest you to look at PDFReader class, you will find m_view.
Here an example of how to use vSetScale method:
m_view.vSetScale(500, 0, 0);

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

vZoomSet method chang the scale value I set 8 years 5 months ago #9827

  • sekorm
  • sekorm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
I've tried it then ,
But when I set the first param value to 1.00005f, It still have a big ZoomIn effect which was not I wanted.,
m_view.vSetScale(1.00005f, 0 , 0);

You can have a try with the pdf I Upload below.

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

vZoomSet method chang the scale value I set 8 years 5 months ago #9831

  • sekorm
  • sekorm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
I've tried m_view.vSetScale(0.77f, 0 , 0);
but it also have a zoomIn effect ?!

How do you define the first param of this method 'vSetScale' ?!

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

vZoomSet method chang the scale value I set 8 years 5 months ago #9832

  • sekorm
  • sekorm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
I've tried some pdf documents' different pages to test the vSetScale method,
but I still have no idea of how this method work,
even I set a value which was less than 1 , after invoking the vSetScale method, it had a zoomIn effect ,
while I set a value which was greater than 1, it also had a zoomIn effect.......

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

vZoomSet method chang the scale value I set 8 years 5 months ago #9833

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
each pdf has an own min_scale and you can get it with
m_view.vGetMinScale();
That's why with some pdf if you set a value the pdf is zoomed and with other pdf no.
So you have to handle the vSetScale value taking into account the min_scale value.

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

Powered by Kunena Forum