TextNote Annotation not saving the Edited subject and Content (UWP) - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Tell us about your applications and your projects.
  • Page:
  • 1

TOPIC: TextNote Annotation not saving the Edited subject and Content (UWP)

TextNote Annotation not saving the Edited subject and Content (UWP) 6 months 1 week ago #13878

  • alopan
  • alopan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Dear Support,

Issue with the TextNote annotation:-

When multiple TextNote annotation are added to the PDF document with different subject and content. Editing any one TextNote annotation will not saving for that annotation.
Steps to reproduce in the Radaeep PDF sample code:-
1. Open a PDF document and add at least 4 TextNote annotation with different subject along with different content so that you can identify the annotations.
2. Again try to open the annotation and update the subject and content with help of popup shown when annotation are opened in the EditMode.
3. Once Editing is done then try to verify the added annotation in the same way as editing was done.
4. While verifying you will find updated annotation is not not showing the updated Subject and text instead this is showing the initial Subject and content when TextNote annotation are added.

Thanks & Regards,
Alok Pandey

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

Last edit: by alopan.

TextNote Annotation not saving the Edited subject and Content (UWP) 6 months 1 week ago #13881

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Dear Alok,

To fix this you need to remove vAnnotEnd(); from PDFView.vAnnotPerform from the part:
if (m_annot.IsPopup && m_annot.Type == 1) // add type check as it enters also for highlight annot
                {
                    //popup dialog to show text and subject.
                    //nuri is text content.
                    //subj is subject string.
                    if (m_listener != null)
                        m_listener.OnPDFAnnotPopup(m_annot, m_annot.PopupSubject, m_annot.PopupText);
                    //vAnnotEnd();
                    return;
                }
And in PDFReaderPage add m_view.vAnnotEnd(); at the end of OnCloseDialog:
private void OnCloseDialog(String subject, String content, bool cancel, bool edit)
        {
            if (cancel)
            {
                m_view.vNoteRemoveLast();
                return;
            }
            if (mAnnot == null)
            {
                int index = -1;
                PDFView.PDFPos pos = m_view.vGetPos(0, 0);
                PDFVPage vpage = m_view.vGetPage(pos.pageno);
                if (vpage != null)
                {
                    PDFPage page = vpage.GetPage();
                    if (page != null)
                    {
                        index = page.AnnotCount;
                        if (index > 0)
                            mAnnot = page.GetAnnot(index - 1);
                        if (mAnnot == null)
                            return;
                    }
                }
            }
            mAnnot.PopupSubject = subject;
            mAnnot.PopupText = content;
            mTextAnnotDialog.dismiss();
            mTextAnnotDialog = null;
            m_view.vAnnotEnd();
        }

Note: the fix is already integrated in the latest version.
The following user(s) said Thank You: alopan

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

TextNote Annotation not saving the Edited subject and Content (UWP) 6 months 1 week ago #13884

  • alopan
  • alopan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Thanks.. It's working now..

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

  • Page:
  • 1
Powered by Kunena Forum