diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/App.xaml b/PDF-to-image/PDFToImage_Annotation_Appearance/App.xaml
new file mode 100644
index 0000000..ab0ef72
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/App.xaml.cs b/PDF-to-image/PDFToImage_Annotation_Appearance/App.xaml.cs
new file mode 100644
index 0000000..e33938d
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/App.xaml.cs
@@ -0,0 +1,14 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace PDFToImage_Annotation_Appearance
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+
+}
diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/AssemblyInfo.cs b/PDF-to-image/PDFToImage_Annotation_Appearance/AssemblyInfo.cs
new file mode 100644
index 0000000..b0ec827
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/MainWindow.xaml b/PDF-to-image/PDFToImage_Annotation_Appearance/MainWindow.xaml
new file mode 100644
index 0000000..bf3a601
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/MainWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/MainWindow.xaml.cs b/PDF-to-image/PDFToImage_Annotation_Appearance/MainWindow.xaml.cs
new file mode 100644
index 0000000..d01ac49
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/MainWindow.xaml.cs
@@ -0,0 +1,63 @@
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.PdfToImageConverter;
+using System.Drawing;
+using System.IO;
+using System.Windows;
+
+namespace PDFToImage_Annotation_Appearance
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ //Creates a new pdf document
+ PdfDocument document = new PdfDocument();
+ //Creates a new page
+ PdfPage page = document.Pages.Add();
+
+ //Creates PDF free text annotation
+ PdfFreeTextAnnotation freeText = new PdfFreeTextAnnotation(new RectangleF(50, 100, 100, 50));
+ //Sets properties to the annotation
+ freeText.MarkupText = "Free Text with Callout";
+ freeText.TextMarkupColor = new PdfColor(System.Drawing.Color.Black);
+ freeText.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 7f);
+ freeText.Color = new PdfColor(System.Drawing.Color.Yellow);
+ freeText.BorderColor = new PdfColor(System.Drawing.Color.Red);
+ freeText.Border = new PdfAnnotationBorder(.5f);
+ freeText.LineEndingStyle = PdfLineEndingStyle.OpenArrow;
+ freeText.AnnotationFlags = PdfAnnotationFlags.Default;
+ freeText.Text = "Free Text";
+ freeText.Opacity = 0.5f;
+ PointF[] points = { new PointF(100, 450), new PointF(100, 200), new PointF(100, 150) };
+ freeText.CalloutLines = points;
+ freeText.SetAppearance(true);
+ //Adds the annotation to page
+ page.Annotations.Add(freeText);
+
+ //Save the document
+ document.Save("../../../Output.pdf");
+ //Closes the document
+ document.Close(true);
+ }
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ PdfToImageConverter imageConverter = new PdfToImageConverter();
+ using (FileStream inputStream = new FileStream("../../../Output.pdf", FileMode.Open, FileAccess.ReadWrite))
+ {
+ imageConverter.Load(inputStream);
+ // Convert the first page (index 0)
+ using (Stream outputStream = imageConverter.Convert(0, false, false))
+ using (Bitmap Image = new Bitmap(outputStream))
+ {
+ Image.Save("sample.png"); // Produces an image that includes the FreeText annotation
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/PDFToImage_Annotation_Appearance.csproj b/PDF-to-image/PDFToImage_Annotation_Appearance/PDFToImage_Annotation_Appearance.csproj
new file mode 100644
index 0000000..e7c7d0e
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/PDFToImage_Annotation_Appearance.csproj
@@ -0,0 +1,11 @@
+
+
+
+ WinExe
+
+
+
+
+
+
+
diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/PDFToImage_Annotation_Appearance.slnx b/PDF-to-image/PDFToImage_Annotation_Appearance/PDFToImage_Annotation_Appearance.slnx
new file mode 100644
index 0000000..92b9047
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/PDFToImage_Annotation_Appearance.slnx
@@ -0,0 +1,3 @@
+
+
+
diff --git a/PDF-to-image/PDFToImage_Annotation_Appearance/targets/MultiTargeting.targets b/PDF-to-image/PDFToImage_Annotation_Appearance/targets/MultiTargeting.targets
new file mode 100644
index 0000000..3928b04
--- /dev/null
+++ b/PDF-to-image/PDFToImage_Annotation_Appearance/targets/MultiTargeting.targets
@@ -0,0 +1,10 @@
+
+
+ net462;net8.0-windows;net9.0-windows;net10.0-windows
+ true
+ False
+ True
+ True
+ True
+
+
\ No newline at end of file