diff --git a/Save/AutoSavePDFinAWS/App.xaml b/Save/AutoSavePDFinAWS/App.xaml
new file mode 100644
index 0000000..73fd659
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/App.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/App.xaml.cs b/Save/AutoSavePDFinAWS/App.xaml.cs
new file mode 100644
index 0000000..de61783
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/App.xaml.cs
@@ -0,0 +1,16 @@
+namespace AutoSavePDFinAWS
+{
+ public partial class App : Application
+ {
+ public App()
+ {
+ Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Add valid license key");
+ InitializeComponent();
+ }
+
+ protected override Window CreateWindow(IActivationState? activationState)
+ {
+ return new Window(new AppShell());
+ }
+ }
+}
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/AppShell.xaml b/Save/AutoSavePDFinAWS/AppShell.xaml
new file mode 100644
index 0000000..5a99305
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/AppShell.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/AppShell.xaml.cs b/Save/AutoSavePDFinAWS/AppShell.xaml.cs
new file mode 100644
index 0000000..f5e9010
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/AppShell.xaml.cs
@@ -0,0 +1,10 @@
+namespace AutoSavePDFinAWS
+{
+ public partial class AppShell : Shell
+ {
+ public AppShell()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/AutoSavePDFinAWS.csproj b/Save/AutoSavePDFinAWS/AutoSavePDFinAWS.csproj
new file mode 100644
index 0000000..e98412c
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/AutoSavePDFinAWS.csproj
@@ -0,0 +1,69 @@
+
+
+
+ net9.0-android;net9.0-ios;net9.0-maccatalyst
+ $(TargetFrameworks);net9.0-windows10.0.19041.0
+
+
+
+
+
+
+ Exe
+ AutoSavePDFinAWS
+ true
+ true
+ enable
+ enable
+
+
+ AutoSavePDFinAWS
+
+
+ com.companyname.autosavepdfinaws
+
+
+ 1.0
+ 1
+
+
+ None
+
+ 15.0
+ 15.0
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/AutoSavePDFinAWS.sln b/Save/AutoSavePDFinAWS/AutoSavePDFinAWS.sln
new file mode 100644
index 0000000..1397a01
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/AutoSavePDFinAWS.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.14.36203.30 d17.14
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoSavePDFinAWS", "AutoSavePDFinAWS.csproj", "{626306A7-D53A-409E-A65E-2D1D3714EC3F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {626306A7-D53A-409E-A65E-2D1D3714EC3F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {626306A7-D53A-409E-A65E-2D1D3714EC3F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {626306A7-D53A-409E-A65E-2D1D3714EC3F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {626306A7-D53A-409E-A65E-2D1D3714EC3F}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {BADD224A-DD7D-497F-A2D1-4D59A4DC92AA}
+ EndGlobalSection
+EndGlobal
diff --git a/Save/AutoSavePDFinAWS/Converter/InverseBooleanConverter.cs b/Save/AutoSavePDFinAWS/Converter/InverseBooleanConverter.cs
new file mode 100644
index 0000000..8d23760
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Converter/InverseBooleanConverter.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AutoSavePDFinAWS
+{
+ ///
+ /// Value converter that inverts boolean values for data binding scenarios.
+ /// Used in XAML to bind UI elements that need the opposite of a boolean property.
+ /// For example, enabling a Save button when Auto-Save is disabled.
+ ///
+ public class InverseBooleanConverter : IValueConverter
+ {
+ ///
+ /// Converts a boolean value to its inverse.
+ ///
+ /// The boolean value to convert
+ /// The type of the binding target property (must be bool)
+ /// Optional parameter for the converter (not used)
+ /// Culture information for the conversion (not used)
+ /// The inverted boolean value
+ /// Thrown when target type is not boolean
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ // Validate that the target type is boolean
+ if (targetType != typeof(bool))
+ throw new InvalidOperationException("The target must be a boolean");
+
+ // Return the inverse of the input boolean value
+ return value is bool boolValue ? !boolValue : false;
+ }
+
+ ///
+ /// Converts back from the inverted value to the original (not supported).
+ /// This converter is designed for one-way binding only.
+ ///
+ /// The value to convert back
+ /// The type to convert to
+ /// Optional parameter for the converter
+ /// Culture information for the conversion
+ /// Not supported
+ /// Always thrown as this operation is not supported
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotSupportedException("InverseBooleanConverter does not support ConvertBack operation");
+ }
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/MainPage.xaml b/Save/AutoSavePDFinAWS/MainPage.xaml
new file mode 100644
index 0000000..5d37022
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/MainPage.xaml
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/MainPage.xaml.cs b/Save/AutoSavePDFinAWS/MainPage.xaml.cs
new file mode 100644
index 0000000..0c7a46e
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/MainPage.xaml.cs
@@ -0,0 +1,97 @@
+namespace AutoSavePDFinAWS
+{
+ public partial class MainPage : ContentPage
+ {
+
+ ///
+ /// ViewModel instance that handles business logic and data binding
+ ///
+ private PdfViewerViewModel ViewModel;
+
+ public MainPage()
+ {
+ InitializeComponent();
+
+ // Initialize ViewModel and set up data binding context
+ ViewModel = new PdfViewerViewModel();
+ BindingContext = ViewModel;
+
+ // Provide PDF Viewer reference to ViewModel for document operations
+ ViewModel.PdfViewer = PdfViewer;
+
+ ViewModel.LoadPDF();
+ }
+
+ ///
+ /// Handles the DocumentLoaded event when a PDF is successfully loaded into the viewer.
+ /// Updates the ViewModel to reflect that a document is now available.
+ ///
+ /// The PDF Viewer control that raised the event
+ /// Event arguments
+ private void PdfViewer_DocumentLoaded(object sender, EventArgs e)
+ {
+ // Notify ViewModel that a document has been loaded
+ ViewModel.IsDocumentLoaded = true;
+ }
+
+ ///
+ /// Handles the DocumentUnloaded event when a PDF is unloaded from the viewer.
+ /// Updates the ViewModel to reflect that no document is currently loaded.
+ ///
+ /// The PDF Viewer control that raised the event
+ /// Event arguments
+ private void PdfViewer_DocumentUnloaded(object sender, EventArgs e)
+ {
+ // Notify ViewModel that the document has been unloaded
+ ViewModel.IsDocumentLoaded = false;
+ }
+
+ ///
+ /// Handles the AnnotationAdded event when a new annotation is added to the PDF.
+ /// Triggers the auto-save mechanism if enabled.
+ ///
+ /// The PDF Viewer control that raised the event
+ /// Event arguments containing annotation details
+ private void PdfViewer_AnnotationAdded(object sender, Syncfusion.Maui.PdfViewer.AnnotationEventArgs e)
+ {
+ // Trigger auto-save or notification update for document edit
+ ViewModel.OnDocumentEdited();
+ }
+
+ ///
+ /// Handles the AnnotationRemoved event when an annotation is deleted from the PDF.
+ /// Triggers the auto-save mechanism if enabled.
+ ///
+ /// The PDF Viewer control that raised the event
+ /// Event arguments containing annotation details
+ private void PdfViewer_AnnotationRemoved(object sender, Syncfusion.Maui.PdfViewer.AnnotationEventArgs e)
+ {
+ // Trigger auto-save or notification update for document edit
+ ViewModel.OnDocumentEdited();
+ }
+
+ ///
+ /// Handles the AnnotationEdited event when an existing annotation is modified.
+ /// Triggers the auto-save mechanism if enabled.
+ ///
+ /// The PDF Viewer control that raised the event
+ /// Event arguments containing annotation details
+ private void PdfViewer_AnnotationEdited(object sender, Syncfusion.Maui.PdfViewer.AnnotationEventArgs e)
+ {
+ // Trigger auto-save or notification update for document edit
+ ViewModel.OnDocumentEdited();
+ }
+
+ ///
+ /// Handles the FormFieldValueChanged event when a form field value is modified.
+ /// Triggers the auto-save mechanism if enabled.
+ ///
+ /// The PDF Viewer control that raised the event
+ /// Event arguments containing form field details
+ private void PdfViewer_FormFieldValueChanged(object sender, Syncfusion.Maui.PdfViewer.FormFieldValueChangedEventArgs e)
+ {
+ // Trigger auto-save or notification update for document edit
+ ViewModel.OnDocumentEdited();
+ }
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/MauiProgram.cs b/Save/AutoSavePDFinAWS/MauiProgram.cs
new file mode 100644
index 0000000..c1a3b31
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/MauiProgram.cs
@@ -0,0 +1,27 @@
+using Microsoft.Extensions.Logging;
+using Syncfusion.Maui.Core.Hosting;
+
+namespace AutoSavePDFinAWS
+{
+ public static class MauiProgram
+ {
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .ConfigureSyncfusionCore()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/Android/AndroidManifest.xml b/Save/AutoSavePDFinAWS/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..e9937ad
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Platforms/Android/MainActivity.cs b/Save/AutoSavePDFinAWS/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..b9b33d1
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Android/MainActivity.cs
@@ -0,0 +1,11 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace AutoSavePDFinAWS
+{
+ [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+ public class MainActivity : MauiAppCompatActivity
+ {
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/Android/MainApplication.cs b/Save/AutoSavePDFinAWS/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..a2db7bb
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Android/MainApplication.cs
@@ -0,0 +1,16 @@
+using Android.App;
+using Android.Runtime;
+
+namespace AutoSavePDFinAWS
+{
+ [Application]
+ public class MainApplication : MauiApplication
+ {
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/Android/Resources/values/colors.xml b/Save/AutoSavePDFinAWS/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..c04d749
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/AppDelegate.cs b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..1e6b084
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace AutoSavePDFinAWS
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Entitlements.plist b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Entitlements.plist
new file mode 100644
index 0000000..de4adc9
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Entitlements.plist
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+ com.apple.security.network.client
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Info.plist b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..7268977
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Program.cs b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..513a0ef
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace AutoSavePDFinAWS
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/Tizen/Main.cs b/Save/AutoSavePDFinAWS/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..b7ca28a
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Tizen/Main.cs
@@ -0,0 +1,17 @@
+using System;
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+
+namespace AutoSavePDFinAWS
+{
+ internal class Program : MauiApplication
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/Tizen/tizen-manifest.xml b/Save/AutoSavePDFinAWS/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..1be832d
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Platforms/Windows/App.xaml b/Save/AutoSavePDFinAWS/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..ed5378f
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/Save/AutoSavePDFinAWS/Platforms/Windows/App.xaml.cs b/Save/AutoSavePDFinAWS/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..5a34101
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,25 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace AutoSavePDFinAWS.WinUI
+{
+ ///
+ /// Provides application-specific behavior to supplement the default Application class.
+ ///
+ public partial class App : MauiWinUIApplication
+ {
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/Windows/Package.appxmanifest b/Save/AutoSavePDFinAWS/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..3785e9a
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/Platforms/Windows/app.manifest b/Save/AutoSavePDFinAWS/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..4147ebd
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/Save/AutoSavePDFinAWS/Platforms/iOS/AppDelegate.cs b/Save/AutoSavePDFinAWS/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..1e6b084
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace AutoSavePDFinAWS
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/iOS/Info.plist b/Save/AutoSavePDFinAWS/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..0004a4f
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/Save/AutoSavePDFinAWS/Platforms/iOS/Program.cs b/Save/AutoSavePDFinAWS/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..513a0ef
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/iOS/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace AutoSavePDFinAWS
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
diff --git a/Save/AutoSavePDFinAWS/Platforms/iOS/Resources/PrivacyInfo.xcprivacy b/Save/AutoSavePDFinAWS/Platforms/iOS/Resources/PrivacyInfo.xcprivacy
new file mode 100644
index 0000000..24ab3b4
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Platforms/iOS/Resources/PrivacyInfo.xcprivacy
@@ -0,0 +1,51 @@
+
+
+
+
+
+ NSPrivacyAccessedAPITypes
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategoryFileTimestamp
+ NSPrivacyAccessedAPITypeReasons
+
+ C617.1
+
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategorySystemBootTime
+ NSPrivacyAccessedAPITypeReasons
+
+ 35F9.1
+
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategoryDiskSpace
+ NSPrivacyAccessedAPITypeReasons
+
+ E174.1
+
+
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/Properties/launchSettings.json b/Save/AutoSavePDFinAWS/Properties/launchSettings.json
new file mode 100644
index 0000000..4f85793
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "Project",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/README.md b/Save/AutoSavePDFinAWS/README.md
new file mode 100644
index 0000000..e8e271e
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/README.md
@@ -0,0 +1,48 @@
+# PDF Auto-Save Edits using .NET MAUI PDF Viewer and AWS Amazon S3 storage
+
+A .NET MAUI application that demonstrates automatic saving of PDF edits using the Syncfusion PDF Viewer control and AWS Amazon S3 storage. This application provides real-time auto-save functionality whenever annotations, form fields, or other PDF modifications are made.
+
+## 🚀 Features
+
+- **Auto-Save Functionality**: Automatically saves PDF changes when annotations are added, edited, or removed
+- **Manual Save Option**: Toggle auto-save on/off with manual save capability
+- **Real-time Notifications**: Visual feedback showing the current status of operations
+- **Cross-Platform**: Runs on Android, iOS, macOS, and Windows
+- **AWS-Integration**: To store securely and efficient loading with seamless integration across mobile and desktop platforms.
+
+## 📄 Dependencies
+
+- [Syncfusion.Maui.PdfViewer](https://www.nuget.org/packages/Syncfusion.Maui.PdfViewer): PDF viewing and editing capabilities
+- [AWSSDK.S3](https://www.nuget.org/packages/AWSSDK.S3):Amazon Simple Storage Service (Amazon S3), provides developers and IT teams with secure, durable, highly-scalable object storage
+
+## 📱 How to Use
+
+### 1. Launch the Application
+- Start the application on your preferred platform
+- You'll see the main interface with a toolbar at the top
+
+### 2. Open a PDF File
+- Click the **📂 Open** button (folder icon) in the toolbar
+- Select a PDF file from your AWS Amazon S3 storage
+- The PDF will load in the viewer
+
+### 3. Auto-Save Configuration
+- **Auto Save Enabled** (default): Any edits automatically save to the original file in the AWS Amazon S3 storage
+- **Auto Save Disabled**: Use the **💾 Save** button to manually save changes
+
+### 4. Edit the PDF
+- Add annotations (highlights, notes, drawings)
+- Fill form fields
+- Watch the notification area for save status updates
+
+### 5. Monitor Status
+- The notification area shows current operation status:
+ - File opening/closing status
+ - Auto-save operations
+ - Manual save confirmations
+
+### 6. Verify Changes
+- **Check the Input File**: After making edits and saving (either automatically or manually) in AWS Amazon S3 storage
+- **Navigate to File Location**: Go to the original PDF file location on AWS Amazon S3 storage
+- **Open with PDF Reader**: You can see that the file has been permanently modified
+- **Confirm Edits Persist**: All annotations, form field changes, and modifications are saved to the original file in the AWS Amazon S3 storage
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Resources/AppIcon/appicon.svg b/Save/AutoSavePDFinAWS/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..9d63b65
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Resources/AppIcon/appiconfg.svg b/Save/AutoSavePDFinAWS/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Resources/Fonts/OpenSans-Regular.ttf b/Save/AutoSavePDFinAWS/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..33b3e0d
Binary files /dev/null and b/Save/AutoSavePDFinAWS/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/Save/AutoSavePDFinAWS/Resources/Fonts/OpenSans-Semibold.ttf b/Save/AutoSavePDFinAWS/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..a1f8571
Binary files /dev/null and b/Save/AutoSavePDFinAWS/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/Save/AutoSavePDFinAWS/Resources/Images/dotnet_bot.png b/Save/AutoSavePDFinAWS/Resources/Images/dotnet_bot.png
new file mode 100644
index 0000000..1d1b981
Binary files /dev/null and b/Save/AutoSavePDFinAWS/Resources/Images/dotnet_bot.png differ
diff --git a/Save/AutoSavePDFinAWS/Resources/Raw/AboutAssets.txt b/Save/AutoSavePDFinAWS/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..89dc758
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with your package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/Save/AutoSavePDFinAWS/Resources/Splash/splash.svg b/Save/AutoSavePDFinAWS/Resources/Splash/splash.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Resources/Styles/Colors.xaml b/Save/AutoSavePDFinAWS/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..30307a5
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Resources/Styles/Colors.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ #512BD4
+ #ac99ea
+ #242424
+ #DFD8F7
+ #9880e5
+ #2B0B98
+
+ White
+ Black
+ #D600AA
+ #190649
+ #1f1f1f
+
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Save/AutoSavePDFinAWS/Resources/Styles/Styles.xaml b/Save/AutoSavePDFinAWS/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..86f574d
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/Resources/Styles/Styles.xaml
@@ -0,0 +1,451 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Save/AutoSavePDFinAWS/ViewModel/PdfViewerViewModel.cs b/Save/AutoSavePDFinAWS/ViewModel/PdfViewerViewModel.cs
new file mode 100644
index 0000000..e245c51
--- /dev/null
+++ b/Save/AutoSavePDFinAWS/ViewModel/PdfViewerViewModel.cs
@@ -0,0 +1,245 @@
+using Amazon;
+using Amazon.S3;
+using Amazon.S3.Model;
+using Amazon.S3.Transfer;
+using Syncfusion.Maui.PdfViewer;
+using System.ComponentModel;
+
+namespace AutoSavePDFinAWS
+{
+ internal class PdfViewerViewModel : INotifyPropertyChanged
+ {
+ ///
+ /// Reference to the Syncfusion PDF Viewer control for document operations
+ ///
+ private SfPdfViewer? _pdfViewer;
+
+ ///
+ /// Name of the currently loaded PDF file
+ ///
+ private string? _currentFileName = string.Empty;
+
+ ///
+ /// Text displayed to user showing current operation status
+ ///
+ private string _notificationText = string.Empty;
+
+ ///
+ /// Flag indicating whether auto-save is enabled
+ ///
+ private bool _isAutoSaveEnabled = true;
+
+ ///
+ /// Flag indicating whether a PDF document is currently loaded
+ ///
+ private bool _isDocumentLoaded = false;
+
+ // Set your AWS credentials and region
+ private string accessKey = "YOUR_ACCESS_KEY";
+
+ private string secretKey = "YOUR_SECRET_KEY";
+
+ private RegionEndpoint region = RegionEndpoint.YOUR_REGION; // Change to your desired region
+
+ // Specify the bucket name and object key
+ private string bucketName = "YOUR_BUCKET_NAME";
+
+ private string objectKey = "YOUR_OBJECT_KEY";
+
+ ///
+ /// Constructor of the view model class
+ ///
+ public PdfViewerViewModel()
+ {
+ SavePdfCommand = new Command(SavePdf);
+ }
+
+ ///
+ /// An event to detect the change in the value of a property.
+ ///
+ public event PropertyChangedEventHandler? PropertyChanged;
+
+ ///
+ /// Gets or sets a value indicating whether a PDF document is currently loaded.
+ /// Automatically updates the notification text when the value changes.
+ ///
+ public bool IsDocumentLoaded
+ {
+ get => _isDocumentLoaded;
+ set
+ {
+ if (_isDocumentLoaded != value)
+ {
+ // Update notification text based on document load state
+ if (value == false)
+ {
+ NotificationText = _currentFileName + " - Closed";
+ }
+ else
+ {
+ NotificationText = _currentFileName + " - Opened";
+ }
+ _isDocumentLoaded = value;
+ OnPropertyChanged("IsDocumentLoaded");
+ }
+ }
+ }
+
+ ///
+ /// Gets or sets the notification text displayed to the user.
+ /// Provides real-time feedback about current operations.
+ ///
+ public string NotificationText
+ {
+ get => _notificationText;
+ set
+ {
+ if (_notificationText != value)
+ {
+ _notificationText = value;
+ OnPropertyChanged("NotificationText");
+ }
+ }
+ }
+
+ ///
+ /// Gets or sets a value indicating whether auto-save is enabled.
+ /// When true, PDF changes are automatically saved on edit.
+ ///
+ public bool IsAutoSaveEnabled
+ {
+ get => _isAutoSaveEnabled;
+ set
+ {
+ if (_isAutoSaveEnabled != value)
+ {
+ _isAutoSaveEnabled = value;
+ OnPropertyChanged("IsAutoSaveEnabled");
+ }
+ }
+ }
+
+ ///
+ /// Gets or sets the reference to the Syncfusion PDF Viewer control.
+ /// Used for document loading and saving operations.
+ ///
+ public SfPdfViewer? PdfViewer
+ {
+ get => _pdfViewer;
+ set => _pdfViewer = value;
+ }
+
+ ///
+ /// Command for manually saving the current PDF document
+ ///
+ public Command SavePdfCommand { get; }
+
+ public void OnPropertyChanged(string name)
+ {
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
+ }
+
+ public void LoadPDF()
+ {
+ // Get saved stream from S3
+ MemoryStream pdfStream = OpenFileFromS3();
+
+ if(PdfViewer != null)
+ // Assigned the stream to the "PdfDocumentStream" property.
+ PdfViewer.DocumentSource = pdfStream;
+ }
+
+ private MemoryStream OpenFileFromS3()
+ {
+ // Create an Amazon S3 client using provided credentials and region.
+ // This client is used to communicate with the S3 service.
+ using (var s3Client = new AmazonS3Client(accessKey, secretKey, region))
+ {
+ // Prepare a request to get the object (file) from the specified bucket and key.
+ var request = new GetObjectRequest
+ {
+ BucketName = bucketName, // The name of the S3 bucket.
+ Key = objectKey // The path or filename of the object in the bucket.
+ };
+
+ // Get the file path.
+ _currentFileName = objectKey;
+
+ // Execute the request to get the object from S3.
+ using (var response = s3Client.GetObjectAsync(request).Result)
+
+ // Access the response stream which contains the file's data.
+ using (var responseStream = response.ResponseStream)
+ {
+ // Create a new memory stream to hold the file's contents.
+ var memoryStream = new MemoryStream();
+
+ // Copy the data from the response stream into the memory stream.
+ responseStream.CopyTo(memoryStream);
+
+ memoryStream.Position = 0; // Reset position before returning
+
+ // Return the populated memory stream.
+ return memoryStream;
+ }
+ }
+ }
+
+ public async Task UploadPdfToS3Async(Stream pdfStream)
+ {
+
+ // Create an Amazon S3 client using provided credentials and region.
+ // This client is used to communicate with the S3 service.
+ var s3Client = new AmazonS3Client(accessKey, secretKey, region);
+
+ // Initialize the TransferUtility, which simplifies file uploads to S3.
+ var transferUtility = new TransferUtility(s3Client);
+
+ // Reset Stream Position before upload.
+ pdfStream.Position = 0;
+
+ // Create Upload Request.
+ var uploadRequest = new TransferUtilityUploadRequest
+ {
+ InputStream = pdfStream, // The PDF file stream to upload.
+ BucketName = bucketName, // The target S3 bucket name.
+ Key = objectKey, // The key(path / filename) for the uploaded object.
+ ContentType = "application/pdf" // Set the MIME type to indicate it's a PDF.
+ };
+
+ // Upload the File to AWS S3 using "UploadAsync" method in the "TransferUtility" class.
+ await transferUtility.UploadAsync(uploadRequest);
+
+ NotificationText = _currentFileName + " - Saved successfully";
+ }
+
+ public async void SavePdf()
+ {
+ // Update notification content that save is started.
+ NotificationText = "Saving - " + _currentFileName + "...";
+
+ // Create a new memory stream to hold the saved PDF document
+ Stream savedStream = new MemoryStream();
+
+ if (PdfViewer != null)
+ // Asynchronously save the current document content into the memory stream
+ await PdfViewer.SaveDocumentAsync(savedStream);
+
+ await UploadPdfToS3Async(savedStream);
+ }
+
+ public void OnDocumentEdited()
+ {
+ if (IsAutoSaveEnabled)
+ {
+ // Automatically save the document when auto-save is enabled
+ SavePdf();
+ }
+ else
+ {
+ // Just notify user that document has been edited
+ NotificationText = _currentFileName + " - Edited (Auto-save disabled)";
+ }
+ }
+ }
+}
\ No newline at end of file