- Home
- Forum
- Xamarin.Forms
- Multiple annotations
Multiple annotations
Hi,
Attachment: PdfTest_b9290993.zip
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
SIGN IN To post a reply.
5 Replies
JP
Jhansi Priya Ramesh
Syncfusion Team
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
JP
Jhansi Priya Ramesh
Syncfusion Team
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
JA
Jasper
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
JP
Jhansi Priya Ramesh
Syncfusion Team
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
JP
Jhansi Priya Ramesh
Syncfusion Team
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:
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:
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
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
JA Jasper
- Nov 25, 2019 09:22 AM UTC
- Dec 19, 2019 01:33 PM UTC