- Posts: 67
- Thank you received: 0
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
- apdeveloper
- Topic Author
- Offline
- Senior Member
-
Less
More
IP: 114.143.34.171
6 years 2 weeks ago #14908
by apdeveloper
On Button click want to show next page was created by apdeveloper
Dear Team,
I want to show next page or previous on button click.
I want to show next page or previous on button click.
IP: 111.196.243.219
6 years 2 weeks ago - 6 years 2 weeks ago #14909
by radaee
Replied by radaee on topic On Button click want to show next page
sorry, some methods seems not implement on ios.
this method shall be easy, plz add following codes to class PDFLayoutView
and then, in your ViewController, you shall invoke [PDFLayoutView vGotoPage:pageno];
this method not tested, we shall test on next days.
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];
}
this method not tested, we shall test on next days.
Last edit: 6 years 2 weeks ago by radaee.
IP: 37.183.44.177
6 years 2 weeks ago #14910
by emanuele
Replied by emanuele on topic On Button click want to show next page
Dear user,
If you are using RDLoPDFViewController, you could use vGetCurrentPage of PDFLayoutView class to get the current page:
then use PDFGoto method of RDLoPDFViewController class to change page.
PDFGoto calls vGoto method of PDFLayoutView.
If you are using RDLoPDFViewController, you could use vGetCurrentPage of PDFLayoutView class to get the current page:
Code:
int page = [m_view vGetCurrentPage];
Code:
[self PDFGoto:page];
Time to create page: 0.416 seconds