Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Tell us about your applications and your projects.

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

More
IP: 27.59.69.208 7 years 9 months ago - 7 years 9 months ago #13878 by alopan
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
Last edit: 7 years 9 months ago by alopan.
More
IP: 37.183.44.177 7 years 9 months ago #13881 by nermeen
Dear Alok,

To fix this you need to remove vAnnotEnd(); from PDFView.vAnnotPerform from the part:
Code:
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:
Code:
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.
More
IP: 122.172.190.19 7 years 9 months ago #13884 by alopan
Thanks.. It's working now..
Time to create page: 0.388 seconds
Powered by Kunena Forum