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

Notes are cleared after selecting and tapping on another page.

More
IP: 46.119.167.56 5 years 11 months ago - 5 years 11 months ago #14966 by serlon1
Hi,
We've found an issue in our application with clearing notes after selecting it and pressing on another page. I've checked your example project and it also presents there. We're using PDFLayoutView in our application and seems like the problem is there.
To see more details please check this video - drive.google.com/file/d/1EIijxKJmc-qxz3h...nzu/view?usp=sharing .
Could you help us with that?
Last edit: 5 years 11 months ago by serlon1.
More
IP: 87.10.38.122 5 years 11 months ago #14967 by federico
Hi,
Could you please set public your Google Drive's video?
More
More
IP: 87.10.38.122 5 years 11 months ago - 5 years 11 months ago #14969 by federico
Hi
We've just edited PDFLayoutView.m to fix your issue. In next beta release we'll add these edited lines.
Meanwhile you could edit OnAnnotTouchEnd method's end like this:

else if (m_tx != m_px && m_ty != m_py)
{
RDVPage *vdest = [m_layout vGetPage:pos.pageno];
PDFPage *dpage = [m_doc page:pos.pageno];
if( dpage )
{
PDFMatrix *mat = [vdest CreateInvertMatrix
:self.contentOffset.x * m_scale_pix
:self.contentOffset.y * m_scale_pix];
[mat transformRect :&m_annot_rect];

//Action Stack Manger
PDF_RECT rect;
[m_annot getRect:&rect];

PDF_OBJ_REF ref = [m_annot getRef];

[dpage objsStart];
[annot MoveToPage :dpage :&m_annot_rect];

[self ProUpdatePage :m_annot_pos.pageno];
[self ProUpdatePage :pos.pageno];


ASMove *item = [[ASMove alloc] initWithPage:m_annot_pos.pageno initRect:rect destPage:pos.pageno destRect:m_annot_rect index:([dpage annotCount] - 1) ref:ref];
[actionManger push:item];
item.m_pageno = item.m_pageno0;
[actionManger orderOnDel:item];
item.m_pageno = item.m_pageno1;
[actionManger orderIndexes:item];

[self vAnnotEnd];
[self updateLastAnnotInfoAtPage:dpage];
}
} else {
[self vAnnotEnd];
}
Last edit: 5 years 11 months ago by federico.
More
IP: 46.119.167.56 5 years 11 months ago #14970 by serlon1
Worked for me!
Thank you so much for such quick response and problem resolving.
Could you please notify me when the new version will be available?
More
IP: 87.10.38.122 5 years 11 months ago #14973 by federico
Hi,
We've just uploaded the new version, you could find it here
Time to create page: 0.405 seconds
Powered by Kunena Forum