diff --git a/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample.slnx b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample.slnx
new file mode 100644
index 00000000..91ea7c49
--- /dev/null
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample.slnx
@@ -0,0 +1,3 @@
+
+
+
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/App.xaml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/App.xaml
similarity index 83%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/App.xaml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/App.xaml
index 2204f761..e1310773 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/App.xaml
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/App.xaml
@@ -1,8 +1,8 @@
+ xmlns:local="clr-namespace:CreateMAUIPDFSample"
+ x:Class="CreateMAUIPDFSample.App">
diff --git a/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/App.xaml.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/App.xaml.cs
new file mode 100644
index 00000000..808bd90e
--- /dev/null
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/App.xaml.cs
@@ -0,0 +1,17 @@
+using Microsoft.Extensions.DependencyInjection;
+
+namespace CreateMAUIPDFSample
+{
+ public partial class App : Application
+ {
+ public App()
+ {
+ InitializeComponent();
+ }
+
+ protected override Window CreateWindow(IActivationState? activationState)
+ {
+ return new Window(new AppShell());
+ }
+ }
+}
\ No newline at end of file
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/AppShell.xaml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/AppShell.xaml
similarity index 64%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/AppShell.xaml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/AppShell.xaml
index 1306c8ab..c80162dd 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/AppShell.xaml
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/AppShell.xaml
@@ -1,11 +1,10 @@
+ xmlns:local="clr-namespace:CreateMAUIPDFSample"
+ Title="CreateMAUIPDFSample">
- net8.0-android;net8.0-ios;net8.0-maccatalyst
- $(TargetFrameworks);net8.0-windows10.0.19041.0
-
-
+ net10.0-android;net10.0-ios;net10.0-maccatalyst
+ $(TargetFrameworks);net10.0-windows10.0.19041.0
Exe
- CreatePdfDemoSample
+ CreateMAUIPDFSample
true
true
enable
enable
- CreatePdfDemoSample
+ CreateMAUIPDFSample
- com.companyname.createpdfdemosample
+ com.companyname.CreateMAUIPDFSample
1.0
1
- 11.0
- 13.1
+
+ None
+
+ 15.0
+ 15.0
21.0
10.0.17763.0
10.0.17763.0
- 6.5
@@ -48,7 +48,7 @@
-
+
@@ -63,16 +63,33 @@
-
-
-
+
+ Always
+
+
+ Always
+
+
+ Always
+
-
-
-
+
+
+
+
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/CreatePdfDemoSample.csproj.user b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/CreateMAUIPDFSample.csproj.user
similarity index 79%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/CreatePdfDemoSample.csproj.user
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/CreateMAUIPDFSample.csproj.user
index c659c02c..0a80ba23 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/CreatePdfDemoSample.csproj.user
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/CreateMAUIPDFSample.csproj.user
@@ -2,16 +2,15 @@
False
- net8.0-android
- Pixel 5 - API 33 (Android 13.0 - API 33)
- Emulator
- pixel_5_-_api_33
+ net10.0-windows10.0.19041.0
+ Windows Machine
+ RemoteDevice
ios-arm64
arm64
-
+
ProjectDebugger
diff --git a/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MainPage.xaml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MainPage.xaml
new file mode 100644
index 00000000..dbec5115
--- /dev/null
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MainPage.xaml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/MainPage.xaml.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MainPage.xaml.cs
similarity index 97%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/MainPage.xaml.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MainPage.xaml.cs
index f0d6930c..d1676fa1 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/MainPage.xaml.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MainPage.xaml.cs
@@ -1,4 +1,4 @@
-using CreatePdfDemoSample.Services;
+using CreateMAUIPDFSample.Services;
using Syncfusion.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
@@ -8,8 +8,7 @@
using PointF = Syncfusion.Drawing.PointF;
using SizeF = Syncfusion.Drawing.SizeF;
-
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
public partial class MainPage : ContentPage
{
@@ -27,14 +26,11 @@ public void createPdf_Click(object sender, EventArgs e)
PdfPage page = document.Pages.Add();
//Create PDF graphics for the page.
PdfGraphics graphics = page.Graphics;
-
RectangleF TotalPriceCellBounds = RectangleF.Empty;
RectangleF QuantityCellBounds = RectangleF.Empty;
-
//Get the page width and height
float pageWidth = page.GetClientSize().Width;
float pageHeight = page.GetClientSize().Height;
-
//Set the header height
float headerHeight = 90;
//Create brush with light blue color.
@@ -45,45 +41,34 @@ public void createPdf_Click(object sender, EventArgs e)
PdfBrush darkBlueBrush = new PdfSolidBrush(darkBlue);
//Create brush with white color.
PdfBrush whiteBrush = new PdfSolidBrush(Color.FromArgb(255, 255, 255, 255));
-
//Get the font file stream from assembly.
Assembly assembly = typeof(MainPage).GetTypeInfo().Assembly;
- string basePath = "CreatePdfDemoSample.Resources.Pdf.";
+ string basePath = "CreateMAUIPDFSample.Resources.Pdf.";
Stream fontStream = assembly.GetManifestResourceStream(basePath + "arial.ttf");
-
//Create PdfTrueTypeFont from stream with different size.
PdfTrueTypeFont headerFont = new(fontStream, 30, PdfFontStyle.Regular);
PdfTrueTypeFont arialRegularFont = new(fontStream, 18, PdfFontStyle.Regular);
PdfTrueTypeFont arialBoldFont = new(fontStream, 9, PdfFontStyle.Bold);
-
//Create string format.
PdfStringFormat format = new();
format.Alignment = PdfTextAlignment.Center;
format.LineAlignment = PdfVerticalAlignment.Middle;
-
float y = 0;
float x = 0;
-
//Set the margins of address.
float margin = 30;
-
//Set the line space.
float lineSpace = 10;
-
//Create border pen and draw the border to PDF page.
PdfColor borderColor = Color.FromArgb(255, 142, 170, 219);
PdfPen borderPen = new(borderColor, 1f);
graphics.DrawRectangle(borderPen, new RectangleF(0, 0, pageWidth, pageHeight));
-
//Create a new PdfGrid
PdfGrid grid = new();
-
//Add five columns to the grid.
grid.Columns.Add(5);
-
//Create the header row of the grid.
PdfGridRow[] headerRow = grid.Headers.Add(1);
-
//Set style to the header row and set value to the header cells.
headerRow[0].Style.BackgroundBrush = new PdfSolidBrush(new PdfColor(68, 114, 196));
headerRow[0].Style.TextBrush = PdfBrushes.White;
@@ -93,7 +78,6 @@ public void createPdf_Click(object sender, EventArgs e)
headerRow[0].Cells[2].Value = "Price ($)";
headerRow[0].Cells[3].Value = "Quantity";
headerRow[0].Cells[4].Value = "Total ($)";
-
//Add products to the grid table.
AddProducts("CA-1098", "AWC Logo Cap", 8.99, 2, 17.98, grid);
AddProducts("LJ-0192", "Long-Sleeve Logo Jersey,M", 49.99, 3, 149.97, grid);
@@ -101,7 +85,6 @@ public void createPdf_Click(object sender, EventArgs e)
AddProducts("LJ-0192", "Long-Sleeve Logo Jersey,M", 49.99, 4, 199.96, grid);
AddProducts("FK-5136", "ML Fork", 175.49, 6, 1052.94, grid);
AddProducts("HL-U509", "Sports-100 Helmet,Black", 34.99, 1, 34.99, grid);
-
#region Header
//Fill the header with light blue brush
@@ -137,7 +120,6 @@ public void createPdf_Click(object sender, EventArgs e)
y += arialRegularFont.Height + lineSpace;
//Draw text to PDF page with provided font and location.
graphics.DrawString("Date: " + DateTime.Now.ToString("dddd dd, MMMM yyyy"), arialRegularFont, PdfBrushes.Black, new PointF(x, y));
-
y = headerHeight + margin;
x = margin;
//Draw text to PDF page with provided font and location.
@@ -150,7 +132,6 @@ public void createPdf_Click(object sender, EventArgs e)
graphics.DrawString("9920 BridgePointe Parkway,", arialRegularFont, PdfBrushes.Black, new PointF(x, y));
y += arialRegularFont.Height + lineSpace;
graphics.DrawString("9365550136", arialRegularFont, PdfBrushes.Black, new PointF(x, y));
-
#region Grid
//Set width to grid columns.
grid.Columns[0].Width = 110;
@@ -227,10 +208,8 @@ public void createPdf_Click(object sender, EventArgs e)
borderPen.DashStyle = PdfDashStyle.Custom;
borderPen.DashPattern = new float[] { 3, 3 };
graphics.DrawLine(borderPen, new PointF(0, pageHeight - 100), new PointF(pageWidth, pageHeight - 100));
-
//Get the image file stream from assembly.
Stream imageStream = assembly.GetManifestResourceStream(basePath + "AdventureWork.png");
-
//Create PDF bitmap image from stream.
PdfBitmap bitmap = new(imageStream);
//Draw the image to PDF page.
@@ -241,26 +220,16 @@ public void createPdf_Click(object sender, EventArgs e)
size = arialRegularFont.MeasureString("800 Interchange Blvd.");
x = pageWidth - size.Width - margin;
graphics.DrawString("800 Interchange Blvd.", arialRegularFont, PdfBrushes.Black, new PointF(x, y));
-
//Calculate the text position and draw the text to PDF page.
y += arialRegularFont.Height + lineSpace;
size = arialRegularFont.MeasureString("Suite 2501, Austin, TX 78721");
x = pageWidth - size.Width - margin;
graphics.DrawString("Suite 2501, Austin, TX 78721", arialRegularFont, PdfBrushes.Black, new PointF(x, y));
-
//Calculate the text position and draw the text to PDF page.
y += arialRegularFont.Height + lineSpace;
size = arialRegularFont.MeasureString("Any Questions? support@adventure-works.com");
x = pageWidth - size.Width - margin;
graphics.DrawString("Any Questions? support@adventure-works.com", arialRegularFont, PdfBrushes.Black, new PointF(x, y));
-
-
- //Add a new blank PDF page.
- PdfPage page1 = document.Pages.Add();
-
- //Draw the image to the PDF page.
- page1.Graphics.DrawImage(bitmap, 0, 0, 200, 200);
-
using MemoryStream ms = new();
//Save the PDF document to MemoryStream.
document.Save(ms);
@@ -270,7 +239,6 @@ public void createPdf_Click(object sender, EventArgs e)
//Saves the memory stream as file using the SaveService instance.
SaveService save = new SaveService();
save.SaveAndView("output.pdf", "application/pdf", ms);
-
void Grid_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args)
{
PdfGrid grid = sender as PdfGrid;
@@ -286,8 +254,6 @@ void Grid_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args)
}
}
}
-
-
//Create and row for the grid.
void AddProducts(string productId, string productName, double price, int quantity, double total, PdfGrid grid)
{
@@ -312,9 +278,6 @@ private float GetTotalAmount(PdfGrid grid)
Total += result;
}
return Total;
-
}
-
}
-
}
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/MauiProgram.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MauiProgram.cs
similarity index 95%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/MauiProgram.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MauiProgram.cs
index 76a3209a..a65d5fcf 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/MauiProgram.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/MauiProgram.cs
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Logging;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
public static class MauiProgram
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/AndroidManifest.xml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/AndroidManifest.xml
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/AndroidManifest.xml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/AndroidManifest.xml
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/MainActivity.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/MainActivity.cs
similarity index 92%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/MainActivity.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/MainActivity.cs
index 33ee3d6f..37dd1c57 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/MainActivity.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/MainActivity.cs
@@ -2,7 +2,7 @@
using Android.Content.PM;
using Android.OS;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/MainApplication.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/MainApplication.cs
similarity index 92%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/MainApplication.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/MainApplication.cs
index 9abe4fad..56b73a08 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/MainApplication.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/MainApplication.cs
@@ -1,7 +1,7 @@
using Android.App;
using Android.Runtime;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
[Application]
public class MainApplication : MauiApplication
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/Resources/values/colors.xml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/Resources/values/colors.xml
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/Resources/values/colors.xml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/Resources/values/colors.xml
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/Resources/xml/file_paths.xml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/Resources/xml/file_paths.xml
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/Resources/xml/file_paths.xml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/Resources/xml/file_paths.xml
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/SaveAndroid.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/SaveAndroid.cs
similarity index 98%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/SaveAndroid.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/SaveAndroid.cs
index fc14a0c0..11fa2b52 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Android/SaveAndroid.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Android/SaveAndroid.cs
@@ -2,7 +2,7 @@
using Android.OS;
using Java.IO;
-namespace CreatePdfDemoSample.Services
+namespace CreateMAUIPDFSample.Services
{
public partial class SaveService
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/AppDelegate.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/AppDelegate.cs
similarity index 87%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/AppDelegate.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/AppDelegate.cs
index 4c72bfa8..71938797 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/AppDelegate.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/AppDelegate.cs
@@ -1,6 +1,6 @@
using Foundation;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
[Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/Entitlements.plist b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/Entitlements.plist
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/Entitlements.plist
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/Entitlements.plist
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/Info.plist b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/Info.plist
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/Info.plist
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/Info.plist
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/Program.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/Program.cs
similarity index 92%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/Program.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/Program.cs
index b988c097..1eed3a2e 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/Program.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/Program.cs
@@ -1,7 +1,7 @@
using ObjCRuntime;
using UIKit;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
public class Program
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/SaveMac.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/SaveMac.cs
similarity index 98%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/SaveMac.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/SaveMac.cs
index 290952aa..0703e503 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/SaveMac.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/MacCatalyst/SaveMac.cs
@@ -5,7 +5,7 @@
using System.Threading.Tasks;
using UIKit;
-namespace CreatePdfDemoSample.Services
+namespace CreateMAUIPDFSample.Services
{
public partial class SaveService
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Tizen/Main.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Tizen/Main.cs
similarity index 91%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Tizen/Main.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Tizen/Main.cs
index 0e46b4d1..1d44a178 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Tizen/Main.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Tizen/Main.cs
@@ -2,7 +2,7 @@
using Microsoft.Maui.Hosting;
using System;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
internal class Program : MauiApplication
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Tizen/tizen-manifest.xml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Tizen/tizen-manifest.xml
similarity index 91%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Tizen/tizen-manifest.xml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Tizen/tizen-manifest.xml
index 6d7736ba..1f1afedb 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Tizen/tizen-manifest.xml
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Tizen/tizen-manifest.xml
@@ -1,7 +1,7 @@
-
+
maui-appicon-placeholder
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/App.xaml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/App.xaml
similarity index 70%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/App.xaml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/App.xaml
index 6fb0a9b1..4ea55815 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/App.xaml
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/App.xaml
@@ -1,8 +1,8 @@
+ xmlns:local="using:CreateMAUIPDFSample.WinUI">
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/App.xaml.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/App.xaml.cs
similarity index 95%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/App.xaml.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/App.xaml.cs
index 80cd4e2e..e2de6f84 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/App.xaml.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/App.xaml.cs
@@ -3,7 +3,7 @@
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
-namespace CreatePdfDemoSample.WinUI
+namespace CreateMAUIPDFSample.WinUI
{
///
/// Provides application-specific behavior to supplement the default Application class.
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/Package.appxmanifest b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/Package.appxmanifest
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/Package.appxmanifest
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/Package.appxmanifest
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/SaveWindows.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/SaveWindows.cs
similarity index 99%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/SaveWindows.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/SaveWindows.cs
index 3e28ebfa..80dd33cb 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/SaveWindows.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/SaveWindows.cs
@@ -8,7 +8,7 @@
using Windows.Storage.Streams;
using Windows.UI.Popups;
-namespace CreatePdfDemoSample.Services
+namespace CreateMAUIPDFSample.Services
{
public partial class SaveService
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/app.manifest b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/app.manifest
similarity index 91%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/app.manifest
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/app.manifest
index 02becddc..57f9dd5e 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/Windows/app.manifest
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/Windows/app.manifest
@@ -1,6 +1,6 @@
-
+
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/AppDelegate.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/AppDelegate.cs
similarity index 87%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/AppDelegate.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/AppDelegate.cs
index 4c72bfa8..71938797 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/AppDelegate.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/AppDelegate.cs
@@ -1,6 +1,6 @@
using Foundation;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
[Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/Info.plist b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/Info.plist
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/Info.plist
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/Info.plist
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/PreviewControllerDS.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/PreviewControllerDS.cs
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/PreviewControllerDS.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/PreviewControllerDS.cs
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/Program.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/Program.cs
similarity index 92%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/Program.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/Program.cs
index b988c097..1eed3a2e 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/MacCatalyst/Program.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/Program.cs
@@ -1,7 +1,7 @@
using ObjCRuntime;
using UIKit;
-namespace CreatePdfDemoSample
+namespace CreateMAUIPDFSample
{
public class Program
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/QLPreviewItemFileSystem.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/QLPreviewItemFileSystem.cs
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/QLPreviewItemFileSystem.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/QLPreviewItemFileSystem.cs
diff --git a/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/Resources/PrivacyInfo.xcprivacy b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/Resources/PrivacyInfo.xcprivacy
new file mode 100644
index 00000000..24ab3b43
--- /dev/null
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/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/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/SaveIOS.cs b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/SaveIOS.cs
similarity index 98%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/SaveIOS.cs
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/SaveIOS.cs
index f21cf249..d836a34a 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Platforms/iOS/SaveIOS.cs
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Platforms/iOS/SaveIOS.cs
@@ -4,7 +4,7 @@
using System.Threading.Tasks;
using UIKit;
-namespace CreatePdfDemoSample.Services
+namespace CreateMAUIPDFSample.Services
{
public partial class SaveService
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Properties/launchSettings.json b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Properties/launchSettings.json
similarity index 70%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Properties/launchSettings.json
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Properties/launchSettings.json
index edf8aadc..4f857936 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Properties/launchSettings.json
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Properties/launchSettings.json
@@ -1,7 +1,7 @@
{
"profiles": {
"Windows Machine": {
- "commandName": "MsixPackage",
+ "commandName": "Project",
"nativeDebugging": false
}
}
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/AppIcon/appicon.svg b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/AppIcon/appicon.svg
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/AppIcon/appicon.svg
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/AppIcon/appicon.svg
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/AppIcon/appiconfg.svg b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/AppIcon/appiconfg.svg
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/AppIcon/appiconfg.svg
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/AppIcon/appiconfg.svg
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Fonts/OpenSans-Regular.ttf b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Fonts/OpenSans-Regular.ttf
similarity index 95%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Fonts/OpenSans-Regular.ttf
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Fonts/OpenSans-Regular.ttf
index 9ab655d2..fe25ce07 100644
Binary files a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Fonts/OpenSans-Regular.ttf and b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Fonts/OpenSans-Semibold.ttf b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Fonts/OpenSans-Semibold.ttf
similarity index 95%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Fonts/OpenSans-Semibold.ttf
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Fonts/OpenSans-Semibold.ttf
index 2b7468e9..921c9582 100644
Binary files a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Fonts/OpenSans-Semibold.ttf and b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Images/dotnet_bot.png b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Images/dotnet_bot.png
new file mode 100644
index 00000000..054167e5
Binary files /dev/null and b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Images/dotnet_bot.png differ
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Pdf/AdventureCycle.txt b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Pdf/AdventureCycle.txt
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Pdf/AdventureCycle.txt
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Pdf/AdventureCycle.txt
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Pdf/AdventureWork.png b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Pdf/AdventureWork.png
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Pdf/AdventureWork.png
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Pdf/AdventureWork.png
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Pdf/arial.ttf b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Pdf/arial.ttf
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Pdf/arial.ttf
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Pdf/arial.ttf
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Raw/AboutAssets.txt b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Raw/AboutAssets.txt
similarity index 86%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Raw/AboutAssets.txt
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Raw/AboutAssets.txt
index 15d62448..89dc758d 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Raw/AboutAssets.txt
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Raw/AboutAssets.txt
@@ -4,7 +4,7 @@ is automatically handled by the following `MauiAsset` Build Action within your `
-These files will be deployed with you package and will be accessible using Essentials:
+These files will be deployed with your package and will be accessible using Essentials:
async Task LoadMauiAsset()
{
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Splash/splash.svg b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Splash/splash.svg
similarity index 100%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Splash/splash.svg
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Splash/splash.svg
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Styles/Colors.xaml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Styles/Colors.xaml
similarity index 98%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Styles/Colors.xaml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Styles/Colors.xaml
index 30307a5d..d57fcc6e 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Styles/Colors.xaml
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Styles/Colors.xaml
@@ -1,5 +1,4 @@
-
diff --git a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Styles/Styles.xaml b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Styles/Styles.xaml
similarity index 94%
rename from Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Styles/Styles.xaml
rename to Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Styles/Styles.xaml
index e0d36bb7..5fef12ae 100644
--- a/Getting Started/MAUI/CreatePdfDemoSample/CreatePdfDemoSample/Resources/Styles/Styles.xaml
+++ b/Getting Started/MAUI/CreateMAUIPDFSample/CreateMAUIPDFSample/Resources/Styles/Styles.xaml
@@ -1,5 +1,4 @@
-
@@ -132,12 +131,6 @@
-
-
-
-
-
-
+
+