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

TOPIC:

From PDFPoint to view point 9 years 8 months ago #7078

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 49
  • 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 9 years 8 months ago #7079

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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 9 years 7 months ago #7094

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 49
  • 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 9 years 7 months ago #7174

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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 9 years 7 months ago #7321

  • Rossi
  • Rossi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 49
  • 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