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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiple annotations

Thread ID:

Created:

Updated:

Platform:

Replies:

149392 Nov 25,2019 09:22 AM UTC Dec 19,2019 01:33 PM UTC Xamarin.Forms 5
loading
Tags: PdfViewer
Jasper
Asked On November 25, 2019 09:22 AM UTC

Hi,

Is it possible to add annotations from code, because I can't find any method supporting this.
There are methods for removing and editing. 

I tried to work around this by manipulating the PDF and adding the annotations to the file before loading it in the viewer.
This works when I keep to a single type of annotations, when there are multiple annotations the app crashes with the following exception:
System.InvalidOperationException
  Message=Collection was modified; enumeration operation may not execute.

Attached is a small example that shows the exception (press the "Load PDF' button).

Attachment: PdfTest_b9290993.zip

Jhansi Priya Ramesh [Syncfusion]
Replied On November 26, 2019 01:47 PM UTC

Hi Jasper, 
 
Please find the details for your queries below, 
 
S.no 
Query 
Details 
1 
Is it possible to add annotations from code, because I can't find any method supporting this. 
At present we do not have support to “Add all annotations programmatically”. We do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. 
  
Based on our present commitments and the above parameters, this feature is expected to be implemented in our 2020 Volume 1 main release. We will let you know when this feature is implemented. 
  
Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts. 
 
You can track the status of feature through below feedback link 
 
 
2 
I tried to work around this by manipulating the PDF and adding the annotations to the file before loading it in the viewer. 
This works when I keep to a single type of annotations, when there are multiple annotations the app crashes with the following exception: 
System.InvalidOperationException 
  Message=Collection was modified; enumeration operation may not execute. 
 
We are able to reproduce the issue “Application crashes while adding annotations in PDF document” in our side. We have forwarded this issue to our development team for further analysis and we will update further details on 28th November 2019.   
 
 
Regards, 
Jhansi Priya Ramesh 


Jhansi Priya Ramesh [Syncfusion]
Replied On November 28, 2019 03:02 PM UTC

Hi Jasper, 
 
We confirm that the issue “Application crashes while adding annotations in PDF document” is a defect from our side and logged defect report for the same. We will include fix for this issue in our volume 4 service pack release which is expected to be rolled out on January 2020. 
 
Regards, 
Jhansi Priya Ramesh 


Jasper
Replied On November 29, 2019 08:33 AM UTC

Hi Jhansi Priya Ramesh,

Thank you for the update on the issue.
Is there anyway to receive a hotfix or a workaround for this issue? It is currently blocking our progress for a big project. 

Regards,
Jasper

Jhansi Priya Ramesh [Syncfusion]
Replied On December 2, 2019 11:33 AM UTC

Hi Jasper, 
 
We will provide patch for the issue “Application crashes while adding annotations in PDF document on 19th December 2019. 
 
Regards, 
Jhansi Priya Ramesh 


Jhansi Priya Ramesh [Syncfusion]
Replied On December 19, 2019 01:33 PM UTC

Hi  Jasper, 
 

 
The issue with " Application crashes while adding annotations programmatically " has been fixed and the patch for this fix can be downloaded from the following location.  
 
Recommended approach - exe will perform automatic configuration
 
Please find the patch setup from below location:
 
 
 
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment 
Please find the patch assemblies alone from below location:
 
 
 
   
NuGet:   
   
 
Assembly Version: 17.3.0.14 
Installation Directions : 
 
This patch should replace the files “Syncfusion.SfPdfViewer.XForms.dll”and “Syncfusion.SfPdfViewer.XForms.Android.dll” under the following folder.
 
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.6
 
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\9.3.0.61\precompiledassemblies\9.3.0.61\4.0
 
 
To automatically run the Assembly Manager, please check the Run assembly manager
 checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.
 
 
Note : 
 
You can change how you receive bug fixes by navigating to the following link and updating your preferences.
 
 
https://www.syncfusion.com/support/directtrac/patches 
 
Disclaimer : 
 
Please note that we have created this patch for version 17.3.0.14 specifically to resolve the following issue(s) reported in this/the Forum(s). 149392 
 
If you have received other patches for the same version for other products, please apply all patches in the order received.
 
This fix will be included in our 2019 Volume 4 Service pack release which will be available in January 2020.
 
 

 
Regards,  
Jhansi Priya Ramesh 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon