Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Notes are cleared after selecting and tapping on another page. 4 years 4 days ago #14966

  • serlon1
  • serlon1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Last edit: by serlon1.

Notes are cleared after selecting and tapping on another page. 4 years 4 days ago #14967

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
Could you please set public your Google Drive's video?

Please Log in or Create an account to join the conversation.

Notes are cleared after selecting and tapping on another page. 4 years 4 days ago #14968

  • serlon1
  • serlon1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0

Please Log in or Create an account to join the conversation.

Notes are cleared after selecting and tapping on another page. 4 years 3 days ago #14969

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
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];
}

Please Log in or Create an account to join the conversation.

Last edit: by federico.

Notes are cleared after selecting and tapping on another page. 4 years 3 days ago #14970

  • serlon1
  • serlon1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Notes are cleared after selecting and tapping on another page. 4 years 3 days ago #14973

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
We've just uploaded the new version, you could find it here

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum