SfPdfViewer AddStamp under "Xamarin.Forms" iOS is not working

The Positioning and scaling of an annotations "Stamp" under using the control SfPdfViewer is not working.

Plattform:
"Xamarin.Forms" iOS.

Behavior: 
After using "AddStamp" is the moving or scaling "annotations" it's not possible, 
because it loses the focus of selected annotation. 

On Droid plattform it is working fine.

We need a fast support because we have to distribute a new version.

best regards,
Tom


7 Replies

AV Ashokkumar Viswanathan Syncfusion Team September 18, 2020 11:25 AM UTC

Hi Thomas, 
 
Greetings from Syncfusion support, 
 
We have tried to replicate the reported issue, “Added stamp annotation is not moving and scaling properly in Xamarin.Forms.iOS Platform” in our end , but its working as expected.  
 
Please find the sample in the below link, which we have tried in our end 
 
We suspect that the issue would be specific to the PDF document and device specification. Kindly share the following details to analyze more on this issue and assist you with a better solution.  
  1. Modified sample to reproduce the issue (only if any changes made).    
  2. PDF document.
  3. iOS Device specification
  4. SfPdfViewer version.  
  5. Replication video/procedure.  
 
Regards, 
Ashok Kumar Viswanathan. 



TG Thomas Groß September 18, 2020 08:49 PM UTC

Thank you very much for the quick answer.
Your example works. 
If you set the property PageViewMode="PageByPage" it will not work under iOS.

Why is that?
Am I doing something wrong?

best regards,
Tom


AV Ashokkumar Viswanathan Syncfusion Team September 21, 2020 08:56 AM UTC

Hi Thomas,   
 
Thank you for your update, 
 
We are able to reproduce the issue “Added Stamp annotation is not moved and re-sized properly in single page view mode” in Xamarin Forms iOS Platform. Currently, we will validating the issue and the validation details will be updated on September 23rd , 2020.   
 
Regards, 
Ashok Kumar Viswanathan. 



TG Thomas Groß September 21, 2020 04:30 PM UTC

Thank you very much for the quick answer.

1. Problem:

When adding a stamp to the pdf viewer, movements in y direction (of the stamp) let the underlying control move as well, it seems like the page scrolls and the

stamp looses the focus and cannot be held throughout the positioning process.

Context: iOS, Xamarin 4.8.0, control is embedded in a larger page than the display size and therefore requires scrolling to access the full document; document/control is not maximized


2. Problem:


Application dies with exception:


Code behind:


Context: iOS, Xamarin 4.8.0, process steps:


1 Add stamp to page A with pdf viewer, than

2 leave page to another one (B) without pdf viewer

3 return to page A again and add stamp again to A


Exception:


  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00081] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:409 


  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Reflection/MethodBase.cs:53 


  at Xamarin.Forms.MessagingCenter+Subscription.InvokeCallback (System.Object sender, System.Object args) [0x00064] in D:\a\1\s\Xamarin.Forms.Core\MessagingCenter.cs:94 


  at Xamarin.Forms.MessagingCenter.InnerSend (System.String message, System.Type senderType, System.Type argType, System.Object sender, System.Object args) [0x0006b] in D:\a\1\s\Xamarin.Forms.Core\MessagingCenter.cs:217 


  at Xamarin.Forms.MessagingCenter.Xamarin.Forms.IMessagingCenter.Send[TSender] (TSender sender, System.String message) [0x00013] in D:\a\1\s\Xamarin.Forms.Core\MessagingCenter.cs:127 

at Xamarin.Forms.MessagingCenter.Send[TSender] (TSender sender, System.String message) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\MessagingCenter.cs:120 

at FP.Sign.Mobile.Forms.UI.Pdf.PdfViewModel.OnVisualSignatureSelected () [0x0000c] in F:\Development\Francotyp\fp-sign-mobile\src\FP.Sign.Mobile\FP.Sign.Mobile.Forms\UI\Pdf\PdfViewModel.cs:134 

at Prism.Events.EventSubscription.InvokeAction (System.Action action) [0x0000e] in D:\a\1\s\Source\Prism\Events\EventSubscription.cs:81 


at Prism.Events.EventSubscription+<>c__DisplayClass8_0.<GetExecutionStrategy>b__0 (System.Object[] arguments) [0x00000] in D:\a\1\s\Source\Prism\Events\EventSubscription.cs:66 

at Prism.Events.EventBase.InternalPublish (System.Object[] arguments) [0x00015] in D:\a\1\s\Source\Prism\Events\EventBase.cs:66 

at Prism.Events.PubSubEvent.Publish () [0x00000] in D:\a\1\s\Source\Prism\Events\PubSubEvent.cs:101 

at FP.Sign.Mobile.Service.Events.TraceableEvent.Publish () [0x0001c] in F:\Development\Francotyp\fp-sign-mobile\src\FP.Sign.Mobile\FP.Sign.Mobile.Service\Events\TraceableEvent.cs:9 

at FP.Sign.Mobile.Forms.UI.VisualSignatures.VisualSignatureBrowserViewModel.OnVisualSignatureSelected (FP.Sign.Mobile.Forms.UI.VisualSignatures.VisualSignatureItemViewModel item) [0x000dd] in F:\Development\Francotyp\fp-sign-mobile\src\FP.Sign.Mobile\FP.Sign.Mobile.Forms\UI\VisualSignatures\VisualSignatureBrowserViewModel.cs:116 

at Prism.Commands.DelegateCommand`1[T].Execute (T parameter) [0x00000] in D:\a\1\s\Source\Prism\Commands\DelegateCommand{T}.cs:82 

at Prism.Commands.DelegateCommand`1[T].Execute (System.Object parameter) [0x00000] in D:\a\1\s\Source\Prism\Commands\DelegateCommand{T}.cs:103 

at Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute (System.Object parameter) [0x00000] in D:\a\1\s\Source\Prism\Commands\DelegateCommandBase.cs:64 

at Xamarin.Forms.TapGestureRecognizer.SendTapped (Xamarin.Forms.View sender) [0x00018] in D:\a\1\s\Xamarin.Forms.Core\TapGestureRecognizer.cs:44 

at Xamarin.Forms.Platform.Android.TapGestureHandler.OnTap (System.Int32 count, Xamarin.Forms.Point point) [0x000a2] in D:\a\1\s\Xamarin.Forms.Platform.Android\TapGestureHandler.cs:52 

at Xamarin.Forms.Platform.Android.InnerGestureListener.Android.Views.GestureDetector.IOnGestureListener.OnSingleTapUp (Android.Views.MotionEvent e) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.Android\InnerGestureListener.cs:151 

at Android.Views.GestureDetector+IOnGestureListenerInvoker.n_OnSingleTapUp_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in <9a14097a65a445eaa85f6a3a1ade52a3>:0 

at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.135(intptr,intptr,intptr)

best regards,
Tom



AV Ashokkumar Viswanathan Syncfusion Team September 22, 2020 11:08 AM UTC

Hi Thomas, 
 
Thank you for your update, 
 
Please find our comments below, 
When adding a stamp to the pdf viewer, movements in y direction (of the stamp) let the underlying control move as well, it seems like the page scrolls and the stamp loses the focus and cannot be held throughout the positioning process. 
 
While validating the issue, “Added Stamp annotation is not moved and re-sized properly in single page view mode”, we will also consider this scenario where PDF page will scroll when we try to move the stamp annotation and we update the details on September 23rd 2020. 
Context: iOS, Xamarin 4.8.0, control is embedded in a larger page than the display size and therefore requires scrolling to access the full document; document/control is not maximized 
 
We could not proceed further with the information provided in your last update. Could you please explain your issue elaborately. So that it will be helpful for us to provide a better solution at earliest. 
Application dies with exception: 
Code behind: 
Context: iOS, Xamarin 4.8.0, process steps: 
1 Add stamp to page A with pdf viewer, than 
2 leave page to another one (B) without pdf viewer 
3 return to page A again and add stamp again to A 
 
We have tried to replicate the reported issue, “Application crashes with exception while adding stamp annotation” in our end , but its working as expected.  
 
Please find the sample which we have tried in our end, 
 
 
Kindly share the following details to analyze more on this issue and assist you with the better solution.      
  1. PDF document with which you have to reproduce the issue.
  2. Simple Sample/ Modify the sample which we provided in our last update
  3. SfPdfViewer version.
  4. Device specification.
  5. Replication procedure/video illustrating the issue in detail
 
 
Regards, 
Ashok Kumar Viswanathan. 



AG Aribalakrishnan Govindasamy Syncfusion Team September 23, 2020 04:56 PM UTC

Hi Thomas 

Thank you for your update, 

Please find our comments below 

 
When adding a stamp to the pdf viewer, movements in y direction (of the stamp) let the underlying control move as well, it seems like the page scrolls and the stamp loses the focus and cannot be held throughout the positioning process.  
 
 
We have confirmed that the issue “Added Stamp annotation is not moved and re-sized properly in single page view mode” is a defect and logged a defect report for this issue. The patch for this issue will be delivered October 14th 2020.Please find the feedback link below, 
 
 
 
 
Context: iOS, Xamarin 4.8.0, control is embedded in a larger page than the display size and therefore requires scrolling to access the full document; document/control is not maximized   
 
 
 
 
 
 
 
 
Kindly provide the detail requested in our last update to replicate the issue in our end.  
 
Application dies with exception: Code behind: Context: iOS, Xamarin 4.8.0, process steps: 1 Add stamp to page A with pdf viewer, than 2 leave page to another one (B) without pdf viewer 3 return to page A again and add stamp again to A  

 
 


Regards, 
Aribalakrishnan G. 



AV Ashokkumar Viswanathan Syncfusion Team October 14, 2020 01:02 PM UTC

Hi Thomas, 
 
We have resolved the issue, “Added Stamp annotation is not moved and re-sized properly in single page view mode” in Xamarin Forms iOS Platform and the custom NuGet for the same can be downloaded from the following link        
     
Custom NuGet :  
 
Please find the feedback link below, 
 
Disclaimer:   
Please note that we have created this NuGet for version 18.2.0.44 specifically to resolve the following issue(s) reported in the above mentioned forum. 157948
 
   
Note : Kindly follow the steps to clear the NuGet cache and then install patched NuGet to get the issue resolved.   
    
       
This fix will be included in our 2020 Volume 3 Service pack release which will be available in the month of November 2020.   
 
Meanwhile, kindly provide the requested details to replicate the other issue which you mentioned in this forum previously.  
 
Regards,    
Ashok Kumar Viswanathan. 


Loader.
Up arrow icon