RadaeePDF.com :: Topic: Moving annotation too a new page (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Moving annotation too a new page

Moving annotation too a new page 3 years 10 months ago #4983

I have implemented a system for dragging annotations to a new location on a page. However, if the annotation is dragged across a page boundary I have not been able to find in the framework any way of putting the annotation onto the new page.

Does such functionality exist?

Thanks
The administrator has disabled public write access.

Moving annotation too a new page 3 years 10 months ago #4989

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 711
  • Thank you received: 49
  • Karma: 18
no, but you can implement it by removing the annotation from the first page and add it to the second page
The administrator has disabled public write access.

Moving annotation too a new page 3 years 10 months ago #4994

Hi and thanks for the reply. Forgive me if I am missing something obvious :) But it seems like the Page object does not support adding an existing annotation to a Page. It only seems to support creating new annotations. Have I missed something?
The administrator has disabled public write access.

Moving annotation too a new page 3 years 10 months ago #4995

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 711
  • Thank you received: 49
  • Karma: 18
Nop, you did not miss anything (the Page object does not support adding an existing annotation to a Page).. to support this you need to check the type and the parameters of the annotation being moved..
create a new one with the same specs in the next page and then remove the old annotation from the first page
The administrator has disabled public write access.

Moving annotation too a new page 3 years 10 months ago #4997

That almost works… However I am using a PDF that was annotated in Adobe Reader. The PDF contains stamp annotations. There does not appear to be any way of re-creating a stamp annotation on a new page. I believe there are other annotation types that the library does not support as well, such as the "thought bubble / curly line" annotation type.

This means if you open a PDF that was annotated in Reader, you can move some annotations to a new page and not others.

It looks like I will have to proceed by not allowing any annotations to be moved to a new page by constraining the user's drag operation. I'd like to suggest that if possible it would be great to add a method to the Page object allowing existing annotations to be assigned to a new page, to make the library more useful in the future.

Thanks for your help.
The administrator has disabled public write access.

Moving annotation too a new page 3 years 10 months ago #5002

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
new interfaces added, and demo project updated.
plz wait next version.
Last Edit: 3 years 10 months ago by .
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Powered by Kunena Forum