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

On Button click want to show next page

More
IP: 114.143.34.171 6 years 2 weeks ago #14908 by apdeveloper
Dear Team,
I want to show next page or previous on button click.
More
IP: 111.196.243.219 6 years 2 weeks ago - 6 years 2 weeks ago #14909 by radaee
sorry, some methods seems not implement on ios.
this method shall be easy, plz add following codes to class PDFLayoutView
Code:
-(void)vGotoPage:(int)pageno { if(!m_layout) return; RDVPage *vp = [m_layout vGetPage:pageno]; if(!vp) return; self.contentOffset = CGPointMake([vp GetX]/m_scale_pix, [vp GetY]/m_scale_pix); //[self scrollRectToVisible:CGRectMake([vp GetX]/m_scale_pix, [vp GetY]/m_scale_pix, // [vp GetWidth]/m_scale_pix, [vp GetHeight]/m_scale_pix) animated:YES]; }
and then, in your ViewController, you shall invoke [PDFLayoutView vGotoPage:pageno];
this method not tested, we shall test on next days.
Last edit: 6 years 2 weeks ago by radaee.
More
IP: 37.183.44.177 6 years 2 weeks ago #14910 by emanuele
Dear user,
If you are using RDLoPDFViewController, you could use vGetCurrentPage of PDFLayoutView class to get the current page:
Code:
int page = [m_view vGetCurrentPage];
then use PDFGoto method of RDLoPDFViewController class to change page.
Code:
[self PDFGoto:page];
PDFGoto calls vGoto method of PDFLayoutView.
Time to create page: 0.416 seconds
Powered by Kunena Forum