Opacity setting for ink annotations does not save correctly

Using the following code, I set the opacity in the InkAnnotationSettings in a pdfViewer.  The opacity is displayed correctly in pdfViewer.  However, when the document is saved, the opacity is set to 1 (and of course, this is wrong.)


                pdfViewer.InkAnnotationSettings.Color = Color.FromArgb(255, 207, 242, 4);
                pdfViewer.InkAnnotationSettings.Thickness = 30.0;
                pdfViewer.InkAnnotationSettings.Opacity = 0.5f;
                pdfViewer.InkAnnotationCommand.Execute(true);

Also, you can examine the incorrect opacity setting by looking at the annotation passed into the AnnotationAdded event.

Using the pdfViewerCustomTool custom, the opacity is saved correctly if the ink annotation is modified after it is created (via selecting the annotation, and then selecting "Edit" from the popup menu).


2 Replies

JP Jhansi Priya Ramesh Syncfusion Team February 21, 2020 07:32 AM UTC

Hi John, 


Thank you for contacting Syncfusion support. 


We were able to reproduce the issue “Opacity of ink annotation is not preserved after saving and loading the PDF document” and suspect this to be a defect. Currently, we are validating this issue and we will provide further details on 25th February 2020. 


Regards, 
Jhansi Priya Ramesh 



JP Jhansi Priya Ramesh Syncfusion Team February 25, 2020 10:49 AM UTC

Hi John, 
 
We confirm that the issue “Opacity of ink annotation is not preserved after saving and loading the PDF document” is a defect. We will include the fix for this issue in our weekly release which is expected to be available on 17th March 2020. 
 
Regards, 
Jhansi Priya Ramesh 


Loader.
Up arrow icon