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

Last page not center alligned click on thumb

More
IP: 192.168.0.70 12 years 8 months ago - 12 years 8 months ago #4816 by sahli.wa.skumar
hi,

When click on last page thumb nail the last page shows up on screen which is not center alligned it is always right alligned.
im using

defView =3; in PDFview class

and below code
case 3:
//for dual view
// m_view = [[PDFVDual alloc] init:false :NULL :0 :NULL :0];
//m_view = [[PDFVVert alloc] init];

//for single view
m_view = PDFVDual alloc] init:false :NULL :0 :verts :[m_doc pageCount;

Please suggest.
Last edit: 12 years 8 months ago by PIAMO.
More
IP: 192.168.0.151 12 years 8 months ago #4923 by emanuele
Hi,

to solve this issue you can edit vGoto method, in PDFView.m file:

-(void)vGoto:(int)pageno
{
struct PDFV_POS pos;

pos.x = 0;
pos.y = [m_doc pageHeight:pageno];
pos.pageno = pageno;
if (pageno >= (m_doc.pageCount - 1))
[m_view vSetPos:&pos :[m_doc pageWidth:pageno]/2 :0];
else
[m_view vSetPos:&pos :0 :0];


[m_view vGetDeltaToCenterPage:pos.pageno :&m_swipe_dx :&m_swipe_dy];
[self refresh];
}
More
IP: 192.168.0.70 12 years 8 months ago #4945 by sahli.wa.skumar
That worked:-)

Thank you!!!
Time to create page: 0.402 seconds
Powered by Kunena Forum