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

From PDFPoint to view point

More
IP: 192.168.0.71 11 years 8 months ago - 11 years 8 months ago #7078 by Rossi
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?
Last edit: 11 years 8 months ago by Abdikayrov.
More
IP: 192.168.0.161 11 years 8 months ago #7079 by emanuele
Hi,

you can try with:

PDFVPage *vpage = [m_view vGetPage:page];
CGPoint viewPoint = CGPointMake([vpage ToPDFX:point.x], [vpage ToPDFY:point.y]);
More
IP: 192.168.0.71 11 years 8 months ago #7094 by Rossi
Replied by Rossi on topic From PDFPoint to view point
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)
More
IP: 192.168.0.161 11 years 8 months ago #7174 by emanuele
Hi,

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

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

methods, in PDFVPage class
More
IP: 192.168.0.71 11 years 7 months ago #7321 by Rossi
Replied by Rossi on topic From PDFPoint to view point
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?
Time to create page: 0.501 seconds
Powered by Kunena Forum