Hi Arthur,
We were unable to reproduce the reported issue with the
provided details. We have shared a sample in which we tried to reproduce the
issue.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/LOAD_Sample-383557369.zip
A video is shared that shows the behavior is proper.
Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SHAPEA~1866121929.zip
Kindly try this and revert to us with a modified sample, or code snippet, or a
replication procedure to reproduce the issue. This will be helpful to analyze
further and provide a solution at the earliest.
Regards,
Visvesvar K V
Hi Visvesvar,
If you add AnnotationAdded event, then the issue occurs. I modified your example as shown below.
Regards,
Arthur
---------------------------------
@page "/"
@using Syncfusion.Pdf.Parsing;
@using Syncfusion.Blazor.PdfViewer
<SfPdfViewerServer @ref="pdfviewer" Height="500px" Width="1060px" >
<PdfViewerEvents Created="DocumentLoad" AnnotationAdded="onAnnotationAdded"></PdfViewerEvents>
</SfPdfViewerServer>
@code{
SfPdfViewerServer pdfviewer;
public async void DocumentLoad()
{
byte[] byteArray = System.IO.File.ReadAllBytes("wwwroot/Data/Sample.pdf");
string base64String = Convert.ToBase64String(byteArray);
await pdfviewer.LoadAsync("data:application/pdf;base64," + base64String, null);
}
protected async void onAnnotationAdded(AnnotationAddEventArgs args)
{
//var data = await pdfviewer.ExportAnnotationsAsObject();
}
}
Hi Arthur,
Thank you for the code snippet.
We were able to reproduce the reported issue “Focus does not leave on shape annotation” and suspect this to be a defect. We will analyze further on this and update you with more details on August 17, 2022.
Regards,
Visvesvar K V
Hi Arthur,
We have confirmed that the reported issue “Focus does not leave on shape annotation” is a defect and logged the defect reported for the same. The fix for the issue will be included in our upcoming weekly NuGet release on September 7 , 2022. You can track the status using the below feedback link.
Focus does not leave shape annotation | Issue Feedback
Regards,
Visvesvar K V
This appears to not be resolved in this week's build. Do you have a new ETA?
Hi Arthur,
Sorry for the inconvenience. The fix for the reported issue was not included in our latest release. However, it will be included in our upcoming weekly release on September 14, 2022.
Regards,
Visvesvar K V
Hi Arthur,
We have fixed the reported issue “Focus does not leave on shape annotation” and the fix for the reported issue was included in our latest weekly release v20.2.0.49. Kindly upgrade to that version to get the issue resolved.
Blazor Client | |
Blazor Sever | https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewerServer.Windows |
Blazor CDN links:
https://cdn.syncfusion.com/blazor/20.2.49/styles/bootstrap5.css
https://cdn.syncfusion.com/blazor/20.2.49/syncfusion-blazor-pdfviewer.min.js
Regards,
Visvesvar K V
Hi Visvesvar,
This does not appear to be fixed. In your sample application where I added the onAnnotationAdded event, the focus does not leave when you click somewhere else in the document.
Regards,
Arthur
Hi Arthur,
The issue does not appear from the version (20.2.49). We
have shared the sample in which we have tried to reproduce the issue in the
below link.
Sample - https://www.syncfusion.com/downloads/support/directtrac/general/ze/LOAD_Sample2117006288.zip
We have also added replication video scenario of it below.
Video - https://www.syncfusion.com/downloads/support/directtrac/general/ze/Focus_blazor426814388.zip
Kindly try this and revert to us with modified sample, code snippet, replication procedure and more details about the reported issue if you have any concerns. This will be helpful for us to analyze further and provide the details.
NOTE: Make sure that the versions of the script and the packages are same.
Regards,
Visvesvar K V
Thanks for the sample. FYI, this still does not work for arrows/lines.
Regards,
Arthur
Please see attached example where the issue fails when I add Settings to establish the default colors for the annotations.
Regards,
Arthur
Hi Arthur,
We were able to reproduce the reported issue “Focus does not leave on shape annotation” and suspect this to be a defect. We will analyze further on this and update you with more details on September 23, 2022.
Regards,
Visvesvar K V
Hi Arthur,
You can use the AnnotationSettings as we mentioned in the below screenshot to resolve the reported issue. Kindly refer to it and revert to us if you have any concerns about it.
Screenshot:
Regards,
Sinthiya Kalimuthu
Thank you, that does fix most of the issues. There is still an issue when adding an initial arrow or line.
Regards,
Arthur
Hi Arthur,
Sorry for the inconvenience.
We have confirmed that the reported issue “Focus does not leave shape annotations with shape settings” is a defect and logged the defect reported for the same. The fix for the issue will be included in our upcoming weekly NuGet release on October 5, 2022. You can track the status using the below feedback link.
Feedback - Focus does not leave on shape annotation for shape settings | Issue Feedback
Regards,
Visvesvar K V
Hi Arthur,
Sorry for the inconvenience. The fix for the reported issue was not included in our latest release. However, it will be included in our upcoming weekly release on October 12, 2022.
Kindly Find the custom nuget package below.
Custom NuGet Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Custom_NuGet-2086249140
Regards,
Visvesvar K V
Hi Arthur,
We have fixed the reported issue “Focus does not leave shape annotations with shape settings” and the fix for the reported issue was included in our latest weekly release v20.3.0.49. Kindly upgrade to that version to get the issue resolved.
Blazor Client | |
Blazor Sever | https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewerServer.Windows |
Blazor CDN links:
https://cdn.syncfusion.com/blazor/20.3.49/styles/bootstrap5.css
https://cdn.syncfusion.com/blazor/20.3.49/syncfusion-blazor-pdfviewer.min.js
Regards,
Visvesvar K V