Problem with TextMarkupAnnotation when first time open a file

Hi guys!


I'm using SfPdfViewerControl in UWP with the latest version(24.2.7) of the library and have encountered some unexpected behavior. There is a bug with both text selection and any text markup annotation when the first document opens. Text selection and markup don't work at all. When I load the second file, text selection, and markup start working as expected.


I've investigated this issue and can confirm it has appeared starting from the 18.3.0.42 version of the Nuget. In the previous 18.3.0.40 version, there were no such problems.


Thank you in advance for your reply.


10 Replies 1 reply marked as answer

MA ManojKumar Arumugasamy Syncfusion Team February 20, 2024 11:34 AM UTC

We were unable to reproduce the issue, “Cannot add Textmarkup annotation and copy text when PDF document loaded” and it is working as expected. Could you please try the sample and let us know whether we have missed anything while replicating the issue? We have also attached a video for your reference.

  

Please find the sample in the below link, which we have used to reproduce the issue in our end 

https://www.syncfusion.com/downloads/support/directtrac/general/ze/Files186823992487194

 

Please share the following details to analyze this issue further and assist you with a better solution.

1. Simple sample/ modify the above sample to reproduce the issue.  

2. Replication video/procedure to reproduce the issue. 

3.PDF document that might cause the issue



RC Roxy Cole February 20, 2024 09:38 PM UTC

Thank you for the provided solution. But the problem is that I don't use the default toolbar. I'm trying to use SfPdfViewerControl.UnderlineAnnotationCommand.Execute(true) to turn on the annotation mode. I have created a very basic sample with a few lines of code to display the issue(please see the sample attached). Also providing you some screenshots

Xaml:

Image_5903_1708464969273

Code behind:

Image_8164_1708465044531


As I mentioned before, when I open the first file, annotations and text selection don't work. For all the next files open everything work as expected. The issue has appeared starting from the 18.3.0.42 version of the Nuget. In the previous 18.3.0.40 version, there were no such problems.


Attachment: App2_ed17d46a.zip


MA ManojKumar Arumugasamy Syncfusion Team February 21, 2024 06:07 AM UTC

We were still unable to replicate the issue Kindly find the replication video on the sample provided. We suspect that this issue might be caused by a specific PDF document.

Please share the following details to analyze this issue further and assist you with a better solution.

1. Replication video/procedure to reproduce the issue. 

2.PDF document that might cause the issue


Attachment: Recording_(3)_af576b45.zip


RC Roxy Cole February 21, 2024 07:06 PM UTC

Sure. Please see the demo and file attached. 


Note: The same instance of an app which I've provided you earlier has been used(x64). Similar issue happens with any other file I've tested so far.


Thank you for your help!


Attachment: App2_20240221_110256_386069f6.zip


VD Vikram Devaraj Syncfusion Team February 22, 2024 10:27 AM UTC

We were able to reproduce the issue, Unable to add the text markup annotation for the first loaded document." Currently, we are validating this issue and we will update further details on February 26, 2023.




RC Roxy Cole February 23, 2024 07:47 PM UTC

Thank you! Will be waiting for any updates



VD Vikram Devaraj Syncfusion Team February 26, 2024 04:16 PM UTC

We have confirmed that the issue "Unable to add the text markup annotation for the first loaded document." is a defect and logged a defect report for this issue. The patch for this issue is expected to be delivered on March 18, 2024.  

Please find the feedback link below,  

https://www.syncfusion.com/feedback/51257/unable-to-add-the-text-markup-annotation-for-the-first-page-of-the-first-loaded
 



MA ManojKumar Arumugasamy Syncfusion Team March 15, 2024 02:12 PM UTC

We have resolved the issue “Unable to add the text markup annotation for the first loaded document” and the custom NuGet for the same can be downloaded from the following link.   

       

Custom NuGet : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Patch848107148

      

Disclaimer: Please note that we have created this NuGet for version 24.2.3 specifically to resolve the issue reported in this ticket.

     

Note : Kindly follow the steps to clear the NuGet cache and then install patched NuGet to get the issue resolved.

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache        

 

This fix will be included in our upcoming weekly release which is expected to be available by the end of March 2024



RC Roxy Cole March 16, 2024 04:39 AM UTC

Thank you for your work, guys!



MA ManojKumar Arumugasamy Syncfusion Team March 27, 2024 06:28 AM UTC

We have resolved the issue “Cannot add Textmarkup annotation and copy text when PDF document loaded” and now the fix for the same is available in our latest weekly NuGet(v25.1.37).

 

The root cause of this issue is that while loading the initial page, it will not completely check whether the glyphs are present and will complete the text selection environment creation process. Now the process waits until the glyphs of specific pages are created.

 

Please find our latest Weekly NuGet: https://www.nuget.org/packages/Syncfusion.SfPdfViewer.UWP/25.1.37


Marked as answer
Loader.
Up arrow icon