We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to programmatically move an arrow/line shape annotation

Hi,

Please refer the code I have so far. 

https://stackblitz.com/edit/angular-dxub1a-o8dg2a?file=app.component.html,app.component.ts

When I try to move the arrow/line annotation programmatically and export the annotation and import again then  the arrow/line annotations stay in original location. 

Steps to replicate the issue:

  1. Once the pdf viewer is loaded, add an Arrow annotation shape.
  2. Click on the Move Arrow button to programmatically move the arrow/line annotation to new location.
  3. show the comment panel and export the annotations to XFDF/JSON file.
  4. reload the application.
  5. import the annotation file (which is exported on step 3)
  6. observe the location of the file.
This issue occurs only when you  programmatically move the annotation. There is no issue if we manually move the annotation.


Attachment: movelineannotationissue_927bb177.zip

3 Replies

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team February 28, 2023 01:12 PM UTC

We were able to reproduce the reported issue  “Arrow/line annotation position is changed while exporting if we move them programmatically” and suspect this to be a defect. We will validate it and update further details in two business days on March 02, 2023.



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team March 2, 2023 04:38 PM UTC

We have confirmed the issue "Arrow/line annotation position is changed while exporting if we move them programmatically" and logged it as a defect. The fix for the issue will be available in our upcoming weekly NuGet release on March 8, 2023. You can track the status of the issue through the following link.


Feedback link:  Arrow/line annotation position is changed while exporting if we move them programmatically | Issue Feedback


Disclaimer: "Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization."



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team March 8, 2023 06:30 AM UTC

We have fixed the reported issue "Arrow/line annotation position is changed while exporting if we move them programmatically" and the fix for the reported issue was included in our latest weekly release v20.4.0.53. Kindly upgrade to that version to get the issue resolved.

 

Packages:   

 

CDN Links:

https://cdn.syncfusion.com/ej2/20.4.53/dist/ej2.min.js

https://cdn.syncfusion.com/ej2/20.4.53/material.css


Loader.
Up arrow icon