BoldDesk®Customer service software with ticketing, live chat & omnichannel support, starting at $99/mo for unlimited agents. Try for free!
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.
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
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:
Code behind:
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.
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
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!
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.
Thank you! Will be waiting for any updates
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,
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
Thank you for your work, guys!
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