diff --git a/EncryptingPDF/EncryptingPDF.sln b/EncryptingPDF/EncryptingPDF.sln new file mode 100644 index 0000000..e57b6c6 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF.sln @@ -0,0 +1,24 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35506.116 d17.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EncryptingPDF", "EncryptingPDF\EncryptingPDF.csproj", "{0256B037-C638-425B-B5C6-64BECDA77461}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0256B037-C638-425B-B5C6-64BECDA77461}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0256B037-C638-425B-B5C6-64BECDA77461}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0256B037-C638-425B-B5C6-64BECDA77461}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {0256B037-C638-425B-B5C6-64BECDA77461}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0256B037-C638-425B-B5C6-64BECDA77461}.Release|Any CPU.Build.0 = Release|Any CPU + {0256B037-C638-425B-B5C6-64BECDA77461}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/EncryptingPDF/EncryptingPDF/App.xaml b/EncryptingPDF/EncryptingPDF/App.xaml new file mode 100644 index 0000000..3c0976f --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/EncryptingPDF/EncryptingPDF/App.xaml.cs b/EncryptingPDF/EncryptingPDF/App.xaml.cs new file mode 100644 index 0000000..1b9fb1a --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/App.xaml.cs @@ -0,0 +1,13 @@ +namespace EncryptingPDF +{ + public partial class App : Application + { + public App() + { + Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Add license key"); + InitializeComponent(); + + MainPage = new AppShell(); + } + } +} diff --git a/EncryptingPDF/EncryptingPDF/AppShell.xaml b/EncryptingPDF/EncryptingPDF/AppShell.xaml new file mode 100644 index 0000000..2d6552d --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/EncryptingPDF/EncryptingPDF/AppShell.xaml.cs b/EncryptingPDF/EncryptingPDF/AppShell.xaml.cs new file mode 100644 index 0000000..029aa7d --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace EncryptingPDF +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/EncryptingPDF/EncryptingPDF/Assets/PDF_Succinctly.pdf b/EncryptingPDF/EncryptingPDF/Assets/PDF_Succinctly.pdf new file mode 100644 index 0000000..3e15512 Binary files /dev/null and b/EncryptingPDF/EncryptingPDF/Assets/PDF_Succinctly.pdf differ diff --git a/EncryptingPDF/EncryptingPDF/EncryptingPDF.csproj b/EncryptingPDF/EncryptingPDF/EncryptingPDF.csproj new file mode 100644 index 0000000..9945957 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/EncryptingPDF.csproj @@ -0,0 +1,75 @@ + + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + + + + + Exe + EncryptingPDF + true + true + enable + enable + + + EncryptingPDF + + + com.companyname.encryptingpdf + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EncryptingPDF/EncryptingPDF/MainPage.xaml b/EncryptingPDF/EncryptingPDF/MainPage.xaml new file mode 100644 index 0000000..d006820 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/MainPage.xaml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/EncryptingPDF/EncryptingPDF/MainPage.xaml.cs b/EncryptingPDF/EncryptingPDF/MainPage.xaml.cs new file mode 100644 index 0000000..d038b1d --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/MainPage.xaml.cs @@ -0,0 +1,11 @@ +namespace EncryptingPDF +{ + public partial class MainPage : ContentPage + { + public MainPage() + { + InitializeComponent(); + } + } + +} diff --git a/EncryptingPDF/EncryptingPDF/MauiProgram.cs b/EncryptingPDF/EncryptingPDF/MauiProgram.cs new file mode 100644 index 0000000..5f1df2b --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/MauiProgram.cs @@ -0,0 +1,27 @@ +using Microsoft.Extensions.Logging; +using Syncfusion.Maui.Core.Hosting; + +namespace EncryptingPDF +{ + 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/EncryptingPDF/EncryptingPDF/PdfViewerViewModel.cs b/EncryptingPDF/EncryptingPDF/PdfViewerViewModel.cs new file mode 100644 index 0000000..62c198d --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/PdfViewerViewModel.cs @@ -0,0 +1,68 @@ +using Syncfusion.Pdf.Parsing; +using Syncfusion.Pdf.Security; +using System.ComponentModel; +using System.Reflection; + + +namespace EncryptingPDF +{ + internal class PdfViewerViewModel : INotifyPropertyChanged + { + //fields + private Stream? _inputPdfDocument; + private Stream? _outputPdfDocument; + private FileStream outputStream; + + //An event to detect the change in the value of a property. + public event PropertyChangedEventHandler? PropertyChanged; + + //The PDF document stream that is loaded into the instance of the PDF viewer. + public Stream? OutputPdfDocument + { + get { return _outputPdfDocument; } + set + { + _outputPdfDocument = value; + OnPropertyChanged("OutputDocument"); + } + } + + //Constructor of the view model class + public PdfViewerViewModel() + { + //Accessing the PDF document that is added as embedded resource as stream. + _inputPdfDocument = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("EncryptingPDF.Assets.PDF_Succinctly.pdf"); + + //Load existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument(_inputPdfDocument); + + // //Create a document security. + // PdfSecurity security = document.Security; + + // //Set encryption algorithm. + // security.Algorithm = PdfEncryptionAlgorithm.AES; + + // //Set key size. + // security.KeySize = PdfEncryptionKeySize.Key256Bit; + + // //Set user password for the document. + // security.UserPassword = "Sample@123"; + + // Create a file stream to save the PDF document. Here a file named "EncryptedPdf.pdf" is created in the application's data directory. + string filepath = Path.Combine(FileSystem.Current.AppDataDirectory, "EncryptedPdf.pdf"); + outputStream = new FileStream(filepath, FileMode.Create, FileAccess.ReadWrite); + // Save the PDF document. + document.Save(outputStream); + + //Assign the output file to property to use in the Document source for loading the PDF + OutputPdfDocument = outputStream; + + } + + // Method to notify when a property changes + public void OnPropertyChanged(string name) + { + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); + } + } +} diff --git a/EncryptingPDF/EncryptingPDF/Platforms/Android/AndroidManifest.xml b/EncryptingPDF/EncryptingPDF/Platforms/Android/AndroidManifest.xml new file mode 100644 index 0000000..e9937ad --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Android/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/EncryptingPDF/EncryptingPDF/Platforms/Android/MainActivity.cs b/EncryptingPDF/EncryptingPDF/Platforms/Android/MainActivity.cs new file mode 100644 index 0000000..763d887 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Android/MainActivity.cs @@ -0,0 +1,11 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; + +namespace EncryptingPDF +{ + [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/EncryptingPDF/EncryptingPDF/Platforms/Android/MainApplication.cs b/EncryptingPDF/EncryptingPDF/Platforms/Android/MainApplication.cs new file mode 100644 index 0000000..d21558c --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Android/MainApplication.cs @@ -0,0 +1,16 @@ +using Android.App; +using Android.Runtime; + +namespace EncryptingPDF +{ + [Application] + public class MainApplication : MauiApplication + { + public MainApplication(IntPtr handle, JniHandleOwnership ownership) + : base(handle, ownership) + { + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/EncryptingPDF/EncryptingPDF/Platforms/Android/Resources/values/colors.xml b/EncryptingPDF/EncryptingPDF/Platforms/Android/Resources/values/colors.xml new file mode 100644 index 0000000..c04d749 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Android/Resources/values/colors.xml @@ -0,0 +1,6 @@ + + + #512BD4 + #2B0B98 + #2B0B98 + \ No newline at end of file diff --git a/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/AppDelegate.cs b/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/AppDelegate.cs new file mode 100644 index 0000000..1dbe7e3 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace EncryptingPDF +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Entitlements.plist b/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Entitlements.plist new file mode 100644 index 0000000..de4adc9 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Entitlements.plist @@ -0,0 +1,14 @@ + + + + + + + com.apple.security.app-sandbox + + + com.apple.security.network.client + + + + diff --git a/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Info.plist b/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Info.plist new file mode 100644 index 0000000..7268977 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/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/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Program.cs b/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Program.cs new file mode 100644 index 0000000..f5f1b6a --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/MacCatalyst/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace EncryptingPDF +{ + 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/EncryptingPDF/EncryptingPDF/Platforms/Tizen/Main.cs b/EncryptingPDF/EncryptingPDF/Platforms/Tizen/Main.cs new file mode 100644 index 0000000..52836d7 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Tizen/Main.cs @@ -0,0 +1,17 @@ +using System; +using Microsoft.Maui; +using Microsoft.Maui.Hosting; + +namespace EncryptingPDF +{ + 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/EncryptingPDF/EncryptingPDF/Platforms/Tizen/tizen-manifest.xml b/EncryptingPDF/EncryptingPDF/Platforms/Tizen/tizen-manifest.xml new file mode 100644 index 0000000..c261e0a --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/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/EncryptingPDF/EncryptingPDF/Platforms/Windows/App.xaml b/EncryptingPDF/EncryptingPDF/Platforms/Windows/App.xaml new file mode 100644 index 0000000..e2efc19 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Windows/App.xaml @@ -0,0 +1,8 @@ + + + diff --git a/EncryptingPDF/EncryptingPDF/Platforms/Windows/App.xaml.cs b/EncryptingPDF/EncryptingPDF/Platforms/Windows/App.xaml.cs new file mode 100644 index 0000000..0c390af --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/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 EncryptingPDF.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/EncryptingPDF/EncryptingPDF/Platforms/Windows/Package.appxmanifest b/EncryptingPDF/EncryptingPDF/Platforms/Windows/Package.appxmanifest new file mode 100644 index 0000000..4d86b5d --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Windows/Package.appxmanifest @@ -0,0 +1,46 @@ + + + + + + + + + $placeholder$ + User Name + $placeholder$.png + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EncryptingPDF/EncryptingPDF/Platforms/Windows/app.manifest b/EncryptingPDF/EncryptingPDF/Platforms/Windows/app.manifest new file mode 100644 index 0000000..37f1453 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/Windows/app.manifest @@ -0,0 +1,15 @@ + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + diff --git a/EncryptingPDF/EncryptingPDF/Platforms/iOS/AppDelegate.cs b/EncryptingPDF/EncryptingPDF/Platforms/iOS/AppDelegate.cs new file mode 100644 index 0000000..1dbe7e3 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/iOS/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace EncryptingPDF +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/EncryptingPDF/EncryptingPDF/Platforms/iOS/Info.plist b/EncryptingPDF/EncryptingPDF/Platforms/iOS/Info.plist new file mode 100644 index 0000000..0004a4f --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/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/EncryptingPDF/EncryptingPDF/Platforms/iOS/Program.cs b/EncryptingPDF/EncryptingPDF/Platforms/iOS/Program.cs new file mode 100644 index 0000000..f5f1b6a --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Platforms/iOS/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace EncryptingPDF +{ + 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/EncryptingPDF/EncryptingPDF/Platforms/iOS/Resources/PrivacyInfo.xcprivacy b/EncryptingPDF/EncryptingPDF/Platforms/iOS/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..24ab3b4 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/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/EncryptingPDF/EncryptingPDF/Properties/launchSettings.json b/EncryptingPDF/EncryptingPDF/Properties/launchSettings.json new file mode 100644 index 0000000..edf8aad --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Windows Machine": { + "commandName": "MsixPackage", + "nativeDebugging": false + } + } +} \ No newline at end of file diff --git a/EncryptingPDF/EncryptingPDF/README.md b/EncryptingPDF/EncryptingPDF/README.md new file mode 100644 index 0000000..b580f70 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/README.md @@ -0,0 +1,3 @@ +# How to encrypt a PDF using PDF library and load them in PdfViewer? + +This folder contains a sample project that demonstrates how to encrypt a PDF using the Syncfusion PDF library and then load and view the encrypted PDF in the PDF Viewer. In this example, we encrypt an existing PDF and display it in the PDF Viewer. \ No newline at end of file diff --git a/EncryptingPDF/EncryptingPDF/Resources/AppIcon/appicon.svg b/EncryptingPDF/EncryptingPDF/Resources/AppIcon/appicon.svg new file mode 100644 index 0000000..9d63b65 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Resources/AppIcon/appicon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/EncryptingPDF/EncryptingPDF/Resources/AppIcon/appiconfg.svg b/EncryptingPDF/EncryptingPDF/Resources/AppIcon/appiconfg.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Resources/AppIcon/appiconfg.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/EncryptingPDF/EncryptingPDF/Resources/Fonts/OpenSans-Regular.ttf b/EncryptingPDF/EncryptingPDF/Resources/Fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..36eb5ce Binary files /dev/null and b/EncryptingPDF/EncryptingPDF/Resources/Fonts/OpenSans-Regular.ttf differ diff --git a/EncryptingPDF/EncryptingPDF/Resources/Fonts/OpenSans-Semibold.ttf b/EncryptingPDF/EncryptingPDF/Resources/Fonts/OpenSans-Semibold.ttf new file mode 100644 index 0000000..d1f015f Binary files /dev/null and b/EncryptingPDF/EncryptingPDF/Resources/Fonts/OpenSans-Semibold.ttf differ diff --git a/EncryptingPDF/EncryptingPDF/Resources/Images/dotnet_bot.png b/EncryptingPDF/EncryptingPDF/Resources/Images/dotnet_bot.png new file mode 100644 index 0000000..f93ce02 Binary files /dev/null and b/EncryptingPDF/EncryptingPDF/Resources/Images/dotnet_bot.png differ diff --git a/EncryptingPDF/EncryptingPDF/Resources/Raw/AboutAssets.txt b/EncryptingPDF/EncryptingPDF/Resources/Raw/AboutAssets.txt new file mode 100644 index 0000000..89dc758 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/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/EncryptingPDF/EncryptingPDF/Resources/Splash/splash.svg b/EncryptingPDF/EncryptingPDF/Resources/Splash/splash.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Resources/Splash/splash.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/EncryptingPDF/EncryptingPDF/Resources/Styles/Colors.xaml b/EncryptingPDF/EncryptingPDF/Resources/Styles/Colors.xaml new file mode 100644 index 0000000..30307a5 --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/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/EncryptingPDF/EncryptingPDF/Resources/Styles/Styles.xaml b/EncryptingPDF/EncryptingPDF/Resources/Styles/Styles.xaml new file mode 100644 index 0000000..6641e3a --- /dev/null +++ b/EncryptingPDF/EncryptingPDF/Resources/Styles/Styles.xaml @@ -0,0 +1,427 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +