From PDFPoint to view point - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: From PDFPoint to view point

From PDFPoint to view point 4 years 3 months ago #7078

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
Hi, onSelEnd I convert the start and the end point to pdf point and save it.
After, I need the corresponding point in the view (portrait or landscape), how i ca do it?

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

Last edit: by Abdikayrov.

From PDFPoint to view point 4 years 3 months ago #7079

  • emanuele
  • emanuele's Avatar
  • Online
  • Moderator
  • Moderator
  • Posts: 526
  • Karma: 20
  • Thank you received: 60
Hi,

you can try with:

PDFVPage *vpage = [m_view vGetPage:page];
CGPoint viewPoint = CGPointMake([vpage ToPDFX:point.x], [vpage ToPDFY:point.y]);

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

From PDFPoint to view point 4 years 3 months ago #7094

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
if i have the pdf open with ipad in portrait mode it work, but if i have the ipad in landscape the y it wrong, the PDFView is in PDFVDual mode.
From this pdf point

x1(143.7574,568.9045);
x2(219.6855,568.9045);

return this view point

x1(203.340836,-2.770934)
x2(313.812866,-2.770934)

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

From PDFPoint to view point 4 years 3 months ago #7174

  • emanuele
  • emanuele's Avatar
  • Online
  • Moderator
  • Moderator
  • Posts: 526
  • Karma: 20
  • Thank you received: 60
Hi,

you can try to get points directly from a page, with:

-(int)GetVX:(float) scrollx;
-(int)GetVY:(float) scrolly;

methods, in PDFVPage class

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

From PDFPoint to view point 4 years 2 months ago #7321

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
No, it doesn't work.
I need to redraw a markup annotation made in portrait mode when i open the pdf in landscape mode.
There is same other way to do this?

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

  • Page:
  • 1
Powered by Kunena Forum