Hi,
I was going through the following link:
https://www.syncfusion.com/kb/9031/how-to-save-loaded-pdf-document-in-application-level
and I was wondering if there is a way to do the following from ViewModel instead of code behind:
- private void PdfViewerControl_DocumentSaveInitiated(object sender, Syncfusion.SfPdfViewer.XForms.DocumentSaveInitiatedEventArgs args)
- { string filePath = DependencyService.Get<ISave>().Save(args.SaveStream as MemoryStream);
- string message = "The PDF has been saved to " + filePath;
- DependencyService.Get<IAlertView>().Show(message);
- }
Thank you,
Madhu