diff --git a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Filtering.md b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Filtering.md
index e1c020ed7..d4385423d 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Filtering.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Filtering.md
@@ -27,8 +27,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Filter
@@ -48,13 +47,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Filter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Filter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -120,8 +114,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Custom Filter
@@ -142,13 +135,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CustomFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CustomFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -218,8 +206,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Combination Filter
@@ -241,13 +228,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CombinationFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CombinationFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -315,8 +297,7 @@ The following code example illustrates how to apply Dynamic filter.
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Dynamic Filter
@@ -332,13 +313,8 @@ The following code example illustrates how to apply Dynamic filter.
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/DynamicFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/DynamicFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -398,8 +374,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Cell Color Filter
@@ -415,13 +390,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CellColorFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CellColorFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -479,8 +449,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Font Color Filter
@@ -496,13 +465,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/FontColorFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/FontColorFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -562,8 +526,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Icon Filter
@@ -579,13 +542,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/IconFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/IconFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -655,8 +613,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Advanced Filter
@@ -670,13 +627,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AdvancedFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AdvancedFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -732,8 +684,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Accessing Filter
@@ -781,8 +732,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
}
#endregion
- //Dispose streams
- inputStream.Dispose();
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -903,8 +853,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Access sort fields from AutoFilters
@@ -931,13 +880,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
sorter.Sort();
#region Save
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Find-and-Replace.md b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Find-and-Replace.md
index 18817be70..ae817ba2d 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Find-and-Replace.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Find-and-Replace.md
@@ -28,8 +28,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Searches for the given string within the text of worksheet
@@ -86,10 +85,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
cell.CellStyle.Color = Syncfusion.Drawing.Color.FromArgb(255, 0, 128, 128);
}
- //Saving the workbook as stream
- FileStream stream = new FileStream(Path.GetFullPath(@"Output/Find.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath(@"Output/Find.xlsx"));
}
{% endhighlight %}
@@ -177,8 +174,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Replaces the given string with another string
@@ -196,11 +192,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Replaces the given string with Array
worksheet.Replace("Central", new string[] { "Central", "East" }, true);
- //Saving the workbook as stream
- FileStream stream = new FileStream(Path.GetFullPath("Output/Replace.xlsx"), FileMode.Create, FileAccess.ReadWrite);
+ //Saving the workbook
workbook.Version = ExcelVersion.Xlsx;
- workbook.SaveAs(stream);
- stream.Dispose();
+ workbook.SaveAs(Path.GetFullPath("Output/Replace.xlsx"));
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Hyperlink.md b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Hyperlink.md
index 3c805ca10..9f9000037 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Hyperlink.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Hyperlink.md
@@ -214,12 +214,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Hyperlinks.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Hyperlinks.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -325,8 +321,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Modify Hyperlink
@@ -337,13 +332,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ModifyHyperlink.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ModifyHyperlink.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -391,8 +381,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Remove Hyperlink
@@ -402,13 +391,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveHyperlink.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RemoveHyperlink.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -484,12 +468,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ShapeHyperlink.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ShapeHyperlink.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -563,8 +543,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Modify Shape Hyperlink
@@ -579,13 +558,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ModifyShapeHyperlink.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ModifyShapeHyperlink.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -641,8 +615,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath("Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath("Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Removing hyperlink from sheet with Index
@@ -650,13 +623,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveShapeHyperlink.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RemoveShapeHyperlink.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/List-of-APIs-under-IRange.md b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/List-of-APIs-under-IRange.md
index be6671818..5644322aa 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/List-of-APIs-under-IRange.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/List-of-APIs-under-IRange.md
@@ -36,17 +36,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Local R1C1 Address
string address_R1C1_Local = worksheet.Range[3, 4].AddressR1C1Local;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -125,17 +115,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
worksheet.Range["B4"].Boolean = false;
bool b4 = worksheet.Range["B4"].Boolean;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -206,17 +186,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
borders[ExcelBordersIndex.EdgeTop].LineStyle = ExcelLineStyle.Thick;
borders[ExcelBordersIndex.EdgeBottom].LineStyle = ExcelLineStyle.Thick;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -291,17 +261,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set built in style
worksheet.Range["C2"].BuiltInStyle = BuiltInStyles.Accent3;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -372,17 +332,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Disable sheet calculations
worksheet.DisableSheetCalculations();
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -464,17 +414,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
cell.Text = cell.AddressLocal;
}
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -544,17 +484,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Get the cell style name
string cellStyleName = worksheet.Range["C2"].CellStyleName;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -622,17 +552,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Get first column in the range
int firstColumn = worksheet.Range["E1:R3"].Column;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -688,17 +608,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
column.Text = column.AddressLocal;
}
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -767,17 +677,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Number of cells
int count = worksheet.Range["A1:E5"].Count;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -831,17 +731,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Last cell in the range
IRange lastCell = worksheet.Range["A1:E5"].End;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -891,17 +781,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Last cell in the entire column
IRange lastCell = worksheet.Range["A1"].EntireColumn.End;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -953,17 +833,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Last cell in the entire row
IRange lastCell = worksheet.Range["A1"].EntireRow.End;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1023,17 +893,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Get the claculated value of formula
string value = worksheet.Range["C1"].CalculatedValue;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1124,17 +984,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool value_C1 = worksheet.Range["C1"].FormulaBoolValue;
bool value_E1 = worksheet.Range["E1"].FormulaBoolValue;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1225,17 +1075,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool hasBoolean_A2 = worksheet.Range["A2"].HasBoolean;
bool hasBoolean_A3 = worksheet.Range["A3"].HasBoolean;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1308,17 +1148,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool validation_A1 = worksheet.Range["A1"].HasDataValidation;
bool validation_A3 = worksheet.Range["A3"].HasDataValidation;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1397,17 +1227,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool dateTime_B3 = worksheet.Range["B3"].HasDateTime;
bool dateTime_B4 = worksheet.Range["B4"].HasDateTime;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1493,17 +1313,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool extFormula_C1 = worksheet.Range["C1"].HasExternalFormula;
bool extFormula_C2 = worksheet.Range["C2"].HasExternalFormula;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1576,17 +1386,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool formula_A2 = worksheet.Range["A2"].HasFormula;
bool formula_C2 = worksheet.Range["C2"].HasFormula;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1658,17 +1458,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool formulaArray = worksheet.Range["A1"].HasFormulaArray;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1746,17 +1536,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Has formula boolean value
bool hasValue_E1 = worksheet.Range["E1"].HasFormulaBoolValue;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1835,17 +1615,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool hasNumber_A1 = worksheet.Range["A1"].HasNumber;
bool hasNumber_A2 = worksheet.Range["A2"].HasNumber;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -1925,17 +1695,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
bool hasRichText = worksheet.Range["A1"].HasRichText;
bool hasNumber_A2 = worksheet.Range["A2"].HasNumber;
- //Saving the Excel to the MemoryStream
- MemoryStream stream = new MemoryStream();
- workbook.SaveAs(stream);
-
- //Set the position as '0'
- stream.Position = 0;
-
- //Download the PDF file in the browser
- FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
- fileStreamResult.FileDownloadName = "Output.xlsx";
- return fileStreamResult;
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Sorting.md b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Sorting.md
index 2981d15f8..a9d7cf173 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Sorting.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Cells-Manipulation/Sorting.md
@@ -26,8 +26,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Sort On Cell Values
@@ -61,13 +60,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/SortOnValues.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/SortOnValues.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -161,8 +155,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath("Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath("Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Sort on Font Color
@@ -199,13 +192,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/SortOnFontColor.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/SortOnFontColor.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -287,8 +275,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Sort on Cell Color
@@ -325,13 +312,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/SortOnCellColor.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/SortOnCellColor.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Appearance.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Appearance.md
index ff3154d4e..61c8a532a 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Appearance.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Appearance.md
@@ -22,8 +22,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IChart chart = worksheet.Charts[0];
@@ -50,13 +49,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
chartFillImpl2.FillType = ExcelFillType.SolidColor;
chartFillImpl2.ForeColor = Color.FromArgb(143, 170, 220); ;
- //Saving the workbook as streams
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
@@ -147,8 +141,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IChart chart = worksheet.Charts[0];
@@ -183,13 +176,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
chartFillImpl2.ForeColor = Color.White;
chartFillImpl2.Pattern = ExcelGradientPattern.Pat_5_Percent;
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
@@ -295,8 +283,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IChart chart = worksheet.Charts[0];
@@ -337,13 +324,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
chartFillImpl2.GradientStops.Add(gradientStopImpl3);
chartFillImpl2.GradientStops.Add(gradientStopImpl4);
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
@@ -460,8 +442,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IChart chart = worksheet.Charts[0];
@@ -493,15 +474,12 @@ using (ExcelEngine excelEngine = new ExcelEngine())
serie1.SerieFormat.Fill.UserPicture(image2, "Image");
serie2.SerieFormat.Fill.UserPicture(image2, "Image");
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
//Dispose streams
- outputStream.Dispose();
imageStream1.Dispose();
imageStream2.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -587,8 +565,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IChart chart = worksheet.Charts[0];
@@ -607,13 +584,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set no fill to series
serie1.SerieFormat.Fill.Visible = false;
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
@@ -979,12 +951,8 @@ The following code example illustrates how to apply 3D settings such as rotation
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1118,8 +1086,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Adding pie chart in the worksheet
@@ -1146,13 +1113,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1218,8 +1180,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Adding chart in the workbook
@@ -1244,13 +1205,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
//Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
imageStream.Dispose();
}
{% endhighlight %}
@@ -1371,12 +1329,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Area.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Area.md
index 09c5bb3ec..0ff07ed2d 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Area.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Area.md
@@ -86,8 +86,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[0];
IChartShape chart = sheet.Charts[0];
@@ -105,13 +104,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
chartArea.Fill.BackColor = Color.FromArgb(205, 217, 234);
chartArea.Fill.ForeColor = Color.White;
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Axis.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Axis.md
index ece58ec12..5360d2670 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Axis.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Axis.md
@@ -341,8 +341,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[0];
IChartShape chart = sheet.Charts[0];
@@ -410,13 +409,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Hiding minor gridlines
chart.PrimaryValueAxis.HasMinorGridLines = false;
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Data-Labels.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Data-Labels.md
index 792c0c949..c89c7d19e 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Data-Labels.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Data-Labels.md
@@ -158,8 +158,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IChartShape chart = worksheet.Charts[0];
@@ -191,13 +190,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IChartDataLabels dataLabel = chart.Series[0].DataPoints.DefaultDataPoint.DataLabels;
(dataLabel as ChartDataLabelsImpl).NumberFormat = "#,##0.00";
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
@@ -345,12 +339,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs("Output.xlsx");
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Legend.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Legend.md
index b557a5464..77b9880e6 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Legend.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Legend.md
@@ -228,8 +228,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IChartShape chart = worksheet.Charts[0];
@@ -264,11 +263,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set Legend without overlapping the chart
chart.Legend.IncludeInLayout = true;
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Plot-Area.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Plot-Area.md
index d20e5309f..e1c7a4b0f 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Plot-Area.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Plot-Area.md
@@ -130,8 +130,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[0];
IChartShape chart = sheet.Charts[0];
@@ -152,13 +151,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set the position
chartPlotArea.Layout.Left = 5;
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Series.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Series.md
index 836698ed8..2b59fd6b4 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Series.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Series.md
@@ -151,8 +151,7 @@ using (ExcelEngine engine = new ExcelEngine())
{
IApplication application = engine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[0];
//Create a Chart
@@ -185,13 +184,8 @@ using (ExcelEngine engine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Title.md b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Title.md
index 692b1bebd..f12c4d0c1 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Title.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Charts/Chart-Title.md
@@ -116,8 +116,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
IChartShape chart = sheet.Charts[0];
@@ -135,11 +134,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Manually resizing chart title area using Layout.
chart.ChartTitleArea.Layout.Left = 20;
- //Saving the workbook as stream
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
- outputStream.Dispose();
- inputStream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Color-Scales.md b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Color-Scales.md
index 6c96c9de5..49571a466 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Color-Scales.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Color-Scales.md
@@ -18,8 +18,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Create color scales for the data in specified range
@@ -42,13 +41,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Data-Bars.md b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Data-Bars.md
index f42d94cf7..7f25b4838 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Data-Bars.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Data-Bars.md
@@ -18,8 +18,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Create data bars for the data in specified range
@@ -36,13 +35,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Highlight-Cells.md b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Highlight-Cells.md
index 758c72b57..0ea20a787 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Highlight-Cells.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Highlight-Cells.md
@@ -90,12 +90,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/UniqueandDuplicate.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/UniqueandDuplicate.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Icon-Sets.md b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Icon-Sets.md
index 5ce56b3e6..a276cbbee 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Icon-Sets.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Icon-Sets.md
@@ -18,8 +18,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Create icon sets for the data in specified range
@@ -38,13 +37,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Top-Bottom.md b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Top-Bottom.md
index b7b5c0ca7..93a6c5935 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Top-Bottom.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Conditional-Formatting/Top-Bottom.md
@@ -30,8 +30,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Applying conditional formatting to "N6:N35".
@@ -53,13 +52,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/TopToBottomRank.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/TopToBottomRank.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -189,8 +183,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Applying conditional formatting to "N6:N35".
@@ -215,13 +208,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -366,8 +354,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Applying conditional formatting to "M6:M35"
@@ -387,13 +374,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AboveAndBelowAverage.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AboveAndBelowAverage.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -469,8 +451,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Applying conditional formatting to "M6:M35"
@@ -493,13 +474,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AboveAndBelowStandardDeviation.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AboveAndBelowStandardDeviation.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Import-Export/Export-from-Excel.md b/Document-Processing/Excel/Excel-Library/NET/Import-Export/Export-from-Excel.md
index 481b21aa6..9d0bfec88 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Import-Export/Export-from-Excel.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Import-Export/Export-from-Excel.md
@@ -22,15 +22,11 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Read data from the worksheet and Export to the DataTable
- DataTable customersTable = worksheet.ExportDataTable(worksheet.UsedRange, ExcelExportDataTableOptions.ColumnNames | ExcelExportDataTableOptions.ComputedFormulaValues);
-
- //Dispose streams
- inputStream.Dispose();
+ DataTable customersTable = worksheet.ExportDataTable(worksheet.UsedRange, ExcelExportDataTableOptions.ColumnNames | ExcelExportDataTableOptions.ComputedFormulaValues);
}
//XlsIO supports binding of exported data table to data grid in Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms alone.
@@ -96,8 +92,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2016;
- FileStream inputStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
//Event to choose an action while exporting data from Excel to data table.
@@ -106,10 +101,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Read data from the worksheet and Export to the DataTable
DataTable customersTable = worksheet.ExportDataTable(worksheet.UsedRange, ExcelExportDataTableOptions.ColumnNames);
- //Saving the workbook as stream
- FileStream stream = new FileStream("ExportToDT.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("ExportToDT.xlsx");
}
//XlsIO supports binding of exported data table to data grid in Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms alone
@@ -223,15 +216,11 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Export worksheet data into Collection Objects
List collectionObjects = worksheet.ExportData(1, 1, 10, 3);
-
- //Dispose streams
- inputStream.Dispose();
}
{% endhighlight %}
@@ -369,8 +358,7 @@ namespace Worksheet_to_Nested_Class
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Map column headers in worksheet with class properties.
@@ -383,9 +371,6 @@ namespace Worksheet_to_Nested_Class
//Export worksheet data into nested class Objects.
List nestedClassObjects = worksheet.ExportData(1, 1, 10, 5, mappingProperties);
-
- //Dispose streams
- inputStream.Dispose();
}
}
}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Import-Export/Import-to-Excel.md b/Document-Processing/Excel/Excel-Library/NET/Import-Export/Import-to-Excel.md
index 5df36bd0d..8348f801d 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Import-Export/Import-to-Excel.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Import-Export/Import-to-Excel.md
@@ -32,12 +32,8 @@ N> XlsIO supports importing of data from data table to worksheet in Windows Form
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportDataTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportDataTable.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -104,12 +100,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportDataColumn.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportDataColumn.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -176,12 +168,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportDataView.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportDataView.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -242,12 +230,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportCollectionObjects.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportCollectionObjects.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -444,12 +428,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportDataOptions.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportDataOptions.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -690,12 +670,8 @@ namespace Layout_Options
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportData.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportData.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
//Helper method to load data from XML file and add them in collections.
private static IList GetVehicleDetails()
@@ -703,8 +679,7 @@ namespace Layout_Options
XmlSerializer deserializer = new XmlSerializer(typeof(BrandObjects));
//Read data from XML file.
- FileStream stream = new FileStream(Path.GetFullPath(@"Data/ExportData.xml"), FileMode.Open, FileAccess.Read);
- TextReader textReader = new StreamReader(stream);
+ TextReader textReader = new StreamReader(Path.GetFullPath(@"Data/ExportData.xml"));
BrandObjects brands = (BrandObjects)deserializer.Deserialize(textReader);
//Initialize parent collection to add data from XML file.
@@ -1370,21 +1345,16 @@ namespace Grouping_Options
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportData.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportData.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
//Helper method to load data from XML file and add them in collections.
private static IList GetVehicleDetails()
{
XmlSerializer deserializer = new XmlSerializer(typeof(BrandObjects));
- //Read data from XML file.
- FileStream stream = new FileStream(Path.GetFullPath(@"Data/ExportData.xml"), FileMode.Open, FileAccess.Read);
- TextReader textReader = new StreamReader(stream);
+ //Read data from XML file.
+ TextReader textReader = new StreamReader(Path.GetFullPath(@"Data/ExportData.xml"));
BrandObjects brands = (BrandObjects)deserializer.Deserialize(textReader);
//Initialize parent collection to add data from XML file.
@@ -1967,12 +1937,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportData.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportData.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2206,12 +2172,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ArrayToWorksheet.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ArrayToWorksheet.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2440,18 +2402,12 @@ namespace ImportHtml
IWorksheet worksheet = workbook.Worksheets[0];
//Imports HTML table into the worksheet from first row and first column
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.html"), FileMode.Open, FileAccess.ReadWrite);
- worksheet.ImportHtmlTable(inputStream, 1, 1);
+ worksheet.ImportHtmlTable(Path.GetFullPath(@"Data/InputTemplate.html"), 1, 1);
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/HTMLTabletoWorksheet.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/HTMLTabletoWorksheet.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
}
}
@@ -2556,13 +2512,11 @@ using (ExcelEngine excelEngine = new ExcelEngine())
FileStream inputStream = new FileStream("../../../Data/XmlFile.xml", FileMode.Open, FileAccess.Read);
worksheet.ImportXml(inputStream, 1, 6);
- //Saving the workbook as stream
- FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
//Dispose stream
inputStream.Dispose();
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2617,13 +2571,11 @@ using (ExcelEngine excelEngine = new ExcelEngine())
FileStream inputStream = new FileStream("../../../Data/XmlFile.xml", FileMode.Open, FileAccess.Read);
workbook.XmlMaps.Add(inputStream);
- //Saving the workbook as stream
- FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(outputStream);
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
//Dispose stream
inputStream.Dispose();
- outputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Grouping.md b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Grouping.md
index 2a1532925..8478c807f 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Grouping.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Grouping.md
@@ -32,8 +32,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream fileStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
IWorksheet pivotSheet = workbook.Worksheets.Create();
@@ -51,10 +50,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
pivotTable.Options.ShowFieldList = false;
pivotTable.Options.RowLayout = PivotTableRowLayout.Tabular;
- //Saving the workbook as stream
- FileStream stream = new FileStream("PivotTableGrouping.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("PivotTableGrouping.xlsx");
}
{% endhighlight %}
@@ -129,8 +126,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream fileStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -141,10 +137,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Remove pivot table grouping
field1.GroupBy = PivotFieldGroupType.None;
- //Saving the workbook as stream
- FileStream stream = new FileStream("PivotTableUnGrouping.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("PivotTableUnGrouping.xlsx");
}
{% endhighlight %}
@@ -202,8 +196,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IWorksheet pivotSheet = workbook.Worksheets[1];
@@ -231,13 +224,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ExpandOrCollapse.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ExpandOrCollapse.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Layout.md b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Layout.md
index 5911c5d19..835b6209b 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Layout.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Layout.md
@@ -20,8 +20,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[1];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -33,13 +32,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -97,8 +91,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[1];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -110,13 +103,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -174,8 +162,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[1];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -187,13 +174,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -253,8 +235,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[1];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -263,13 +244,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ClassicLayout.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ClassicLayout.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Table-Options.md b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Table-Options.md
index 72f040c0b..e5c01f1a1 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Table-Options.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Pivot-Table-Options.md
@@ -224,20 +224,15 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream fileStream = new FileStream("PivotTable.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open("PivotTable.xlsx");
IWorksheet sheet = workbook.Worksheets[1];
IPivotTable pivotTable = sheet.PivotTables[0];
//Add calculated field to the first pivot table
IPivotField field = pivotTable.CalculatedFields.Add("Percent", "Sales/Total*100");
- string fileName = "PivotTableCalculate.xlsx";
-
- //Saving the workbook as stream
- FileStream stream = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("PivotTableCalculate.xlsx");
}
{% endhighlight %}
@@ -283,8 +278,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[1];
IPivotTable pivotTable = sheet.PivotTables[0];
@@ -296,13 +290,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CalculatedField.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CalculatedField.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Sorting-and-Filtering.md b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Sorting-and-Filtering.md
index a0f1ecad1..e56dc1abf 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Sorting-and-Filtering.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Sorting-and-Filtering.md
@@ -27,8 +27,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[1];
IPivotTable pivotTable = sheet.PivotTables[0];
@@ -38,13 +37,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/PivotSort.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/PivotSort.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -98,8 +92,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[1];
IPivotTable pivotTable = sheet.PivotTables[0];
@@ -109,13 +102,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/PivotSort.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/PivotSort.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -277,8 +265,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IWorksheet pivotSheet = workbook.Worksheets[1];
@@ -319,13 +306,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/PivotFilter.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/PivotFilter.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Styles-and-Formatting.md b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Styles-and-Formatting.md
index d227ed35b..e45bc1022 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Styles-and-Formatting.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Pivot-Table/Styles-and-Formatting.md
@@ -20,8 +20,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[1];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -30,13 +29,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/PivotTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/PivotTable.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -92,8 +86,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[1];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -103,13 +96,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/PivotCellFormat.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/PivotCellFormat.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Security.md b/Document-Processing/Excel/Excel-Library/NET/Security.md
index 750b28c5b..956768c09 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Security.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Security.md
@@ -699,4 +699,6 @@ End Using
N> Security features are now supported in .NET Standard 1.4 onwards.
+N> By default, all cells in an Excel worksheet have the Locked property set to true. This property only takes effect when the worksheet is protected. To allow edits in specific cells, you must explicitly set the Locked property to false before applying protection. Once the sheet is protected, only the unlocked cells remain editable. However, ExcelEngine will allow editing cells programmatically even though the worksheet is protected.
+
A complete working example to protect a cell in C# is present on [this GitHub page](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/XlsIO-Excel-Protect-UnProtect/Locked-Cells/.NET/Locked-Cells).
diff --git a/Document-Processing/Excel/Excel-Library/NET/What-If-Analysis.md b/Document-Processing/Excel/Excel-Library/NET/What-If-Analysis.md
index c20395004..a4b396120 100644
--- a/Document-Processing/Excel/Excel-Library/NET/What-If-Analysis.md
+++ b/Document-Processing/Excel/Excel-Library/NET/What-If-Analysis.md
@@ -24,10 +24,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
- inputStream.Dispose();
-
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
// Access the collection of scenarios in the worksheet
@@ -51,12 +48,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CreateScenarios.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CreateScenarios.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -138,8 +131,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IScenarios scenarios = worksheet.Scenarios;
@@ -149,10 +142,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Modify the scenario
scenario1.ModifyScenario(scenario2.ChangingCells, scenario2.Values);
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -207,8 +198,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IScenarios scenarios = worksheet.Scenarios;
@@ -217,10 +207,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Delete the scenario
scenario1.Delete();
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -274,18 +262,15 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet1 = workbook.Worksheets[0];
IWorksheet worksheet2 = workbook.Worksheets[1];
//Merge the second worksheet scenario into first worksheet.
worksheet1.Scenarios.Merge(worksheet2);
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -334,8 +319,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IScenarios scenarios = worksheet.Scenarios;
@@ -359,10 +343,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Create Summary
worksheet.Scenarios.CreateSummary(worksheet.Range["L7"]);
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -447,10 +429,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
- inputStream.Dispose();
-
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Access the collection of scenarios in the worksheet
@@ -467,12 +446,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
newSheet.Name = scenarios[pos].Name;
- //Saving the new workbook as a stream
- using (FileStream stream = new FileStream(Path.GetFullPath(@"Output/" + scenarios[pos].Name + ".xlsx"), FileMode.Create, FileAccess.ReadWrite))
- {
- newBook.SaveAs(stream);
- }
-
+ //Saving the new workbook
+ newBook.SaveAs(Path.GetFullPath(@"Output/" + scenarios[pos].Name + ".xlsx"));
+
//To restore the cell values from the previous scenario results
scenarios["Current % of Change"].Show();
scenarios["Current Quantity"].Show();
@@ -533,8 +509,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IScenarios scenarios = worksheet.Scenarios;
@@ -543,10 +518,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set the name of the scenario
scenario.Name = "Current Quantity";
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -599,9 +572,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
- inputStream.Dispose();
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
@@ -616,13 +587,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/HideScenario.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/HideScenario.xlsx"));
#endregion
- //Dispose streams
- outputStream.Dispose();
-
}
{% endhighlight %}
@@ -678,9 +645,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
- inputStream.Dispose();
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/WhatIfAnalysisTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
@@ -695,13 +660,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ProtectScenario.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ProtectScenario.xlsx"));
#endregion
- //Dispose streams
- outputStream.Dispose();
-
}
{% endhighlight %}
@@ -756,9 +717,8 @@ The comment associated with that particular scenario can be generated using the
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ application.DefaultVersion = ExcelVersion.Xlsx;
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
IScenarios scenarios = worksheet.Scenarios;
@@ -767,10 +727,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set the comment value
scenario.Comment = "Scenario has been created";
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Cell-or-Range-Formatting.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Cell-or-Range-Formatting.md
index 6dff372a8..89a094af2 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Cell-or-Range-Formatting.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Cell-or-Range-Formatting.md
@@ -33,12 +33,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CreateStyle.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CreateStyle.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -110,12 +106,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RowColumnStyle.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RowColumnStyle.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -257,12 +249,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/GlobalStyle.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/GlobalStyle.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -687,12 +675,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/NumberFormat.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/NumberFormat.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -873,9 +857,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
string text = worksheet.Range["B4"].DisplayText;
//Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
}
{% endhighlight %}
@@ -970,12 +952,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/HideCellContent.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/HideCellContent.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1189,12 +1167,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Alignment.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Alignment.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1374,12 +1348,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/MergeandUnMerge.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/MergeandUnMerge.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1445,12 +1415,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/WrapText.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/WrapText.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1542,12 +1508,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AutoFit.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AutoFit.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1643,12 +1605,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/FontSettings.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/FontSettings.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1860,12 +1818,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/BorderSettings.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/BorderSettings.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1996,12 +1950,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/HTMLString.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/HTMLString.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2105,12 +2055,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RichText.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RichText.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Charts.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Charts.md
index a6ec7c680..910e5d646 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Charts.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Charts.md
@@ -24,8 +24,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a Chart
@@ -59,13 +58,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -151,12 +145,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -274,12 +264,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -407,8 +393,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Add SparklineGroups
@@ -426,13 +411,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Sparklines.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Sparklines.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -502,8 +482,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Edit Sparklines
@@ -517,13 +496,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/EditSparklines.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/EditSparklines.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -579,8 +553,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
ISparklineGroup sparklineGroup = sheet.SparklineGroups[0];
@@ -597,13 +570,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveSparklines.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RemoveSparklines.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -675,8 +643,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a chart
@@ -702,13 +669,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Funnel.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Funnel.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -788,8 +750,7 @@ The following code example illustrates how to create Box and Whisker chart.
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a chart
@@ -834,13 +795,8 @@ The following code example illustrates how to create Box and Whisker chart.
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/BoxandWhisker.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/BoxandWhisker.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -958,8 +914,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a chart
@@ -988,13 +943,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Waterfall.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Waterfall.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1088,8 +1038,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a chart
@@ -1117,13 +1066,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Histogram.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Histogram.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1215,8 +1159,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a chart
@@ -1245,13 +1188,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Pareto.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Pareto.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1346,8 +1284,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a chart
@@ -1370,13 +1307,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Treemap.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Treemap.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1458,8 +1390,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
//Create a chart
@@ -1482,13 +1413,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Sunburst.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Sunburst.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1651,12 +1577,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs("Output.xlsx");
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -1744,8 +1666,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet sheet = workbook.Worksheets[0];
IChartShape chart = sheet.Charts[0];
@@ -1754,13 +1675,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Chart.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Chart.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Conditional-Formatting.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Conditional-Formatting.md
index baaf4fc6d..acf8c522a 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Conditional-Formatting.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Conditional-Formatting.md
@@ -150,12 +150,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ConditionalFormat.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ConditionalFormat.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -297,16 +293,14 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Read conditional formatting settings
string formatType = worksheet.Range["A1"].ConditionalFormats[0].FormatType.ToString();
string cfOperator = worksheet.Range["A1"].ConditionalFormats[0].Operator.ToString();
- //Dispose streams
- inputStream.Dispose();
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -359,8 +353,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Removing conditional format for a specified range
@@ -368,13 +361,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveConditionalFormat.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RemoveConditionalFormat.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -422,8 +410,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Removing first conditional Format at the specified Range
@@ -431,13 +418,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveConditionalFormat.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RemoveConditionalFormat.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -483,8 +465,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Removing Conditional Formatting Settings From Entire Sheet
@@ -492,13 +473,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveAll.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RemoveAll.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -557,12 +533,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ConditionalFormat.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ConditionalFormat.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Data-Validation.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Data-Validation.md
index 053e8a4f0..e6232f953 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Data-Validation.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Data-Validation.md
@@ -337,9 +337,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
validation.PromptBoxText = "Custom DataValidation";
validation.ShowPromptBox = true;
- FileStream file = new FileStream("DataValidation.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(file);
- file.Dispose();
+ workbook.SaveAs("DataValidation.xlsx");
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Excel-Tables.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Excel-Tables.md
index 134bf26db..c43417f38 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Excel-Tables.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Excel-Tables.md
@@ -7,6 +7,9 @@ documentation: UG
---
# Working with Excel Tables
+To quickly learn how to create, edit, and format tables in Excel documents, check out this video:
+{% youtube "https://www.youtube.com/watch?v=i8H4ER7PpjU" %}
+
## Creating a table
XlsIO supports reading and writing the table which helps to organize and analyze the related data.
@@ -26,8 +29,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Create for the given data
@@ -35,13 +37,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CreateTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CreateTable.xlsx"));
#endregion
-
- //Dispose streams
- inputStream.Dispose();
- outputStream.Dispose();
}
{% endhighlight %}
@@ -89,8 +86,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Accessing first table in the sheet
@@ -101,13 +97,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ReadTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ReadTable.xlsx"));
#endregion
-
- //Dispose streams
- inputStream.Dispose();
- outputStream.Dispose();
}
{% endhighlight %}
@@ -163,8 +154,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Creating a table
@@ -175,13 +165,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/FormatTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/FormatTable.xlsx"));
#endregion
-
- //Dispose streams
- inputStream.Dispose();
- outputStream.Dispose();
}
{% endhighlight %}
@@ -323,12 +308,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CustomTableStyle.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CustomTableStyle.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -540,8 +521,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Creating a table
@@ -552,13 +532,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/InsertTableColumn.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/InsertTableColumn.xlsx"));
#endregion
-
- //Dispose streams
- inputStream.Dispose();
- outputStream.Dispose();
}
{% endhighlight %}
@@ -622,8 +597,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Creating a table
@@ -637,13 +611,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AddTotalRow.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AddTotalRow.xlsx"));
#endregion
-
- //Dispose streams
- inputStream.Dispose();
- outputStream.Dispose();
}
{% endhighlight %}
@@ -742,9 +711,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Auto-fits the columns
worksheet.UsedRange.AutofitColumns();
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.Write);
- workbook.SaveAs(stream);
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
//Helper method to get data table using OLEDB connection
@@ -911,8 +879,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2016;
- FileStream inputStream = new FileStream("ExistingDataSource.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open("ExistingDataSource.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
//Accessing a connection from the workbook
@@ -924,9 +891,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
listObject.Refresh();
}
- //Saving the workbook as stream
- FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -988,8 +954,7 @@ The following code example illustrates how to set parameter through **prompt** e
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream fileStream = new FileStream("QueryTable.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open("QueryTable.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
///Get query table from list objects.
@@ -1004,10 +969,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set parameter value through prompt.
parameter.SetParam(ExcelParameterType.Prompt, "Prompt");
- //Saving the workbook as stream
- FileStream stream = new FileStream("PromptParameter.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("PromptParameter.xlsx");
}
{% endhighlight %}
@@ -1089,8 +1052,7 @@ The following code example illustrates how to set parameter through **constant**
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream fileStream = new FileStream("QueryTable.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open("QueryTable.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
///Get query table from list objects.
@@ -1105,10 +1067,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set constant to the parameter value.
parameter.SetParam(ExcelParameterType.Constant, 30);
- //Saving the workbook as stream
- FileStream stream = new FileStream("ConstantParameter.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("ConstantParameter.xlsx");
}
{% endhighlight %}
@@ -1175,8 +1135,7 @@ The following code example illustrates how to set parameter type to a specific *
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream fileStream = new FileStream("QueryTable.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open("QueryTable.xlsx", ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Get query table from list objects.
@@ -1191,10 +1150,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Set range to the parameter value.
parameter.SetParam(ExcelParameterType.Range, worksheet.Range["H1"]);
- //Saving the workbook as stream
- FileStream stream = new FileStream("RangeParameter.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("RangeParameter.xlsx");
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Formulas.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Formulas.md
index 59cb65336..58e5472b1 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Formulas.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Formulas.md
@@ -90,12 +90,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -163,12 +159,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -261,12 +253,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -344,12 +332,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
//Output
@@ -469,12 +453,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -537,12 +517,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -615,12 +591,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/IncrementalFormula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/IncrementalFormula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -686,12 +658,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ExternalFormula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ExternalFormula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -768,12 +736,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CalculatedColumn.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CalculatedColumn.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2098,10 +2062,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Use the function. The expected result is 30
sheet.Range["A3"].Formula = "AddInFunction(10,20)";
- //Saving the workbook as stream
- FileStream stream = new FileStream("AddIn.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath("Output/AddIn.xlsx"));
}
{% endhighlight %}
@@ -2251,12 +2213,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Formula.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Formula.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2362,9 +2320,8 @@ Following code illustrates on how to ignore or set error indicators.
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ application.DefaultVersion = ExcelVersion.Xlsx;
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet sheet = workbook.Worksheets[0];
//Sets warning if number is entered as text.
@@ -2372,12 +2329,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/FormulaAuditing.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/FormulaAuditing.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2455,12 +2408,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CalculationMode.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CalculationMode.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -2551,12 +2500,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Iteration.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Iteration.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Pictures.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Pictures.md
index aa6e3bd64..52f1d3bb8 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Pictures.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Pictures.md
@@ -24,12 +24,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AddPicture.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AddPicture.xlsx"));
#endregion
//Dispose streams
- outputStream.Dispose();
imageStream.Dispose();
}
{% endhighlight %}
@@ -93,12 +91,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ResizePicture.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ResizePicture.xlsx"));
#endregion
//Dispose streams
- outputStream.Dispose();
imageStream.Dispose();
}
{% endhighlight %}
@@ -179,13 +175,11 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Hide the column
worksheet.HideColumn(5);
- //Saving the workbook as stream
- FileStream OutputStream = new FileStream(Path.GetFullPath(@"Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(OutputStream);
+ //Saving the workbook
+ workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx"));
//Dispose streams
imageStream.Dispose();
- OutputStream.Dispose();
}
{% endhighlight %}
@@ -271,10 +265,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
worksheet.Range["B1"].RowHeight = 155;
worksheet.Range["B1"].ColumnWidth = 10;
- //Saving the workbook as stream
- FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Output.xlsx");
}
{% endhighlight %}
@@ -338,8 +330,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Get the merged cells
@@ -368,14 +359,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImageInMergedRegion.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImageInMergedRegion.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
-
}
{% endhighlight %}
@@ -467,12 +452,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ExternalImage.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ExternalImage.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -531,12 +512,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/SVGImage.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/SVGImage.xlsx"));
#endregion
//Dispose streams
- outputStream.Dispose();
svgStream.Dispose();
pngStream.Dispose();
}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Charts.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Charts.md
index a0101ad5a..905dfa1d8 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Charts.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Charts.md
@@ -22,8 +22,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
- FileStream fileStream = new FileStream("PivotTable.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open("PivotTable.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
IPivotTable pivotTable = worksheet.PivotTables[0];
@@ -38,10 +37,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
string fileName = "PivotChart.xlsx";
- //Saving the workbook as stream
- FileStream stream = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs(fileName);
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Tables.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Tables.md
index be4d416b5..d43364ad0 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Tables.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Pivot-Tables.md
@@ -119,8 +119,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/PivotData.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/PivotData.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IWorksheet pivotSheet = workbook.Worksheets[1];
@@ -141,13 +140,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/PivotTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/PivotTable.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -222,8 +216,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[1];
//Accessing the pivot table in the worksheet
@@ -237,13 +230,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -325,8 +313,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
IWorksheet pivotSheet = workbook.Worksheets[1];
@@ -335,13 +322,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -398,19 +380,15 @@ The following code example illustrates how to layout the pivot table.
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream fileStream = new FileStream("PivotTable.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open("PivotTable.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
IPivotTable pivotTable = worksheet.PivotTables[0];
//Layout the pivot table.
pivotTable.Layout();
- string fileName = "PivotTable_Layout.xlsx";
- //Saving the workbook as stream
- FileStream stream = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("PivotTable_Layout.xlsx");
}
{% endhighlight %}
@@ -467,8 +445,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet pivotSheet = workbook.Worksheets[0];
//Change the range values that the Pivot Tables range refers to
@@ -476,13 +453,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/PivotTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/PivotTable.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -526,8 +498,7 @@ The following code example illustrates how to refresh the pivot table after upda
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
//Updating a new value in the pivot data
@@ -542,13 +513,8 @@ The following code example illustrates how to refresh the pivot table after upda
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/RefreshPivotTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/RefreshPivotTable.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Working-with-Template-Markers.md b/Document-Processing/Excel/Excel-Library/NET/Working-with-Template-Markers.md
index bdd32d76f..74f36c6b2 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Working-with-Template-Markers.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Working-with-Template-Markers.md
@@ -96,8 +96,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Create Template Marker Processor
@@ -125,13 +124,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportDataTable.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportDataTable.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -196,8 +190,7 @@ You can also add or insert template markers using XlsIO APIs as follows.
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream fileStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
IWorksheet sheet = workbook.Worksheets[0];
//Insert Simple marker
@@ -220,11 +213,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Process the markers in the template
marker.ApplyMarkers();
- //Saving the workbook as stream
+ //Saving the workbook
workbook.Version = ExcelVersion.Excel2013;
- FileStream stream = new FileStream("TemplateMarker.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ workbook.SaveAs("TemplateMarker.xlsx"));
}
{% endhighlight %}
@@ -315,10 +306,9 @@ The following code snippet illustrates how to detect data type and apply number
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream fileStream = new FileStream("TemplateMarker.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
-
- //Create Template Marker Processor
+ IWorkbook workbook = application.Workbooks.Open("TemplateMarker.xlsx");
+
+ //Create Template Marker Processor
ITemplateMarkersProcessor marker = workbook.CreateTemplateMarkersProcessor();
DataTable reports = new DataTable();
@@ -338,12 +328,10 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Process the markers and detect the number format along with the data type in the template
marker.ApplyMarkers();
- //Saving the workbook as stream
+ //Saving the workbook
workbook.Version = ExcelVersion.Excel2013;
+ workbook.SaveAs(Path.GetFullPath("TemplateMarkerWithFormat.xlsx"));
- FileStream stream = new FileStream("TemplateMarkerWithFormat.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
}
{% endhighlight %}
@@ -540,8 +528,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Create Template Marker Processor
@@ -555,13 +542,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ImportNestedCollection.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ImportNestedCollection.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -848,8 +830,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Create Template Marker Processor
@@ -955,13 +936,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ConditionalFormatting.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ConditionalFormatting.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1248,8 +1224,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream, ExcelOpenType.Automatic);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"), ExcelOpenType.Automatic);
IWorksheet worksheet = workbook.Worksheets[0];
//Create Template Marker Processor
@@ -1263,13 +1238,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/HyperlinkWithMarker.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/HyperlinkWithMarker.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Worksheet-Cells-Manipulation.md b/Document-Processing/Excel/Excel-Library/NET/Worksheet-Cells-Manipulation.md
index ab4acea38..adeb28de7 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Worksheet-Cells-Manipulation.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Worksheet-Cells-Manipulation.md
@@ -49,12 +49,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AccessCellorRange.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AccessCellorRange.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -160,12 +156,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AccessRelativeRange.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AccessRelativeRange.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -256,12 +248,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/DiscontinuousRange.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/DiscontinuousRange.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -342,12 +330,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/MigrantRange.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/MigrantRange.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -418,8 +402,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Precedents in Worksheet
@@ -517,9 +500,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
}
Console.WriteLine();
#endregion
-
- //Dispose streams
- inputStream.Dispose();
}
{% endhighlight %}
@@ -569,8 +549,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Precedents in Worksheet
@@ -668,9 +647,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
}
Console.WriteLine();
#endregion
-
- //Dispose streams
- inputStream.Dispose();
}
{% endhighlight %}
@@ -724,8 +700,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Precedents in Worksheet
@@ -823,9 +798,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
}
Console.WriteLine();
#endregion
-
- //Dispose streams
- inputStream.Dispose();
}
{% endhighlight %}
@@ -875,8 +847,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Precedents in Worksheet
@@ -974,9 +945,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
}
Console.WriteLine();
#endregion
-
- //Dispose streams
- inputStream.Dispose();
}
{% endhighlight %}
@@ -1055,8 +1023,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Clear Content
@@ -1066,13 +1033,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ClearContent.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ClearContent.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md b/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md
index d02a0f2f6..38c4de310 100644
--- a/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md
+++ b/Document-Processing/Excel/Excel-Library/NET/Worksheet-Rows-and-Columns-Manipulation.md
@@ -20,8 +20,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Insert Rows
@@ -42,13 +41,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/InsertRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/InsertRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -102,8 +96,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Delete Rows
@@ -124,13 +117,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/DeleteRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/DeleteRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -196,8 +184,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Move Rows
@@ -212,13 +199,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/MoveRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/MoveRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -271,8 +253,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Hide Row and Column
@@ -283,13 +264,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/HideRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/HideRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -360,12 +336,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/HideRange.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/HideRange.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
}
{% endhighlight %}
@@ -441,8 +413,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Resize rows
@@ -463,13 +434,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ResizeRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ResizeRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -517,8 +483,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Resize rows
@@ -539,13 +504,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ResizeRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ResizeRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -602,8 +562,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Autofit Rows
@@ -624,13 +583,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AutofitRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AutofitRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -718,8 +672,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Autofit Rows
@@ -740,13 +693,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/AutofitRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/AutofitRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -814,8 +762,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate - ToGroup.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate - ToGroup.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Group Rows
@@ -832,13 +779,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/GroupRowsandColumns.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/GroupRowsandColumns.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
{% endhighlight %}
@@ -922,8 +864,7 @@ namespace Expand_or_Collapse_Groups
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate - To Expand.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate - To Expand.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Expand Groups
@@ -938,13 +879,8 @@ namespace Expand_or_Collapse_Groups
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/ExpandGroups.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/ExpandGroups.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
}
public void CollapseGroups()
@@ -953,8 +889,7 @@ namespace Expand_or_Collapse_Groups
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate - To Collapse.xlsx"), FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate - To Collapse.xlsx"));
IWorksheet worksheet = workbook.Worksheets[0];
#region Collapse Groups
@@ -969,13 +904,8 @@ namespace Expand_or_Collapse_Groups
#region Save
//Saving the workbook
- FileStream outputStream = new FileStream(Path.GetFullPath("Output/CollapseGroups.xlsx"), FileMode.Create, FileAccess.Write);
- workbook.SaveAs(outputStream);
+ workbook.SaveAs(Path.GetFullPath("Output/CollapseGroups.xlsx"));
#endregion
-
- //Dispose streams
- outputStream.Dispose();
- inputStream.Dispose();
}
}
}
@@ -1034,8 +964,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Xlsx;
- FileStream fileStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(fileStream);
+ IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
//Set the range for subtotaling
@@ -1044,10 +973,8 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Perform subtotals for the range with every change in first column and subtotals to be included for specified list of columns
range.SubTotal(0, ConsolidationFunction.Sum, new int[] { 2, 3, 4 });
- //Saving the workbook as stream
- FileStream stream = new FileStream("Book1.xlsx", FileMode.Create, FileAccess.ReadWrite);
- workbook.SaveAs(stream);
- stream.Dispose();
+ //Saving the workbook
+ workbook.SaveAs("Book1.xlsx");
}
{% endhighlight %}
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Aqua.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Aqua.png
new file mode 100644
index 000000000..a0cd024e9
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Aqua.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Black.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Black.png
new file mode 100644
index 000000000..605fca7d8
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Black.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/BlackCustom.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/BlackCustom.png
new file mode 100644
index 000000000..e3f58c009
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/BlackCustom.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Blue.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Blue.png
new file mode 100644
index 000000000..5931d784e
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Blue.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/BlueCustom.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/BlueCustom.png
new file mode 100644
index 000000000..8f6e4e002
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/BlueCustom.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Blue_grey.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Blue_grey.png
new file mode 100644
index 000000000..6ff382a4d
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Blue_grey.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Bright_green.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Bright_green.png
new file mode 100644
index 000000000..9533b280a
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Bright_green.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Brown.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Brown.png
new file mode 100644
index 000000000..5313c146d
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Brown.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom0.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom0.png
new file mode 100644
index 000000000..b75141089
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom0.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom1.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom1.png
new file mode 100644
index 000000000..6699ade0e
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom1.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom10.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom10.png
new file mode 100644
index 000000000..878a4b3eb
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom10.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom11.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom11.png
new file mode 100644
index 000000000..c0665a234
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom11.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom12.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom12.png
new file mode 100644
index 000000000..c3c941ed2
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom12.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom13.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom13.png
new file mode 100644
index 000000000..f186c8e5e
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom13.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom14.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom14.png
new file mode 100644
index 000000000..737c665ad
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom14.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom15.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom15.png
new file mode 100644
index 000000000..e0c1f3bc6
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom15.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom16.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom16.png
new file mode 100644
index 000000000..2a70e3c35
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom16.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom17.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom17.png
new file mode 100644
index 000000000..d6d7635c8
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom17.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom18.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom18.png
new file mode 100644
index 000000000..bd27af1b8
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom18.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom19.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom19.png
new file mode 100644
index 000000000..d0880cc5d
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom19.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom2.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom2.png
new file mode 100644
index 000000000..5fc5e6210
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom2.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom20.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom20.png
new file mode 100644
index 000000000..ba7f01331
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom20.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom21.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom21.png
new file mode 100644
index 000000000..0fc1eeeae
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom21.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom22.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom22.png
new file mode 100644
index 000000000..be1ab47d0
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom22.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom23.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom23.png
new file mode 100644
index 000000000..396e876ce
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom23.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom24.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom24.png
new file mode 100644
index 000000000..59992b69b
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom24.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom25.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom25.png
new file mode 100644
index 000000000..f24215807
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom25.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom26.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom26.png
new file mode 100644
index 000000000..359d1bd90
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom26.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom27.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom27.png
new file mode 100644
index 000000000..69833b79d
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom27.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom28.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom28.png
new file mode 100644
index 000000000..60275b6f2
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom28.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom29.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom29.png
new file mode 100644
index 000000000..b0be935fd
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom29.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom3.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom3.png
new file mode 100644
index 000000000..99a4f05f5
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom3.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom30.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom30.png
new file mode 100644
index 000000000..a04ef2b60
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom30.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom31.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom31.png
new file mode 100644
index 000000000..35db40ec8
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom31.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom32.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom32.png
new file mode 100644
index 000000000..1071027c2
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom32.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom33.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom33.png
new file mode 100644
index 000000000..691f38c85
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom33.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom34.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom34.png
new file mode 100644
index 000000000..37a7fecae
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom34.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom35.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom35.png
new file mode 100644
index 000000000..234c09d0c
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom35.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom36.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom36.png
new file mode 100644
index 000000000..8b4713724
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom36.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom37.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom37.png
new file mode 100644
index 000000000..92b9464b2
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom37.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom38.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom38.png
new file mode 100644
index 000000000..cef33b016
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom38.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom39.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom39.png
new file mode 100644
index 000000000..ed656683a
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom39.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom4.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom4.png
new file mode 100644
index 000000000..32374bb09
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom4.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom40.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom40.png
new file mode 100644
index 000000000..1b240b594
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom40.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom41.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom41.png
new file mode 100644
index 000000000..cadd4cba1
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom41.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom42.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom42.png
new file mode 100644
index 000000000..3b2dfe732
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom42.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom43.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom43.png
new file mode 100644
index 000000000..af7c2b127
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom43.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom44.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom44.png
new file mode 100644
index 000000000..91a32e8a7
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom44.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom45.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom45.png
new file mode 100644
index 000000000..52785abd1
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom45.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom46.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom46.png
new file mode 100644
index 000000000..45f054723
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom46.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom47.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom47.png
new file mode 100644
index 000000000..c537c9ee5
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom47.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom48.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom48.png
new file mode 100644
index 000000000..77b31e5ff
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom48.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom49.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom49.png
new file mode 100644
index 000000000..3c11fcbb2
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom49.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom5.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom5.png
new file mode 100644
index 000000000..be2a84a5b
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom5.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom50.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom50.png
new file mode 100644
index 000000000..275e83844
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom50.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom51.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom51.png
new file mode 100644
index 000000000..55d1be41d
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom51.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom52.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom52.png
new file mode 100644
index 000000000..7f569e8b6
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom52.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom53.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom53.png
new file mode 100644
index 000000000..0fc19d075
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom53.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom54.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom54.png
new file mode 100644
index 000000000..eed09320f
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom54.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom55.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom55.png
new file mode 100644
index 000000000..bcfc00c23
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom55.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom56.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom56.png
new file mode 100644
index 000000000..01650e604
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom56.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom6.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom6.png
new file mode 100644
index 000000000..1fb3a3472
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom6.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom7.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom7.png
new file mode 100644
index 000000000..487dca007
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom7.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom8.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom8.png
new file mode 100644
index 000000000..fb936a0bb
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom8.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom9.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom9.png
new file mode 100644
index 000000000..37d3fed61
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Custom9.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Cyan.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Cyan.png
new file mode 100644
index 000000000..75c581f8f
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Cyan.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_blue.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_blue.png
new file mode 100644
index 000000000..0c93b54fd
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_blue.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_green.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_green.png
new file mode 100644
index 000000000..d7002fefc
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_green.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_red.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_red.png
new file mode 100644
index 000000000..d4a92d461
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_red.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_teal.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_teal.png
new file mode 100644
index 000000000..39a4320df
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_teal.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_yellow.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_yellow.png
new file mode 100644
index 000000000..afd860a83
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Dark_yellow.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Gold.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Gold.png
new file mode 100644
index 000000000..112b0e052
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Gold.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Green.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Green.png
new file mode 100644
index 000000000..0c94fcb79
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Green.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_25_percent.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_25_percent.png
new file mode 100644
index 000000000..34ca2340f
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_25_percent.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_40_percent.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_40_percent.png
new file mode 100644
index 000000000..e1e6d9867
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_40_percent.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_50_percent.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_50_percent.png
new file mode 100644
index 000000000..05164882b
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_50_percent.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_80_percent.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_80_percent.png
new file mode 100644
index 000000000..25525717a
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Grey_80_percent.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Indigo.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Indigo.png
new file mode 100644
index 000000000..d65b469f6
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Indigo.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Lavender.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Lavender.png
new file mode 100644
index 000000000..1dca9b2f3
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Lavender.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/LightGreen.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/LightGreen.png
new file mode 100644
index 000000000..4e4a118d2
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/LightGreen.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_blue.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_blue.png
new file mode 100644
index 000000000..3d4bf4ac0
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_blue.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_green.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_green.png
new file mode 100644
index 000000000..6f7581db3
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_green.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_orange.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_orange.png
new file mode 100644
index 000000000..630be5855
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_orange.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_turquoise.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_turquoise.png
new file mode 100644
index 000000000..b4b5f0b91
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_turquoise.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_yellow.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_yellow.png
new file mode 100644
index 000000000..3100da6d0
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Light_yellow.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Lime.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Lime.png
new file mode 100644
index 000000000..54f166037
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Lime.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Magenta.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Magenta.png
new file mode 100644
index 000000000..2d0f93beb
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Magenta.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/None.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/None.png
new file mode 100644
index 000000000..187262002
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/None.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Olive_green.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Olive_green.png
new file mode 100644
index 000000000..ce2170fb2
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Olive_green.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Orange.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Orange.png
new file mode 100644
index 000000000..eda35a1fd
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Orange.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Pale_blue.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Pale_blue.png
new file mode 100644
index 000000000..4f56b0074
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Pale_blue.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Pink.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Pink.png
new file mode 100644
index 000000000..660ac4170
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Pink.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Plum.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Plum.png
new file mode 100644
index 000000000..2e0a9ce9d
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Plum.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Red.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Red.png
new file mode 100644
index 000000000..da30922cf
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Red.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Red2.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Red2.png
new file mode 100644
index 000000000..cd9afa0e9
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Red2.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Rose.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Rose.png
new file mode 100644
index 000000000..ca518d09b
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Rose.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Sea_green.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Sea_green.png
new file mode 100644
index 000000000..795e178da
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Sea_green.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Sky_blue.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Sky_blue.png
new file mode 100644
index 000000000..2cfb17789
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Sky_blue.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Tan.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Tan.png
new file mode 100644
index 000000000..593b063ae
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Tan.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Teal.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Teal.png
new file mode 100644
index 000000000..a42cf8d3c
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Teal.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Turquoise.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Turquoise.png
new file mode 100644
index 000000000..e6316a54d
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Turquoise.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Violet.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Violet.png
new file mode 100644
index 000000000..5108c5081
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Violet.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/White.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/White.png
new file mode 100644
index 000000000..f5b840a1a
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/White.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/WhiteCustom.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/WhiteCustom.png
new file mode 100644
index 000000000..30b6701b5
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/WhiteCustom.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Yellow.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Yellow.png
new file mode 100644
index 000000000..3a908c24a
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/Yellow.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/YellowCustom.png b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/YellowCustom.png
new file mode 100644
index 000000000..f0e27f52b
Binary files /dev/null and b/Document-Processing/Excel/Excel-Library/NET/faqs/ExcelKnownColors_images/YellowCustom.png differ
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-autofit-for-merged-cells.md b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-autofit-for-merged-cells.md
new file mode 100644
index 000000000..0b8bbeb25
--- /dev/null
+++ b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-autofit-for-merged-cells.md
@@ -0,0 +1,11 @@
+---
+title: Autofit support for merged cells | Syncfusion
+description: Learn whether Syncfusion XlsIO supports autofit for merged cells in Excel using Syncfusion .NET Excel library (XlsIO).
+platform: document-processing
+control: XlsIO
+documentation: UG
+---
+
+# Does XlsIO support autofit for merged cells?
+
+No, XlsIO does not support autofit for merged cells. As per Microsoft Excel behavior, the autofit is not applied to the rows/columns containing merged cells. To adjust row height or column width for merged cells, set it manually using the RowHeight and ColumnWidth properties.
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-multiple-markers-in-a-single-Excel-cell.md b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-multiple-markers-in-a-single-Excel-cell.md
new file mode 100644
index 000000000..75583ab19
--- /dev/null
+++ b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-multiple-markers-in-a-single-Excel-cell.md
@@ -0,0 +1,11 @@
+---
+title: XlsIO support for multiple markers in a single cell | Syncfusion
+description: Learn whether Syncfusion XlsIO supports multiple markers in a single Excel cell using the Syncfusion .NET Excel library (XlsIO).
+platform: document-processing
+control: XlsIO
+documentation: UG
+---
+
+# Does XlsIO support multiple markers in a single Excel cell?
+
+No, XlsIO does not support multiple markers in a single Excel cell. Only one marker is allowed per cell when using template markers.
\ No newline at end of file
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-setting-row-height-for-individual-cells-in-Excel.md b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-setting-row-height-for-individual-cells-in-Excel.md
new file mode 100644
index 000000000..e155e7ba2
--- /dev/null
+++ b/Document-Processing/Excel/Excel-Library/NET/faqs/does-xlsio-support-setting-row-height-for-individual-cells-in-Excel.md
@@ -0,0 +1,11 @@
+---
+title: XlsIO support for setting row height for individual cells | Syncfusion
+description: Learn whether Syncfusion XlsIO supports setting row height for individual cells in Excel using Syncfusion .NET Excel library (XlsIO).
+platform: document-processing
+control: XlsIO
+documentation: UG
+---
+
+# Does XlsIO support setting row height for individual cells in Excel?
+
+No, XlsIO does not support setting row heights on a per-cell basis. Row height is determined by the tallest content in the row and applied uniformly to all cells.
\ No newline at end of file
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-column-width-and-row-height-in-pixels.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-column-width-and-row-height-in-pixels.md
new file mode 100644
index 000000000..36ab7fabc
--- /dev/null
+++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-column-width-and-row-height-in-pixels.md
@@ -0,0 +1,87 @@
+---
+title: How to get the column width and row height in pixels | Syncfusion
+description: Code example showing how to retrieve column width and row height in pixels using the Syncfusion .NET Excel library (XlsIO).
+platform: document-processing
+control: XlsIO
+documentation: UG
+---
+
+# How to get the column width and row height in pixels?
+
+In Essential® XlsIO, you can obtain column widths and row heights in pixels by using the [GetColumnWidthInPixels](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_GetColumnWidthInPixels_System_Int32_) and [GetRowHeightInPixels](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_GetRowHeightInPixels_System_Int32_) methods. The below code snippet demonstrates this.
+
+{% tabs %}
+{% highlight c# tabtitle="C# [Cross-platform]" %}
+using (ExcelEngine excelEngine = new ExcelEngine())
+{
+ IApplication application = excelEngine.Excel;
+ application.DefaultVersion = ExcelVersion.Xlsx;
+ FileStream inputStream = new FileStream("InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
+ IWorkbook workbook = application.Workbooks.Open(inputStream);
+ IWorksheet worksheet = workbook.Worksheets[0];
+
+ var range = worksheet.UsedRange["A1"];
+
+ //Get the Column width in pixels
+ var width = worksheet.GetColumnWidthInPixels(range.Column);
+
+ //Get the Row height in pixels
+ var height = worksheet.GetRowHeightInPixels(range.Row);
+
+ #region Save
+ //Saving the workbook
+ FileStream outputStream = new FileStream("RowsandColumns.xlsx", FileMode.Create, FileAccess.Write);
+ workbook.SaveAs(outputStream);
+ #endregion
+
+ //Dispose streams
+ outputStream.Dispose();
+ inputStream.Dispose();
+}
+{% endhighlight %}
+
+{% highlight c# tabtitle="C# [Windows-specific]" %}
+using (ExcelEngine excelEngine = new ExcelEngine())
+{
+ IApplication application = excelEngine.Excel;
+ application.DefaultVersion = ExcelVersion.Xlsx;
+ IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
+ IWorksheet worksheet = workbook.Worksheets[0];
+ var range = worksheet.UsedRange["A1"];
+
+ //Get the Column width in pixels
+ var width = worksheet.GetColumnWidthInPixels(range.Column);
+
+ //Get the Row height in pixels
+ var height = worksheet.GetRowHeightInPixels(range.Row);
+
+ workbook.SaveAs("RowsandColumns.xlsx");
+}
+{% endhighlight %}
+
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+ Using excelEngine As ExcelEngine = New ExcelEngine()
+ Dim application As IApplication = excelEngine.Excel
+ application.DefaultVersion = ExcelVersion.Excel2013
+ Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx", ExcelOpenType.Automatic)
+ Dim worksheet As IWorksheet = workbook.Worksheets(0)
+
+ Dim range = worksheet.UsedRange("A1")
+ ' Column width in pixels
+ Dim width As Integer = worksheet.GetColumnWidthInPixels(range.Column)
+ ' Row height in pixels
+ Dim height As Integer = worksheet.GetRowHeightInPixels(range.Row)
+
+ workbook.SaveAs("GridLineColor.xlsx")
+ End Using
+{% endhighlight %}
+{% endtabs %}
+
+## See Also
+
+* [How to format text within a cell?](https://help.syncfusion.com/document-processing/excel/excel-library/net/faqs/how-to-format-text-within-a-cell)
+* [How to unfreeze the rows and columns in XlsIO?](https://help.syncfusion.com/document-processing/excel/excel-library/net/faqs/how-to-unfreeze-the-rows-and-columns-in-xlsio)
+* [What is the maximum range of Rows and Columns?](https://help.syncfusion.com/document-processing/excel/excel-library/net/faqs/what-is-the-maximum-range-of-rows-and-columns)
+* [How to find values with a matching case for specific column in Excel?](https://help.syncfusion.com/document-processing/excel/excel-library/net/faqs/how-to-find-values-with-a-matching-case-for-specific-column-in-excel)
+* [How to protect certain cells in a worksheet?](https://help.syncfusion.com/document-processing/excel/excel-library/net/faqs/how-to-protect-certain-cells-in-a-worksheet)
+* [How to search a value in only specific columns of an Excel worksheet?](https://help.syncfusion.com/document-processing/excel/excel-library/net/faqs/how-to-search-a-value-in-only-specific-columns-of-an-excel-worksheet)
diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/what-ExcelKnownColors-are-available-in-syncfusion-xlsio.md b/Document-Processing/Excel/Excel-Library/NET/faqs/what-ExcelKnownColors-are-available-in-syncfusion-xlsio.md
new file mode 100644
index 000000000..0d5200107
--- /dev/null
+++ b/Document-Processing/Excel/Excel-Library/NET/faqs/what-ExcelKnownColors-are-available-in-syncfusion-xlsio.md
@@ -0,0 +1,130 @@
+---
+title: Excel Known Colors Reference in XlsIO | Syncfusion
+description: This section lists ExcelKnownColors with name and color images for quick reference.
+platform: document-processing
+control: XlsIO
+documentation: UG
+---
+
+# What ExcelKnownColors are available in Syncfusion XlsIO?
+
+This FAQ lists all ExcelKnownColors available in Syncfusion XlsIO, including names and color reference images.
+
+
+
+
+
+Name
+
+
+Color
+
+
+
+
Aqua
+
Black
+
BlackCustom
+
Blue
+
Blue_grey
+
BlueCustom
+
Bright_green
+
Brown
+
Custom0
+
Custom1
+
Custom10
+
Custom11
+
Custom12
+
Custom13
+
Custom14
+
Custom15
+
Custom16
+
Custom17
+
Custom18
+
Custom19
+
Custom2
+
Custom20
+
Custom21
+
Custom22
+
Custom23
+
Custom24
+
Custom25
+
Custom26
+
Custom27
+
Custom28
+
Custom29
+
Custom3
+
Custom30
+
Custom31
+
Custom32
+
Custom33
+
Custom34
+
Custom35
+
Custom36
+
Custom37
+
Custom38
+
Custom39
+
Custom4
+
Custom40
+
Custom41
+
Custom42
+
Custom43
+
Custom44
+
Custom45
+
Custom46
+
Custom47
+
Custom48
+
Custom49
+
Custom5
+
Custom50
+
Custom51
+
Custom52
+
Custom53
+
Custom54
+
Custom55
+
Custom56
+
Custom6
+
Custom7
+
Custom8
+
Custom9
+
Cyan
+
Dark_blue
+
Dark_green
+
Dark_red
+
Dark_teal
+
Dark_yellow
+
Gold
+
Green
+
Grey_25_percent
+
Grey_40_percent
+
Grey_50_percent
+
Grey_80_percent
+
Indigo
+
Lavender
+
Light_blue
+
Light_green
+
Light_orange
+
Light_turquoise
+
Light_yellow
+
LightGreen
+
Lime
+
Magenta
+
None
+
Olive_green
+
Orange
+
Pale_blue
+
Pink
+
Plum
+
Red
+
Red2
+
Rose
+
Sea_green
+
Sky_blue
+
Tan
+
Teal
+
Turquoise
+
Violet
+
White
+
WhiteCustom
+
Yellow
+
YellowCustom
+
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/cell-range.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/cell-range.md
index f136eb6e6..5fa7c090e 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/cell-range.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Cell Range in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Cell Range in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Cell Range in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Cell Range
@@ -8,7 +8,7 @@ documentation: ug
---
-# Cell Range in Spreadsheet control
+# Cell Range in ASP.NET Core Spreadsheet control
A group of cells in a sheet is known as cell range.
@@ -26,10 +26,10 @@ The following code example shows the wrap text functionality in spreadsheet.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/wrap-text/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/wrap-text/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="WrapTextController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/wrap-text/wrapTextController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/wrap-text/wrapTextController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -65,10 +65,10 @@ The following code example shows the merge cells operation in spreadsheet.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/merge-cells/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/merge-cells/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="MergeCellController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/merge-cells/mergeCellController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/merge-cells/mergeCellController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -125,10 +125,10 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/data-validation/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/data-validation/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="DataValidation.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/data-validation/dataValidation.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/data-validation/dataValidation.cs %}
{% endhighlight %}
{% endtabs %}
@@ -151,10 +151,10 @@ The following code example demonstrates how to add custom data validation with a
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/data-validation-cs2/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/data-validation-cs2/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="DataValidation.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/data-validation-cs2/dataValidation.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/data-validation-cs2/dataValidation.cs %}
{% endhighlight %}
{% endtabs %}
@@ -232,10 +232,10 @@ In the following sample, you can enable/disable the fill option on the button cl
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/autofill/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/autofill/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="AutofillController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/autofill/autofillController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/autofill/autofillController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -267,10 +267,10 @@ Clear the cell contents and formats in the Spreadsheet document by using the `cl
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/clear/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/clear/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ClearController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/clear/clearController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/clear/clearController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/clipboard.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/clipboard.md
index 42db9c897..7b8846b46 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/clipboard.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/clipboard.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Clipboard in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Clipboard in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Clipboard in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Clipboard
@@ -8,7 +8,7 @@ documentation: ug
---
-# Clipboard in Spreadsheet control
+# Clipboard in ASP.NET Core Spreadsheet control
The Spreadsheet provides support for the clipboard operations (cut, copy, and paste). Clipboard operations can be enabled or disabled by setting the [`enableClipboard`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_EnableClipboard) property in Spreadsheet.
@@ -62,10 +62,10 @@ N> If you use the Keyboard shortcut key for cut (`Ctrl + X`) | copy (`Ctrl + C`)
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/clipboard/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/clipboard/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ClipboardController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/clipboard/clipboardController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/clipboard/clipboardController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -77,10 +77,10 @@ The following example shows, how to prevent the paste action in spreadsheet. In
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/prevent-paste/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/prevent-paste/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ClipboardController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/prevent-paste/clipboardController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/prevent-paste/clipboardController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/context-menu.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/context-menu.md
index 298dd7a07..bada067da 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/context-menu.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/context-menu.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Context Menu in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Context Menu in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Context Menu in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Context Menu
@@ -8,7 +8,7 @@ documentation: ug
---
-# Context Menu in Spreadsheet control
+# Context Menu in ASP.NET Core Spreadsheet control
Context Menu is used to improve user interaction with Spreadsheet using the popup menu. This will open when right-clicking on Cell/Column Header/Row Header/ Pager in the Spreadsheet. You can use [`enableContextMenu`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_EnableContextMenu) property to enable/disable context menu.
@@ -71,10 +71,10 @@ In this demo, Custom Item is added after the Paste item in the context menu.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/add-context-menu/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/add-context-menu/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="AddContextMenu.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/add-context-menu/addContextMenu.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/add-context-menu/addContextMenu.cs %}
{% endhighlight %}
{% endtabs %}
@@ -88,10 +88,10 @@ In this demo, Insert Column item has been removed from the row/column header con
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/remove-context-menu/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/remove-context-menu/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="RemoveContextMenu.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/remove-context-menu/removeContextMenu.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/remove-context-menu/removeContextMenu.cs %}
{% endhighlight %}
{% endtabs %}
@@ -105,10 +105,10 @@ In this demo, Rename item is disabled in the pager context menu.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/enable-context-menu/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/enable-context-menu/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="EnableContextMenu.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/enable-context-menu/enableContextMenu.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/enable-context-menu/enableContextMenu.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/data-binding.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/data-binding.md
index b5d8f24ad..fd4e6fd4a 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/data-binding.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/data-binding.md
@@ -22,10 +22,10 @@ Refer to the following code example for local data binding.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/local-data-binding/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/local-data-binding/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="LocalDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/local-data-binding/localDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/local-data-binding/localDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -43,10 +43,10 @@ The following code example demonstrates how to customize the mapping of column d
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/field-mapping/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/field-mapping/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="FieldMappingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/field-mapping/fieldMappingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/field-mapping/fieldMappingController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -59,10 +59,10 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/remote-data-binding/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/remote-data-binding/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="RemoteDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/remote-data-binding/remoteDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/remote-data-binding/remoteDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -76,10 +76,10 @@ N> By default, `DataManager` uses **ODataAdaptor** for remote data-binding.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/odata-adaptor/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/odata-adaptor/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ODataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/odata-adaptor/oDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/odata-adaptor/oDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -91,10 +91,10 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/webapi-adaptor/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/webapi-adaptor/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="WebApiController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/webapi-adaptor/webApiController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/webapi-adaptor/webApiController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -108,10 +108,10 @@ Refer to the following code example for cell data binding.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/cell-data-binding/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/cell-data-binding/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CellDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/cell-data-binding/cellDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/cell-data-binding/cellDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -137,10 +137,10 @@ N> For `add` action, the value for all the fields will be `null` in the data. In
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/dynamic-data-binding/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/dynamic-data-binding/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="DynamicDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/dynamic-data-binding/dynamicDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/dynamic-data-binding/dynamicDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -154,10 +154,10 @@ The following code example demonstrates how to dynamically update data using the
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/dynamic-data-binding-cs2/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/dynamic-data-binding-cs2/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="UpdateRangeController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/dynamic-data-binding-cs2/updateRangeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/dynamic-data-binding-cs2/updateRangeController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/editing.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/editing.md
index 790821590..e3188b326 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/editing.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/editing.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Editing in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Editing in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Editing in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Editing
@@ -8,7 +8,7 @@ documentation: ug
---
-# Editing in Spreadsheet control
+# Editing in ASP.NET Core Spreadsheet control
You can edit the contents of a cell directly in the cell or by typing in the formula bar. By default, the editing feature is enabled in the spreadsheet. Use the [`allowEditing`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowEditing) property to enable or disable the editing feature.
@@ -41,10 +41,10 @@ The following sample shows how to prevent the editing and cell save. Here `E` co
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/editing/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/editing/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="EditingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/editing/editingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/editing/editingController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/feature-list.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/feature-list.md
index ccfedfc11..f2eacf9d6 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/feature-list.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/feature-list.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Feature List in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Feature List in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Feature List in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Feature List
@@ -8,7 +8,7 @@ documentation: ug
---
-# Comparision between EJ1 & EJ2 Spreadsheet features
+# Comparison between EJ1 & EJ2 ASP.NET Core Spreadsheet features
The following table compares Excel functionality with the availability of EJ1 and EJ2 Spreadsheet features.
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/filter.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/filter.md
index dcff60041..4c809f5cf 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/filter.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/filter.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Filter in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Filter in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Filter in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Filter
@@ -8,7 +8,7 @@ documentation: ug
---
-# Filtering in Spreadsheet control
+# Filtering in ASP.NET Core Spreadsheet control
Filtering helps you to view specific rows in the spreadsheet by hiding the other rows. You can use the [`allowFiltering`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowFiltering) property to enable or disable filtering functionality.
@@ -38,10 +38,10 @@ The following code example shows `filter` functionality in the Spreadsheet contr
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/filter/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/filter/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="FilterController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/filter/filterController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/filter/filterController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -87,10 +87,10 @@ The following code example shows how to get the filtered rows.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/filter-cs1/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/filter-cs1/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="InsertSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/filter-cs1/filterController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/filter-cs1/filterController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formatting.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formatting.md
index 1ea64dad7..5899a39b5 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formatting.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formatting.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Formatting in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
-description: Learn here all about Formatting in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Formatting in EJ2 ASP.NET Core Syncfusion Spreadsheet Control
+description: Learn here all about Formatting in Syncfusion EJ2 ASP.NET CORE Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Formatting
documentation: ug
---
-# Formatting in Spreadsheet Component
+# Formatting in ASP.NET Core Spreadsheet Control
Formatting options make your data easier to view and understand. The different types of formatting options in the Spreadsheet are,
* Number Formatting
@@ -91,10 +91,10 @@ The following code example shows the number formatting in cell data.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/number-format/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/number-format/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="NumberFormatController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/number-format/numberFormatController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/number-format/numberFormatController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -146,10 +146,10 @@ The following code example demonstrates how to configure culture-based formats f
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/globalization-cs1/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/globalization-cs1/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CultureController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/globalization-cs1/cultureController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/globalization-cs1/cultureController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -214,10 +214,10 @@ The following code example shows the style formatting in text and cells of the s
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/cell-format/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/cell-format/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CellFormatController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/cell-format/cellFormatController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/cell-format/cellFormatController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -311,10 +311,10 @@ You can clear the defined rules by using one of the following ways,
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/conditional-formatting/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/conditional-formatting/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ConditionalFormattingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/conditional-formatting/conditionalFormattingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/conditional-formatting/conditionalFormattingController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formulas.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formulas.md
index 5584ce2f5..481f40a2d 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formulas.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/formulas.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Formulas in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Formulas in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Formulas in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Formulas
@@ -8,7 +8,7 @@ documentation: ug
---
-# Formulas in Spreadsheet control
+# Formulas in ASP.NET Core Spreadsheet control
Formulas are used for calculating the data in a worksheet. You can refer the cell reference from same sheet or from different sheets.
@@ -29,14 +29,14 @@ Previously, although you could import culture-based Excel files into the Spreads
When loading spreadsheet data with culture-based formula argument separators using cell data binding, local/remote data, or JSON, ensure to set the [listSeparator](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_ListSeparator) property value as the culture-based list separator from your end. Additionally, note that when importing an Excel file, the [listSeparator](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_ListSeparator) property will be updated based on the culture of the launched import/export service.
-In the example below, the Spreadsheet control is rendered with the `German culture (de)`. Additionally, you can find references on how to set the culture-based argument separator and culture-based formatted numeric value as arguments to the formulas.
+In the example below, the Spreadsheet control is rendered with the `German culture` [`de`]. Additionally, you can find references on how to set the culture-based argument separator and culture-based formatted numeric value as arguments to the formulas.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/formula-cs3/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/formula-cs3/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="FormulaController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/formula-cs3/formulaController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/formula-cs3/formulaController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -50,10 +50,10 @@ The following code example shows an unsupported formula in the spreadsheet.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/formula/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/formula/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="FormulaController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/formula/formulaController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/formula/formulaController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -63,10 +63,10 @@ The following code example shows how to use `computeExpression` method in the sp
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/formula-cs2/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/formula-cs2/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="FormulaController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/formula-cs2/formulaController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/formula-cs2/formulaController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -87,10 +87,10 @@ The following code example shows the usage of named ranges support.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/defined-names/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/defined-names/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="DefinedNameController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/defined-names/definedNameController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/defined-names/definedNameController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -113,10 +113,10 @@ The following code example demonstrates how to set the Automatic calculation mod
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/calculation-cs1/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/calculation-cs1/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CalculationModeController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/calculation-cs1/calculationModeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/calculation-cs1/calculationModeController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -133,10 +133,10 @@ The following code example demonstrates how to set the Manual calculation mode i
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/calculation-cs2/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/calculation-cs2/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CalculationModeController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/calculation-cs2/calculationModeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/calculation-cs2/calculationModeController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/freeze-pane.md
index 5acc939b4..3d753cc45 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/freeze-pane.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/freeze-pane.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Freeze Pane in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Freeze Pane in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Freeze Pane in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Freeze Pane
@@ -8,11 +8,11 @@ documentation: ug
---
-# FreezePanes in Spreadsheet control
+# FreezePanes in ASP.NET Core Spreadsheet control
Freeze Panes helps you to keep particular rows or columns visible when scrolling the sheet content in the spreadsheet. You can specify the number of frozen rows and columns using the `frozenRows` and `frozenColumns` properties inside the [`Sheet`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_Sheets) property.
-## Apply freezepanes on UI
+## Apply freeze panes on UI
**User Interface**:
@@ -47,10 +47,10 @@ In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/freeze-pane/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/freeze-pane/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="FreezePane.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/freeze-pane/freezePane.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/freeze-pane/freezePane.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/getting-started-core.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/getting-started-core.md
index 79545efe2..752280b7a 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/getting-started-core.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/getting-started-core.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Getting Started with EJ2 ASP.NET CORE Spreadsheet Control
+title: Getting Started with ASP.NET CORE Spreadsheet Control | syncfusion
description: Checkout and learn about getting started with EJ2 ASP.NET CORE Spreadsheet control of Syncfusion Essential JS 2 and more details.
platform: document-processing
control: Getting Started Core
@@ -20,7 +20,7 @@ This section briefly explains about how to include [ASP.NET Core Spreadsheet](ht
* [Create a Project using Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start?view=aspnetcore-8.0&tabs=visual-studio#create-a-razor-pages-web-app)
-* [Create a Project using Syncfusion® ASP.NET Core Extension](https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/project-template)
+* [Create a Project using Syncfusion® ASP.NET Core Extension](https://ej2.syncfusion.com/aspnetcore/documentation/visual-studio-integration/create-project)
## Install ASP.NET Core package in the application
@@ -91,7 +91,7 @@ Now, add the Syncfusion® ASP.NET Core Sprea
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/getting-started-core/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/getting-started-core/tagHelper %}
{% endhighlight %}
{% endtabs %}
@@ -103,7 +103,7 @@ N> [View Sample in GitHub](https://github.com/SyncfusionExamples/ASP-NET-Core-Ge
## See also
-* [Getting Started with Syncfusion® ASP.NET Core using Razor Pages](https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/razor-pages/)
+* [Getting Started with Syncfusion® ASP.NET Core using Razor Pages](https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/razor-pages)
* [Getting Started with Syncfusion® ASP.NET Core MVC using Tag Helper](https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/aspnet-core-mvc-taghelper)
* [Data Binding](./data-binding)
* [Open and Save](./open-save)
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/global-local.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/global-local.md
index 7c4bd8366..96e2d1f3c 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/global-local.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/global-local.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Global Local in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Global Local in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Global Local in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Global Local
@@ -382,10 +382,10 @@ The following example demonstrates the Spreadsheet in `French` culture. In the b
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/locale/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/locale/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="LocaleController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/locale/localeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/locale/localeController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -399,10 +399,10 @@ The following example demonstrates the Spreadsheet in French [ `fr-CH`] culture.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/internationalization/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/internationalization/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="InternationalizationController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/internationalization/internationalizationController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/internationalization/internationalizationController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -414,10 +414,10 @@ RTL provides an option to switch the text direction and layout of the Spreadshee
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/rtl/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/rtl/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="RtlController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/rtl/rtlController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/rtl/rtlController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/change-active-sheet.md
index 605e4f254..cffe810c3 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/change-active-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/change-active-sheet.md
@@ -1,13 +1,13 @@
---
layout: post
-title: Change active sheet in EJ2 ASP.NET CORE Spreadsheet control | Syncfusion
+title: Change active sheet in ASP.NET CORE Spreadsheet | Syncfusion
description: Learn here all about changing active sheet index when import a file in Syncfusion EJ2 ASP.NET CORE Spreadsheet control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Spreadsheet
documentation: ug
---
-# Changing the active sheet in Spreadsheet control
+# Changing the active sheet in ASP.NET Core Spreadsheet control
You can change the active sheet of imported file by updating [`activeSheetIndex`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_ActiveSheetIndex) property on the [`openComplete`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_OpenComplete) event.
@@ -15,9 +15,9 @@ The following code example shows how to set the active sheet when importing an E
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/change-active-sheet/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/change-active-sheet/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/change-active-sheet/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/change-active-sheet/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/identify-the-context-menu-opened.md
index 2c87d9995..76fe42f42 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/identify-the-context-menu-opened.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/how-to/identify-the-context-menu-opened.md
@@ -1,13 +1,13 @@
---
layout: post
-title: Identify the context menu opened in EJ2 ASP.NET CORE Spreadsheet control | Syncfusion
+title: Identify context menu opened in ASP.NET Core Spreadsheet | Syncfusion
description: Learn here all about how to identify the context menu opened in Syncfusion EJ2 ASP.NET CORE Spreadsheet control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Spreadsheet
documentation: ug
---
-## Identify the context menu opened in Spreadsheet control
+# Identify the context menu opened in ASP.NET Core Spreadsheet control
The Spreadsheet includes several context menus that will open and display depending on the action. When you right-click on a cell, for example, a context menu with options related to the cell element appears.
@@ -24,7 +24,7 @@ The following code example shows how to identify the context menu opened.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/find-target-context-menu/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/find-target-context-menu/tagHelper %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/illustrations.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/illustrations.md
index c12d4c4a4..0b5b716be 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/illustrations.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/illustrations.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Illustrations in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Illustrations in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Illustrations in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Illustrations
@@ -8,7 +8,7 @@ documentation: ug
---
-# Illustrations in Spreadsheet control
+# Illustrations in ASP.NET Core Spreadsheet control
Illustrations helps you to insert a image, shapes and graphic objects in the Essential JS 2 spreadsheet.
@@ -71,10 +71,10 @@ Image feature allows you to view and insert a image in a spreadsheet and you can
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/image/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/image/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ImageController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/image/imageController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/image/imageController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -128,10 +128,10 @@ The available arguments in the `ChartModel` are:
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/chart-cs1/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/chart-cs1/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ChartController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/chart-cs1/chartController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/chart-cs1/chartController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -156,10 +156,10 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/chart/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/chart/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ChartController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/chart/chartController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/chart/chartController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -169,10 +169,10 @@ Using the [`actionBegin`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusi
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/chart-cs2/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/chart-cs2/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ChartController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/chart-cs2/chartController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/chart-cs2/chartController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/keyboard-shortcuts.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/keyboard-shortcuts.md
index 50ec1ee60..bcd1e24db 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/keyboard-shortcuts.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/keyboard-shortcuts.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Keyboard Shortcuts in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
-description: Learn here all about Keyboard Shortcuts in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Keyboard Shortcuts in ASP.NET Core Spreadsheet | Syncfusion
+description: Learn about Keyboard Shortcuts in ASP.NET Core Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Keyboard Shortcuts
documentation: ug
---
-# Keyboard Shortcuts And Navigation
+# Keyboard Shortcuts And Navigation in ASP.NET Core Spreadsheet Control
The keyboard shortcuts supported in the spreadsheet are,
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/link.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/link.md
index 8528e3819..fbc6e0253 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/link.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/link.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Link in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Link in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Link in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Link
@@ -8,7 +8,7 @@ documentation: ug
---
-# Hyperlink in Spreadsheet control
+# Hyperlink in ASP.NET Core Spreadsheet control
Hyperlink is used to navigate to web links or cell reference within the sheet or to other sheets in Spreadsheet. You can use the [`allowHyperlink`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowHyperlink) property to enable or disable hyperlink functionality.
@@ -54,10 +54,10 @@ There is an event named `beforeHyperlinkClick` which triggers only on clicking h
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/link/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/link/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="HyperlinkController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/link/hyperlinkController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/link/hyperlinkController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/mobile-responsiveness.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/mobile-responsiveness.md
index e22662985..3d0c1f0c0 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/mobile-responsiveness.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/mobile-responsiveness.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Mobile Responsiveness in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
-description: Learn here all about Mobile Responsiveness in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Mobile Responsiveness in ASP.NET Core Spreadsheet | Syncfusion
+description: Learn about Mobile Responsiveness in ASP.NET Core Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Mobile Responsiveness
documentation: ug
---
-# Mobile Responsiveness
+# Mobile Responsiveness in ASP.NET Core Syncfusion Spreadsheet Control
The Spreadsheet control rendered in desktop mode will be adaptive in all mobile devices where the layout gets adjusted based on their parent element’s dimensions to accommodate any resolution.
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/notes.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/notes.md
index 0a845ba59..a71451518 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/notes.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/notes.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Notes in EJ2 ASP.NET CORE Syncfusion Spreadsheet Control
+title: Notes in EJ2 ASP.NET Core Syncfusion Spreadsheet Control
description: Learn here all about the notes feature in EJ2 ASP.NET CORE Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Notes
@@ -8,7 +8,7 @@ documentation: ug
---
-# Notes in Spreadsheet control
+# Notes in ASP.NET Core Spreadsheet control
The **Notes** feature is used to insert comments, provide feedback, suggest changes, or leave remarks on specific cells while reviewing documents in the Spreadsheet. You can enable or disable the notes functionality using the [`enableNotes`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_EnableNotes) property, which defaults to **true**.
@@ -20,10 +20,10 @@ In the below example, you can add, edit, save, and delete notes.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/note-cs1/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/note-cs1/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="NotesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/note-cs1/notesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/note-cs1/notesController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -56,7 +56,7 @@ In the active worksheet, right-click on the desired cell containing the note tha
## Saving the document with notes
-The Spreadsheet data, including notes, can be saved and exported as an Excel document by selecting **File > Save As** in the ribbon menu. Exporting worksheets with notes is supported in Excel file formats such as MS Excel (.xlsx) and MS Excel 97-2003 (.xls).
+The Spreadsheet data, including notes, can be saved and exported as an Excel document by selecting **File > Save As** in the ribbon menu. Exporting worksheets with notes is supported in Excel file formats such as Microsoft Excel (.xlsx) and Microsoft Excel 97-2003 (.xls).
> When exporting the Spreadsheet to file formats such as Comma Separated Values (.csv), Excel Macro-Enabled Workbook (.xlsm), Excel Binary Workbook (.xlsb), and PDF Document (.pdf), the notes will not be available.
@@ -70,10 +70,10 @@ In the below example, the note functionality is disabled in the Spreadsheet.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/note-cs2/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/note-cs2/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="NotesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/note-cs2/notesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/note-cs2/notesController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -83,10 +83,10 @@ The notes can be added initially when the Spreadsheet loads using cell data bind
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/note-cs3/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/note-cs3/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="NotesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/note-cs3/notesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/note-cs3/notesController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/open-save.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/open-save.md
index 090d3c561..a92e4a026 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/open-save.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/open-save.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Open Save in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Open Save in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Open Save in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Open Save
@@ -8,7 +8,7 @@ documentation: ug
---
-# Open and Save in Spreadsheet control
+# Open and Save in ASP.NET Core Spreadsheet control
To import an excel file, it needs to be read and converted to client side Spreadsheet model. The converted client side Spreadsheet model is sent as JSON which is used to render Spreadsheet. Similarly, when you save the Spreadsheet, the client Spreadsheet model is sent to the server as JSON for processing and saved. Server configuration is used for this process.
@@ -24,10 +24,10 @@ The following sample shows the `Open` option by using the [`openUrl`](https://he
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -52,10 +52,10 @@ The following code example shows how to import an excel document using file uplo
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-uploader/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open-uploader/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-uploader/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open-uploader/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -65,10 +65,10 @@ You can achieve to access the remote excel file by using the [`created`](https:/
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-url/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open-url/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-url/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open-url/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -80,10 +80,10 @@ Please find the code to fetch the blob data and load it into the Spreadsheet con
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-from-blob/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open-from-blob/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-from-blob/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open-from-blob/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -205,10 +205,10 @@ The following code example shows how to open the spreadsheet data as base64 stri
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/base-64-string/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/base-64-string/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/base-64-string/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/base-64-string/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -218,10 +218,10 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-readonly/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open-readonly/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-readonly/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open-readonly/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -253,10 +253,10 @@ The following code snippet demonstrates how to configure the deserialization opt
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-from-json/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open-from-json/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-from-json/openController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open-from-json/openController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -354,10 +354,10 @@ You can add your own custom header to the open action in the Spreadsheet. For pr
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-header/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open-header/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-header/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open-header/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -401,10 +401,10 @@ The following sample shows the `Save` option by using the [`saveUrl`](https://he
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/save/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Savecontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save/savecontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/save/savecontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -434,10 +434,10 @@ Please find below the code to retrieve blob data from the Spreadsheet control be
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save-as-blob/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/save-as-blob/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SaveController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save-as-blob/savecontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/save-as-blob/savecontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -587,10 +587,10 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/base-64-string/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/base-64-string/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/base-64-string/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/base-64-string/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -622,10 +622,10 @@ The following code snippet demonstrates how to configure the serialization optio
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save-as-json/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/save-as-json/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SaveController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save-as-json/saveController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/save-as-json/saveController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -635,10 +635,10 @@ Passing the custom parameters from client to server by using [`beforeSave`](http
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/custom-params/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/custom-params/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CustomParamsController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/custom-params/customParamsController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/custom-params/customParamsController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -648,10 +648,10 @@ You can add your own custom header to the save action in the Spreadsheet. For pr
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save-header/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/save-header/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CustomHeaderController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/save-header/CustomHeaderController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/save-header/CustomHeaderController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -666,10 +666,10 @@ The possible values are:
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/pdf-orientation/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/pdf-orientation/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="pdfOrientationController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/pdf-orientation/pdfOrientationController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/pdf-orientation/pdfOrientationController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -688,10 +688,10 @@ To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using `
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-save/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/open-save/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="OpenSaveController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/open-save/openSaveController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/open-save/openSaveController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/overview.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/overview.md
index 63bb6b626..15f900e1a 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/overview.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/overview.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Overview of the EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Overview of the EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Overview of the Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Index
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/performance-best-practices.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/performance-best-practices.md
index ad9c11480..728438584 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/performance-best-practices.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/performance-best-practices.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Performance Best Practices in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Performance Best Practices in ASP.NET Core Spreadsheet | Syncfusion
description: Learn here all about performance best practices in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Performance
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/print.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/print.md
index 08c164535..76de46051 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/print.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/print.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Print in EJ2 ASP.NET CORE Syncfusion Spreadsheet Control
+title: Print in EJ2 ASP.NET Core Syncfusion Spreadsheet Control
description: Learn here all about print feature in EJ2 ASP.NET CORE Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Print
@@ -8,7 +8,7 @@ documentation: ug
---
-# Print in Spreadsheet control
+# Print in ASP.NET Core Spreadsheet control
The printing functionality allows end-users to print all contents, such as tables, charts, images, and formatted contents, available in the active worksheet or entire workbook in the Spreadsheet. You can enable or disable print functionality by using the `allowPrint` property, which defaults to **true**.
@@ -32,10 +32,10 @@ The `printOptions` contain three properties, as described below.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/print-cs2/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/print-cs2/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="PrintController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/print-cs2/printController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/print-cs2/printController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -47,10 +47,10 @@ The printing functionality in the Spreadsheet can be disabled by setting the [`a
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/print-cs3/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/print-cs3/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="PrintController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/print-cs3/printController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/print-cs3/printController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/protect-sheet.md
index 89f94449d..3bb05009f 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/protect-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/protect-sheet.md
@@ -46,10 +46,10 @@ The following example shows `Protect Sheet` functionality with password in the S
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/protect-sheet/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/protect-sheet/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ProtectSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/protect-sheet/protectSheetController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/protect-sheet/protectSheetController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -77,10 +77,10 @@ In protected spreadsheet, to make some particular cell or range of cells are edi
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/lock-cells/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/lock-cells/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="LockCellController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/lock-cells/lockCellController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/lock-cells/lockCellController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -115,10 +115,10 @@ The following example demonstrates how to make rows, columns, and cells read-onl
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/read-only/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/read-only/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ReadOnlyController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/read-only/readOnlyController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/read-only/readOnlyController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -140,10 +140,10 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/protect-workbook/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/protect-workbook/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ProtectWorkbookController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/protect-workbook/protectWorkbookController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/protect-workbook/protectWorkbookController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -153,10 +153,10 @@ The following example shows `Protect Workbook` by using the [`password`](https:/
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/password/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/password/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="PasswordController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/password/passwordController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/password/passwordController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/ribbon.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/ribbon.md
index 2f4a35865..e936f0824 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/ribbon.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/ribbon.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Ribbon in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Ribbon in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Ribbon in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Ribbon
@@ -8,7 +8,7 @@ documentation: ug
---
-# Ribbon in Spreadsheet control
+# Ribbon in ASP.NET Core Spreadsheet control
It helps to organize a spreadsheet’s features into a series of tabs. By clicking the expand or collapse icon, you can expand or collapse the ribbon toolbar dynamically.
@@ -37,10 +37,10 @@ The following code example shows the usage of ribbon customization.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/ribbon/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/ribbon/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="RibbonController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/ribbon/ribbonController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/ribbon/ribbonController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/rows-and-columns.md
index 178c641a9..8e291b564 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/rows-and-columns.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/rows-and-columns.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Rows and columns in Spreadsheet control
+# Rows and columns in ASP.NET Core Spreadsheet control
Spreadsheet is a tabular format consisting of rows and columns. The intersection point of rows and columns are called as cells. The list of operations that you can perform in rows and columns are,
@@ -31,10 +31,10 @@ The following code example shows the options for inserting rows in the spreadshe
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-row/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-row/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="InsertRowController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-row/insertRowController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-row/insertRowController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -51,10 +51,10 @@ The following code example shows the options for inserting columns in the spread
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-column/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-column/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="InsertColumnController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-column/insertColumnController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-column/insertColumnController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -73,10 +73,10 @@ The following code example shows the delete operation of rows and columns in the
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/delete-row/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/delete-row/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="DeleteRowController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/delete-row/deleteRowController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/delete-row/deleteRowController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -106,10 +106,10 @@ The following code example shows the hide/show rows and columns operation in the
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/show-hide/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/show-hide/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ShowHideController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/show-hide/showHideController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/show-hide/showHideController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -134,10 +134,10 @@ The following code example shows how to change the height for single/multiple ro
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/row-height/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/row-height/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="RowHeightController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/row-height/rowHeightController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/row-height/rowHeightController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -156,10 +156,10 @@ The following code example shows how to change the width for single/multiple col
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/column-width/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/column-width/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ColumnWidthController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/column-width/columnWidthController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/column-width/columnWidthController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -171,7 +171,7 @@ The following code example shows how to change the text in the column headers.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/column-header-change/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/column-header-change/tagHelper %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/scrolling.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/scrolling.md
index 4dfa3d402..2c846110b 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/scrolling.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/scrolling.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Scrolling in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Scrolling in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Scrolling in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Scrolling
@@ -8,7 +8,7 @@ documentation: ug
---
-# Scrolling in Spreadsheet control
+# Scrolling in ASP.NET Core Spreadsheet control
Scrolling helps you to move quickly to different areas of the worksheet. It moves faster if we use horizontal and vertical scroll bars. Scrolling can be enabled by setting the [`allowScrolling`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowScrolling) as true.
@@ -53,10 +53,10 @@ The following code example shows the finite scrolling with defined rows and colu
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/scrolling/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/scrolling/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="ScrollingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/scrolling/scrollingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/scrolling/scrollingController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/searching.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/searching.md
index 1be93e70e..96ddb05ba 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/searching.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/searching.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Searching in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Searching in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Searching in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Searching
@@ -8,7 +8,7 @@ documentation: ug
---
-# Find and Replace in Spreadsheet control
+# Find and Replace in ASP.NET Core Spreadsheet control
Find and Replace helps you to search for the target text and replace the found text with alternative text within the sheet or workbook. You can use the [`allowFindAndReplace`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowFindAndReplace) property to enable or disable the Find and Replace functionality.
@@ -65,10 +65,10 @@ In the following sample, searching can be done by following ways:
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/search/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/search/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SearchController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/search/searchController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/search/searchController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/selection.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/selection.md
index 5e4222b51..de267efeb 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/selection.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/selection.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Selection in Spreadsheet Control
+# Selection in ASP.NET Core Spreadsheet Control
Selection provides interactive support to highlight the cell, row, or column that you select. Selection can be done through Mouse, Touch, or Keyboard interaction. To enable selection, set `mode` as `Single` or `Multiple` in [`selectionSettings`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_SelectionSettings). If you set `mode` to `None`, it disables the UI selection.
@@ -49,10 +49,10 @@ The following sample shows the row selection in the spreadsheet, here selecting
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/row-selection/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/row-selection/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SelectionController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/row-selection/selectionController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/row-selection/selectionController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -75,10 +75,10 @@ The following sample shows the column selection in the spreadsheet, here selecti
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/column-selection/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/column-selection/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SelectionController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/column-selection/selectionController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/column-selection/selectionController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -90,10 +90,10 @@ Below is a code example demonstrating how to retrieve the selected cell values a
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/selected-cell-values/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/selected-cell-values/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SelectedCellValuesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/selected-cell-values/selectedCellValuesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/selected-cell-values/selectedCellValuesController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -103,10 +103,10 @@ The following sample shows, how to remove the selection in the spreadsheet. Here
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/disable-selection/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/disable-selection/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SelectionController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/disable-selection/selectionController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/disable-selection/selectionController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/sort.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/sort.md
index 75f9dc4e1..b548cb172 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/sort.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/sort.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Sort in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Sort in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Sort in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Sort
@@ -8,7 +8,7 @@ documentation: ug
---
-# Sorting in Spreadsheet control
+# Sorting in ASP.NET Core Spreadsheet control
Sorting helps arranging the data to a specific order in a selected range of cells. You can use the [`allowSorting`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowSorting) property to enable or disable sorting functionality.
@@ -38,10 +38,10 @@ The following code example shows `sort` functionality in the Spreadsheet control
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/sort-by-cell/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/sort-by-cell/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SortController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/sort-by-cell/sortController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/sort-by-cell/sortController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -112,10 +112,10 @@ N> * All the arguments are optional.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/passing-sort/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/passing-sort/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="PassingSortController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/passing-sort/passingSortController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/passing-sort/passingSortController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -139,10 +139,10 @@ In the following demo, the `Trustworthiness` column is sorted based on the custo
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/custom-sort/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/custom-sort/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="CustomSortController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/custom-sort/customSortController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/custom-sort/customSortController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/template.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/template.md
index 3cd440569..7ac7ca207 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/template.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/template.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Template in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Template in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Template in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Template
@@ -8,7 +8,7 @@ documentation: ug
---
-# Cell Template in Spreadsheet Control
+# Cell Template in ASP.NET Core Spreadsheet Control
Cell Template is used for adding HTML elements into Spreadsheet. You can add the cell template in spreadsheet by using the `template` property and specify the address using the `address` property inside the `ranges` property. You can customize the HTML elements similar to Syncfusion® components (TextBox, DropDownList, RadioButton, MultiSelect, DatePicker etc) by using the `beforeCellRender` event. In this demo, Cell template is applied to `C2:C9` and instantiated with HTML input components like TextBox, RadioButton, TextArea. You need to bind the events to perform any operations through HTML elements or Syncfusion® components. Here, we have added `change` event in to the MultiSelect control, and we have updated the selected data into the spreadsheet cell through that change event.
@@ -16,10 +16,10 @@ The following code example describes the above behavior.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/template/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/template/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Template.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/template/template.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/template/template.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/undo-redo.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/undo-redo.md
index 67c103ae3..6a3c2b31b 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/undo-redo.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/undo-redo.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Undo Redo in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Undo Redo in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Undo Redo in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Undo Redo
@@ -8,7 +8,7 @@ documentation: ug
---
-# Undo and Redo in Spreadsheet control
+# Undo and Redo in ASP.NET Core Spreadsheet control
`Undo` option helps you to undone the last action performed and `Redo` option helps you to do the same action which is reverted in the Spreadsheet. You can use the [`allowUndoRedo`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowUndoRedo) property to enable or disable undo redo functionality in spreadsheet.
@@ -40,10 +40,10 @@ The following code example shows `How to update and customize your own actions f
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/undo-redo/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/undo-redo/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="UndoRedoController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/undo-redo/undoRedoController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/undo-redo/undoRedoController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/worksheet.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/worksheet.md
index 90685bf46..bdfd0b6ea 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/worksheet.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/worksheet.md
@@ -1,6 +1,6 @@
---
layout: post
-title: Worksheet in EJ2 ASP.NET CORE Syncfusion Spreadsheet Component
+title: Worksheet in EJ2 ASP.NET Core Syncfusion Spreadsheet Component
description: Learn here all about Worksheet in Syncfusion EJ2 ASP.NET CORE Spreadsheet component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Worksheet
@@ -8,7 +8,7 @@ documentation: ug
---
-# Worksheet in Spreadsheet control
+# Worksheet in ASP.NET Core Spreadsheet control
Worksheet is a collection of cells organized in the form of rows and columns that allows you to store, format, and manipulate the data.
@@ -24,10 +24,10 @@ The following code example shows the insert sheet operation in spreadsheet.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-sheet/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-sheet/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="InsertSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-sheet/insertSheetController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-sheet/insertSheetController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -39,10 +39,10 @@ The following code example shows how to insert a sheet programmatically and make
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-sheet-change-active-sheet/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-sheet-change-active-sheet/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="InsertSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/insert-sheet-change-active-sheet/insertSheetController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/insert-sheet-change-active-sheet/insertSheetController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -78,10 +78,10 @@ The following code example shows the headers and gridlines operation in spreadsh
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/header-gridlines/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/header-gridlines/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="HeaderController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/header-gridlines/headerController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/header-gridlines/headerController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -103,10 +103,10 @@ The following code example shows the three types of sheet visibility state.
{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/sheet-visiblity/tagHelper %}
+{% include code-snippet/spreadsheet/asp-net-core/sheet-visiblity/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="SheetVisiblityController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-core/sheet-visiblity/sheetVisiblityController.cs %}
+{% include code-snippet/spreadsheet/asp-net-core/sheet-visiblity/sheetVisiblityController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/cell-range.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/cell-range.md
index 3ba685ac1..27defe441 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/cell-range.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Cell Range in Spreadsheet control
+# Cell Range in ASP.NET MVC Spreadsheet control
A group of cells in a sheet is known as cell range.
@@ -26,10 +26,10 @@ The following code example shows the wrap text functionality in spreadsheet.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/wrap-text/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/wrap-text/razor %}
{% endhighlight %}
{% highlight c# tabtitle="WrapTextController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/wrap-text/wrapTextController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/wrap-text/wrapTextController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -63,10 +63,10 @@ The following code example shows the merge cells operation in spreadsheet.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/merge-cells/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/merge-cells/razor %}
{% endhighlight %}
{% highlight c# tabtitle="MergeCellController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/merge-cells/mergeCellController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/merge-cells/mergeCellController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -122,10 +122,10 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/data-validation/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/data-validation/razor %}
{% endhighlight %}
{% highlight c# tabtitle="DataValidation.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/data-validation/dataValidation.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/data-validation/dataValidation.cs %}
{% endhighlight %}
{% endtabs %}
@@ -148,10 +148,10 @@ The following code example demonstrates how to add custom data validation with a
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/data-validation-cs2/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/data-validation-cs2/razor %}
{% endhighlight %}
{% highlight c# tabtitle="DataValidation.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/data-validation-cs2/dataValidation.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/data-validation-cs2/dataValidation.cs %}
{% endhighlight %}
{% endtabs %}
@@ -229,10 +229,10 @@ In the following sample, you can enable/disable the fill option on the button cl
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/autofill/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/autofill/razor %}
{% endhighlight %}
{% highlight c# tabtitle="AutofillController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/autofill/autofillController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/autofill/autofillController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -264,10 +264,10 @@ Clear the cell contents and formats in the Spreadsheet document by using the `cl
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/clear/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/clear/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ClearController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/clear/clearController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/clear/clearController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/clipboard.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/clipboard.md
index c61c6e39d..03d110a7e 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/clipboard.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/clipboard.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Clipboard in Spreadsheet control
+# Clipboard in ASP.NET MVC Spreadsheet control
The Spreadsheet provides support for the clipboard operations (cut, copy, and paste). Clipboard operations can be enabled or disabled by setting the [`enableClipboard`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_EnableClipboard) property in Spreadsheet.
@@ -62,10 +62,10 @@ N> If you use the Keyboard shortcut key for cut (`Ctrl + X`) | copy (`Ctrl + C`)
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/clipboard/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/clipboard/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ClipboardController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/clipboard/clipboardController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/clipboard/clipboardController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -77,10 +77,10 @@ The following example shows, how to prevent the paste action in spreadsheet. In
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/prevent-paste/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/prevent-paste/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ClipboardController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/prevent-paste/clipboardController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/prevent-paste/clipboardController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/context-menu.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/context-menu.md
index ffd616f48..a15e08631 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/context-menu.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/context-menu.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Context Menu in Spreadsheet control
+# Context Menu in ASP.NET MVC Spreadsheet control
Context Menu is used to improve user interaction with Spreadsheet using the popup menu. This will open when right-clicking on Cell/Column Header/Row Header/ Pager in the Spreadsheet. You can use [`enableContextMenu`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_EnableContextMenu) property to enable/disable context menu.
@@ -71,10 +71,10 @@ In this demo, Custom Item is added after the Paste item in the context menu.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/add-context-menu/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/add-context-menu/razor %}
{% endhighlight %}
{% highlight c# tabtitle="AddContextMenu.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/add-context-menu/addContextMenu.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/add-context-menu/addContextMenu.cs %}
{% endhighlight %}
{% endtabs %}
@@ -88,10 +88,10 @@ In this demo, Insert Column item has been removed from the row/column header con
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/remove-context-menu/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/remove-context-menu/razor %}
{% endhighlight %}
{% highlight c# tabtitle="RemoveContextMenu.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/remove-context-menu/removeContextMenu.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/remove-context-menu/removeContextMenu.cs %}
{% endhighlight %}
{% endtabs %}
@@ -105,10 +105,10 @@ In this demo, Rename item is disabled in the pager context menu.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/enable-context-menu/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/enable-context-menu/razor %}
{% endhighlight %}
{% highlight c# tabtitle="EnableContextMenu.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/enable-context-menu/enableContextMenu.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/enable-context-menu/enableContextMenu.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/data-binding.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/data-binding.md
index 1b8f99443..71229e811 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/data-binding.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/data-binding.md
@@ -22,10 +22,10 @@ Refer to the following code example for local data binding.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/local-data-binding/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/local-data-binding/razor %}
{% endhighlight %}
{% highlight c# tabtitle="LocalDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/local-data-binding/localDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/local-data-binding/localDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -44,10 +44,10 @@ The following code example demonstrates how to customize the mapping of column d
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/field-mapping/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/field-mapping/razor %}
{% endhighlight %}
{% highlight c# tabtitle="FieldMappingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/field-mapping/fieldMappingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/field-mapping/fieldMappingController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -59,10 +59,10 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/remote-data-binding/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/remote-data-binding/razor %}
{% endhighlight %}
{% highlight c# tabtitle="RemoteDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/remote-data-binding/remoteDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/remote-data-binding/remoteDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -76,10 +76,10 @@ N> By default, `DataManager` uses **ODataAdaptor** for remote data-binding.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/odata-adaptor/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/odata-adaptor/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ODataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/odata-adaptor/oDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/odata-adaptor/oDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -91,10 +91,10 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/webapi-adaptor/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/webapi-adaptor/razor %}
{% endhighlight %}
{% highlight c# tabtitle="WebApiController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/webapi-adaptor/webApiController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/webapi-adaptor/webApiController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -108,10 +108,10 @@ Refer to the following code example for cell data binding.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/cell-data-binding/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/cell-data-binding/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CellDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/cell-data-binding/cellDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/cell-data-binding/cellDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -137,10 +137,10 @@ N> For `add` action, the value for all the fields will be `null` in the data. In
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/dynamic-data-binding/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/dynamic-data-binding/razor %}
{% endhighlight %}
{% highlight c# tabtitle="DynamicDataController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/dynamic-data-binding/dynamicDataController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/dynamic-data-binding/dynamicDataController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -154,10 +154,10 @@ The following code example demonstrates how to dynamically update data using the
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/dynamic-data-binding-cs2/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/dynamic-data-binding-cs2/razor %}
{% endhighlight %}
{% highlight c# tabtitle="UpdateRangeController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/dynamic-data-binding-cs2/updateRangeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/dynamic-data-binding-cs2/updateRangeController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/editing.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/editing.md
index 4ec612f3c..33924a8fc 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/editing.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/editing.md
@@ -41,10 +41,10 @@ The following sample shows how to prevent the editing and cell save. Here `E` co
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/editing/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/editing/razor %}
{% endhighlight %}
{% highlight c# tabtitle="EditingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/editing/editingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/editing/editingController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/feature-list.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/feature-list.md
index b19de58e4..55a888e42 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/feature-list.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/feature-list.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Comparision between EJ1 & EJ2 Spreadsheet features
+# Comparison between EJ1 & EJ2 ASP.NET MVC Spreadsheet features
The following table compares Excel functionality with the availability of EJ1 and EJ2 Spreadsheet features.
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/filter.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/filter.md
index cf1d304a5..1c47a9cf7 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/filter.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/filter.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Filtering in Spreadsheet control
+# Filtering in ASP.NET MVC Spreadsheet control
Filtering helps you to view specific rows in the spreadsheet by hiding the other rows. You can use the [`allowFiltering`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowFiltering) property to enable or disable filtering functionality.
@@ -38,10 +38,10 @@ The following code example shows `filter` functionality in the Spreadsheet contr
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/filter/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/filter/razor %}
{% endhighlight %}
{% highlight c# tabtitle="FilterController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/filter/filterController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/filter/filterController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -87,10 +87,10 @@ The following code example shows how to get the filtered rows.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/filter-cs1/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/filter-cs1/razor %}
{% endhighlight %}
{% highlight c# tabtitle="InsertSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/filter-cs1/filterController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/filter-cs1/filterController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formatting.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formatting.md
index 1dc5128ce..6fd07d316 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formatting.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formatting.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Formatting in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Formatting in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Formatting in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Formatting in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Formatting
documentation: ug
---
-# Formatting in Spreadsheet Component
+# Formatting in ASP.NET MVC Spreadsheet Control
Formatting options make your data easier to view and understand. The different types of formatting options in the Spreadsheet are,
* Number Formatting
@@ -91,10 +91,10 @@ The following code example shows the number formatting in cell data.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/number-format/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/number-format/razor %}
{% endhighlight %}
{% highlight c# tabtitle="NumberFormatController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/number-format/numberFormatController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/number-format/numberFormatController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -146,10 +146,10 @@ The following code example demonstrates how to configure culture-based formats f
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/globalization-cs1/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/globalization-cs1/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CultureController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/globalization-cs1/cultureController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/globalization-cs1/cultureController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -214,10 +214,10 @@ The following code example shows the style formatting in text and cells of the s
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/cell-format/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/cell-format/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CellFormatController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/cell-format/cellFormatController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/cell-format/cellFormatController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -311,10 +311,10 @@ You can clear the defined rules by using one of the following ways,
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/conditional-formatting/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/conditional-formatting/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ConditionalFormattingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/conditional-formatting/conditionalFormattingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/conditional-formatting/conditionalFormattingController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formulas.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formulas.md
index cf7733e31..171a7ae28 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formulas.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/formulas.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Formulas in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Formulas in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Formulas in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Formulas in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Formulas
documentation: ug
---
-# Formulas in Spreadsheet control
+# Formulas in ASP.NET MVC Spreadsheet Control
Formulas are used for calculating the data in a worksheet. You can refer the cell reference from same sheet or from different sheets.
@@ -29,14 +29,14 @@ Previously, although you could import culture-based Excel files into the Spreads
When loading spreadsheet data with culture-based formula argument separators using cell data binding, local/remote data, or JSON, ensure to set the [listSeparator](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_ListSeparator) property value as the culture-based list separator from your end. Additionally, note that when importing an Excel file, the [listSeparator](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_ListSeparator) property will be updated based on the culture of the launched import/export service.
-In the example below, the Spreadsheet control is rendered with the `German culture (de)`. Additionally, you can find references on how to set the culture-based argument separator and culture-based formatted numeric value as arguments to the formulas.
+In the example below, the Spreadsheet control is rendered with the `German culture` [`de`]. Additionally, you can find references on how to set the culture-based argument separator and culture-based formatted numeric value as arguments to the formulas.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/formula-cs3/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/formula-cs3/razor %}
{% endhighlight %}
{% highlight c# tabtitle="FormulaController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/formula-cs3/formulaController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/formula-cs3/formulaController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -50,10 +50,10 @@ The following code example shows an unsupported formula in the spreadsheet.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/formula/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/formula/razor %}
{% endhighlight %}
{% highlight c# tabtitle="FormulaController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/formula/formulaController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/formula/formulaController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -63,10 +63,10 @@ The following code example shows how to use `computeExpression` method in the sp
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/formula-cs2/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/formula-cs2/razor %}
{% endhighlight %}
{% highlight c# tabtitle="FormulaController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/formula-cs2/formulaController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/formula-cs2/formulaController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -87,10 +87,10 @@ The following code example shows the usage of named ranges support.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/defined-names/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/defined-names/razor %}
{% endhighlight %}
{% highlight c# tabtitle="DefinedNameController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/defined-names/definedNameController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/defined-names/definedNameController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -113,10 +113,10 @@ The following code example demonstrates how to set the Automatic calculation mod
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/calculation-cs1/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/calculation-cs1/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CalculationModeController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/calculation-cs1/calculationModeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/calculation-cs1/calculationModeController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -133,10 +133,10 @@ The following code example demonstrates how to set the Manual calculation mode i
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/calculation-cs2/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/calculation-cs2/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CalculationModeController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/calculation-cs2/calculationModeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/calculation-cs2/calculationModeController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/freeze-pane.md
index 8dea27316..160d5069e 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/freeze-pane.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/freeze-pane.md
@@ -8,11 +8,11 @@ documentation: ug
---
-# FreezePanes in Spreadsheet control
+# FreezePanes in ASP.NET MVC Spreadsheet control
Freeze Panes helps you to keep particular rows or columns visible when scrolling the sheet content in the spreadsheet. You can specify the number of frozen rows and columns using the `frozenRows` and `frozenColumns` properties inside the [`Sheet`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_Sheets) property.
-## Apply freezepanes on UI
+## Apply freeze panes on UI
**User Interface**:
@@ -47,10 +47,10 @@ In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/freeze-pane/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/freeze-pane/razor %}
{% endhighlight %}
{% highlight c# tabtitle="FreezePane.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/freeze-pane/freezePane.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/freeze-pane/freezePane.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/getting-started-mvc.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/getting-started-mvc.md
index 347822fb0..2a4078d2a 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/getting-started-mvc.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/getting-started-mvc.md
@@ -88,7 +88,7 @@ Now, add the Syncfusion® ASP.NET MVC Spread
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/getting-started-mvc/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/getting-started-mvc/razor %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/global-local.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/global-local.md
index bafda5f26..1f2b8fb00 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/global-local.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/global-local.md
@@ -382,10 +382,10 @@ The following example demonstrates the Spreadsheet in `French` culture. In the b
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/locale/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/locale/razor %}
{% endhighlight %}
{% highlight c# tabtitle="LocaleController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/locale/localeController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/locale/localeController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -399,10 +399,10 @@ The following example demonstrates the Spreadsheet in French [ `fr-CH`] culture.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/internationalization/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/internationalization/razor %}
{% endhighlight %}
{% highlight c# tabtitle="InternationalizationController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/internationalization/internationalizationController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/internationalization/internationalizationController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -414,10 +414,10 @@ RTL provides an option to switch the text direction and layout of the Spreadshee
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/rtl/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/rtl/razor %}
{% endhighlight %}
{% highlight c# tabtitle="RtlController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/rtl/rtlController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/rtl/rtlController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/change-active-sheet.md
index a9e614838..ee6a779fe 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/change-active-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/change-active-sheet.md
@@ -7,7 +7,7 @@ control: Spreadsheet
documentation: ug
---
-# Changing the active sheet in Spreadsheet control
+# Changing the active sheet in ASP.NET MVC Spreadsheet control
You can change the active sheet of imported file by updating [`activeSheetIndex`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_ActiveSheetIndex) property on the [`openComplete`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_OpenComplete) event.
@@ -15,9 +15,9 @@ The following code example shows how to set the active sheet when importing an E
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/change-active-sheet/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/change-active-sheet/razor %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/change-active-sheet/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/change-active-sheet/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/identify-the-context-menu-opened.md
index 92e2f5b63..14158f3ac 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/identify-the-context-menu-opened.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/how-to/identify-the-context-menu-opened.md
@@ -7,7 +7,7 @@ control: Spreadsheet
documentation: ug
---
-## Identify the context menu opened in Spreadsheet control
+## Identify the context menu opened in ASP.NET MVC Spreadsheet control
The Spreadsheet includes several context menus that will open and display depending on the action. When you right-click on a cell, for example, a context menu with options related to the cell element appears.
@@ -24,6 +24,6 @@ The following code example shows how to identify the context menu opened.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/find-target-context-menu/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/find-target-context-menu/razor %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/illustrations.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/illustrations.md
index e08bc788f..603c69d88 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/illustrations.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/illustrations.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Illustrations in Spreadsheet control
+# Illustrations in ASP.NET MVC Spreadsheet control
Illustrations helps you to insert a image, shapes and graphic objects in the Essential JS 2 spreadsheet.
@@ -71,10 +71,10 @@ Image feature allows you to view and insert a image in a spreadsheet and you can
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/image/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/image/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ImageController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/image/imageController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/image/imageController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -128,10 +128,10 @@ The available arguments in the `ChartModel` are:
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/chart-cs1/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/chart-cs1/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ChartController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/chart-cs1/chartController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/chart-cs1/chartController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -156,10 +156,10 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/chart/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/chart/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ChartController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/chart/chartController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/chart/chartController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -169,10 +169,10 @@ Using the [`actionBegin`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusi
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/chart-cs2/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/chart-cs2/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ChartController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/chart-cs2/chartController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/chart-cs2/chartController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/keyboard-shortcuts.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/keyboard-shortcuts.md
index 31d1bc6f4..daff6d71c 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/keyboard-shortcuts.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/keyboard-shortcuts.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Keyboard Shortcuts in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Keyboard Shortcuts in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Keyboard Shortcuts in ASP.NET MVC Spreadsheet Control
+description: Learn about Keyboard Shortcuts in ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Keyboard Shortcuts
documentation: ug
---
-# Keyboard Shortcuts And Navigation
+# Keyboard Shortcuts And Navigation in ASP.NET MVC Spreadsheet Control
The keyboard shortcuts supported in the spreadsheet are,
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/link.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/link.md
index 56b68901f..ae8dffedd 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/link.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/link.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Hyperlink in Spreadsheet control
+# Hyperlink in ASP.NET MVC Spreadsheet control
Hyperlink is used to navigate to web links or cell reference within the sheet or to other sheets in Spreadsheet. You can use the [`allowHyperlink`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowHyperlink) property to enable or disable hyperlink functionality.
@@ -54,10 +54,10 @@ There is an event named `beforeHyperlinkClick` which triggers only on clicking h
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/link/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/link/razor %}
{% endhighlight %}
{% highlight c# tabtitle="HyperlinkController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/link/hyperlinkController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/link/hyperlinkController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/mobile-responsiveness.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/mobile-responsiveness.md
index 0b71470ff..b3f59489f 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/mobile-responsiveness.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/mobile-responsiveness.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Mobile Responsiveness in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Mobile Responsiveness in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Mobile Responsiveness in ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn about Mobile Responsiveness in ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Mobile Responsiveness
documentation: ug
---
-# Mobile Responsiveness
+# Mobile Responsiveness in ASP.NET MVC Syncfusion Spreadsheet Control
The Spreadsheet control rendered in desktop mode will be adaptive in all mobile devices where the layout gets adjusted based on their parent element’s dimensions to accommodate any resolution.
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/notes.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/notes.md
index 56f32ece7..ecaeea236 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/notes.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/notes.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Notes in Spreadsheet control
+# Notes in ASP.NET MVC Spreadsheet Control
The **Notes** feature is used to insert comments, provide feedback, suggest changes, or leave remarks on specific cells while reviewing documents in the Spreadsheet. You can enable or disable the notes functionality using the [`enableNotes`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_EnableNotes) property, which defaults to **true**.
@@ -20,10 +20,10 @@ In the below example, you can add, edit, save, and delete notes.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/note-cs1/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/note-cs1/razor %}
{% endhighlight %}
{% highlight c# tabtitle="NotesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/note-cs1/notesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/note-cs1/notesController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -70,10 +70,10 @@ In the below example, the note functionality is disabled in the Spreadsheet.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/note-cs2/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/note-cs2/razor %}
{% endhighlight %}
{% highlight c# tabtitle="NotesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/note-cs2/notesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/note-cs2/notesController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -83,10 +83,10 @@ The notes can be added initially when the Spreadsheet loads using cell data bind
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/note-cs3/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/note-cs3/razor %}
{% endhighlight %}
{% highlight c# tabtitle="NotesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/note-cs3/notesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/note-cs3/notesController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/open-save.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/open-save.md
index 7d94adec7..1ec84e752 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/open-save.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/open-save.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Open Save in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Open Save in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Open Save in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Open Save in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Open Save
documentation: ug
---
-# Open and Save in Spreadsheet control
+# Open and Save in ASP.NET MVC Spreadsheet Control
To import an excel file, it needs to be read and converted to client side Spreadsheet model. The converted client side Spreadsheet model is sent as JSON which is used to render Spreadsheet. Similarly, when you save the Spreadsheet, the client Spreadsheet model is sent to the server as JSON for processing and saved. Server configuration is used for this process.
@@ -24,10 +24,10 @@ The following sample shows the `Open` option by using the [`openUrl`](https://he
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -52,10 +52,10 @@ The following code example shows how to import an excel document using file uplo
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-uploader/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-uploader/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-uploader/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-uploader/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -65,10 +65,10 @@ You can achieve to access the remote excel file by using the [`created`](https:/
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-url/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-url/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-url/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-url/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -80,10 +80,10 @@ Please find the code to fetch the blob data and load it into the Spreadsheet con
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-from-blob/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-from-blob/razor %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-from-blob/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-from-blob/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -205,10 +205,10 @@ The following code example shows how to open the spreadsheet data as base64 stri
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/base-64-string/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/base-64-string/razor %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/base-64-string/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/base-64-string/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -218,10 +218,10 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-readonly/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-readonly/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-readonly/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-readonly/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -253,10 +253,10 @@ The following code snippet demonstrates how to configure the deserialization opt
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-from-json/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-from-json/razor %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-from-json/openController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-from-json/openController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -340,10 +340,10 @@ You can add your own custom header to the open action in the Spreadsheet. For pr
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-header/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-header/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Opencontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-header/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-header/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -385,10 +385,10 @@ The following sample shows the `Save` option by using the [`saveUrl`](https://he
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Savecontroller.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save/savecontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save/savecontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -418,10 +418,10 @@ Please find below the code to retrieve blob data from the Spreadsheet control be
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save-as-blob/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save-as-blob/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SaveController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save-as-blob/savecontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save-as-blob/savecontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -569,10 +569,10 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/base-64-string/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/base-64-string/razor %}
{% endhighlight %}
{% highlight c# tabtitle="OpenController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/base-64-string/opencontroller.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/base-64-string/opencontroller.cs %}
{% endhighlight %}
{% endtabs %}
@@ -604,10 +604,10 @@ The following code snippet demonstrates how to configure the serialization optio
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save-as-json/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save-as-json/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SaveController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save-as-json/saveController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save-as-json/saveController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -617,10 +617,10 @@ Passing the custom parameters from client to server by using [`beforeSave`](http
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/custom-params/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/custom-params/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CustomParamsController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/custom-params/customParamsController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/custom-params/customParamsController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -630,10 +630,10 @@ You can add your own custom header to the save action in the Spreadsheet. For pr
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save-header/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save-header/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CustomHeaderController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/save-header/CustomHeaderController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/save-header/CustomHeaderController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -648,10 +648,10 @@ The possible values are:
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/pdf-orientation/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/pdf-orientation/razor %}
{% endhighlight %}
{% highlight c# tabtitle="pdfOrientationController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/pdf-orientation/pdfOrientationController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/pdf-orientation/pdfOrientationController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -670,10 +670,10 @@ To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using `
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-save/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-save/razor %}
{% endhighlight %}
{% highlight c# tabtitle="OpenSaveController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/open-save/openSaveController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/open-save/openSaveController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/print.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/print.md
index f11890ba6..1bc5cf764 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/print.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/print.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Print in Spreadsheet control
+# Print in ASP.NET MVC Spreadsheet control
The printing functionality allows end-users to print all contents, such as tables, charts, images, and formatted contents, available in the active worksheet or entire workbook in the Spreadsheet. You can enable or disable print functionality by using the `allowPrint` property, which defaults to **true**.
@@ -32,10 +32,10 @@ The `printOptions` contain three properties, as described below.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/print-cs2/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/print-cs2/razor %}
{% endhighlight %}
{% highlight c# tabtitle="PrintController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/print-cs2/printController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/print-cs2/printController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -47,10 +47,10 @@ The printing functionality in the Spreadsheet can be disabled by setting the [`a
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/print-cs3/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/print-cs3/razor %}
{% endhighlight %}
{% highlight c# tabtitle="PrintController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/print-cs3/printController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/print-cs3/printController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/protect-sheet.md
index 91e1aab08..378772e0d 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/protect-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/protect-sheet.md
@@ -46,10 +46,10 @@ The following example shows `Protect Sheet` functionality with password in the S
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/protect-sheet/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/protect-sheet/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ProtectSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/protect-sheet/protectSheetController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/protect-sheet/protectSheetController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -77,10 +77,10 @@ In protected spreadsheet, to make some particular cell or range of cells are edi
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/lock-cells/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/lock-cells/razor %}
{% endhighlight %}
{% highlight c# tabtitle="LockCellController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/lock-cells/lockCellController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/lock-cells/lockCellController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -115,10 +115,10 @@ The following example demonstrates how to make rows, columns, and cells read-onl
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/read-only/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/read-only/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ReadOnlyController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/read-only/readOnlyController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/read-only/readOnlyController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -140,10 +140,10 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/protect-workbook/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/protect-workbook/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ProtectWorkbookController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/protect-workbook/protectWorkbookController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/protect-workbook/protectWorkbookController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -153,10 +153,10 @@ The following example shows `Protect Workbook` by using the [`password`](https:/
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/password/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/password/razor %}
{% endhighlight %}
{% highlight c# tabtitle="PasswordController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/password/passwordController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/password/passwordController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/ribbon.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/ribbon.md
index 9e8c8ad14..65a9b620b 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/ribbon.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/ribbon.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Ribbon in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Ribbon in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Ribbon in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Ribbon in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Ribbon
documentation: ug
---
-# Ribbon in Spreadsheet control
+# Ribbon in ASP.NET MVC Spreadsheet Control
It helps to organize a spreadsheet’s features into a series of tabs. By clicking the expand or collapse icon, you can expand or collapse the ribbon toolbar dynamically.
@@ -37,10 +37,10 @@ The following code example shows the usage of ribbon customization.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/ribbon/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/ribbon/razor %}
{% endhighlight %}
{% highlight c# tabtitle="RibbonController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/ribbon/ribbonController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/ribbon/ribbonController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/rows-and-columns.md
index b402a0c47..3a464af04 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/rows-and-columns.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/rows-and-columns.md
@@ -8,7 +8,7 @@ documentation: ug
---
-# Rows and columns in Spreadsheet control
+# Rows and columns in ASP.NET MVC Spreadsheet control
Spreadsheet is a tabular format consisting of rows and columns. The intersection point of rows and columns are called as cells. The list of operations that you can perform in rows and columns are,
@@ -31,10 +31,10 @@ The following code example shows the options for inserting rows in the spreadshe
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-row/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-row/razor %}
{% endhighlight %}
{% highlight c# tabtitle="InsertRowController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-row/insertRowController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-row/insertRowController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -51,10 +51,10 @@ The following code example shows the options for inserting columns in the spread
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-column/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-column/razor %}
{% endhighlight %}
{% highlight c# tabtitle="InsertColumnController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-column/insertColumnController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-column/insertColumnController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -73,10 +73,10 @@ The following code example shows the delete operation of rows and columns in the
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/delete-row/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/delete-row/razor %}
{% endhighlight %}
{% highlight c# tabtitle="DeleteRowController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/delete-row/deleteRowController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/delete-row/deleteRowController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -106,10 +106,10 @@ The following code example shows the hide/show rows and columns operation in the
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/show-hide/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/show-hide/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ShowHideController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/show-hide/showHideController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/show-hide/showHideController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -134,10 +134,10 @@ The following code example shows how to change the height for single/multiple ro
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/row-height/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/row-height/razor %}
{% endhighlight %}
{% highlight c# tabtitle="RowHeightController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/row-height/rowHeightController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/row-height/rowHeightController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -156,10 +156,10 @@ The following code example shows how to change the width for single/multiple col
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/column-width/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/column-width/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ColumnWidthController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/column-width/columnWidthController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/column-width/columnWidthController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -171,7 +171,7 @@ The following code example shows how to change the text in the column headers.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/column-header-change/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/column-header-change/razor %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/scrolling.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/scrolling.md
index b1aa4939a..d61a3d66e 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/scrolling.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/scrolling.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Scrolling in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Scrolling in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Scrolling in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Scrolling in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Scrolling
documentation: ug
---
-# Scrolling in Spreadsheet control
+# Scrolling in ASP.NET MVC Spreadsheet Control
Scrolling helps you to move quickly to different areas of the worksheet. It moves faster if we use horizontal and vertical scroll bars. Scrolling can be enabled by setting the [`allowScrolling`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowScrolling) as true.
@@ -53,10 +53,10 @@ The following code example shows the finite scrolling with defined rows and colu
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/scrolling/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/scrolling/razor %}
{% endhighlight %}
{% highlight c# tabtitle="ScrollingController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/scrolling/scrollingController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/scrolling/scrollingController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/searching.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/searching.md
index 4680182df..427f05437 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/searching.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/searching.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Searching in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Searching in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Searching in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Searching in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Searching
documentation: ug
---
-# Find and Replace in Spreadsheet control
+# Find and Replace in ASP.NET MVC Spreadsheet Control
Find and Replace helps you to search for the target text and replace the found text with alternative text within the sheet or workbook. You can use the [`allowFindAndReplace`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowFindAndReplace) property to enable or disable the Find and Replace functionality.
@@ -65,10 +65,10 @@ In the following sample, searching can be done by following ways:
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/search/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/search/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SearchController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/search/searchController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/search/searchController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/selection.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/selection.md
index 61c746970..18aac4270 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/selection.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/selection.md
@@ -1,14 +1,14 @@
---
layout: post
title: Selection in EJ2 ASP.NET MVC Spreadsheet Control | Syncfusion
-description: Learn here all about Selection in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+description: Learn here all about Selection in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Selection
documentation: ug
---
-# Selection in Spreadsheet Control
+# Selection in ASP.NET MVC Spreadsheet Control
Selection provides interactive support to highlight the cell, row, or column that you select. Selection can be done through Mouse, Touch, or Keyboard interaction. To enable selection, set `mode` as `Single` or `Multiple` in [`selectionSettings`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_SelectionSettings). If you set `mode` to `None`, it disables the UI selection.
@@ -49,10 +49,10 @@ The following sample shows the row selection in the spreadsheet, here selecting
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/row-selection/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/row-selection/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SelectionController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/row-selection/selectionController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/row-selection/selectionController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -75,10 +75,10 @@ The following sample shows the column selection in the spreadsheet, here selecti
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/column-selection/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/column-selection/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SelectionController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/column-selection/selectionController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/column-selection/selectionController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -90,10 +90,10 @@ Below is a code example demonstrating how to retrieve the selected cell values a
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/selected-cell-values/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/selected-cell-values/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SelectedCellValuesController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/selected-cell-values/selectedCellValuesController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/selected-cell-values/selectedCellValuesController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -103,10 +103,10 @@ The following sample shows, how to remove the selection in the spreadsheet. Here
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/disable-selection/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/disable-selection/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SelectionController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/disable-selection/selectionController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/disable-selection/selectionController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/sort.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/sort.md
index 0c3bd0a8d..eb9118fa6 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/sort.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/sort.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Sort in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Sort in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Sort in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Sort in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Sort
documentation: ug
---
-# Sorting in Spreadsheet control
+# Sorting in ASP.NET MVC Spreadsheet Control
Sorting helps arranging the data to a specific order in a selected range of cells. You can use the [`allowSorting`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowSorting) property to enable or disable sorting functionality.
@@ -38,10 +38,10 @@ The following code example shows `sort` functionality in the Spreadsheet control
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/sort-by-cell/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/sort-by-cell/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SortController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/sort-by-cell/sortController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/sort-by-cell/sortController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -112,10 +112,10 @@ N> * All the arguments are optional.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/passing-sort/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/passing-sort/razor %}
{% endhighlight %}
{% highlight c# tabtitle="PassingSortController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/passing-sort/passingSortController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/passing-sort/passingSortController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -139,10 +139,10 @@ In the following demo, the `Trustworthiness` column is sorted based on the custo
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/custom-sort/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/custom-sort/razor %}
{% endhighlight %}
{% highlight c# tabtitle="CustomSortController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/custom-sort/customSortController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/custom-sort/customSortController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/template.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/template.md
index 028569f54..03b3fad4e 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/template.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/template.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Template in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Template in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Template in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Template in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Template
documentation: ug
---
-# Cell Template in Spreadsheet Control
+# Cell Template in ASP.NET MVC Spreadsheet Control
Cell Template is used for adding HTML elements into Spreadsheet. You can add the cell template in spreadsheet by using the `template` property and specify the address using the `address` property inside the `ranges` property. You can customize the HTML elements similar to Syncfusion® components (TextBox, DropDownList, RadioButton, MultiSelect, DatePicker etc) by using the `beforeCellRender` event. In this demo, Cell template is applied to `C2:C9` and instantiated with HTML input components like TextBox, RadioButton, TextArea. You need to bind the events to perform any operations through HTML elements or Syncfusion® components. Here, we have added `change` event in to the MultiSelect control, and we have updated the selected data into the spreadsheet cell through that change event.
@@ -16,10 +16,10 @@ The following code example describes the above behavior.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/template/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/template/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Template.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/template/template.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/template/template.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/undo-redo.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/undo-redo.md
index 954f041ad..346f634bf 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/undo-redo.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/undo-redo.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Undo Redo in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Undo Redo in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Undo Redo in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Undo Redo in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Undo Redo
documentation: ug
---
-# Undo and Redo in Spreadsheet control
+# Undo and Redo in ASP.NET MVC Spreadsheet control
`Undo` option helps you to undone the last action performed and `Redo` option helps you to do the same action which is reverted in the Spreadsheet. You can use the [`allowUndoRedo`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowUndoRedo) property to enable or disable undo redo functionality in spreadsheet.
@@ -40,10 +40,10 @@ The following code example shows `How to update and customize your own actions f
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/undo-redo/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/undo-redo/razor %}
{% endhighlight %}
{% highlight c# tabtitle="UndoRedoController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/undo-redo/undoRedoController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/undo-redo/undoRedoController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/worksheet.md b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/worksheet.md
index bc6fe6a3c..bef592487 100644
--- a/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/worksheet.md
+++ b/Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/worksheet.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Worksheet in EJ2 ASP.NET MVC Syncfusion Spreadsheet Component
-description: Learn here all about Worksheet in Syncfusion EJ2 ASP.NET MVC Spreadsheet component of Syncfusion Essential JS 2 and more.
+title: Worksheet in EJ2 ASP.NET MVC Syncfusion Spreadsheet Control
+description: Learn here all about Worksheet in Syncfusion EJ2 ASP.NET MVC Spreadsheet Control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Worksheet
documentation: ug
---
-# Worksheet in Spreadsheet control
+# Worksheet in ASP.NET MVC Spreadsheet control
Worksheet is a collection of cells organized in the form of rows and columns that allows you to store, format, and manipulate the data.
@@ -24,10 +24,10 @@ The following code example shows the insert sheet operation in spreadsheet.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-sheet/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-sheet/razor %}
{% endhighlight %}
{% highlight c# tabtitle="InsertSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-sheet/insertSheetController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-sheet/insertSheetController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -39,10 +39,10 @@ The following code example shows how to insert a sheet programmatically and make
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-sheet-change-active-sheet/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-sheet-change-active-sheet/razor %}
{% endhighlight %}
{% highlight c# tabtitle="InsertSheetController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/insert-sheet-change-active-sheet/insertSheetController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/insert-sheet-change-active-sheet/insertSheetController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -78,10 +78,10 @@ The following code example shows the headers and gridlines operation in spreadsh
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/header-gridlines/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/header-gridlines/razor %}
{% endhighlight %}
{% highlight c# tabtitle="HeaderController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/header-gridlines/headerController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/header-gridlines/headerController.cs %}
{% endhighlight %}
{% endtabs %}
@@ -103,10 +103,10 @@ The following code example shows the three types of sheet visibility state.
{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/sheet-visiblity/razor %}
+{% include code-snippet/spreadsheet/asp-net-mvc/sheet-visiblity/razor %}
{% endhighlight %}
{% highlight c# tabtitle="SheetVisiblityController.cs" %}
-{% include code-snippet/excel/spreadsheet/asp-net-mvc/sheet-visiblity/sheetVisiblityController.cs %}
+{% include code-snippet/spreadsheet/asp-net-mvc/sheet-visiblity/sheetVisiblityController.cs %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/accessibility.md b/Document-Processing/Excel/Spreadsheet/Angular/accessibility.md
index d2fc74ea9..19d4a8d89 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/accessibility.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/accessibility.md
@@ -111,7 +111,7 @@ The Spreadsheet component's accessibility levels are ensured through an [accessi
The accessibility compliance of the Spreadsheet component is shown in the following sample. Open the [sample](https://ej2.syncfusion.com/accessibility/spreadsheet.html) in a new window to evaluate the accessibility of the Spreadsheet component with accessibility tools.
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/accessibility" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/accessibility" %}
## See also
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md b/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md
index bb91910ec..c4e800488 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md
@@ -25,15 +25,15 @@ The following code example shows the wrap text functionality in spreadsheet.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/wrap-text-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/wrap-text-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/wrap-text-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/wrap-text-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/wrap-text-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/wrap-text-cs1" %}
### Limitations of Wrap text
@@ -65,15 +65,15 @@ The following code example shows the merge cells operation in spreadsheet.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/merge-cells-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/merge-cells-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/merge-cells-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/merge-cells-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/merge-cells-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/merge-cells-cs1" %}
### Limitations of Merge
@@ -126,15 +126,15 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/data-validation-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/data-validation-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/data-validation-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/data-validation-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/data-validation-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/data-validation-cs1" %}
### Custom Data validation
@@ -155,15 +155,15 @@ The following code example demonstrates how to add custom data validation with a
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/data-validation-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/data-validation-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/data-validation-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/data-validation-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/data-validation-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/data-validation-cs2" %}
### Limitations of Data validation
@@ -239,15 +239,15 @@ In the following sample, you can enable/disable the fill option on the button cl
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/autofill-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/autofill-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/autofill-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/autofill-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/autofill-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/autofill-cs1" %}
### Limitations of Autofill
@@ -282,15 +282,15 @@ Clear the cell contents and formats in the Spreadsheet document by using the [cl
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/clear-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/clear-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/clear-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/clear-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/clear-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/clear-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md b/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md
index 3b6aa7566..ca6e72589 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md
@@ -61,15 +61,15 @@ Paste can be done in one of the following ways.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/clipboard-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/clipboard-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/clipboard-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/clipboard-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/clipboard-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/clipboard-cs1" %}
## Prevent the paste functionality
@@ -77,15 +77,15 @@ The following example shows, how to prevent the paste action in spreadsheet. In
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/clipboard-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/clipboard-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/clipboard-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/clipboard-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/clipboard-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/clipboard-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md b/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md
index dfddf0d8a..d03529353 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md
@@ -70,15 +70,15 @@ In this demo, Custom Item is added after the Paste item in the context menu.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu/addContextMenu-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu/addContextMenu-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/contextmenu/addContextMenu-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/contextmenu/addContextMenu-cs1" %}
### Remove Context Menu Items
@@ -88,15 +88,15 @@ In this demo, Insert Column item has been removed from the row/column header con
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu/addContextMenu-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu/addContextMenu-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/contextmenu/addContextMenu-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/contextmenu/addContextMenu-cs2" %}
### Enable/Disable Context Menu Items
@@ -106,15 +106,15 @@ In this demo, Rename item is disabled in the pager context menu.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu/addContextMenu-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu/addContextMenu-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/contextmenu/addContextMenu-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/contextmenu/addContextMenu-cs3" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md b/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md
index 3a8f948d3..c1adfd666 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md
@@ -21,15 +21,15 @@ Refer to the following code example for local data binding.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/local-data-binding-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/local-data-binding-cs1" %}
> The local data source can also be provided as an instance of the [`DataManager`](https://helpej2.syncfusion.com/angular/documentation/data/). By default, [`DataManager`](https://helpej2.syncfusion.com/angular/documentation/data/) uses [`JsonAdaptor`](https://ej2.syncfusion.com/angular/documentation/data/adaptors#json-adaptor) for local data-binding.
@@ -43,15 +43,15 @@ The following code example demonstrates how to customize the mapping of column d
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/field-mapping-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/field-mapping-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/field-mapping-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/field-mapping-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/field-mapping-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/field-mapping-cs1" %}
## Remote data
@@ -61,15 +61,15 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/remote-data-binding-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/remote-data-binding-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/remote-data-binding-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/remote-data-binding-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/remote-data-binding-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/remote-data-binding-cs1" %}
> By default, `DataManager` uses **ODataAdaptor** for remote data-binding.
@@ -79,15 +79,15 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/remote-data-binding-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/remote-data-binding-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/remote-data-binding-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/remote-data-binding-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/remote-data-binding-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/remote-data-binding-cs2" %}
### Web API
@@ -95,15 +95,15 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/remote-data-binding-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/remote-data-binding-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/remote-data-binding-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/remote-data-binding-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/remote-data-binding-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/remote-data-binding-cs3" %}
## Cell data binding
@@ -113,15 +113,15 @@ Refer to the following code example for cell data binding.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/cell-data-binding-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/cell-data-binding-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/cell-data-binding-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/cell-data-binding-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/cell-data-binding-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/cell-data-binding-cs1" %}
> The cell data binding also supports formula, style, number format, and more.
@@ -143,15 +143,15 @@ The following table defines the arguments of the `dataSourceChanged` event.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/dynamic-data-binding-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/dynamic-data-binding-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/dynamic-data-binding-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/dynamic-data-binding-cs1" %}
## Dynamic data binding using updateRange method
@@ -163,15 +163,15 @@ The following code example demonstrates how to dynamically update data using the
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/dynamic-data-binding-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/dynamic-data-binding-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/dynamic-data-binding-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/dynamic-data-binding-cs2" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/editing.md b/Document-Processing/Excel/Spreadsheet/Angular/editing.md
index 6097e5cf6..e510bad2a 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/editing.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/editing.md
@@ -40,15 +40,15 @@ The following sample shows how to prevent the editing and cell save. Here `E` co
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/editing-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/editing-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/editing-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/editing-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/editing-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/editing-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/filter.md b/Document-Processing/Excel/Spreadsheet/Angular/filter.md
index a83bd1cfb..d13ebdf21 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/filter.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/filter.md
@@ -37,15 +37,15 @@ The following code example shows `filter` functionality in the Spreadsheet contr
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/filter-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/filter-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/filter-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/filter-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/filter-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/filter-cs1" %}
## Filter by cell value
@@ -87,15 +87,15 @@ The following code example shows how to get the filtered rows.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/filter-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/filter-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/filter-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/filter-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/filter-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/filter-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/formatting.md b/Document-Processing/Excel/Spreadsheet/Angular/formatting.md
index f18f96eaf..ce6fce8f8 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/formatting.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/formatting.md
@@ -90,15 +90,15 @@ The following code example shows the number formatting in cell data.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/format/number-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/format/number-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/format/number-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/format/number-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/format/number-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/format/number-cs1" %}
## Configure culture-based custom format
@@ -145,15 +145,15 @@ The following code example demonstrates how to configure culture-based formats f
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/format/globalization-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/format/globalization-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/format/globalization-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/format/globalization-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/format/globalization-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/format/globalization-cs1" %}
## Text and cell formatting
@@ -216,15 +216,15 @@ The following code example shows the style formatting in text and cells of the s
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/format/number-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/format/number-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/format/number-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/format/number-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/format/number-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/format/number-cs2" %}
### Limitations of Formatting
@@ -314,15 +314,15 @@ You can clear the defined rules by using one of the following ways,
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/conditional-formatting-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/conditional-formatting-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/conditional-formatting-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/conditional-formatting-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/conditional-formatting-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/conditional-formatting-cs1" %}
### Limitations of Conditional formatting
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/formulas.md b/Document-Processing/Excel/Spreadsheet/Angular/formulas.md
index 23ccd18f5..f0f98ebd6 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/formulas.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/formulas.md
@@ -32,15 +32,15 @@ In the example below, the Spreadsheet component is rendered with the `German cul
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/formula-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/formula-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/formula-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/formula-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/formula-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/formula-cs3" %}
## Create User Defined Functions / Custom Functions
@@ -52,15 +52,15 @@ The following code example shows an unsupported formula in the spreadsheet.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/formula-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/formula-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/formula-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/formula-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/formula-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/formula-cs1" %}
Second, if you want to directly compute any formula or expression, you can use the [computeExpression](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#computeexpression) method. This method will work for both built-in and used-defined/custom formula.
@@ -68,15 +68,15 @@ The following code example shows how to use `computeExpression` method in the sp
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/formula-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/formula-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/formula-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/formula-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/formula-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/formula-cs2" %}
## Formula bar
@@ -95,15 +95,15 @@ The following code example shows the usage of named ranges support.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/defined-name-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/defined-name-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/defined-name-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/defined-name-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/defined-name-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/defined-name-cs1" %}
## Calculation Mode
@@ -124,15 +124,15 @@ The following code example demonstrates how to set the Automatic calculation mod
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/calculation-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/calculation-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/calculation-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/calculation-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/calculation-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/calculation-cs1" %}
### Manual Mode
@@ -147,15 +147,15 @@ The following code example demonstrates how to set the Manual calculation mode i
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/calculation-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/calculation-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/calculation-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/calculation-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/calculation-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/calculation-cs2" %}
## Supported Formulas
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md
index 78822833f..a23f14035 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md
@@ -46,15 +46,15 @@ In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/freezepane-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/freezepane-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/freezepane-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/freezepane-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/freezepane-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/freezepane-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md b/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md
index 9dcb4d143..cbb25b052 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md
@@ -157,15 +157,15 @@ The following example shows a basic Spreadsheet component
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/spreadsheet-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/spreadsheet-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/spreadsheet-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/spreadsheet-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/spreadsheet-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/spreadsheet-cs1" %}
> You can refer to our [Angular Spreadsheet](https://www.syncfusion.com/spreadsheet-editor-sdk/angular-spreadsheet-editor) feature tour page for its groundbreaking feature representations. You can also explore our [Angular Spreadsheet example](https://document.syncfusion.com/demos/spreadsheet-editor/angular/#/bootstrap5/spreadsheet/default) that shows you how present and manipulate data, including editing, formulas, formatting, importing, and exporting.
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/global-local.md b/Document-Processing/Excel/Spreadsheet/Angular/global-local.md
index 6cf370873..e9761547b 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/global-local.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/global-local.md
@@ -382,15 +382,15 @@ The following example demonstrates the Spreadsheet in `French` culture. In the b
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/local-data-binding-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/local-data-binding-cs2" %}
## Internationalization
@@ -411,15 +411,15 @@ The following example demonstrates the Spreadsheet in French [ `fr-CH`] culture.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/internationalization-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/internationalization-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/internationalization-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/internationalization-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/internationalization-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/internationalization-cs1" %}
## Right to left (RTL)
@@ -427,15 +427,15 @@ RTL provides an option to switch the text direction and layout of the Spreadshee
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/local-data-binding-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/local-data-binding-cs3" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md
index 0280dad9d..f4fa2020f 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md
@@ -15,12 +15,12 @@ The following code example shows how to set the active sheet when importing an E
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/change-active-sheet-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/change-active-sheet-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/change-active-sheet-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/change-active-sheet-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/change-active-sheet-cs1" %}
\ No newline at end of file
+{% previewsample "/document-processing/samples/spreadsheet/angular/change-active-sheet-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md
index 80f32b251..5cdae0d47 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md
@@ -24,12 +24,12 @@ The following code example shows how to identify the context menu opened.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/contextmenu-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/contextmenu-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/contextmenu-cs1" %}
\ No newline at end of file
+{% previewsample "/document-processing/samples/spreadsheet/angular/contextmenu-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md b/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md
index 48dfc7f8b..53779e22b 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md
@@ -70,15 +70,15 @@ Image feature allows you to view and insert an image in a spreadsheet, and you c
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/image-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/image-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/image-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/image-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/image-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/image-cs1" %}
### Limitations of Image
@@ -128,15 +128,15 @@ The available arguments in the `ChartModel` are:
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/chart-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/chart-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/chart-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/chart-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/chart-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/chart-cs2" %}
### Delete Chart
@@ -159,15 +159,15 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/chart-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/chart-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/chart-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/chart-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/chart-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/chart-cs1" %}
#### Customization of line chart markers
@@ -175,15 +175,15 @@ Using the [`actionBegin`](https://ej2.syncfusion.com/angular/documentation/api/s
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/chart-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/chart-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/chart-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/chart-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/chart-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/chart-cs3" %}
### Limitations of Chart
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/link.md b/Document-Processing/Excel/Spreadsheet/Angular/link.md
index 8a53bdb1f..bced2e410 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/link.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/link.md
@@ -53,15 +53,15 @@ There is an event named `beforeHyperlinkClick` which triggers only on clicking h
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/link-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/link-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/link-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/link-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/link-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/link-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/notes.md b/Document-Processing/Excel/Spreadsheet/Angular/notes.md
index f5b912acd..b4e41103b 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/notes.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/notes.md
@@ -19,15 +19,15 @@ In the below example, you can add, edit, save, and delete notes.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/note-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/note-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/note-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/note-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/note-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/note-cs1" %}
## Adding a note
@@ -72,15 +72,15 @@ In the below example, the note functionality is disabled in the Spreadsheet.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/note-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/note-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/note-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/note-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/note-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/note-cs2" %}
## Integrating notes during initial loading and using cell data binding
@@ -88,15 +88,15 @@ The notes can be added initially when the Spreadsheet loads using cell data bind
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/note-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/note-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/note-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/note-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/note-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/note-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/open-save.md b/Document-Processing/Excel/Spreadsheet/Angular/open-save.md
index 814febbf6..82363caf3 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/open-save.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/open-save.md
@@ -23,15 +23,15 @@ The following sample shows the `Open` option by using the [`openUrl`](https://ej
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs1" %}
Please find the below table for the beforeOpen event arguments.
@@ -52,15 +52,15 @@ The following code example shows how to import an excel document using file uplo
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs7/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs7/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs7/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs7/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs7" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs7" %}
### Open an external URL excel file while initial load
@@ -68,15 +68,15 @@ You can achieve to access the remote excel file by using the [`created`](https:/
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs2" %}
### Open an excel file from blob data
@@ -86,15 +86,15 @@ Please find the code to fetch the blob data and load it into the Spreadsheet com
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-from-blobdata-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-from-blobdata-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-from-blobdata-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-from-blobdata-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-from-blobdata-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-from-blobdata-cs1" %}
### Open an Excel file located on a server
@@ -261,15 +261,15 @@ The following code example shows how to open the spreadsheet data as base64 stri
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/base-64-string/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/base-64-string/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/base-64-string/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/base-64-string/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/base-64-string" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/base-64-string" %}
### Open excel file into a read-only mode
@@ -277,15 +277,15 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs12/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs12/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs12/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs12/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs12" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs12" %}
@@ -318,15 +318,15 @@ The following code snippet demonstrates how to configure the deserialization opt
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-from-json/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-from-json/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-from-json/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-from-json/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-from-json" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-from-json" %}
### Improving Excel file open performance with parsing options
@@ -437,15 +437,15 @@ You can add your own custom header to the open action in the Spreadsheet. For pr
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs8/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs8/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs8/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs8/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs8" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs8" %}
### External workbook confirmation dialog
@@ -477,15 +477,15 @@ The following sample shows the `Save` option by using the [`saveUrl`](https://ej
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs3" %}
Please find the below table for the beforeSave event arguments.
@@ -511,15 +511,15 @@ Please find below the code to retrieve blob data from the Spreadsheet component
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/save-as-blobdata-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/save-as-blobdata-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/save-as-blobdata-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/save-as-blobdata-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/save-as-blobdata-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/save-as-blobdata-cs1" %}
### Save an Excel file to a server
@@ -700,15 +700,15 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/base-64-string/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/base-64-string/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/base-64-string/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/base-64-string/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/base-64-string" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/base-64-string" %}
### Configure JSON serialization options
@@ -738,15 +738,15 @@ The following code snippet demonstrates how to configure the serialization optio
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/save-as-json/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/save-as-json/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/save-as-json/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/save-as-json/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/save-as-json" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/save-as-json" %}
### Send and receive custom params from client to server
@@ -754,15 +754,15 @@ Passing the custom parameters from client to server by using [`beforeSave`](http
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs4/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs4/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs4/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs4/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs4" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs4" %}
Server side code snippets:
@@ -781,15 +781,15 @@ You can add your own custom header to the save action in the Spreadsheet. For pr
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs11/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs11/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs11/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs11/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs11" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs11" %}
### Change the PDF orientation
@@ -802,15 +802,15 @@ The possible values are:
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs6/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs6/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs6/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs6/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs6" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs6" %}
@@ -821,15 +821,15 @@ To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using [
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs5/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs5/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/open-save-cs5/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/open-save-cs5/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/open-save-cs5" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/open-save-cs5" %}
## Server Configuration
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/print.md b/Document-Processing/Excel/Spreadsheet/Angular/print.md
index 64343aa6b..7968c9b06 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/print.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/print.md
@@ -31,15 +31,15 @@ The `printOptions` contain three properties, as described below.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/print-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/print-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/print-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/print-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/print-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/print-cs2" %}
## Disable printing
@@ -49,15 +49,15 @@ The printing functionality in the Spreadsheet can be disabled by setting the [`a
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/print-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/print-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/print-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/print-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/print-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/print-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md
index b421880d6..80d36a7e9 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md
@@ -46,15 +46,15 @@ The following example shows `Protect Sheet` functionality with password in the S
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/protect-sheet-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/protect-sheet-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/protect-sheet-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/protect-sheet-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/protect-sheet-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/protect-sheet-cs1" %}
### Limitations of Protect sheet
@@ -78,15 +78,15 @@ In protected spreadsheet, to make some particular cell or range of cells are edi
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/lock-cells-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/lock-cells-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/lock-cells-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/lock-cells-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/lock-cells-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/lock-cells-cs1" %}
## Make cells read-only without protecting worksheet
@@ -142,15 +142,15 @@ The following example demonstrates how to make rows, columns, and cells read-onl
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/readonly-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/readonly-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/readonly-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/readonly-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/readonly-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/readonly-cs1" %}
## Protect Workbook
@@ -168,29 +168,29 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs4/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs4/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs4/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs4/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/local-data-binding-cs4" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/local-data-binding-cs4" %}
The following example shows `Protect Workbook` by using the [`password`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#password) property in the Spreadsheet control. To unprotect the workbook, click the unprotect workbook button in the data tab and provide the password as syncfusion® in the dialog box.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs5/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs5/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/local-data-binding-cs5/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/local-data-binding-cs5/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/local-data-binding-cs5" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/local-data-binding-cs5" %}
## Unprotect Workbook
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md b/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md
index d3c8f2ade..df34b825a 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md
@@ -31,15 +31,15 @@ The following code example shows the usage of ribbon customization.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/ribbon/cutomization-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/ribbon/cutomization-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/ribbon/cutomization-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/ribbon/cutomization-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "page.domainurl/samples/excel/spreadsheet/angular/ribbon/cutomization-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/ribbon/cutomization-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md
index 787f6adde..d6972d6c6 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md
@@ -30,15 +30,15 @@ The following code example shows the options for inserting rows in the spreadshe
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert/row-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/insert/row-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert/row-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/insert/row-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/insert/row-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/insert/row-cs1" %}
### Column
@@ -51,15 +51,15 @@ The following code example shows the options for inserting columns in the spread
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert/column-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/insert/column-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert/column-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/insert/column-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/insert/column-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/insert/column-cs1" %}
## Delete
@@ -74,15 +74,15 @@ The following code example shows the delete operation of rows and columns in the
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/delete/row-column-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/delete/row-column-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/delete/row-column-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/delete/row-column-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/delete/row-column-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/delete/row-column-cs1" %}
## Limitations
@@ -117,15 +117,15 @@ The following code example shows the hide/show rows and columns operation in the
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/hide-show-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/hide-show-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/hide-show-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/hide-show-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/hide-show-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/hide-show-cs1" %}
## Changing text in column headers
@@ -135,15 +135,15 @@ The following code example shows how to change the text in the column headers.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/column-header-change-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/column-header-change-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/column-header-change-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/column-header-change-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/column-header-change-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/column-header-change-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md b/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md
index 546f02c55..3f96267b8 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md
@@ -52,15 +52,15 @@ The following code example shows the finite scrolling with defined rows and colu
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/scrolling-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/scrolling-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/scrolling-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/scrolling-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/scrolling-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/scrolling-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/searching.md b/Document-Processing/Excel/Spreadsheet/Angular/searching.md
index a3938bb7b..31387aa65 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/searching.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/searching.md
@@ -64,15 +64,15 @@ In the following sample, searching can be done by following ways:
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/searching-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/searching-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/searching-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/searching-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/searching-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/searching-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/selection.md b/Document-Processing/Excel/Spreadsheet/Angular/selection.md
index 3caacd6a4..56d8e6039 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/selection.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/selection.md
@@ -48,15 +48,15 @@ The following sample shows the row selection in the spreadsheet, here selecting
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selection-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/selection-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selection-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/selection-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/selection-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/selection-cs1" %}
## Column selection
@@ -75,15 +75,15 @@ The following sample shows the column selection in the spreadsheet, here selecti
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selection-cs2/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/selection-cs2/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selection-cs2/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/selection-cs2/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/selection-cs2" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/selection-cs2" %}
## Get selected cell values
@@ -91,15 +91,15 @@ You can select single or multiple cells, rows, or columns using mouse and keyboa
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selected-cell-values/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/selected-cell-values/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selected-cell-values/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/selected-cell-values/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/selected-cell-values" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/selected-cell-values" %}
## Remove Selection
@@ -107,15 +107,15 @@ The following sample shows, how to remove the selection in the spreadsheet. Here
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selection-cs3/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/selection-cs3/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/selection-cs3/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/selection-cs3/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/selection-cs3" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/selection-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/sort.md b/Document-Processing/Excel/Spreadsheet/Angular/sort.md
index 2bffacf52..34fef93f8 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/sort.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/sort.md
@@ -37,15 +37,15 @@ The following code example shows `sort` functionality in the Spreadsheet control
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/sort-by-cell-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/sort-by-cell-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/sort-by-cell-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/sort-by-cell-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/sort-by-cell-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/sort-by-cell-cs1" %}
## Data contains header
@@ -113,15 +113,15 @@ The multi-column sorting can also be performed manually by passing sort options
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/passing-sort-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/passing-sort-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/passing-sort-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/passing-sort-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/passing-sort-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/passing-sort-cs1" %}
## Custom sort comparer
@@ -141,15 +141,15 @@ In the following demo, the `Trustworthiness` column is sorted based on the custo
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/custom-sort-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/custom-sort-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/custom-sort-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/custom-sort-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/custom-sort-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/custom-sort-cs1" %}
## Known error validations
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/template.md b/Document-Processing/Excel/Spreadsheet/Angular/template.md
index e38837768..5bb435bb5 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/template.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/template.md
@@ -17,15 +17,15 @@ Sample link: [`Cell template`](https://document.syncfusion.com/demos/spreadsheet
+{% previewsample "/document-processing/samples/spreadsheet/angular/template-cs1" %} -->
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/undo-redo.md b/Document-Processing/Excel/Spreadsheet/Angular/undo-redo.md
index 0e3774d5c..6298c0b11 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/undo-redo.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/undo-redo.md
@@ -39,15 +39,15 @@ The following code example shows `How to update and customize your own actions f
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/undo-redo-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/undo-redo-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/undo-redo-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/undo-redo-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/undo-redo-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/undo-redo-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Angular/worksheet.md b/Document-Processing/Excel/Spreadsheet/Angular/worksheet.md
index 5de498508..1e7cfc59d 100644
--- a/Document-Processing/Excel/Spreadsheet/Angular/worksheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Angular/worksheet.md
@@ -23,15 +23,15 @@ The following code example shows the insert sheet operation in spreadsheet.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert/sheet-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/insert/sheet-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert/sheet-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/insert/sheet-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/insert/sheet-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/insert/sheet-cs1" %}
### Insert a sheet programmatically and make it active sheet
@@ -41,15 +41,15 @@ The following code example shows how to insert a sheet programmatically and make
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert-sheet-change-active-sheet-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/insert-sheet-change-active-sheet-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/insert-sheet-change-active-sheet-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/insert-sheet-change-active-sheet-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/insert-sheet-change-active-sheet-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/insert-sheet-change-active-sheet-cs1" %}
## Delete sheet
@@ -82,15 +82,15 @@ The following code example shows the headers and gridlines operation in spreadsh
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/headers-gridlines-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/headers-gridlines-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/headers-gridlines-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/headers-gridlines-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/headers-gridlines-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/headers-gridlines-cs1" %}
## Sheet visibility
@@ -108,15 +108,15 @@ The following code example shows the three types of sheet visibility state.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/sheet-visibility-cs1/src/app.component.ts %}
+{% include code-snippet/spreadsheet/angular/sheet-visibility-cs1/src/app.component.ts %}
{% endhighlight %}
{% highlight ts tabtitle="main.ts" %}
-{% include code-snippet/excel/spreadsheet/angular/sheet-visibility-cs1/src/main.ts %}
+{% include code-snippet/spreadsheet/angular/sheet-visibility-cs1/src/main.ts %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/samples/excel/spreadsheet/angular/sheet-visibility-cs1" %}
+{% previewsample "/document-processing/samples/spreadsheet/angular/sheet-visibility-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Blazor/cell-range.md b/Document-Processing/Excel/Spreadsheet/Blazor/cell-range.md
index 221fddb91..fec807552 100644
--- a/Document-Processing/Excel/Spreadsheet/Blazor/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/Blazor/cell-range.md
@@ -43,7 +43,10 @@ Cell formatting options include:
* **Middle** – Centers content vertically
* **Bottom** – Default alignment
-* **Wrap Text** - Displays long content on multiple lines within a single cell, preventing it from overflowing into adjacent cells.
+* **Wrap Text** - Displays long content on multiple lines within a single cell, preventing it from overflowing into adjacent cells. To enable text wrapping:
+ 1. Select the target cell or range (e.g., C5).
+ 2. Go to the Home tab.
+ 3. Click Wrap Text in the ribbon to toggle text wrapping for the selected cells.
Cell formatting can be applied to or removed from a cell or range of cells by using the formatting options available in the Ribbon toolbar under the **Home** tab.
@@ -121,4 +124,4 @@ The clear support can be applied using the following way:
The following image displays the clear options available in the Ribbon toolbar under the **Home** tab of the Blazor Spreadsheet.
-
\ No newline at end of file
+
diff --git a/Document-Processing/Excel/Spreadsheet/Blazor/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/Blazor/rows-and-columns.md
new file mode 100644
index 000000000..8b951d69d
--- /dev/null
+++ b/Document-Processing/Excel/Spreadsheet/Blazor/rows-and-columns.md
@@ -0,0 +1,160 @@
+---
+layout: post
+title: Rows and columns in Blazor Spreadsheet component | Syncfusion
+description: Checkout and learn here all about Rows and columns in the Syncfusion Blazor Spreadsheet component and more.
+platform: document-processing
+control: Spreadsheet
+documentation: ug
+---
+
+# Rows and columns in Blazor Spreadsheet component
+
+Spreadsheet is a tabular format consisting of rows and columns. The intersection point of rows and columns are called as cells. The list of operations that you can perform in rows and columns are,
+
+* Insert
+* Setting Column and Row Count
+
+## Insert
+
+You can insert rows or columns anywhere in a spreadsheet.
+
+### Row
+
+The rows can be inserted in the following ways,
+
+* Using [`InsertRowAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertRowAsync_System_Int32_System_Int32_System_Object_Syncfusion_Blazor_Spreadsheet_RowPosition_) method, you can insert the rows once the component is loaded.
+* Using context menu, insert the rows in the desired position.
+
+The following code example shows the options for inserting rows in the spreadsheet.
+
+{% tabs %}
+{% highlight razor tabtitle="Index.razor" %}
+
+@using Syncfusion.Blazor.Spreadsheet
+@using Syncfusion.Blazor.Buttons
+
+
+
+
+
+
+@code {
+ public byte[] DataSourceBytes { get; set; }
+ public SfSpreadsheet SpreadsheetInstance;
+
+ protected override void OnInitialized()
+ {
+ string filePath = "wwwroot/Sample.xlsx";
+ DataSourceBytes = File.ReadAllBytes(filePath);
+ }
+
+ public async Task InsertRowsHandler()
+ {
+ // Insert 2 rows above row index 0 in the active sheet
+ await SpreadsheetInstance.InsertRowAsync(0, 2);
+
+ // Insert 3 rows below row index 2 in the sheet named "Sheet2"
+ await SpreadsheetInstance.InsertRowAsync(2, 3, "Sheet2", RowPosition.Below);
+
+ // Insert 1 row above row index 1 in the active sheet
+ await SpreadsheetInstance.InsertRowAsync(1, 1, null, RowPosition.Above);
+
+ // Insert 4 rows below row index 3 in the sheet at index 3
+ await SpreadsheetInstance.InsertRowAsync(3, 4, 3, RowPosition.Below);
+ }
+}
+
+{% endhighlight %}
+{% endtabs %}
+
+### Column
+
+The columns can be inserted in the following ways,
+
+* Using [`InsertColumnAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertColumnAsync_System_Int32_System_Int32_System_Object_Syncfusion_Blazor_Spreadsheet_ColumnPosition_) method, you can insert the columns once the component is loaded.
+* Using context menu, insert the columns in the desired position.
+
+The following code example shows the options for inserting columns in the spreadsheet.
+
+{% tabs %}
+{% highlight razor tabtitle="Index.razor" %}
+
+@using Syncfusion.Blazor.Spreadsheet
+@using Syncfusion.Blazor.Buttons
+
+
+
+
+
+
+@code {
+ public byte[] DataSourceBytes { get; set; }
+ public SfSpreadsheet SpreadsheetInstance;
+
+ protected override void OnInitialized()
+ {
+ string filePath = "wwwroot/Sample.xlsx";
+ DataSourceBytes = File.ReadAllBytes(filePath);
+ }
+
+ public async Task InsertColumnsHandler()
+ {
+ // Insert 2 columns to the right of column index 2
+ await SpreadsheetInstance.InsertColumnAsync(2, 2);
+
+ // Insert 3 columns to the left of column index 5
+ await SpreadsheetInstance.InsertColumnAsync(5, 3, null, ColumnPosition.Left);
+
+ // Insert 1 column to the right of column B in Sheet2
+ await SpreadsheetInstance.InsertColumnAsync(1, 1, "Sheet2", ColumnPosition.Right);
+
+ // Insert 4 columns to the left of column D in the sheet at index 3
+ await SpreadsheetInstance.InsertColumnAsync(3, 4, 3, ColumnPosition.Left);
+ }
+}
+
+{% endhighlight %}
+{% endtabs %}
+
+## Setting Row and Column Count
+
+The Blazor Spreadsheet component enables you to define the initial number of rows and columns using the [`RowCount`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_RowCount) and [`ColumnCount`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_ColumnCount) properties.
+
+* The default `RowCount` is **1000**.
+* The default `ColumnCount` is **200**.
+
+### Rendering Behavior
+
+- **Without Data Source:**
+
+ - When no data is bound to the spreadsheet, the sheet renders empty cells up to the specified row and column counts.
+
+- **With Data Source (e.g., byte array or imported file):**
+
+ - If the data source contains fewer rows and columns than the specified row and column counts, the spreadsheet renders additional empty rows and columns to meet those counts.
+ - If the data source contains more rows and columns than the specified row and column counts, the spreadsheet renders enough rows and columns to display all the data (i.e., it extends beyond those counts to fit the data). Your data is never truncated by these properties.
+
+
+You can set these properties as follows:
+
+{% tabs %}
+{% highlight razor tabtitle="Index.razor" %}
+
+@using Syncfusion.Blazor.Spreadsheet
+
+
+
+
+
+@code {
+ public byte[] DataSourceBytes { get; set; }
+
+ protected override void OnInitialized()
+ {
+ string filePath = "wwwroot/Sample.xlsx";
+ DataSourceBytes = File.ReadAllBytes(filePath);
+ }
+}
+
+{% endhighlight %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/cell-range.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/cell-range.md
index da76fd46f..b3b91ff2e 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/cell-range.md
@@ -26,14 +26,14 @@ The following code example shows the wrap text functionality in spreadsheet.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/wrap-text-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/wrap-text-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/wrap-text-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/wrap-text-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/wrap-text-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/wrap-text-cs1" %}
### Limitations of Wrap text
@@ -65,14 +65,14 @@ The following code example shows the merge cells operation in spreadsheet.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/merge-cells-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/merge-cells-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/merge-cells-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/merge-cells-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/merge-cells-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/merge-cells-cs1" %}
### Limitations of Merge
@@ -124,14 +124,14 @@ You can clear the highlighted invalid data by using the following ways,
* Use the [`removeInvalidHighlight()`](https://ej2.syncfusion.com/javascript/documentation/api/spreadsheet/#removeinvalidhighlight) method programmatically.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-validation-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-validation-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-validation-cs1" %}
### Custom Data validation
@@ -152,14 +152,14 @@ The following code example demonstrates how to add custom data validation with a
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-validation-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-validation-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-validation-cs3" %}
### Limitations of Data validation
@@ -235,14 +235,14 @@ In the following sample, you can enable/disable the fill option on the button cl
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/autofill-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/autofill-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/autofill-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/autofill-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/autofill-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/autofill-cs1" %}
### Limitations of Autofill
@@ -277,14 +277,14 @@ Clear the cell contents and formats in the Spreadsheet document by using the [cl
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/clear-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/clear-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/clear-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/clear-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/clear-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/clear-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/clipboard.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/clipboard.md
index cd70c55a2..afd28cdee 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/clipboard.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/clipboard.md
@@ -64,14 +64,14 @@ Paste can be done in one of the following ways.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/clipboard-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/clipboard-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/clipboard-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/clipboard-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/clipboard-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/clipboard-cs1" %}
## Prevent the paste functionality
@@ -80,14 +80,14 @@ The following example shows, how to prevent the paste action in spreadsheet. In
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/clipboard-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/clipboard-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/clipboard-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/clipboard-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/clipboard-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/clipboard-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/context-menu.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/context-menu.md
index 45e9273e3..9653ba8f2 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/context-menu.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/context-menu.md
@@ -70,14 +70,14 @@ In this demo, Custom Item is added after the Paste item in the context menu.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/contextmenu/addContextMenu-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/contextmenu/addContextMenu-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/contextmenu/addContextMenu-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/contextmenu/addContextMenu-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/contextmenu/addContextMenu-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/contextmenu/addContextMenu-cs1" %}
### Remove Context Menu Items
@@ -87,14 +87,14 @@ In this demo, Insert Column item has been removed from the row/column header con
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/contextmenu/removeContextMenu-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/contextmenu/removeContextMenu-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/contextmenu/removeContextMenu-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/contextmenu/removeContextMenu-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/contextmenu/removeContextMenu-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/contextmenu/removeContextMenu-cs1" %}
### Enable/Disable Context Menu Items
@@ -104,14 +104,14 @@ In this demo, Rename item is disabled in the pager context menu.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/contextmenu/enableContextMenuItems-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/contextmenu/enableContextMenuItems-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/contextmenu/enableContextMenuItems-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/contextmenu/enableContextMenuItems-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/contextmenu/enableContextMenuItems-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/contextmenu/enableContextMenuItems-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-binding.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-binding.md
index 526b48e26..0f7e5d038 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-binding.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-binding.md
@@ -21,14 +21,14 @@ Refer to the following code example for local data binding.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-binding-cs1" %}
> The local data source can also be provided as an instance of the [`DataManager`](https://helpej2.syncfusion.com/javascript/documentation/data/). By default, [`DataManager`](https://helpej2.syncfusion.com/javascript/documentation/data/) uses [`JsonAdaptor`](https://ej2.syncfusion.com/javascript/documentation/data/adaptors#json-adaptor) for local data-binding.
@@ -42,14 +42,14 @@ The following code example demonstrates how to customize the mapping of column d
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/field-mapping-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/field-mapping-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/field-mapping-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/field-mapping-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/field-mapping-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/field-mapping-cs1" %}
## Remote data
@@ -59,14 +59,14 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-binding-cs2" %}
> By default, `DataManager` uses **ODataAdaptor** for remote data-binding.
@@ -76,14 +76,14 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-binding-cs3" %}
### Web API
@@ -91,14 +91,14 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs4/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs4/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs4/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs4/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs4" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-binding-cs4" %}
## Cell data binding
@@ -109,14 +109,14 @@ Refer to the following code example for cell data binding.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs5/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs5/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs5/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-binding-cs5/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-binding-cs5" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-binding-cs5" %}
> The cell data binding also supports formula, style, number format, and more.
@@ -138,14 +138,14 @@ The following table defines the arguments of the `dataSourceChanged` event.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/dynamic-data-binding-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/dynamic-data-binding-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/dynamic-data-binding-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/dynamic-data-binding-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/dynamic-data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/dynamic-data-binding-cs1" %}
## Dynamic data binding using updateRange method
@@ -157,14 +157,14 @@ The following code example demonstrates how to dynamically update data using the
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/dynamic-data-binding-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/dynamic-data-binding-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/dynamic-data-binding-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/dynamic-data-binding-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/dynamic-data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/dynamic-data-binding-cs2" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-validation.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-validation.md
index 901aa28d0..bf845cb1c 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-validation.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/data-validation.md
@@ -51,14 +51,14 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/data-validation-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/data-validation-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/data-validation-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/data-validation-cs2" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/editing.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/editing.md
index a7dec651a..1f247d85a 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/editing.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/editing.md
@@ -45,14 +45,14 @@ The following sample shows how to prevent the editing and cell save. Here `E` co
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/editing-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/editing-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/editing-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/editing-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/editing-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/editing-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/filter.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/filter.md
index d0b462244..e6afe3de0 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/filter.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/filter.md
@@ -39,14 +39,14 @@ The following code example shows `filter` functionality in the Spreadsheet contr
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/filter-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/filter-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/filter-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/filter-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/filter-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/filter-cs1" %}
## Filter by cell value
@@ -89,14 +89,14 @@ The following code example shows how to get the filtered rows.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/filter-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/filter-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/filter-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/filter-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/filter-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/filter-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formatting.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formatting.md
index b954e960e..8d73209b7 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formatting.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formatting.md
@@ -94,14 +94,14 @@ The following code example shows the number formatting in cell data.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/format/number-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/format/number-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/format/number-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/format/number-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/format/number-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/format/number-cs1" %}
## Configure culture-based custom format
@@ -146,14 +146,14 @@ The following code example demonstrates how to configure culture-based formats f
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/format/globalization-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/format/globalization-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/format/globalization-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/format/globalization-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/format/globalization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/format/globalization-cs1" %}
## Text and cell formatting
@@ -216,14 +216,14 @@ The following code example shows the style formatting in text and cells of the s
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/format/cell-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/format/cell-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/format/cell-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/format/cell-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/format/cell-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/format/cell-cs1" %}
### Limitations of Formatting
@@ -317,14 +317,14 @@ You can clear the defined rules by using one of the following ways,
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/conditional-formatting-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/conditional-formatting-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/conditional-formatting-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/conditional-formatting-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/conditional-formatting-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/conditional-formatting-cs1" %}
### Limitations of Conditional formatting
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formulas.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formulas.md
index b995831f0..9d9cea627 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formulas.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/formulas.md
@@ -32,14 +32,14 @@ In the example below, the Spreadsheet component is rendered with the `German` [`
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/formula-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/formula-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/formula-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/formula-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/formula-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/formula-cs3" %}
## Create User Defined Functions / Custom Functions
@@ -51,14 +51,14 @@ The following code example shows an unsupported formula in the spreadsheet.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/formula-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/formula-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/formula-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/formula-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/formula-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/formula-cs1" %}
Second, if you want to directly compute any formula or expression, you can use the [computeExpression](https://ej2.syncfusion.com/javascript/documentation/api/spreadsheet/#computeexpression) method. This method will work for both built-in and used-defined/custom formula.
@@ -66,14 +66,14 @@ The following code example shows how to use `computeExpression` method in the sp
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/formula-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/formula-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/formula-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/formula-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/formula-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/formula-cs2" %}
## Formula bar
@@ -92,14 +92,14 @@ The following code example shows the usage of named ranges support.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/defined-name-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/defined-name-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/defined-name-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/defined-name-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/defined-name-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/defined-name-cs1" %}
## Calculation Mode
@@ -120,14 +120,14 @@ The following code example demonstrates how to set the Automatic calculation mod
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/calculation-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/calculation-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/calculation-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/calculation-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/calculation-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/calculation-cs1" %}
### Manual Mode
@@ -142,14 +142,14 @@ The following code example demonstrates how to set the Manual calculation mode i
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/calculation-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/calculation-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/calculation-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/calculation-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/calculation-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/calculation-cs2" %}
## Supported Formulas
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/freeze-pane.md
index 3cfc02502..2947bd134 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/freeze-pane.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/freeze-pane.md
@@ -46,14 +46,14 @@ In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/freezepane-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/freezepane-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/freezepane-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/freezepane-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/freezepane-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/freezepane-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/getting-started.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/getting-started.md
index 2893b38c6..9cb649663 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/getting-started.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/getting-started.md
@@ -266,14 +266,14 @@ Output will be displayed as follows.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/spreadsheet/es5-getting-started-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/spreadsheet/es5-getting-started-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/spreadsheet/es5-getting-started-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/spreadsheet/es5-getting-started-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/spreadsheet/es5-getting-started-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/spreadsheet/es5-getting-started-cs1" %}
> You can refer to our [JavaScript Spreadsheet](https://www.syncfusion.com/spreadsheet-editor-sdk/javascript-spreadsheet-editor) feature tour page for its groundbreaking feature representations. You can also explore our [JavaScript Spreadsheet example](https://document.syncfusion.com/demos/spreadsheet-editor/javascript-es5/#/tailwind3/spreadsheet/default.html) to knows how present and manipulate data, including editing, formulas, formatting, importing, and exporting.
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/global-local.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/global-local.md
index d464f3a69..233a5791f 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/global-local.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/global-local.md
@@ -383,14 +383,14 @@ The following example demonstrates the Spreadsheet in `French` culture. In the b
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/global/locale-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/global/locale-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/global/locale-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/global/locale-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/global/locale-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/global/locale-cs1" %}
## Internationalization
@@ -400,14 +400,14 @@ The following example demonstrates the Spreadsheet in French [`fr-CH`] culture.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/global/internationalization-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/global/internationalization-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/global/internationalization-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/global/internationalization-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/global/internationalization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/global/internationalization-cs1" %}
## Right to left (RTL)
@@ -415,14 +415,14 @@ RTL provides an option to switch the text direction and layout of the Spreadshee
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/global/rtl-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/global/rtl-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/global/rtl-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/global/rtl-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/global/rtl-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/global/rtl-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/change-active-sheet.md
index 319fa9a84..bd74c5987 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/change-active-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/change-active-sheet.md
@@ -16,11 +16,11 @@ The following code example shows how to set the active sheet when importing an E
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/change-active-sheet-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/change-active-sheet-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/change-active-sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/change-active-sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/change-active-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/change-active-sheet-cs1" %}
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/create-a-object-structure.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/create-a-object-structure.md
index 023fb118f..a492de01d 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/create-a-object-structure.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/create-a-object-structure.md
@@ -171,11 +171,11 @@ In the following demo, the JSON structure is passed to the `openFromJson` method
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/json-structure-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/json-structure-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/json-structure-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/json-structure-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/json-structure-cs1" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/json-structure-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/identify-the-context-menu-opened.md
index 2083145f1..9bb2037fb 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/identify-the-context-menu-opened.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/how-to/identify-the-context-menu-opened.md
@@ -24,11 +24,11 @@ The following code example shows how to identify the context menu opened.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/find-target-context-menu/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/find-target-context-menu/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/find-target-context-menu/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/find-target-context-menu/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/find-target-context-menu" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/find-target-context-menu" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/illustrations.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/illustrations.md
index b9a55f65d..c58632d23 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/illustrations.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/illustrations.md
@@ -70,14 +70,14 @@ Image feature allows you to view and insert an image in a spreadsheet, and you c
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/image-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/image-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/image-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/image-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/image-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/image-cs1" %}
### Limitations of Image
@@ -128,14 +128,14 @@ The available arguments in the `ChartModel` are:
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/chart-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/chart-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/chart-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/chart-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/chart-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/chart-cs2" %}
### Delete Chart
@@ -159,14 +159,14 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/chart-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/chart-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/chart-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/chart-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/chart-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/chart-cs1" %}
#### Customization of line chart markers
@@ -174,14 +174,14 @@ Using the [`actionBegin`](https://ej2.syncfusion.com/javascript/documentation/ap
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/chart-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/chart-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/chart-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/chart-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/chart-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/chart-cs3" %}
### Limitations of Chart
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/link.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/link.md
index 843cbeeff..1bdd97201 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/link.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/link.md
@@ -56,14 +56,14 @@ There is an event named `beforeHyperlinkClick` which triggers only on clicking h
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/link-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/link-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/link-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/link-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/link-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/link-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/notes.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/notes.md
index e1f6c8126..9f4ac3852 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/notes.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/notes.md
@@ -19,14 +19,14 @@ In the below example, you can add, edit, save, and delete notes.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/note-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/note-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/note-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/note-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/note-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/note-cs1" %}
## Adding a note
@@ -71,14 +71,14 @@ In the below example, the note functionality is disabled in the Spreadsheet.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/note-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/note-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/note-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/note-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/note-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/note-cs2" %}
## Integrating notes during initial loading and using cell data binding
@@ -86,14 +86,14 @@ The notes can be added initially when the Spreadsheet loads using cell data bind
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/note-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/note-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/note-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/note-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/note-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/note-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open-save.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open-save.md
index 74deeee95..7b69bbb9d 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open-save.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open-save.md
@@ -23,14 +23,14 @@ The following sample shows the `Open` option by using the [`openUrl`](https://ej
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs1" %}
Please find the below table for the beforeOpen event arguments.
@@ -49,14 +49,14 @@ If you explore your machine to select and upload an excel document using the fil
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/import-using-uploader/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/import-using-uploader/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/import-using-uploader/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/import-using-uploader/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/import-using-uploader" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/import-using-uploader" %}
### Open an external URL excel file while initial load
@@ -64,14 +64,14 @@ You can achieve to access the remote excel file by using the [`created`](https:/
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs2" %}
### Open an excel file from blob data
@@ -81,14 +81,14 @@ Please find the code to fetch the blob data and load it into the Spreadsheet con
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-from-blobdata-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-from-blobdata-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-from-blobdata-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-from-blobdata-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-from-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-from-blobdata-cs1" %}
### Open an Excel file located on a server
@@ -238,14 +238,14 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/base-64-string/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/base-64-string/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/base-64-string/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/base-64-string/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/base-64-string" %}
### Open excel file into a read-only mode
@@ -253,14 +253,14 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs4/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs4/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs4/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs4/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs4" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs4" %}
### Configure JSON deserialization options
@@ -290,14 +290,14 @@ The following code snippet demonstrates how to configure the deserialization opt
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-from-json/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-from-json/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-from-json/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-from-json/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-from-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-from-json" %}
### Improving Excel file open performance with parsing options
@@ -395,14 +395,14 @@ You can add your own custom header to the open action in the Spreadsheet. For pr
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs3" %}
### External workbook confirmation dialog
@@ -444,14 +444,14 @@ The following sample shows the `Save` option by using the [`saveUrl`](https://ej
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs5/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs5/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs5/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs5/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs5" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs5" %}
Please find the below table for the beforeSave event arguments.
@@ -478,14 +478,14 @@ Please find below the code to retrieve blob data from the Spreadsheet control be
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/save-as-blobdata-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/save-as-blobdata-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/save-as-blobdata-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/save-as-blobdata-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/save-as-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/save-as-blobdata-cs1" %}
### Save an Excel file to a server
@@ -650,14 +650,14 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/base-64-string/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/base-64-string/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/base-64-string/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/base-64-string/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/base-64-string" %}
### Configure JSON serialization options
@@ -687,14 +687,14 @@ The following code snippet demonstrates how to configure the serialization optio
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/save-as-json/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/save-as-json/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/save-as-json/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/save-as-json/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/save-as-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/save-as-json" %}
### Send and receive custom params from client to server
@@ -703,14 +703,14 @@ Passing the custom parameters from client to server by using [`beforeSave`](http
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs6/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs6/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs6/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs6/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs6" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs6" %}
Server side code snippets:
@@ -729,14 +729,14 @@ You can add your own custom header to the save action in the Spreadsheet. For pr
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs7/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs7/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs7/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs7/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs7" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs7" %}
### Change the PDF orientation
@@ -749,14 +749,14 @@ The possible values are:
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs8/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs8/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-save-cs8/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-save-cs8/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-save-cs8" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-save-cs8" %}
### Supported file formats
@@ -773,14 +773,14 @@ To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using [
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/save-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/save-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/save-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/save-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/save-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/save-cs1" %}
## Server Configuration
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open.md
index 16712f213..1ae17ba44 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/open.md
@@ -25,11 +25,11 @@ The following code example shows `Open` option in the Spreadsheet control.
{% tabs %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/open-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/open-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/open-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/open-cs1" %}
> * Use `Ctrl + O` keyboard shortcut to open Excel documents.
> * The default value of the [allowOpen](../api/spreadsheet/#allowopen) property is `true`. For demonstration purpose, we have showcased the [allowOpen](../api/spreadsheet/#allowopen) property in previous code snippet.
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/print.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/print.md
index b35394e64..e019d3a43 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/print.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/print.md
@@ -31,14 +31,14 @@ The `printOptions` contain three properties, as described below.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/print-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/print-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/print-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/print-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/print-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/print-cs2" %}
## Disable printing
@@ -48,14 +48,14 @@ The printing functionality in the Spreadsheet can be disabled by setting the [`a
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/print-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/print-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/print-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/print-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/print-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/print-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/protect-sheet.md
index a81e752ff..c5b121eb6 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/protect-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/protect-sheet.md
@@ -49,14 +49,14 @@ The following example shows `Protect Sheet` functionality with password in the S
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-sheet-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-sheet-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/protect-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/protect-sheet-cs1" %}
### Limitations of Protect sheet
@@ -81,14 +81,14 @@ In protected spreadsheet, to make some particular cell or range of cells are edi
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-sheet-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-sheet-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-sheet-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-sheet-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/protect-sheet-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/protect-sheet-cs2" %}
## Make cells read-only without protecting worksheet
@@ -140,14 +140,14 @@ The following example demonstrates how to make rows, columns, and cells read-onl
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/readonly-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/readonly-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/readonly-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/readonly-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/readonly-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/readonly-cs1" %}
## Protect Workbook
@@ -167,27 +167,27 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-workbook/default-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-workbook/default-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-workbook/default-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-workbook/default-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/protect-workbook/default-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/protect-workbook/default-cs1" %}
The following example shows `Protect Workbook` by using the [`password`](https://ej2.syncfusion.com/javascript/documentation/api/spreadsheet/#password) property in the Spreadsheet control. To unprotect the workbook, click the unprotect workbook button in the data tab and provide the password as syncfusion® in the dialog box.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-workbook/default-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-workbook/default-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/protect-workbook/default-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/protect-workbook/default-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/protect-workbook/default-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/protect-workbook/default-cs2" %}
## Unprotect Workbook
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/ribbon.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/ribbon.md
index 8082c08b2..3b53cb484 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/ribbon.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/ribbon.md
@@ -31,14 +31,14 @@ The following code example shows the usage of ribbon customization.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/ribbon/cutomization-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/ribbon/cutomization-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/ribbon/cutomization-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/ribbon/cutomization-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/ribbon/cutomization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/ribbon/cutomization-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/rows-and-columns.md
index 10e5ed0a7..aa44f2775 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/rows-and-columns.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/rows-and-columns.md
@@ -30,14 +30,14 @@ The following code example shows the options for inserting rows in the spreadshe
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert/row-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/insert/row-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert/row-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/insert/row-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/insert/row-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/insert/row-cs1" %}
### Column
@@ -50,14 +50,14 @@ The following code example shows the options for inserting columns in the spread
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert/column-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/insert/column-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert/column-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/insert/column-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/insert/column-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/insert/column-cs1" %}
## Delete
@@ -72,14 +72,14 @@ The following code example shows the delete operation of rows and columns in the
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/delete/row-column-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/delete/row-column-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/delete/row-column-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/delete/row-column-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/delete/row-column-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/delete/row-column-cs1" %}
## Limitations of insert and delete
@@ -114,14 +114,14 @@ The following code example shows the hide/show rows and columns operation in the
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/hide-show-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/hide-show-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/hide-show-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/hide-show-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/hide-show-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/hide-show-cs1" %}
## Size
@@ -142,14 +142,14 @@ The following code example shows how to change the height for single/multiple ro
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/row-height-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/row-height-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/row-height-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/row-height-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/row-height-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/row-height-cs1" %}
### Column
@@ -166,14 +166,14 @@ The following code example shows how to change the width for single/multiple col
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/column-width-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/column-width-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/column-width-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/column-width-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/column-width-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/column-width-cs1" %}
## Changing text in column headers
@@ -183,14 +183,14 @@ The following code example shows how to change the text in the column headers.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/column-header-change-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/column-header-change-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/column-header-change-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/column-header-change-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/column-header-change-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/column-header-change-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/save.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/save.md
index 45d88a5a2..ede189cf0 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/save.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/save.md
@@ -25,11 +25,11 @@ The following code example shows `Save` option in the Spreadsheet control.
{% tabs %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/save-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/save-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/save-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/save-cs2" %}
> * Use `Ctrl + S` keyboard shortcut to save the Spreadsheet data as Excel file.
> * The default value of [allowSave](../api/spreadsheet/#allowsave) property is `true`. For demonstration purpose, we have showcased the [allowSave](../api/spreadsheet/#allowsave) property in previous code snippet.
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/scrolling.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/scrolling.md
index e32f0e59e..1c9607305 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/scrolling.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/scrolling.md
@@ -52,11 +52,11 @@ The following code example shows the finite scrolling with defined rows and colu
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/scrolling-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/scrolling-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/scrolling-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/scrolling-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/scrolling-cs1" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/scrolling-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/searching.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/searching.md
index db842db49..7a055f1bc 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/searching.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/searching.md
@@ -64,14 +64,14 @@ In the following sample, searching can be done by following ways:
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/searching-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/searching-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/searching-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/searching-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/searching-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/searching-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/selection.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/selection.md
index b89763d65..e6ec4a77e 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/selection.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/selection.md
@@ -48,14 +48,14 @@ The following sample shows the row selection in the spreadsheet, here selecting
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selection-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/selection-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selection-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/selection-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/selection-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/selection-cs1" %}
## Column selection
@@ -74,14 +74,14 @@ The following sample shows the column selection in the spreadsheet, here selecti
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selection-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/selection-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selection-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/selection-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/selection-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/selection-cs2" %}
## Get selected cell values
@@ -91,14 +91,14 @@ Below is a code example demonstrating how to retrieve the selected cell values a
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selected-cell-values/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/selected-cell-values/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selected-cell-values/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/selected-cell-values/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/selected-cell-values" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/selected-cell-values" %}
## Remove Selection
@@ -106,14 +106,14 @@ The following sample shows, how to remove the selection in the spreadsheet. Here
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selection-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/selection-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/selection-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/selection-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/selection-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/selection-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/sort.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/sort.md
index 8033d1f44..0a1f7b47d 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/sort.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/sort.md
@@ -37,14 +37,14 @@ The following code example shows `Sort` functionality in the Spreadsheet control
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sort-cs2/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/sort-cs2/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sort-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/sort-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/sort-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/sort-cs2" %}
## Data contains header
@@ -120,14 +120,14 @@ The multi-column sorting can also be performed manually by passing sort options
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sort-cs3/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/sort-cs3/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sort-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/sort-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/sort-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/sort-cs3" %}
## Custom sort comparer
@@ -147,14 +147,14 @@ In the following demo, the `Trustworthiness` column is sorted based on the custo
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sort-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/sort-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sort-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/sort-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/sort-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/sort-cs1" %}
## Known error validations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/template.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/template.md
index 7672cc774..125124669 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/template.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/template.md
@@ -15,14 +15,14 @@ The following code example describes the above behavior.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/template-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/template-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/template-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/template-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/template-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/template-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/undo-redo.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/undo-redo.md
index e8be5019c..2fc718d1b 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/undo-redo.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/undo-redo.md
@@ -39,14 +39,14 @@ The following code example shows `How to update and customize your own actions f
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/undo-redo-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/undo-redo-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/undo-redo-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/undo-redo-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/undo-redo-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/undo-redo-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/worksheet.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/worksheet.md
index 1dd590b18..f345ac1ea 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES5/worksheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES5/worksheet.md
@@ -22,14 +22,14 @@ The following code example shows the insert sheet operation in spreadsheet.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert/sheet-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/insert/sheet-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert/sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/insert/sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/insert/sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/insert/sheet-cs1" %}
### Insert a sheet programmatically and make it active sheet
@@ -39,14 +39,14 @@ The following code example shows how to insert a sheet programmatically and make
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert-sheet-change-active-sheet-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/insert-sheet-change-active-sheet-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/insert-sheet-change-active-sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/insert-sheet-change-active-sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/insert-sheet-change-active-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/insert-sheet-change-active-sheet-cs1" %}
## Delete sheet
@@ -79,14 +79,14 @@ The following code example shows the headers and gridlines operation in spreadsh
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/headers-gridlines-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/headers-gridlines-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/headers-gridlines-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/headers-gridlines-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/headers-gridlines-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/headers-gridlines-cs1" %}
## Sheet visibility
@@ -104,14 +104,14 @@ The following code example shows the three types of sheet visibility state.
{% tabs %}
{% highlight js tabtitle="index.js" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sheet-visibility-cs1/index.js %}
+{% include code-snippet/spreadsheet/javascript-es5/sheet-visibility-cs1/index.js %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es5/sheet-visibility-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es5/sheet-visibility-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es5/sheet-visibility-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es5/sheet-visibility-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/cell-range.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/cell-range.md
index c0d28a4b9..a897d643b 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/cell-range.md
@@ -25,14 +25,14 @@ The following code example shows the wrap text functionality in spreadsheet.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/wrap-text-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/wrap-text-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/wrap-text-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/wrap-text-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/wrap-text-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/wrap-text-cs1" %}
### Limitations of Wrap text
@@ -65,14 +65,14 @@ The following code example shows the merge cells operation in spreadsheet.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/merge-cells-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/merge-cells-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/merge-cells-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/merge-cells-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/merge-cells-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/merge-cells-cs1" %}
### Limitations of Merge
@@ -125,14 +125,14 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-validation-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-validation-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-validation-cs1" %}
### Custom Data validation
@@ -153,14 +153,14 @@ The following code example demonstrates how to add custom data validation with a
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-validation-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-validation-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-validation-cs3" %}
### Limitations of Data validation
@@ -236,14 +236,14 @@ In the following sample, you can enable/disable the fill option on the button cl
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/autofill-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/autofill-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/autofill-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/autofill-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/autofill-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/autofill-cs1" %}
### Limitations of Autofill
@@ -278,14 +278,14 @@ Clear the cell contents and formats in the Spreadsheet document by using the [cl
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/clear-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/clear-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/clear-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/clear-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/clear-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/clear-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/clipboard.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/clipboard.md
index 6dd9bdfa2..77c2f45a4 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/clipboard.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/clipboard.md
@@ -61,14 +61,14 @@ Paste can be done in one of the following ways.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/clipboard-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/clipboard-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/clipboard-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/clipboard-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/clipboard-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/clipboard-cs1" %}
## Prevent the paste functionality
@@ -76,14 +76,14 @@ The following example shows, how to prevent the paste action in spreadsheet. In
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/clipboard-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/clipboard-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/clipboard-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/clipboard-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/clipboard-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/clipboard-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/context-menu.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/context-menu.md
index 149c325cb..2e2465aac 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/context-menu.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/context-menu.md
@@ -70,14 +70,14 @@ In this demo, Custom Item is added after the Paste item in the context menu.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/contextmenu/addContextMenu-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/contextmenu/addContextMenu-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/contextmenu/addContextMenu-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/contextmenu/addContextMenu-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/contextmenu/addContextMenu-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/contextmenu/addContextMenu-cs1" %}
### Remove Context Menu Items
@@ -87,14 +87,14 @@ In this demo, Insert Column item has been removed from the row/column header con
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/contextmenu/removeContextMenu-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/contextmenu/removeContextMenu-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/contextmenu/removeContextMenu-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/contextmenu/removeContextMenu-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/contextmenu/removeContextMenu-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/contextmenu/removeContextMenu-cs1" %}
### Enable/Disable Context Menu Items
@@ -104,14 +104,14 @@ In this demo, Rename item is disabled in the pager context menu.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/contextmenu/enableContextMenuItems-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/contextmenu/enableContextMenuItems-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/contextmenu/enableContextMenuItems-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/contextmenu/enableContextMenuItems-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/contextmenu/enableContextMenuItems-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/contextmenu/enableContextMenuItems-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-binding.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-binding.md
index 494b582cd..eac769012 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-binding.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-binding.md
@@ -21,14 +21,14 @@ Refer to the following code example for local data binding.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-binding-cs1" %}
> The local data source can also be provided as an instance of the [`DataManager`](https://helpej2.syncfusion.com/documentation/data/). By default, [`DataManager`](https://helpej2.syncfusion.com/documentation/data/) uses [`JsonAdaptor`](https://ej2.syncfusion.com/documentation/data/adaptors#json-adaptor) for local data-binding.
@@ -42,14 +42,14 @@ The following code example demonstrates how to customize the mapping of column d
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/field-mapping-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/field-mapping-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/field-mapping-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/field-mapping-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/field-mapping-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/field-mapping-cs1" %}
## Remote data
@@ -59,14 +59,14 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-binding-cs2" %}
> By default, `DataManager` uses **ODataAdaptor** for remote data-binding.
@@ -76,14 +76,14 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-binding-cs3" %}
### Web API
@@ -91,14 +91,14 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs4/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs4/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs4/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs4/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs4" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-binding-cs4" %}
## Cell data binding
@@ -109,14 +109,14 @@ Refer to the following code example for cell data binding.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs5/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs5/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs5/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-binding-cs5/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-binding-cs5" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-binding-cs5" %}
> The cell data binding also supports formula, style, number format, and more.
@@ -138,14 +138,14 @@ The following table defines the arguments of the `dataSourceChanged` event.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/dynamic-data-binding-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/dynamic-data-binding-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/dynamic-data-binding-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/dynamic-data-binding-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/dynamic-data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/dynamic-data-binding-cs1" %}
## Dynamic data binding using updateRange method
@@ -157,14 +157,14 @@ The following code example demonstrates how to dynamically update data using the
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/dynamic-data-binding-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/dynamic-data-binding-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/dynamic-data-binding-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/dynamic-data-binding-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/dynamic-data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/dynamic-data-binding-cs2" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-validation.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-validation.md
index 7d86fa410..2cf3fc943 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-validation.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/data-validation.md
@@ -51,14 +51,14 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/data-validation-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/data-validation-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/data-validation-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/data-validation-cs2" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/editing.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/editing.md
index 77266c8e9..58e1ef7e5 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/editing.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/editing.md
@@ -40,14 +40,14 @@ The following sample shows how to prevent the editing and cell save. Here `E` co
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/editing-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/editing-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/editing-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/editing-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/editing-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/editing-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/filter.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/filter.md
index de80faa02..982e56450 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/filter.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/filter.md
@@ -38,14 +38,14 @@ The following code example shows `filter` functionality in the Spreadsheet contr
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/filter-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/filter-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/filter-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/filter-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/filter-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/filter-cs1" %}
## Filter by cell value
@@ -88,14 +88,14 @@ The following code example shows how to get the filtered rows.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/filter-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/filter-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/filter-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/filter-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/filter-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/filter-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formatting.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formatting.md
index 13bb31ba7..210dd21d7 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formatting.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formatting.md
@@ -93,14 +93,14 @@ The following code example shows the number formatting in cell data.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/format/number-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/format/number-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/format/number-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/format/number-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/format/number-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/format/number-cs1" %}
## Configure culture-based custom format
@@ -147,14 +147,14 @@ The following code example demonstrates how to configure culture-based formats f
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/format/globalization-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/format/globalization-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/format/globalization-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/format/globalization-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/format/globalization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/format/globalization-cs1" %}
## Text and cell formatting
@@ -217,14 +217,14 @@ The following code example shows the style formatting in text and cells of the s
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/format/cell-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/format/cell-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/format/cell-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/format/cell-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/format/cell-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/format/cell-cs1" %}
### Limitations of Formatting
@@ -317,14 +317,14 @@ You can clear the defined rules by using one of the following ways,
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/conditional-formatting-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/conditional-formatting-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/conditional-formatting-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/conditional-formatting-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/conditional-formatting-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/conditional-formatting-cs1" %}
### Limitations of Conditional formatting
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formulas.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formulas.md
index 6b349b913..620c7e736 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formulas.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/formulas.md
@@ -33,14 +33,14 @@ In the example below, the Spreadsheet component is rendered with the `German` [`
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/formula-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/formula-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/formula-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/formula-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/formula-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/formula-cs3" %}
## Create User Defined Functions / Custom Functions
@@ -52,14 +52,14 @@ The following code example shows an unsupported formula in the spreadsheet.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/formula-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/formula-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/formula-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/formula-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/formula-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/formula-cs1" %}
Second, if you want to directly compute any formula or expression, you can use the [computeExpression](https://ej2.syncfusion.com/documentation/api/spreadsheet/#computeexpression) method. This method will work for both built-in and used-defined/custom formula.
@@ -67,14 +67,14 @@ The following code example shows how to use `computeExpression` method in the sp
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/formula-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/formula-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/formula-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/formula-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/formula-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/formula-cs2" %}
## Formula bar
@@ -93,14 +93,14 @@ The following code example shows the usage of named ranges support.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/defined-name-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/defined-name-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/defined-name-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/defined-name-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/defined-name-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/defined-name-cs1" %}
## Calculation Mode
@@ -121,14 +121,14 @@ The following code example demonstrates how to set the Automatic calculation mod
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/calculation-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/calculation-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/calculation-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/calculation-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/calculation-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/calculation-cs1" %}
### Manual Mode
@@ -143,14 +143,14 @@ The following code example demonstrates how to set the Manual calculation mode i
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/calculation-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/calculation-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/calculation-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/calculation-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/calculation-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/calculation-cs2" %}
## Supported Formulas
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/freeze-pane.md
index 2abe29ae4..07904af58 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/freeze-pane.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/freeze-pane.md
@@ -46,14 +46,14 @@ In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/freezepane-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/freezepane-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/freezepane-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/freezepane-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/freezepane-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/freezepane-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/getting-started.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/getting-started.md
index e5931a7aa..dafb0127c 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/getting-started.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/getting-started.md
@@ -141,14 +141,14 @@ The following example shows a basic Spreadsheet component.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/spreadsheet/getting-started-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/spreadsheet/getting-started-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/spreadsheet/getting-started-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/spreadsheet/getting-started-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/spreadsheet/getting-started-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/spreadsheet/getting-started-cs1" %}
> You can refer to our [JavaScript Spreadsheet](https://www.syncfusion.com/spreadsheet-editor-sdk/javascript-spreadsheet-editor) feature tour page for its groundbreaking feature representations. You can also explore our [JavaScript Spreadsheet example](https://document.syncfusion.com/demos/spreadsheet-editor/javascript/#/tailwind3/spreadsheet/default.html) that shows you how present and manipulate data, including editing, formulas, formatting, importing, and exporting.
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/global-local.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/global-local.md
index 40f4e625a..4582003cb 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/global-local.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/global-local.md
@@ -383,14 +383,14 @@ The following example demonstrates the Spreadsheet in `French` culture. In the b
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/global/locale-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/global/locale-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/global/locale-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/global/locale-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/global/locale-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/global/locale-cs1" %}
## Internationalization
@@ -400,14 +400,14 @@ The following example demonstrates the Spreadsheet in French [`fr-CH`] culture.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/global/internationalization-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/global/internationalization-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/global/internationalization-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/global/internationalization-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/global/internationalization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/global/internationalization-cs1" %}
## Right to left (RTL)
@@ -415,14 +415,14 @@ RTL provides an option to switch the text direction and layout of the Spreadshee
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/global/rtl-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/global/rtl-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/global/rtl-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/global/rtl-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/global/rtl-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/global/rtl-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/change-active-sheet.md
index 40008dc9f..098fc9b9f 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/change-active-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/change-active-sheet.md
@@ -15,11 +15,11 @@ The following code example shows how to set the active sheet when importing an E
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/change-active-sheet-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/change-active-sheet-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/change-active-sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/change-active-sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/change-active-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/change-active-sheet-cs1" %}
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/create-a-object-structure.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/create-a-object-structure.md
index 350c16c6f..f8bcfc234 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/create-a-object-structure.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/create-a-object-structure.md
@@ -170,11 +170,11 @@ In the following demo, the JSON structure is passed to the `openFromJson` method
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/json-structure-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/json-structure-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/json-structure-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/json-structure-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/json-structure-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/json-structure-cs1" %}
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/identify-the-context-menu-opened.md
index d30938434..6bb777127 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/identify-the-context-menu-opened.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/how-to/identify-the-context-menu-opened.md
@@ -24,11 +24,11 @@ The following code example shows how to identify the context menu opened.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/find-target-context-menu/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/find-target-context-menu/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/find-target-context-menu/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/find-target-context-menu/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/find-target-context-menu" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/find-target-context-menu" %}
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/illustrations.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/illustrations.md
index 437faeb36..952f5f913 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/illustrations.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/illustrations.md
@@ -70,14 +70,14 @@ Image feature allows you to view and insert an image in a spreadsheet, and you c
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/image-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/image-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/image-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/image-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/image-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/image-cs1" %}
### Limitations of Image
@@ -127,14 +127,14 @@ The available arguments in the `ChartModel` are:
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/chart-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/chart-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/chart-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/chart-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/chart-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/chart-cs2" %}
### Delete Chart
@@ -157,14 +157,14 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/chart-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/chart-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/chart-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/chart-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/chart-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/chart-cs1" %}
#### Customization of line chart markers
@@ -172,14 +172,14 @@ Using the [`actionBegin`](https://ej2.syncfusion.com/documentation/api/spreadshe
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/chart-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/chart-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/chart-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/chart-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/chart-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/chart-cs3" %}
### Limitations of Chart
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/link.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/link.md
index d7cd58a36..c7eefeb28 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/link.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/link.md
@@ -57,14 +57,14 @@ There is an event named `beforeHyperlinkClick` which triggers only on clicking h
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/link-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/link-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/link-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/link-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/link-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/link-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/notes.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/notes.md
index ce5374c02..0b54bfe23 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/notes.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/notes.md
@@ -19,14 +19,14 @@ In the below example, you can add, edit, save, and delete notes.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/note-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/note-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/note-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/note-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/note-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/note-cs1" %}
## Adding a note
@@ -71,14 +71,14 @@ In the below example, the note functionality is disabled in the Spreadsheet.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/note-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/note-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/note-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/note-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/note-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/note-cs2" %}
## Integrating notes during initial loading and using cell data binding
@@ -86,14 +86,14 @@ The notes can be added initially when the Spreadsheet loads using cell data bind
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/note-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/note-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/note-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/note-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/note-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/note-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open-save.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open-save.md
index 20dd58256..0f3188f4e 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open-save.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open-save.md
@@ -23,14 +23,14 @@ The following sample shows the `Open` option by using the [`openUrl`](https://ej
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs1" %}
Please find the below table for the beforeOpen event arguments.
@@ -49,14 +49,14 @@ If you explore your machine to select and upload an excel document using the fil
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/import-using-uploader/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/import-using-uploader/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/import-using-uploader/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/import-using-uploader/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/import-using-uploader" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/import-using-uploader" %}
### Open an external URL excel file while initial load
@@ -64,14 +64,14 @@ You can achieve to access the remote excel file by using the [`created`](https:/
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs2" %}
### Open an excel file from blob data
@@ -81,14 +81,14 @@ Please find the code to fetch the blob data and load it into the Spreadsheet con
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-from-blobdata-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-from-blobdata-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-from-blobdata-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-from-blobdata-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-from-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-from-blobdata-cs1" %}
### Open an Excel file located on a server
@@ -242,14 +242,14 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/base-64-string/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/base-64-string/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/base-64-string/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/base-64-string/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/base-64-string" %}
### Open excel file into a read-only mode
@@ -257,14 +257,14 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs4/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs4/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs4/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs4/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs4" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs4" %}
### Configure JSON deserialization options
@@ -294,14 +294,14 @@ The following code snippet demonstrates how to configure the deserialization opt
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-from-json/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-from-json/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-from-json/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-from-json/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-from-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-from-json" %}
### Improving Excel file open performance with parsing options
@@ -401,14 +401,14 @@ You can add your own custom header to the open action in the Spreadsheet. For pr
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs3" %}
### External workbook confirmation dialog
@@ -450,14 +450,14 @@ The following sample shows the `Save` option by using the [`saveUrl`](https://ej
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs5/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs5/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs5/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs5/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs5" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs5" %}
Please find the below table for the beforeSave event arguments.
@@ -484,14 +484,14 @@ Please find below the code to retrieve blob data from the Spreadsheet control be
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-as-blobdata-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/save-as-blobdata-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-as-blobdata-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/save-as-blobdata-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/save-as-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/save-as-blobdata-cs1" %}
### Save an Excel file to a server
@@ -658,14 +658,14 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/base-64-string/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/base-64-string/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/base-64-string/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/base-64-string/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/base-64-string" %}
### Configure JSON serialization options
@@ -695,14 +695,14 @@ The following code snippet demonstrates how to configure the serialization optio
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-as-json/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/save-as-json/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-as-json/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/save-as-json/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/save-as-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/save-as-json" %}
### Send and receive custom params from client to server
@@ -710,14 +710,14 @@ Passing the custom parameters from client to server by using [`beforeSave`](http
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs6/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs6/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs6/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs6/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs6" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs6" %}
Server side code snippets:
@@ -736,14 +736,14 @@ You can add your own custom header to the save action in the Spreadsheet. For pr
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs7/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs7/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs7/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs7/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs7" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs7" %}
### Change the PDF orientation
@@ -756,14 +756,14 @@ The possible values are:
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs8/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs8/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-save-cs8/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-save-cs8/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-save-cs8" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-save-cs8" %}
### Supported file formats
@@ -780,14 +780,14 @@ To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using [
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/save-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/save-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/save-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/save-cs1" %}
## Server Configuration
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open.md
index ad7c25df6..78c61d679 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/open.md
@@ -25,14 +25,14 @@ The following code example shows `Open` option in the Spreadsheet control.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/open-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/open-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/open-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/open-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/open-cs1" %}
> * Use `Ctrl + O` keyboard shortcut to open Excel documents.
> * The default value of the [allowOpen](../api/spreadsheet/#allowopen) property is `true`. For demonstration purpose, we have showcased the [allowOpen](../api/spreadsheet/#allowopen) property in previous code snippet.
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/print.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/print.md
index 152c35d47..1eb38b088 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/print.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/print.md
@@ -31,14 +31,14 @@ The `printOptions` contain three properties, as described below.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/print-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/print-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/print-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/print-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/print-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/print-cs2" %}
## Disable printing
@@ -48,14 +48,14 @@ The printing functionality in the Spreadsheet can be disabled by setting the [`a
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/print-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/print-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/print-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/print-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/print-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/print-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/protect-sheet.md
index 77c244c99..050356e4c 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/protect-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/protect-sheet.md
@@ -49,14 +49,14 @@ The following example shows `Protect Sheet` functionality with password in the S
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-sheet-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-sheet-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/protect-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/protect-sheet-cs1" %}
### Limitations of Protect sheet
@@ -81,14 +81,14 @@ In protected spreadsheet, to make some particular cell or range of cells are edi
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-sheet-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-sheet-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-sheet-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-sheet-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/protect-sheet-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/protect-sheet-cs2" %}
## Make cells read-only without protecting worksheet
@@ -140,14 +140,14 @@ The following example demonstrates how to make rows, columns, and cells read-onl
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/readonly-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/readonly-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/readonly-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/readonly-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/readonly-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/readonly-cs1" %}
## Protect Workbook
@@ -166,27 +166,27 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-workbook/default-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-workbook/default-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-workbook/default-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-workbook/default-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/protect-workbook/default-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/protect-workbook/default-cs1" %}
The following example shows `Protect Workbook` by using the [`password`](https://ej2.syncfusion.com/documentation/api/spreadsheet/#password) property in the Spreadsheet control. To unprotect the workbook, click the unprotect workbook button in the data tab and provide the password as syncfusion® in the dialog box.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-workbook/default-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-workbook/default-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/protect-workbook/default-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/protect-workbook/default-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/protect-workbook/default-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/protect-workbook/default-cs2" %}
## Unprotect Workbook
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/ribbon.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/ribbon.md
index 51523ea12..8d93e6294 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/ribbon.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/ribbon.md
@@ -31,14 +31,14 @@ The following code example shows the usage of ribbon customization.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/ribbon/cutomization-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/ribbon/cutomization-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/ribbon/cutomization-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/ribbon/cutomization-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/ribbon/cutomization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/ribbon/cutomization-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/rows-and-columns.md
index 4be35b019..57fc4c7e4 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/rows-and-columns.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/rows-and-columns.md
@@ -30,14 +30,14 @@ The following code example shows the options for inserting rows in the spreadshe
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert/row-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/insert/row-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert/row-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/insert/row-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/insert/row-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/insert/row-cs1" %}
### Column
@@ -50,14 +50,14 @@ The following code example shows the options for inserting columns in the spread
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert/column-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/insert/column-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert/column-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/insert/column-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/insert/column-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/insert/column-cs1" %}
## Delete
@@ -72,14 +72,14 @@ The following code example shows the delete operation of rows and columns in the
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/delete/row-column-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/delete/row-column-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/delete/row-column-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/delete/row-column-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/delete/row-column-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/delete/row-column-cs1" %}
## Limitations of insert and delete
@@ -114,14 +114,14 @@ The following code example shows the hide/show rows and columns operation in the
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/hide-show-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/hide-show-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/hide-show-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/hide-show-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/hide-show-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/hide-show-cs1" %}
## Size
@@ -142,14 +142,14 @@ The following code example shows how to change the height for single/multiple ro
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/row-height-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/row-height-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/row-height-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/row-height-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/row-height-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/row-height-cs1" %}
### Column
@@ -166,14 +166,14 @@ The following code example shows how to change the width for single/multiple col
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/column-width-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/column-width-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/column-width-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/column-width-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/column-width-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/column-width-cs1" %}
## Changing text in column headers
@@ -183,14 +183,14 @@ The following code example shows how to change the text in the column headers.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/column-header-change-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/column-header-change-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/column-header-change-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/column-header-change-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/column-header-change-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/column-header-change-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/save.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/save.md
index fced6b547..43433d497 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/save.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/save.md
@@ -25,14 +25,14 @@ The following code example shows `Save` option in the Spreadsheet control.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/save-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/save-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/save-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/save-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/save-cs2" %}
> * Use `Ctrl + S` keyboard shortcut to save the Spreadsheet data as Excel file.
> * The default value of [allowSave](../api/spreadsheet/#allowsave) property is `true`. For demonstration purpose, we have showcased the [allowSave](../api/spreadsheet/#allowsave) property in previous code snippet.
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/scrolling.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/scrolling.md
index 8dae962a0..92ed4b968 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/scrolling.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/scrolling.md
@@ -52,11 +52,11 @@ The following code example shows the finite scrolling with defined rows and colu
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/scrolling-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/scrolling-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/scrolling-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/scrolling-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/scrolling-cs1" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/scrolling-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/searching.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/searching.md
index adbc5838c..6503d30c1 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/searching.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/searching.md
@@ -63,14 +63,14 @@ In the following sample, searching can be done by following ways:
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/searching-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/searching-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/searching-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/searching-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/searching-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/searching-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/selection.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/selection.md
index 64cfd2733..bd3433767 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/selection.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/selection.md
@@ -48,14 +48,14 @@ The following sample shows the row selection in the spreadsheet, here selecting
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selection-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/selection-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selection-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/selection-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/selection-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/selection-cs1" %}
## Column selection
@@ -74,14 +74,14 @@ The following sample shows the column selection in the spreadsheet, here selecti
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selection-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/selection-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selection-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/selection-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/selection-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/selection-cs2" %}
## Get selected cell values
@@ -91,14 +91,14 @@ Below is a code example demonstrating how to retrieve the selected cell values a
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selected-cell-values/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/selected-cell-values/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selected-cell-values/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/selected-cell-values/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/selected-cell-values" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/selected-cell-values" %}
## Remove Selection
@@ -106,14 +106,14 @@ The following sample shows, how to remove the selection in the spreadsheet. Here
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selection-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/selection-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/selection-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/selection-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/selection-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/selection-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/sort.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/sort.md
index 98f145272..9bf12fdbb 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/sort.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/sort.md
@@ -37,14 +37,14 @@ The following code example shows `Sort` functionality in the Spreadsheet control
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sort-cs2/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/sort-cs2/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sort-cs2/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/sort-cs2/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/sort-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/sort-cs2" %}
## Data contains header
@@ -119,14 +119,14 @@ The multi-column sorting can also be performed manually by passing sort options
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sort-cs3/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/sort-cs3/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sort-cs3/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/sort-cs3/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/sort-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/sort-cs3" %}
## Custom sort comparer
@@ -146,14 +146,14 @@ In the following demo, the `Trustworthiness` column is sorted based on the custo
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sort-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/sort-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sort-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/sort-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/sort-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/sort-cs1" %}
## Known error validations
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/template.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/template.md
index 0684e0396..2c05af02c 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/template.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/template.md
@@ -15,14 +15,14 @@ The following code example describes the above behavior.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/template-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/template-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/template-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/template-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/template-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/template-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/undo-redo.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/undo-redo.md
index 484b5673b..9cd089719 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/undo-redo.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/undo-redo.md
@@ -39,14 +39,14 @@ The following code example shows `How to update and customize your own actions f
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/undo-redo-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/undo-redo-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/undo-redo-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/undo-redo-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "page.domainurl/code-snippet/excel/spreadsheet/javascript-es6/undo-redo-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/undo-redo-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/worksheet.md b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/worksheet.md
index 8000d2d69..795cf73b6 100644
--- a/Document-Processing/Excel/Spreadsheet/Javascript-ES6/worksheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Javascript-ES6/worksheet.md
@@ -23,14 +23,14 @@ The following code example shows the insert sheet operation in spreadsheet.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert/sheet-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/insert/sheet-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert/sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/insert/sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/insert/sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/insert/sheet-cs1" %}
### Insert a sheet programmatically and make it active sheet
@@ -40,14 +40,14 @@ The following code example shows how to insert a sheet programmatically and make
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert-sheet-change-active-sheet-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/insert-sheet-change-active-sheet-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/insert-sheet-change-active-sheet-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/insert-sheet-change-active-sheet-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/insert-sheet-change-active-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/insert-sheet-change-active-sheet-cs1" %}
## Delete sheet
@@ -80,14 +80,14 @@ The following code example shows the headers and gridlines operation in spreadsh
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/headers-gridlines-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/headers-gridlines-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/headers-gridlines-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/headers-gridlines-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/headers-gridlines-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/headers-gridlines-cs1" %}
## Sheet visibility
@@ -105,14 +105,14 @@ The following code example shows the three types of sheet visibility state.
{% tabs %}
{% highlight ts tabtitle="index.ts" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sheet-visibility-cs1/index.ts %}
+{% include code-snippet/spreadsheet/javascript-es6/sheet-visibility-cs1/index.ts %}
{% endhighlight %}
{% highlight html tabtitle="index.html" %}
-{% include code-snippet/excel/spreadsheet/javascript-es6/sheet-visibility-cs1/index.html %}
+{% include code-snippet/spreadsheet/javascript-es6/sheet-visibility-cs1/index.html %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/javascript-es6/sheet-visibility-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/javascript-es6/sheet-visibility-cs1" %}
## See Also
diff --git a/Document-Processing/Excel/Spreadsheet/React/cell-range.md b/Document-Processing/Excel/Spreadsheet/React/cell-range.md
index 392e9da89..387398d25 100644
--- a/Document-Processing/Excel/Spreadsheet/React/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/React/cell-range.md
@@ -29,20 +29,20 @@ The following code example shows the wrap text functionality in spreadsheet.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/wrap-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/wrap-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/wrap-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/wrap-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/wrap-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/wrap-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/wrap-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/wrap-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/wrap-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/wrap-cs1" %}
### Limitations of Wrap text
@@ -74,20 +74,20 @@ The following code example shows the merge cells operation in spreadsheet.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/merge-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/merge-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/merge-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/merge-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/merge-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/merge-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/merge-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/merge-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/merge-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/merge-cs1" %}
### Limitations of Merge
@@ -140,14 +140,14 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/data-validation-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/data-validation-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/data-validation-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/data-validation-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/data-validation-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/data-validation-cs1" %}
### Custom Data validation
@@ -168,14 +168,14 @@ The following code example demonstrates how to add custom data validation with a
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/data-validation-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/data-validation-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/data-validation-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/data-validation-cs2/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/data-validation-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/data-validation-cs2" %}
### Limitations of Data validation
@@ -251,20 +251,20 @@ In the following sample, you can enable/disable the fill option on the button cl
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/autofill-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/autofill-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/autofill-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/autofill-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/autofill-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/autofill-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/autofill-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/autofill-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/autofill-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/autofill-cs1" %}
### Limitations of Autofill
@@ -299,20 +299,20 @@ Clear the cell contents and formats in the Spreadsheet document by using the [cl
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/clear-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/clear-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/clear-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/clear-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/clear-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/clear-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/clear-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/clear-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/clear-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/clear-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/clipboard.md b/Document-Processing/Excel/Spreadsheet/React/clipboard.md
index 8da8192cb..dc24e7f00 100644
--- a/Document-Processing/Excel/Spreadsheet/React/clipboard.md
+++ b/Document-Processing/Excel/Spreadsheet/React/clipboard.md
@@ -61,20 +61,20 @@ Paste can be done in one of the following ways.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/clipboard-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/clipboard-cs1" %}
## Prevent the paste functionality
@@ -82,20 +82,20 @@ The following example shows, how to prevent the paste action in spreadsheet. In
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/clipboard-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/clipboard-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/clipboard-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/clipboard-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/context-menu.md b/Document-Processing/Excel/Spreadsheet/React/context-menu.md
index 3b6b6b452..aeb1b1bb3 100644
--- a/Document-Processing/Excel/Spreadsheet/React/context-menu.md
+++ b/Document-Processing/Excel/Spreadsheet/React/context-menu.md
@@ -70,14 +70,14 @@ In this demo, Custom Item is added after the Paste item in the context menu.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/context-menu-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/context-menu-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/context-menu-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/context-menu-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/context-menu-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/context-menu-cs1" %}
### Remove Context Menu Items
@@ -87,14 +87,14 @@ In this demo, Insert Column item has been removed from the row/column header con
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/context-menu-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/context-menu-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/context-menu-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/context-menu-cs2/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/context-menu-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/context-menu-cs2" %}
### Enable/Disable Context Menu Items
@@ -104,14 +104,14 @@ In this demo, Rename item is disabled in the pager context menu.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/context-menu-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/context-menu-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/context-menu-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/context-menu-cs3/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/context-menu-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/context-menu-cs3" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/data-binding.md b/Document-Processing/Excel/Spreadsheet/React/data-binding.md
index ae8e6262b..3af4fa346 100644
--- a/Document-Processing/Excel/Spreadsheet/React/data-binding.md
+++ b/Document-Processing/Excel/Spreadsheet/React/data-binding.md
@@ -25,20 +25,20 @@ Refer to the following code example for local data binding.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/local-data-binding-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/local-data-binding-cs1" %}
> The local data source can also be provided as an instance of the [`DataManager`](https://ej2.syncfusion.com/react/documentation/data/getting-started). By default, [`DataManager`](https://ej2.syncfusion.com/react/documentation/data/getting-started) uses **JsonAdaptor** for local data-binding.
@@ -52,14 +52,14 @@ The following code example demonstrates how to customize the mapping of column d
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/field-mapping-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/field-mapping-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/field-mapping-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/field-mapping-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/field-mapping-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/field-mapping-cs1" %}
## Remote data
@@ -69,20 +69,20 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/remote-data-binding-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/remote-data-binding-cs1" %}
> By default, `DataManager` uses **ODataAdaptor** for remote data-binding.
@@ -92,20 +92,20 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/remote-data-binding-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/remote-data-binding-cs2" %}
### Web API
@@ -113,20 +113,20 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs3/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs3/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs3/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/remote-data-binding-cs3/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/remote-data-binding-cs3/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/remote-data-binding-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/remote-data-binding-cs3" %}
## Cell data binding
@@ -136,20 +136,20 @@ Refer to the following code example for cell data binding.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/cell-data-binding-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/cell-data-binding-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/cell-data-binding-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/cell-data-binding-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/cell-data-binding-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/cell-data-binding-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/cell-data-binding-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/cell-data-binding-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/cell-data-binding-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/cell-data-binding-cs1" %}
> The cell data binding also supports formula, style, number format, and more.
@@ -171,20 +171,20 @@ The following table defines the arguments of the `dataSourceChanged` event.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/dynamic-data-binding-cs1" %}
## Dynamic data binding using updateRange method
@@ -196,20 +196,20 @@ The following code example demonstrates how to dynamically update data using the
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/dynamic-data-binding-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/dynamic-data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/dynamic-data-binding-cs2" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/editing.md b/Document-Processing/Excel/Spreadsheet/React/editing.md
index 641d6afea..7a11ac80f 100644
--- a/Document-Processing/Excel/Spreadsheet/React/editing.md
+++ b/Document-Processing/Excel/Spreadsheet/React/editing.md
@@ -44,20 +44,20 @@ The following sample shows how to prevent the editing and cell save. Here `E` co
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/editing-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/editing-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/editing-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/editing-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/editing-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/editing-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/editing-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/editing-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/editing-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/editing-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/filter.md b/Document-Processing/Excel/Spreadsheet/React/filter.md
index f3d9cf680..9e1e7cd20 100644
--- a/Document-Processing/Excel/Spreadsheet/React/filter.md
+++ b/Document-Processing/Excel/Spreadsheet/React/filter.md
@@ -37,20 +37,20 @@ The following code example shows `filter` functionality in the Spreadsheet contr
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/filter-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/filter-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/filter-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/filter-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/filter-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/filter-cs1" %}
## Filter by cell value
@@ -92,20 +92,20 @@ The following code example shows how to get the filtered rows.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/filter-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/filter-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/filter-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/filter-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/filter-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/filter-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/filter-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/formatting.md b/Document-Processing/Excel/Spreadsheet/React/formatting.md
index 9671bf111..578dbd209 100644
--- a/Document-Processing/Excel/Spreadsheet/React/formatting.md
+++ b/Document-Processing/Excel/Spreadsheet/React/formatting.md
@@ -94,20 +94,20 @@ The following code example shows the number formatting in cell data.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/numberformat-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/numberformat-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/numberformat-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/numberformat-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/numberformat-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/numberformat-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/numberformat-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/numberformat-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/numberformat-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/numberformat-cs1" %}
## Configure culture-based custom format
@@ -154,20 +154,20 @@ The following code example demonstrates how to configure culture-based formats f
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/globalization-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/globalization-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/globalization-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/globalization-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/globalization-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/globalization-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/globalization-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/globalization-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/globalization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/globalization-cs1" %}
## Text and cell formatting
@@ -230,20 +230,20 @@ The following code example shows the style formatting in text and cells of the s
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/cellformat-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/cellformat-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/cellformat-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/cellformat-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/cellformat-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/cellformat-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/cellformat-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/cellformat-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/cellformat-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/cellformat-cs1" %}
### Limitations of Formatting
@@ -333,20 +333,20 @@ You can clear the defined rules by using one of the following ways,
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/conditional-formatting-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/conditional-formatting-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/conditional-formatting-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/conditional-formatting-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/conditional-formatting-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/conditional-formatting-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/conditional-formatting-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/conditional-formatting-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/conditional-formatting-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/conditional-formatting-cs1" %}
### Limitations of Conditional formatting
diff --git a/Document-Processing/Excel/Spreadsheet/React/formulas.md b/Document-Processing/Excel/Spreadsheet/React/formulas.md
index cb12fd38b..414bd6789 100644
--- a/Document-Processing/Excel/Spreadsheet/React/formulas.md
+++ b/Document-Processing/Excel/Spreadsheet/React/formulas.md
@@ -32,23 +32,23 @@ In the example below, the Spreadsheet component is rendered with the `German cul
{% tabs %}
{% highlight js tabtitle="App.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs3/app/App.jsx %}
+{% include code-snippet/spreadsheet/react/formula-cs3/app/App.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="App.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs3/app/App.tsx %}
+{% include code-snippet/spreadsheet/react/formula-cs3/app/App.tsx %}
{% endhighlight %}
{% highlight js tabtitle="locale.json" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs3/app/locale.json %}
+{% include code-snippet/spreadsheet/react/formula-cs3/app/locale.json %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs3/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/formula-cs3/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs3/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/formula-cs3/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/formula-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/formula-cs3" %}
## Create User Defined Functions / Custom Functions
@@ -60,20 +60,20 @@ The following code example shows an unsupported formula in the spreadsheet.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/formula-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/formula-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/formula-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/formula-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/formula-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/formula-cs1" %}
Second, if you want to directly compute any formula or expression, you can use the [computeExpression](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#computeexpression) method. This method will work for both built-in and used-defined/custom formula.
@@ -81,20 +81,20 @@ The following code example shows how to use `computeExpression` method in the sp
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/formula-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/formula-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/formula-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/formula-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/formula-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/formula-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/formula-cs2" %}
## Formula bar
@@ -113,20 +113,20 @@ The following code example shows the usage of named ranges support.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/defined-name-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/defined-name-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/defined-name-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/defined-name-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/defined-name-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/defined-name-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/defined-name-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/defined-name-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/defined-name-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/defined-name-cs1" %}
## Calculation Mode
@@ -147,20 +147,20 @@ The following code example demonstrates how to set the Automatic calculation mod
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/calculation-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/calculation-cs1" %}
### Manual Mode
@@ -175,20 +175,20 @@ The following code example demonstrates how to set the Manual calculation mode i
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/calculation-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/calculation-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/calculation-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/calculation-cs2" %}
## Supported Formulas
diff --git a/Document-Processing/Excel/Spreadsheet/React/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/React/freeze-pane.md
index f15c67db1..a03f48d83 100644
--- a/Document-Processing/Excel/Spreadsheet/React/freeze-pane.md
+++ b/Document-Processing/Excel/Spreadsheet/React/freeze-pane.md
@@ -50,20 +50,20 @@ In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/freeze-pane-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/freeze-pane-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/freeze-pane-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/freeze-pane-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/freeze-pane-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/freeze-pane-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/freeze-pane-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/freeze-pane-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/freeze-pane-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/freeze-pane-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/getting-started.md b/Document-Processing/Excel/Spreadsheet/React/getting-started.md
index d492b24c2..872e58322 100644
--- a/Document-Processing/Excel/Spreadsheet/React/getting-started.md
+++ b/Document-Processing/Excel/Spreadsheet/React/getting-started.md
@@ -109,14 +109,14 @@ The following example shows a basic spreadsheet component.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/getting-started-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/getting-started-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/getting-started-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/getting-started-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/getting-started-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/getting-started-cs1" %}
> You can refer to our [React Spreadsheet](https://www.syncfusion.com/react-components/react-spreadsheet) feature tour page for its groundbreaking feature representations. You can also explore our [React Spreadsheet example](https://document.syncfusion.com/demos/spreadsheet-editor/react/#/tailwind3/spreadsheet/default) that shows you how to present and manipulate data.
diff --git a/Document-Processing/Excel/Spreadsheet/React/global-local.md b/Document-Processing/Excel/Spreadsheet/React/global-local.md
index 6cbc05762..26d7cbbfc 100644
--- a/Document-Processing/Excel/Spreadsheet/React/global-local.md
+++ b/Document-Processing/Excel/Spreadsheet/React/global-local.md
@@ -383,20 +383,20 @@ The following example demonstrates the Spreadsheet in `French` culture. In the b
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/local-data-binding-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/local-data-binding-cs2" %}
## Internationalization
@@ -505,20 +505,20 @@ RTL provides an option to switch the text direction and layout of the Spreadshee
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/internationalization-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/internationalization-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/internationalization-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/internationalization-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/internationalization-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/internationalization-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/internationalization-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/internationalization-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/internationalization-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/internationalization-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/React/how-to/change-active-sheet.md
index 4ef1357b2..c1952a6a4 100644
--- a/Document-Processing/Excel/Spreadsheet/React/how-to/change-active-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/React/how-to/change-active-sheet.md
@@ -15,11 +15,11 @@ The following code example shows how to set the active sheet when importing an E
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/change-active-sheet-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/change-active-sheet-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/change-active-sheet-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/change-active-sheet-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/change-active-sheet-cs1" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/change-active-sheet-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/React/how-to/create-a-object-structure.md b/Document-Processing/Excel/Spreadsheet/React/how-to/create-a-object-structure.md
index a6996d339..a2d051642 100644
--- a/Document-Processing/Excel/Spreadsheet/React/how-to/create-a-object-structure.md
+++ b/Document-Processing/Excel/Spreadsheet/React/how-to/create-a-object-structure.md
@@ -170,17 +170,17 @@ In the following demo, the JSON structure is passed to the `openFromJson` method
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/json-structure-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/json-structure-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/json-structure-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/json-structure-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/json-structure-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/json-structure-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/json-structure-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/json-structure-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/json-structure-cs1" %}
\ No newline at end of file
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/json-structure-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/React/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/React/how-to/identify-the-context-menu-opened.md
index f5588f06b..abcdde607 100644
--- a/Document-Processing/Excel/Spreadsheet/React/how-to/identify-the-context-menu-opened.md
+++ b/Document-Processing/Excel/Spreadsheet/React/how-to/identify-the-context-menu-opened.md
@@ -24,11 +24,11 @@ The following code example shows how to identify the context menu opened.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/find-target-context-menu/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/find-target-context-menu/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/find-target-context-menu/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/find-target-context-menu/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/find-target-context-menu" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/find-target-context-menu" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/React/illustrations.md b/Document-Processing/Excel/Spreadsheet/React/illustrations.md
index 3948e88af..9af8640af 100644
--- a/Document-Processing/Excel/Spreadsheet/React/illustrations.md
+++ b/Document-Processing/Excel/Spreadsheet/React/illustrations.md
@@ -70,20 +70,20 @@ Image feature allows you to view and insert an image in a spreadsheet, and you c
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/image-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/image-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/image-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/image-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/image-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/image-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/image-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/image-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/image-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/image-cs1" %}
### Limitations of Image
@@ -133,20 +133,20 @@ The available arguments in the `ChartModel` are:
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/chart-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/chart-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/chart-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/chart-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/chart-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/chart-cs2" %}
### Delete Chart
@@ -169,20 +169,20 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/chart-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/chart-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/chart-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/chart-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/chart-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/chart-cs1" %}
#### Customization of line chart markers
@@ -190,20 +190,20 @@ Using the [`actionBegin`](https://ej2.syncfusion.com/react/documentation/api/spr
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/chart-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/chart-cs3/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs3/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/chart-cs3/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/chart-cs3/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/chart-cs3/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/chart-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/chart-cs3" %}
### Limitations of Chart
diff --git a/Document-Processing/Excel/Spreadsheet/React/link.md b/Document-Processing/Excel/Spreadsheet/React/link.md
index a3191e997..cc96406e7 100644
--- a/Document-Processing/Excel/Spreadsheet/React/link.md
+++ b/Document-Processing/Excel/Spreadsheet/React/link.md
@@ -53,14 +53,14 @@ There is an event named `beforeHyperlinkClick` which triggers only on clicking h
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/link-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/link-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/link-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/link-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/link-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/link-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/notes.md b/Document-Processing/Excel/Spreadsheet/React/notes.md
index d1b91524f..832fccab7 100644
--- a/Document-Processing/Excel/Spreadsheet/React/notes.md
+++ b/Document-Processing/Excel/Spreadsheet/React/notes.md
@@ -19,14 +19,14 @@ In the below example, you can add, edit, save, and delete notes.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/note-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/note-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/note-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/note-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/note-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/note-cs1" %}
## Adding a note
@@ -71,14 +71,14 @@ In the below example, the note functionality is disabled in the Spreadsheet.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/note-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/note-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/note-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/note-cs2/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/note-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/note-cs2" %}
## Integrating notes during initial loading and using cell data binding
@@ -86,14 +86,14 @@ The notes can be added initially when the Spreadsheet loads using cell data bind
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/note-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/note-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/note-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/note-cs3/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/note-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/note-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/open-save.md b/Document-Processing/Excel/Spreadsheet/React/open-save.md
index 6c3a4f64b..911133e9d 100644
--- a/Document-Processing/Excel/Spreadsheet/React/open-save.md
+++ b/Document-Processing/Excel/Spreadsheet/React/open-save.md
@@ -27,14 +27,14 @@ The following sample shows the `Open` option by using the [`openUrl`](https://ej
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs1" %}
Please find the below table for the beforeOpen event arguments.
@@ -55,14 +55,14 @@ The following code example shows how to import an Excel document using file uplo
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs9/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs9/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs9/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs9/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs9" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs9" %}
### Open an external URL excel file while initial load
@@ -70,14 +70,14 @@ You can achieve to access the remote Excel file by using the [`created`](https:/
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs2/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs2" %}
### Open an excel file from blob data
@@ -87,14 +87,14 @@ Please find the code to fetch the blob data and load it into the Spreadsheet com
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-from-blobdata-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-from-blobdata-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-from-blobdata-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-from-blobdata-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-from-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/open-from-blobdata-cs1" %}
### Open an Excel file located on a server
@@ -246,14 +246,14 @@ The following code example shows how to open the spreadsheet data as base64 stri
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/base-64-string/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/base-64-string/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/base-64-string/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/base-64-string/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/base-64-string" %}
### Open excel file into a read-only mode
@@ -261,14 +261,14 @@ You can open Excel file into a read-only mode by using the [`openComplete`](http
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs4/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs4/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs4/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs4/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs4" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs4" %}
### Configure JSON deserialization options
@@ -298,14 +298,14 @@ The following code snippet demonstrates how to configure the deserialization opt
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-from-json/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-from-json/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-from-json/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-from-json/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-from-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/open-from-json" %}
### Improving Excel file open performance with parsing options
@@ -416,14 +416,14 @@ You can add your own custom header to the open action in the Spreadsheet. For pr
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs3/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs3" %}
### External workbook confirmation dialog
@@ -465,20 +465,20 @@ The following sample shows the `Save` option by using the [`saveUrl`](https://ej
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs5/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs5/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs5/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs5/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs5/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs5/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs5/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs5/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs5" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs5" %}
Please find the below table for the beforeSave event arguments.
@@ -504,14 +504,14 @@ Please find below the code to retrieve blob data from the Spreadsheet component
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-as-blobdata-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/save-as-blobdata-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-as-blobdata-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/save-as-blobdata-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/save-as-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/save-as-blobdata-cs1" %}
### Save an Excel file to a server
@@ -679,14 +679,14 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/base-64-string/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/base-64-string/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/base-64-string/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/base-64-string/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/base-64-string" %}
### Configure JSON serialization options
@@ -716,14 +716,14 @@ The following code snippet demonstrates how to configure the serialization optio
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-as-json/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/save-as-json/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-as-json/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/save-as-json/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/save-as-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/save-as-json" %}
### Send and receive custom params from client to server
@@ -731,20 +731,20 @@ Passing the custom parameters from client to server by using [`beforeSave`](http
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs6/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs6/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs6/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs6/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs6/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs6/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs6/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs6/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs6" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs6" %}
Server side code snippets:
```csharp
@@ -761,20 +761,20 @@ You can add your own custom header to the save action in the Spreadsheet. For pr
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs7/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs7/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs7/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs7/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs7/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs7/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs7/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs7/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs7" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs7" %}
### Change the PDF orientation
@@ -787,20 +787,20 @@ The possible values are:
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs8/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs8/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs8/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs8/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs8/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs8/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/open-save-cs8/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/open-save-cs8/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/open-save-cs8" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/open-save-cs8" %}
### Supported file formats
@@ -817,20 +817,20 @@ To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using [
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/save-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/save-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/save-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/save-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/save-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/save-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/save-cs1" %}
## Server Configuration
diff --git a/Document-Processing/Excel/Spreadsheet/React/print.md b/Document-Processing/Excel/Spreadsheet/React/print.md
index 88d8867be..737e1d7f7 100644
--- a/Document-Processing/Excel/Spreadsheet/React/print.md
+++ b/Document-Processing/Excel/Spreadsheet/React/print.md
@@ -31,14 +31,14 @@ The `printOptions` contain three properties, as described below.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/print-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/print-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/print-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/print-cs2/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/print-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/print-cs2" %}
## Disable printing
@@ -48,14 +48,14 @@ The printing functionality in the Spreadsheet can be disabled by setting the [`a
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/print-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/print-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/print-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/print-cs3/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/print-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/print-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/React/protect-sheet.md
index a819e3922..3abf9eb81 100644
--- a/Document-Processing/Excel/Spreadsheet/React/protect-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/React/protect-sheet.md
@@ -46,20 +46,20 @@ The following example shows `Protect Sheet` functionality in the Spreadsheet con
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/protect-sheet-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/protect-sheet-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/protect-sheet-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/protect-sheet-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/protect-sheet-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/protect-sheet-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/protect-sheet-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/protect-sheet-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/protect-sheet-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/protect-sheet-cs1" %}
### Limitations of Protect sheet
@@ -83,20 +83,20 @@ In protected spreadsheet, to make some particular cell or range of cells are edi
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/unlock-cells-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/unlock-cells-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/unlock-cells-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/unlock-cells-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/unlock-cells-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/unlock-cells-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/unlock-cells-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/unlock-cells-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/unlock-cells-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/unlock-cells-cs1" %}
## Make cells read-only without protecting worksheet
@@ -152,20 +152,20 @@ The following example demonstrates how to make rows, columns, and cells read-onl
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/readonly-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/readonly-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/readonly-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/readonly-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/readonly-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/readonly-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/readonly-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/readonly-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/readonly-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/readonly-cs1" %}
## Protect Workbook
@@ -181,39 +181,39 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs3/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs3/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs3/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs3/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs3/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/local-data-binding-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/local-data-binding-cs3" %}
The following example shows `Protect Workbook` by using the [`password`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/#password) property in the Spreadsheet control. To unprotect the workbook, click the unprotect workbook button in the data tab and provide the password as syncfusion® in the dialog box.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs4/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs4/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs4/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs4/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs4/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs4/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/local-data-binding-cs4/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/local-data-binding-cs4/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/local-data-binding-cs4" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/local-data-binding-cs4" %}
## Unprotect Workbook
diff --git a/Document-Processing/Excel/Spreadsheet/React/ribbon.md b/Document-Processing/Excel/Spreadsheet/React/ribbon.md
index b32505552..a8dcf14d3 100644
--- a/Document-Processing/Excel/Spreadsheet/React/ribbon.md
+++ b/Document-Processing/Excel/Spreadsheet/React/ribbon.md
@@ -31,20 +31,20 @@ The following code example shows the usage of ribbon customization.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/ribbon-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/ribbon-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/ribbon-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/ribbon-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/ribbon-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/ribbon-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/ribbon-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/ribbon-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/ribbon-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/ribbon-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/React/rows-and-columns.md
index 19c9f8abc..abcda41b9 100644
--- a/Document-Processing/Excel/Spreadsheet/React/rows-and-columns.md
+++ b/Document-Processing/Excel/Spreadsheet/React/rows-and-columns.md
@@ -30,20 +30,20 @@ The following code example shows the options for inserting rows in the spreadshe
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-row-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/insert-row-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-row-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/insert-row-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-row-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/insert-row-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-row-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/insert-row-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/insert-row-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/insert-row-cs1" %}
### Column
@@ -56,20 +56,20 @@ The following code example shows the options for inserting columns in the spread
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-column-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/insert-column-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-column-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/insert-column-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-column-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/insert-column-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-column-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/insert-column-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/insert-column-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/insert-column-cs1" %}
## Delete
@@ -84,20 +84,20 @@ The following code example shows the delete operation of rows and columns in the
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/delete-row-column-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/delete-row-column-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/delete-row-column-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/delete-row-column-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/delete-row-column-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/delete-row-column-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/delete-row-column-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/delete-row-column-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/delete-row-column-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/delete-row-column-cs1" %}
## Limitations of insert and delete
@@ -132,20 +132,20 @@ The following code example shows the hide/show rows and columns operation in the
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/show-hide-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/show-hide-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/show-hide-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/show-hide-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/show-hide-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/show-hide-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/show-hide-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/show-hide-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/show-hide-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/show-hide-cs1" %}
## Size
@@ -166,20 +166,20 @@ The following code example shows how to change the height for single/multiple ro
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/row-height-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/row-height-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/row-height-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/row-height-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/row-height-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/row-height-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/row-height-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/row-height-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/row-height-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/row-height-cs1" %}
### Column
@@ -196,20 +196,20 @@ The following code example shows how to change the width for single/multiple col
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/column-width-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/column-width-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/column-width-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/column-width-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/column-width-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/column-width-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/column-width-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/column-width-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/column-width-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/column-width-cs1" %}
## Changing text in column headers
@@ -219,14 +219,14 @@ The following code example shows how to change the text in the column headers.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/column-header-change-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/column-header-change-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/column-header-change-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/column-header-change-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/column-header-change-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/column-header-change-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/scrolling.md b/Document-Processing/Excel/Spreadsheet/React/scrolling.md
index 5df80e8f9..814deacad 100644
--- a/Document-Processing/Excel/Spreadsheet/React/scrolling.md
+++ b/Document-Processing/Excel/Spreadsheet/React/scrolling.md
@@ -52,20 +52,20 @@ The following code example shows the finite scrolling with defined rows and colu
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/scrolling-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/scrolling-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/scrolling-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/scrolling-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/scrolling-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/scrolling-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/scrolling-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/scrolling-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/scrolling-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/scrolling-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/searching.md b/Document-Processing/Excel/Spreadsheet/React/searching.md
index 0de5e4491..b2304fb26 100644
--- a/Document-Processing/Excel/Spreadsheet/React/searching.md
+++ b/Document-Processing/Excel/Spreadsheet/React/searching.md
@@ -64,20 +64,20 @@ In the following sample, searching can be done by following ways:
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/searching-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/searching-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/searching-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/searching-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/searching-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/searching-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/searching-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/searching-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/searching-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/searching-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/selection.md b/Document-Processing/Excel/Spreadsheet/React/selection.md
index 159e1ea51..98e1eae43 100644
--- a/Document-Processing/Excel/Spreadsheet/React/selection.md
+++ b/Document-Processing/Excel/Spreadsheet/React/selection.md
@@ -48,20 +48,20 @@ The following sample shows the row selection in the spreadsheet, here selecting
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/selection-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/selection-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/selection-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/selection-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/selection-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/selection-cs1" %}
## Column selection
@@ -80,20 +80,20 @@ The following sample shows the column selection in the spreadsheet, here selecti
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs2/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/selection-cs2/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs2/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/selection-cs2/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs2/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/selection-cs2/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs2/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/selection-cs2/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/selection-cs2" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/selection-cs2" %}
## Get selected cell values
@@ -103,20 +103,20 @@ Below is a code example demonstrating how to retrieve the selected cell values a
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selected-cell-values/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/selected-cell-values/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selected-cell-values/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/selected-cell-values/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selected-cell-values/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/selected-cell-values/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selected-cell-values/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/selected-cell-values/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/selected-cell-values" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/selected-cell-values" %}
## Remove selection
@@ -124,20 +124,20 @@ The following sample shows, how to remove the selection in the spreadsheet. Here
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs3/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/selection-cs3/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs3/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/selection-cs3/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs3/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/selection-cs3/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/selection-cs3/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/selection-cs3/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/selection-cs3" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/selection-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/React/sort.md b/Document-Processing/Excel/Spreadsheet/React/sort.md
index 900ea6689..8408829f6 100644
--- a/Document-Processing/Excel/Spreadsheet/React/sort.md
+++ b/Document-Processing/Excel/Spreadsheet/React/sort.md
@@ -37,20 +37,20 @@ The following code example shows `sort` functionality in the Spreadsheet control
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/sort-by-cell-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/sort-by-cell-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/sort-by-cell-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/sort-by-cell-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/sort-by-cell-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/sort-by-cell-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/sort-by-cell-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/sort-by-cell-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/sort-by-cell-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/sort-by-cell-cs1" %}
## Data contains header
@@ -117,20 +117,20 @@ The multi-column sorting can also be performed manually by passing sort options
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/passing-sort-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/passing-sort-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/passing-sort-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/passing-sort-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/passing-sort-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/passing-sort-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/passing-sort-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/passing-sort-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/passing-sort-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/passing-sort-cs1" %}
## Custom sort comparer
@@ -150,20 +150,20 @@ In the following demo, the `Trustworthiness` column is sorted based on the custo
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/custom-sort-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/custom-sort-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/custom-sort-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/custom-sort-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/custom-sort-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/custom-sort-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/custom-sort-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/custom-sort-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/custom-sort-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/custom-sort-cs1" %}
## Known error validations
diff --git a/Document-Processing/Excel/Spreadsheet/React/template.md b/Document-Processing/Excel/Spreadsheet/React/template.md
index 5868a5bd5..eb51ae2b8 100644
--- a/Document-Processing/Excel/Spreadsheet/React/template.md
+++ b/Document-Processing/Excel/Spreadsheet/React/template.md
@@ -17,14 +17,14 @@ Sample link: [`Cell template`](https://document.syncfusion.com/demos/spreadsheet
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/template-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/template-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/template-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/template-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/template-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/template-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/undo-redo.md b/Document-Processing/Excel/Spreadsheet/React/undo-redo.md
index d79207a67..f1be15396 100644
--- a/Document-Processing/Excel/Spreadsheet/React/undo-redo.md
+++ b/Document-Processing/Excel/Spreadsheet/React/undo-redo.md
@@ -39,20 +39,20 @@ The following code example shows `How to update and customize your own actions f
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/undo-redo-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/undo-redo-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/undo-redo-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/undo-redo-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/undo-redo-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/undo-redo-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/undo-redo-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/undo-redo-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/undo-redo-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/undo-redo-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/React/worksheet.md b/Document-Processing/Excel/Spreadsheet/React/worksheet.md
index d285c5b0b..a6385fdb4 100644
--- a/Document-Processing/Excel/Spreadsheet/React/worksheet.md
+++ b/Document-Processing/Excel/Spreadsheet/React/worksheet.md
@@ -23,20 +23,20 @@ The following code example shows the insert sheet operation in spreadsheet.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-sheet-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/insert-sheet-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-sheet-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/insert-sheet-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-sheet-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/insert-sheet-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-sheet-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/insert-sheet-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/insert-sheet-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/insert-sheet-cs1" %}
### Insert a sheet programmatically and make it active sheet
@@ -46,14 +46,14 @@ The following code example shows how to insert a sheet programmatically and make
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-sheet-change-active-sheet-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/insert-sheet-change-active-sheet-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/insert-sheet-change-active-sheet-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/insert-sheet-change-active-sheet-cs1/app/app.tsx %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/insert-sheet-change-active-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/react/insert-sheet-change-active-sheet-cs1" %}
## Delete sheet
@@ -86,20 +86,20 @@ The following code example shows the headers and gridlines operation in spreadsh
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/headers-gridlines-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/headers-gridlines-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/headers-gridlines-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/headers-gridlines-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/headers-gridlines-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/headers-gridlines-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/headers-gridlines-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/headers-gridlines-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/headers-gridlines-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/headers-gridlines-cs1" %}
## Sheet visibility
@@ -117,20 +117,20 @@ The following code example shows the three types of sheet visibility state.
{% tabs %}
{% highlight js tabtitle="app.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/sheet-visiblity-cs1/app/app.jsx %}
+{% include code-snippet/spreadsheet/react/sheet-visiblity-cs1/app/app.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="app.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/sheet-visiblity-cs1/app/app.tsx %}
+{% include code-snippet/spreadsheet/react/sheet-visiblity-cs1/app/app.tsx %}
{% endhighlight %}
{% highlight js tabtitle="datasource.jsx" %}
-{% include code-snippet/excel/spreadsheet/react/sheet-visiblity-cs1/app/datasource.jsx %}
+{% include code-snippet/spreadsheet/react/sheet-visiblity-cs1/app/datasource.jsx %}
{% endhighlight %}
{% highlight ts tabtitle="datasource.tsx" %}
-{% include code-snippet/excel/spreadsheet/react/sheet-visiblity-cs1/app/datasource.tsx %}
+{% include code-snippet/spreadsheet/react/sheet-visiblity-cs1/app/datasource.tsx %}
{% endhighlight %}
{% endtabs %}
- {% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/react/sheet-visiblity-cs1" %}
+ {% previewsample "/document-processing/code-snippet/spreadsheet/react/sheet-visiblity-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/cell-range.md b/Document-Processing/Excel/Spreadsheet/Vue/cell-range.md
index 0c80e739b..51d11062d 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/cell-range.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/cell-range.md
@@ -25,14 +25,14 @@ The following code example shows the wrap text functionality in spreadsheet.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/wrap-text-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/wrap-text-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/wrap-text-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/wrap-text-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/wrap-text-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/wrap-text-cs1" %}
### Limitations of Wrap text
@@ -64,14 +64,14 @@ The following code example shows the merge cells operation in spreadsheet.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/merge-cells-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/merge-cells-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/merge-cells-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/merge-cells-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/merge-cells-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/merge-cells-cs1" %}
### Limitations of Merge
@@ -124,14 +124,14 @@ You can clear the highlighted invalid data by using the following ways,
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/number-format-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/number-format-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/number-format-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/number-format-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/number-format-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/number-format-cs1" %}
### Custom Data validation
@@ -152,14 +152,14 @@ The following code example demonstrates how to add custom data validation with a
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/data-validation-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/data-validation-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/data-validation-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/data-validation-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/data-validation-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/data-validation-cs1" %}
### Limitations of Data validation
@@ -196,14 +196,14 @@ Clear the cell contents and formats in the Spreadsheet document by using the [cl
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/clear-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/clear-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/clear-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/clear-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/clear-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/clear-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/clipboard.md b/Document-Processing/Excel/Spreadsheet/Vue/clipboard.md
index 43f0356e1..3c293869b 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/clipboard.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/clipboard.md
@@ -61,14 +61,14 @@ Paste can be done in one of the following ways.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/clipboard-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/clipboard-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/clipboard-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/clipboard-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/clipboard-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/clipboard-cs1" %}
## Prevent the paste functionality
@@ -76,14 +76,14 @@ The following example shows, how to prevent the paste action in spreadsheet. In
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/clipboard-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/clipboard-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/clipboard-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/clipboard-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/clipboard-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/clipboard-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/context-menu.md b/Document-Processing/Excel/Spreadsheet/Vue/context-menu.md
index 093d93563..170d2c1d8 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/context-menu.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/context-menu.md
@@ -70,14 +70,14 @@ In this demo, Custom Item is added after the Paste item in the context menu.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs1" %}
### Remove Context Menu Items
@@ -87,14 +87,14 @@ In this demo, Insert Column item has been removed from the row/column header con
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs2" %}
### Enable/Disable Context Menu Items
@@ -104,14 +104,14 @@ In this demo, Rename item is disabled in the pager context menu.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/contextmenu/addContextMenu-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/contextmenu/addContextMenu-cs3" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/data-binding.md b/Document-Processing/Excel/Spreadsheet/Vue/data-binding.md
index 819e5dad9..fb7ec3c35 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/data-binding.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/data-binding.md
@@ -21,14 +21,14 @@ Refer to the following code example for local data binding.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/local-data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/local-data-binding-cs1" %}
> The local data source can also be provided as an instance of the [`DataManager`]. By default, [`DataManager`] uses [`JsonAdaptor`] for local data-binding.
@@ -42,14 +42,14 @@ The following code example demonstrates how to customize the mapping of column d
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/field-mapping-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/field-mapping-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/field-mapping-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/field-mapping-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/field-mapping-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/field-mapping-cs1" %}
## Remote data
@@ -59,14 +59,14 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/remote-data-binding-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/remote-data-binding-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/remote-data-binding-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/remote-data-binding-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/remote-data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/remote-data-binding-cs1" %}
> By default, `DataManager` uses **ODataAdaptor** for remote data-binding.
@@ -76,14 +76,14 @@ Refer to the following code example for remote data binding.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/remote-data-binding-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/remote-data-binding-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/remote-data-binding-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/remote-data-binding-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/remote-data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/remote-data-binding-cs2" %}
### Web API
@@ -91,14 +91,14 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/remote-data-binding-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/remote-data-binding-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/remote-data-binding-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/remote-data-binding-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/remote-data-binding-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/remote-data-binding-cs3" %}
## Cell data binding
@@ -109,14 +109,14 @@ Refer to the following code example for cell data binding.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/cell-data-binding-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/cell-data-binding-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/cell-data-binding-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/cell-data-binding-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/cell-data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/cell-data-binding-cs1" %}
> The cell data binding also supports formula, style, number format, and more.
@@ -138,14 +138,14 @@ The following table defines the arguments of the `dataSourceChanged` event.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/dynamic-data-binding-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/dynamic-data-binding-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/dynamic-data-binding-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/dynamic-data-binding-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/dynamic-data-binding-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/dynamic-data-binding-cs1" %}
## Dynamic data binding using updateRange method
@@ -157,14 +157,14 @@ The following code example demonstrates how to dynamically update data using the
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/dynamic-data-binding-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/dynamic-data-binding-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/dynamic-data-binding-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/dynamic-data-binding-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/dynamic-data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/dynamic-data-binding-cs2" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/editing.md b/Document-Processing/Excel/Spreadsheet/Vue/editing.md
index 40c6205ea..4c9263a13 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/editing.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/editing.md
@@ -40,14 +40,14 @@ The following sample shows how to prevent the editing and cell save. Here `E` co
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/editing-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/editing-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/editing-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/editing-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/editing-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/editing-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/filter.md b/Document-Processing/Excel/Spreadsheet/Vue/filter.md
index 9c0e1ed1f..79e37a72f 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/filter.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/filter.md
@@ -37,14 +37,14 @@ The following code example shows `filter` functionality in the Spreadsheet contr
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/filter-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/filter-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/filter-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/filter-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/filter-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/filter-cs1" %}
## Filter by cell value
@@ -86,14 +86,14 @@ The following code example shows how to get the filtered rows.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/filter-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/filter-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/filter-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/filter-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/filter-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/filter-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/formatting.md b/Document-Processing/Excel/Spreadsheet/Vue/formatting.md
index 441ff1f1f..1f99b915a 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/formatting.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/formatting.md
@@ -41,14 +41,14 @@ The following code example shows the number formatting in cell data.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/number-format-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/number-format-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/number-format-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/number-format-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/number-format-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/number-format-cs2" %}
### Limitations of Number Formatting
@@ -99,14 +99,14 @@ The following code example demonstrates how to configure culture-based formats f
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/globalization-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/globalization-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/globalization-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/globalization-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/globalization-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/globalization-cs1" %}
## Text and cell formatting
@@ -169,14 +169,14 @@ The following code example shows the style formatting in text and cells of the s
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/cell-format-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/cell-format-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/cell-format-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/cell-format-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/cell-format-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/cell-format-cs1" %}
### Limitations of Formatting
@@ -266,14 +266,14 @@ You can clear the defined rules by using one of the following ways,
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/conditional-formatting-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/conditional-formatting-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/conditional-formatting-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/conditional-formatting-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/conditional-formatting-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/conditional-formatting-cs1" %}
### Limitations of Conditional formatting
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/formulas.md b/Document-Processing/Excel/Spreadsheet/Vue/formulas.md
index 454060454..7e66c2c03 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/formulas.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/formulas.md
@@ -32,14 +32,14 @@ In the example below, the Spreadsheet component is rendered with the `German cul
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/formula-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/formula-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/formula-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/formula-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/formula-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/formula-cs3" %}
## Create User Defined Functions / Custom Functions
@@ -51,14 +51,14 @@ The following code example shows an unsupported formula in the spreadsheet.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/formula-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/formula-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/formula-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/formula-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/formula-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/formula-cs1" %}
Second, if you want to directly compute any formula or expression, you can use the [computeExpression](https://ej2.syncfusion.com/vue/documentation/api/spreadsheet/#computeexpression) method. This method will work for both built-in and used-defined/custom formula.
@@ -66,14 +66,14 @@ The following code example shows how to use `computeExpression` method in the sp
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/formula-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/formula-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/formula-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/formula-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/formula-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/formula-cs2" %}
## Formula bar
@@ -92,14 +92,14 @@ The following code example shows the usage of named ranges support.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/defined-name-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/defined-name-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/defined-name-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/defined-name-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/defined-name-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/defined-name-cs1" %}
## Calculation Mode
@@ -120,14 +120,14 @@ The following code example demonstrates how to set the Automatic calculation mod
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/calculation-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/calculation-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/calculation-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/calculation-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/calculation-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/calculation-cs1" %}
### Manual Mode
@@ -142,14 +142,14 @@ The following code example demonstrates how to set the Manual calculation mode i
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/calculation-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/calculation-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/calculation-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/calculation-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/calculation-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/calculation-cs2" %}
## Supported Formulas
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/Vue/freeze-pane.md
index 43d9e9896..e5ca9b250 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/freeze-pane.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/freeze-pane.md
@@ -46,14 +46,14 @@ In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/freezepane-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/freezepane-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/freezepane-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/freezepane-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/freezepane-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/freezepane-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/getting-started.md b/Document-Processing/Excel/Spreadsheet/Vue/getting-started.md
index d34684221..daf90cb54 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/getting-started.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/getting-started.md
@@ -141,10 +141,10 @@ Here is the summarized code for the above steps in the **src/App.vue** file:
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/getting-started-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/getting-started-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/getting-started-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/getting-started-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
@@ -162,7 +162,7 @@ or
yarn run serve
```
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/getting-started-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/getting-started-cs1" %}
> You can refer to our [Vue Spreadsheet](https://www.syncfusion.com/spreadsheet-editor-sdk/vue-spreadsheet-editor) feature tour page for its groundbreaking feature representations. You can also explore our [Vue Spreadsheet example](https://document.syncfusion.com/demos/spreadsheet-editor/vue/#/tailwind3/spreadsheet/default.html) that shows you how to present and manipulate data.
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/global-local.md b/Document-Processing/Excel/Spreadsheet/Vue/global-local.md
index 743d3eb06..7c8b00fc6 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/global-local.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/global-local.md
@@ -383,14 +383,14 @@ The following example demonstrates the Spreadsheet in `French` culture. In the b
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/local-data-binding-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/local-data-binding-cs2" %}
## Internationalization
@@ -611,14 +611,14 @@ RTL provides an option to switch the text direction and layout of the Spreadshee
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/local-data-binding-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/local-data-binding-cs3" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/Vue/how-to/change-active-sheet.md
index d4e4bfc4a..9c25db329 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/how-to/change-active-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/how-to/change-active-sheet.md
@@ -15,11 +15,11 @@ The following code example shows how to set the active sheet when importing an E
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/change-active-sheet-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/change-active-sheet-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/change-active-sheet-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/change-active-sheet-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/change-active-sheet-cs1" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/change-active-sheet-cs1" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/Vue/how-to/identify-the-context-menu-opened.md
index 402f6ae00..172541173 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/how-to/identify-the-context-menu-opened.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/how-to/identify-the-context-menu-opened.md
@@ -24,11 +24,11 @@ The following code example shows how to identify the context menu opened.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/find-target-context-menu/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/find-target-context-menu/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/find-target-context-menu/app.vue %}
+{% include code-snippet/spreadsheet/vue/find-target-context-menu/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/find-target-context-menu" %}
\ No newline at end of file
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/find-target-context-menu" %}
\ No newline at end of file
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/illustrations.md b/Document-Processing/Excel/Spreadsheet/Vue/illustrations.md
index d939e2536..916d6a39a 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/illustrations.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/illustrations.md
@@ -70,14 +70,14 @@ Image feature allows you to view and insert an image in a spreadsheet, and you c
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/link-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/link-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/link-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/link-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/link-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/link-cs1" %}
### Limitations of Image
@@ -127,14 +127,14 @@ The available arguments in the `ChartModel` are:
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/chart-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/chart-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/chart-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/chart-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/chart-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/chart-cs2" %}
### Delete Chart
@@ -157,14 +157,14 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/chart-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/chart-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/chart-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/chart-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/chart-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/chart-cs1" %}
#### Customization of line chart markers
@@ -172,14 +172,14 @@ Using the [`actionBegin`](https://ej2.syncfusion.com/vue/documentation/api/sprea
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/chart-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/chart-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/chart-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/chart-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/chart-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/chart-cs3" %}
### Limitations of Chart
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/link.md b/Document-Processing/Excel/Spreadsheet/Vue/link.md
index b461f3284..9a4fe16a1 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/link.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/link.md
@@ -55,14 +55,14 @@ There is an event named `beforeHyperlinkClick` which triggers only on clicking h
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/link-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/link-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/link-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/link-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/link-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/link-cs2" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/notes.md b/Document-Processing/Excel/Spreadsheet/Vue/notes.md
index 4bc5030bb..ac3edef37 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/notes.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/notes.md
@@ -19,14 +19,14 @@ In the below example, you can add, edit, save, and delete notes.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/note-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/note-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/note-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/note-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/note-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/note-cs1" %}
## Adding a note
@@ -71,14 +71,14 @@ In the below example, the note functionality is disabled in the Spreadsheet.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/note-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/note-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/note-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/note-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/note-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/note-cs2" %}
## Integrating notes during initial loading and using cell data binding
@@ -86,14 +86,14 @@ The notes can be added initially when the Spreadsheet loads using cell data bind
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/note-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/note-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/note-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/note-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/note-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/note-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/open-save.md b/Document-Processing/Excel/Spreadsheet/Vue/open-save.md
index 4a3190caa..84cd40090 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/open-save.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/open-save.md
@@ -23,14 +23,14 @@ The following sample shows the `Open` option by using the [`openUrl`](https://ej
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-cs1" %}
Please find the below table for the beforeOpen event arguments.
@@ -51,14 +51,14 @@ The following code example shows how to import an excel document using file uplo
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-uploader-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-uploader-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-uploader-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-uploader-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-uploader-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-uploader-cs1" %}
### Open an external URL excel file while initial load
@@ -66,14 +66,14 @@ You can achieve to access the remote excel file by using the [`created`](https:/
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-cs2" %}
### Open an excel file from blob data
@@ -83,14 +83,14 @@ Please find the code to fetch the blob data and load it into the Spreadsheet com
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-from-blobdata-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-from-blobdata-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-from-blobdata-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-from-blobdata-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-from-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-from-blobdata-cs1" %}
### Open an Excel file located on a server
@@ -362,14 +362,14 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/base-64-string/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/base-64-string/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/base-64-string/app.vue %}
+{% include code-snippet/spreadsheet/vue/base-64-string/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/base-64-string" %}
### Open excel file into a read-only mode
@@ -377,14 +377,14 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-readonly-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-readonly-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-readonly-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-readonly-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-readonly-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-readonly-cs1" %}
### Configure JSON deserialization options
@@ -414,14 +414,14 @@ The following code snippet demonstrates how to configure the deserialization opt
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-from-json/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-from-json/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-from-json/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-from-json/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-from-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-from-json" %}
### Improving Excel file open performance with parsing options
@@ -597,14 +597,14 @@ You can add your own custom header to the open action in the Spreadsheet. For pr
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/custom-header-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/custom-header-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/custom-header-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/custom-header-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/custom-header-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/custom-header-cs1" %}
### External workbook confirmation dialog
@@ -646,14 +646,14 @@ The following sample shows the `Save` option by using the [`saveUrl`](https://ej
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-save-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-save-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-save-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-save-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-save-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-save-cs1" %}
Please find the below table for the beforeSave event arguments.
@@ -679,14 +679,14 @@ Please find below the code to retrieve blob data from the Spreadsheet component
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/save-as-blobdata-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/save-as-blobdata-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/save-as-blobdata-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/save-as-blobdata-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/save-as-blobdata-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/save-as-blobdata-cs1" %}
### Save an Excel file to a server
@@ -1011,14 +1011,14 @@ The following code example shows how to save the spreadsheet data as base64 stri
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/base-64-string/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/base-64-string/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/base-64-string/app.vue %}
+{% include code-snippet/spreadsheet/vue/base-64-string/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/base-64-string" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/base-64-string" %}
### Configure JSON serialization options
@@ -1048,14 +1048,14 @@ The following code snippet demonstrates how to configure the serialization optio
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/save-as-json/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/save-as-json/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/save-as-json/app.vue %}
+{% include code-snippet/spreadsheet/vue/save-as-json/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/save-as-json" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/save-as-json" %}
### Send and receive custom params from client to server
@@ -1063,14 +1063,14 @@ Passing the custom parameters from client to server by using [`beforeSave`](http
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-save-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-save-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-save-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-save-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-save-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-save-cs2" %}
Server side code snippets:
@@ -1089,14 +1089,14 @@ You can add your own custom header to the save action in the Spreadsheet. For pr
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/custom-header-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/custom-header-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/custom-header-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/custom-header-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/custom-header-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/custom-header-cs2" %}
### Change the PDF orientation
@@ -1109,14 +1109,14 @@ The possible values are:
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-save-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/open-save-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/open-save-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/open-save-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/open-save-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/open-save-cs3" %}
### Supported file formats
@@ -1133,14 +1133,14 @@ To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using [
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/save-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/save-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/save-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/save-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/save-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/save-cs1" %}
## Server Configuration
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/print.md b/Document-Processing/Excel/Spreadsheet/Vue/print.md
index 2fa45ef5d..71bc684f4 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/print.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/print.md
@@ -31,14 +31,14 @@ The `printOptions` contain three properties, as described below.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/print-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/print-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/print-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/print-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/print-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/print-cs2" %}
## Disable printing
@@ -48,14 +48,14 @@ The printing functionality in the Spreadsheet can be disabled by setting the [`a
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/print-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/print-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/print-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/print-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/print-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/print-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/Vue/protect-sheet.md
index 1f075bc01..5fe754c14 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/protect-sheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/protect-sheet.md
@@ -46,14 +46,14 @@ The following example shows `Protect Sheet` functionality in the Spreadsheet con
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/protect-sheet-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/protect-sheet-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/protect-sheet-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/protect-sheet-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/protect-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/protect-sheet-cs1" %}
## Limitations of Protect Sheet
@@ -77,14 +77,14 @@ In protected spreadsheet, to make some particular cell or range of cells are edi
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/lock-cells-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/lock-cells-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/lock-cells-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/lock-cells-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/lock-cells-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/lock-cells-cs1" %}
## Make cells read-only without protecting worksheet
@@ -137,14 +137,14 @@ The following example demonstrates how to make rows, columns, and cells read-onl
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/readonly-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/readonly-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/readonly-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/readonly-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/readonly-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/readonly-cs1" %}
## Protect Workbook
@@ -162,27 +162,27 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs4/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs4/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs4/app.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs4/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/local-data-binding-cs4" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/local-data-binding-cs4" %}
The following example shows `Protect Workbook` by using the [`password`](https://ej2.syncfusion.com/vue/documentation/api/spreadsheet/#password) property in the Spreadsheet control. To unprotect the workbook, click the unprotect workbook button in the data tab and provide the password as syncfusion® in the dialog box.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs5/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs5/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/local-data-binding-cs5/app.vue %}
+{% include code-snippet/spreadsheet/vue/local-data-binding-cs5/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/local-data-binding-cs5" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/local-data-binding-cs5" %}
## Unprotect Workbook
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/ribbon.md b/Document-Processing/Excel/Spreadsheet/Vue/ribbon.md
index 9e8130a5a..09e6dbce8 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/ribbon.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/ribbon.md
@@ -31,14 +31,14 @@ The following code example shows the usage of ribbon customization.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/ribbon-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/ribbon-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/ribbon-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/ribbon-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/ribbon-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/ribbon-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/Vue/rows-and-columns.md
index 2329615b5..e941fa51b 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/rows-and-columns.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/rows-and-columns.md
@@ -30,14 +30,14 @@ The following code example shows the options for inserting rows in the spreadshe
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-row-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/insert-row-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-row-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/insert-row-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/insert-row-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/insert-row-cs1" %}
### Column
@@ -50,14 +50,14 @@ The following code example shows the options for inserting columns in the spread
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-column-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/insert-column-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-column-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/insert-column-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/insert-column-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/insert-column-cs1" %}
## Delete
@@ -72,14 +72,14 @@ The following code example shows the delete operation of rows and columns in the
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/delete-row-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/delete-row-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/delete-row-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/delete-row-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/delete-row-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/delete-row-cs1" %}
## Limitations of insert and delete
@@ -114,14 +114,14 @@ The following code example shows the hide/show rows and columns operation in the
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/show-hide-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/show-hide-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/show-hide-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/show-hide-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/show-hide-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/show-hide-cs1" %}
## Size
@@ -142,14 +142,14 @@ The following code example shows how to change the height for single/multiple ro
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/row-height-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/row-height-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/row-height-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/row-height-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/row-height-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/row-height-cs1" %}
### Column
@@ -166,14 +166,14 @@ The following code example shows how to change the width for single/multiple col
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/column-width-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/column-width-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/column-width-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/column-width-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/column-width-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/column-width-cs1" %}
## Changing text in column headers
@@ -183,14 +183,14 @@ The following code example shows how to change the text in the column headers.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/column-header-change-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/column-header-change-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/column-header-change-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/column-header-change-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/column-header-change-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/column-header-change-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/scrolling.md b/Document-Processing/Excel/Spreadsheet/Vue/scrolling.md
index 84e8eb6d4..ea56c3964 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/scrolling.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/scrolling.md
@@ -52,14 +52,14 @@ The following code example shows the finite scrolling with defined rows and colu
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/scrolling-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/scrolling-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/scrolling-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/scrolling-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/scrolling-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/scrolling-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/searching.md b/Document-Processing/Excel/Spreadsheet/Vue/searching.md
index b24953ac0..9b8ac3ce4 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/searching.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/searching.md
@@ -64,14 +64,14 @@ Go to feature is used to navigate to a specific cell address in the sheet or wor
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/searching-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/searching-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/searching-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/searching-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/searching-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/searching-cs1" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/selection.md b/Document-Processing/Excel/Spreadsheet/Vue/selection.md
index fdf17c588..b93f1b8ed 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/selection.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/selection.md
@@ -48,14 +48,14 @@ The following sample shows the row selection in the spreadsheet, here selecting
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selection-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/selection-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selection-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/selection-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/selection-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/selection-cs1" %}
## Column selection
@@ -74,14 +74,14 @@ The following sample shows the column selection in the spreadsheet, here selecti
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selection-cs2/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/selection-cs2/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selection-cs2/app.vue %}
+{% include code-snippet/spreadsheet/vue/selection-cs2/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/selection-cs2" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/selection-cs2" %}
## Get selected cell values
@@ -91,14 +91,14 @@ Below is a code example demonstrating how to retrieve the selected cell values a
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selected-cell-values/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/selected-cell-values/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selected-cell-values/app.vue %}
+{% include code-snippet/spreadsheet/vue/selected-cell-values/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/selected-cell-values" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/selected-cell-values" %}
## Remove Selection
@@ -106,14 +106,14 @@ The following sample shows, how to remove the selection in the spreadsheet. Here
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selection-cs3/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/selection-cs3/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/selection-cs3/app.vue %}
+{% include code-snippet/spreadsheet/vue/selection-cs3/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/selection-cs3" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/selection-cs3" %}
## Limitations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/sort.md b/Document-Processing/Excel/Spreadsheet/Vue/sort.md
index 89d34a374..f07ec03ab 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/sort.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/sort.md
@@ -37,14 +37,14 @@ The following code example shows `Sort` functionality in the Spreadsheet control
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/sort-by-cell-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/sort-by-cell-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/sort-by-cell-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/sort-by-cell-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/sort-by-cell-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/sort-by-cell-cs1" %}
## Data contains header
@@ -110,14 +110,14 @@ The multi-column sorting can also be performed manually by passing sort options
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/passing-sort-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/passing-sort-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/passing-sort-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/passing-sort-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/passing-sort-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/passing-sort-cs1" %}
## Custom sort comparer
@@ -137,14 +137,14 @@ In the following demo, the `Trustworthiness` column is sorted based on the custo
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/custom-sort-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/custom-sort-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/custom-sort-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/custom-sort-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/custom-sort-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/custom-sort-cs1" %}
## Known error validations
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/undo-redo.md b/Document-Processing/Excel/Spreadsheet/Vue/undo-redo.md
index f03a22216..d144e1066 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/undo-redo.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/undo-redo.md
@@ -39,14 +39,14 @@ The following code example shows `How to update and customize your own actions f
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/undo-redo-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/undo-redo-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/undo-redo-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/undo-redo-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/undo-redo-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/undo-redo-cs1" %}
## Note
diff --git a/Document-Processing/Excel/Spreadsheet/Vue/worksheet.md b/Document-Processing/Excel/Spreadsheet/Vue/worksheet.md
index 8a79188a9..b2c35b78c 100644
--- a/Document-Processing/Excel/Spreadsheet/Vue/worksheet.md
+++ b/Document-Processing/Excel/Spreadsheet/Vue/worksheet.md
@@ -23,14 +23,14 @@ The following code example shows the insert sheet operation in spreadsheet.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-sheet-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/insert-sheet-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-sheet-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/insert-sheet-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/insert-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/insert-sheet-cs1" %}
### Insert a sheet programmatically and make it active sheet
@@ -40,14 +40,14 @@ The following code example shows how to insert a sheet programmatically and make
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-sheet-change-active-sheet-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/insert-sheet-change-active-sheet-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/insert-sheet-change-active-sheet-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/insert-sheet-change-active-sheet-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/insert-sheet-change-active-sheet-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/insert-sheet-change-active-sheet-cs1" %}
## Delete sheet
@@ -80,14 +80,14 @@ The following code example shows the headers and gridlines operation in spreadsh
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/header-gridlines-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/header-gridlines-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/header-gridlines-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/header-gridlines-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/header-gridlines-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/header-gridlines-cs1" %}
## Sheet visibility
@@ -105,14 +105,14 @@ The following code example shows the three types of sheet visibility state.
{% tabs %}
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/sheet-visiblity-cs1/app-composition.vue %}
+{% include code-snippet/spreadsheet/vue/sheet-visiblity-cs1/app-composition.vue %}
{% endhighlight %}
{% highlight html tabtitle="Options API (~/src/App.vue)" %}
-{% include code-snippet/excel/spreadsheet/vue/sheet-visiblity-cs1/app.vue %}
+{% include code-snippet/spreadsheet/vue/sheet-visiblity-cs1/app.vue %}
{% endhighlight %}
{% endtabs %}
-{% previewsample "https://helpstaging.syncfusion.com/document-processing/code-snippet/excel/spreadsheet/vue/sheet-visiblity-cs1" %}
+{% previewsample "/document-processing/code-snippet/spreadsheet/vue/sheet-visiblity-cs1" %}
## Note
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-Azure-Functions-Linux.md b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-Azure-Functions-Linux.md
index 875979f3a..2662d621a 100644
--- a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-Azure-Functions-Linux.md
+++ b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-Azure-Functions-Linux.md
@@ -24,11 +24,62 @@ Step 3: Select the function worker as .NET 8.0 isolated (Long-term support), and

Step 4: Install the [Syncfusion.HtmlToPdfConverter.Net.Linux](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Linux/) NuGet package as a reference to your .NET Core application [NuGet.org](https://www.nuget.org/).
-
+
N> Starting with v16.2.0.x, if you reference Syncfusion® assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion® license key in your application to use our components.
-Step 5: Include the following namespaces in Function1.cs file.
+
+Step 5: Create a shell file with the below commands in the project and name it as dependenciesInstall.sh. In this article, these steps have been followed to install dependencies packages.
+
+{% highlight bash tabtitle="Shell" %}
+
+echo "Starting dependencies installation script..."
+
+
+if ! command -v rsync &> /dev/null; then
+ echo "rsync could not be found, installing..."
+ apt-get update && apt-get install -yq rsync
+fi
+
+FILE_PATH="/home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu/libnss3.so"
+if [ -f "$FILE_PATH" ]; then
+ echo "Dependencies file exists."
+ PACKAGE_USR="/home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu"
+ if [ -d "$PACKAGE_USR" ]; then
+ echo "Copying user libraries..."
+ rsync -av --update /home/site/wwwroot/Package/usr/lib/ /usr/lib/
+ echo "Copied successfully..."
+ fi
+else
+ echo "Package directory does not exist. Installing dependencies..."
+ apt-get update && apt-get install -yq --no-install-recommends \
+ libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 \
+ libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
+ libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 \
+ libx11-6 libx11-xcb1 libxcb1 libxcursor1 libxdamage1 libxext6 \
+ libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libnss3 libgbm1
+
+ mkdir -p /home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu
+ mkdir -p /home/site/wwwroot/Package/lib/x86_64-linux-gnu
+
+ PACKAGE_USR="/home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu"
+ if [ -d "$PACKAGE_USR" ]; then
+ echo "Copying user libraries to package..."
+ rsync -av /usr/lib/x86_64-linux-gnu/ /home/site/wwwroot/Package/usr/lib/x86_64-linux-gnu
+ fi
+fi
+
+echo "Dependencies installation script completed."
+
+{% endhighlight %}
+
+
+
+Step 6: Set Copy to Output Directory as “Copy if newer” to the dependenciesInstall.sh file.
+
+
+
+Step 7: Include the following namespaces in Function1.cs file.
{% highlight c# tabtitle="C#" %}
@@ -39,7 +90,7 @@ Step 5: Include the following namespaces in Function1.cs file.
{% endhighlight %}
-Step 6: This Azure Function converts HTML to PDF using HTTP triggers. It handles GET/POST requests, processes the HTML, and returns a PDF response.
+Step 8: This Azure Function converts HTML to PDF using HTTP triggers. It handles GET/POST requests, processes the HTML, and returns a PDF response.
{% highlight c# tabtitle="C#" %}
@@ -67,7 +118,7 @@ Step 6: This Azure Function converts HTML to PDF using HTTP triggers. It handles
{% endhighlight %}
-step 7: Use the following code example in the HtmlToPdfConvert method to convert HTML to a PDF document using the [Convert](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in the [HtmlToPdfConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The Blink command line arguments are configured based on the given [CommandLineArguments](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_CommandLineArguments) property of the [BlinkConverterSettings](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class.
+step 9: Use the following code example in the HtmlToPdfConvert method to convert HTML to a PDF document using the [Convert](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in the [HtmlToPdfConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class. The Blink command line arguments are configured based on the given [CommandLineArguments](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_CommandLineArguments) property of the [BlinkConverterSettings](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.BlinkConverterSettings.html) class.
{% highlight c# tabtitle="C#" %}
@@ -99,6 +150,7 @@ public byte[] HtmlToPdfConvert(string htmlText)
Bottom = 20
}
};
+
htmlConverter.ConverterSettings = settings;
// Convert HTML to PDF
@@ -127,7 +179,7 @@ N> settings.CommandLineArguments.Add("--disable-setuid-sandbox");
N> ```
N> These arguments are only required when using **older versions** of the library that depend on Blink in sandbox-restricted environments.
-Step 8: This code is designed to ensure that the necessary Linux packages for HTML to PDF conversion are installed if the operating system is Linux. It adjusts file permissions and executes a shell script to carry out the installation.
+Step 10: This code is designed to ensure that the necessary Linux packages for HTML to PDF conversion are installed if the operating system is Linux. It adjusts file permissions and executes a shell script to carry out the installation.
{% highlight c# tabtitle="C#" %}
@@ -195,7 +247,7 @@ private static void InstallLinuxPackages()
{% endhighlight %}
-Step 9: Add the following helper methods to copy and set permission to the BlinkBinariesLinux folder.
+Step 11: Add the following helper methods to copy and set permission to the BlinkBinariesLinux folder.
{% highlight c# tabtitle="C#" %}
@@ -257,7 +309,7 @@ private static void SetExecutablePermission(string tempBlinkDir)
{% endhighlight %}
-Step 10: Include the below enum in the Function1.cs file.
+Step 12: Include the below enum in the Function1.cs file.
{% highlight c# tabtitle="C#" %}
@@ -318,4 +370,5 @@ An online sample link to [convert HTML to PDF document](https://ej2.syncfusion.c
Click [here](https://www.syncfusion.com/document-processing/pdf-framework/net-core/html-to-pdf) to explore the rich set of Syncfusion® HTML to PDF converter library features.
-An online sample link to [convert HTML to PDF document](https://ej2.syncfusion.com/aspnetcore/PDF/HtmltoPDF#/material3) in ASP.NET Core.
\ No newline at end of file
+
+An online sample link to [convert HTML to PDF document](https://ej2.syncfusion.com/aspnetcore/PDF/HtmltoPDF#/material3) in ASP.NET Core.
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-GCP.md b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-GCP.md
new file mode 100644
index 000000000..1e291c941
--- /dev/null
+++ b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-GCP.md
@@ -0,0 +1,30 @@
+---
+title: Convert HTML to PDF in GCP | Syncfusion
+description: Learn how to convert HTML to PDF in the Google Cloud Platform (GCP) using Syncfusion .NET Core PDF library without the dependency of Adobe Acrobat.
+platform: document-processing
+control: PDF
+documentation: UG
+keywords: gcp os save pdf, gcp os load pdf, c# save pdf, c# load pdf
+---
+# Convert HTML to PDF file in Google Cloud Platform (GCP)
+
+The Syncfusion® [HTML to PDF converter](https://www.syncfusion.com/document-sdk/net-pdf-library/html-to-pdf) is a .NET library for converting webpages, SVG, MHTML, and HTML to PDF using C#. The result preserves all graphics, images, text, fonts, and the layout of the original HTML document or webpage. Create a PDF document in Google Cloud Platform (GCP) using this library within a few lines of code.
+
+## Prerequisites
+
+* A [Google Cloud Platform (GCP)](https://console.cloud.google.com/getting-started) account with access to the App Engine service.
+
+## Google Cloud Platform (GCP)
+
+
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-Google-App-Engine.md b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-Google-App-Engine.md
new file mode 100644
index 000000000..f8f43b1bd
--- /dev/null
+++ b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/Convert-HTML-to-PDF-in-Google-App-Engine.md
@@ -0,0 +1,259 @@
+---
+title: Convert HTML to PDF in in Google App Engine| Syncfusion
+description: Learn how to convert HTML to PDF in in the Google App Engine using Syncfusion .NET Core PDF library without the dependency of Adobe Acrobat.
+platform: document-processing
+control: PDF
+documentation: UG
+keywords: google app engine save pdf, app engine load pdf, c# save pdf, c# load pdf
+---
+
+# Convert HTML to PDF in Google App Engine
+
+The Syncfusion® [HTML to PDF converter](https://www.syncfusion.com/document-sdk/net-pdf-library/html-to-pdf) is a .NET library for converting webpages, SVG, MHTML, and HTML to PDF using C#. Using this library, you can convert HTML to PDF using C# with Blink rendering engine in Google App Engine.
+
+## Set up App Engine
+
+Step 1: Open the **Google Cloud Console** and click the **Activate Cloud Shell** button.
+
+
+Step 2: Click the **Cloud Shell Editor** button to view the **Workspace**.
+
+
+Step 3: Open **Cloud Shell Terminal**, and run the following **command** to confirm authentication.
+{% tabs %}
+{% highlight c# tabtitle="CLI" %}
+
+gcloud auth list
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+Step 4: Click the **Authorize** button.
+
+
+## Create an application for App Engine
+
+Step 1: Open Visual Studio and select the ASP.NET Core Web app (Model-View-Controller) template.
+
+
+Step 2: Install the [Syncfusion.HtmlToPdfConverter.Net.Linux](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Linux/) NuGet package as a reference to your .NET Core application [NuGet.org](https://www.nuget.org/).
+
+
+N> Starting with v16.2.0.x, if you reference Syncfusion® assemblies from the trial setup or from the NuGet feed, you also have to add the "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to learn about registering the Syncfusion® license key in your application to use our components.
+
+Step 5: Include the following namespaces in the **HomeController.cs** file.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+using Syncfusion.HtmlConverter;
+using Syncfusion.Pdf;
+using System.IO;
+
+{% endhighlight %}
+{% endtabs %}
+
+Step 6: A default action method named Index will be present in HomeController.cs. Right click on Index method and select **Go To View** where you will be directed to its associated view page **Index.cshtml**.
+
+Step 7: Add a new button in the Index.cshtml as shown in the following.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+@{Html.BeginForm("CreateDocument", "Home", FormMethod.Get);
+ {
+
+
+
+ }
+ Html.EndForm();
+}
+{% endhighlight %}
+{% endtabs %}
+
+Step 6: Add a new action method in HomeController.cs and include the below code example to convert HTML to PDF document using [Convert](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+public ActionResult ExportToPDF()
+{
+//Initialize HTML to PDF converter.
+HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
+
+//Convert URL to PDF document.
+using (PdfDocument document = htmlConverter.Convert("https://www.google.com"))
+{
+ //Save a PDF document.
+ document.Save("Output.pdf");
+}
+}
+{% endhighlight %}
+{% endtabs %}
+
+## Move application to App Engine
+
+Step 1: Open the **Cloud Shell editor**.
+
+
+
+Step 2: Drag and drop the sample from your local machine to **Workspace**.
+
+
+
+N> If you have your sample application in your local machine, drag and drop it into the Workspace. If you created the sample using the Cloud Shell terminal command, it will be available in the Workspace.
+
+Step 3: Open the Cloud Shell Terminal and run the following **command** to view the files and directories within your **current Workspace**.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+ls
+
+{% endhighlight %}
+{% endtabs %}
+
+This will show the list of files and folders in workspace. Navigate to which sample you want run.
+
+Step 4: Run the following **command** to navigate which sample you want to run.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+cd HtmlToPDFSample
+
+{% endhighlight %}
+{% endtabs %}
+
+Step 5: To ensure that the sample is working correctly, please run the application using the following command.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+dotnet run --urls=http://localhost:8080
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+Step 6: Verify that the application is running properly by accessing the **Web View -> Preview on port 8080**.
+
+
+
+Step 7: Now you can see the sample output on the preview page.
+
+
+
+Step 8: Close the preview page and return to the terminal then press **Ctrl+C** for which will typically stop the process.
+
+
+
+## Publish the application
+
+Step 1: Run the following command in the **Cloud Shell Terminal** to publish the application.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+dotnet publish -c Release
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+Step 2: Run the following command in the **Cloud Shell Terminal** to navigate to the publish folder.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+cd bin/Release/net8.0/publish/
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+## Configure app.yaml and docker file
+
+Step 1: Add the app.yaml file to the publish folder with the following contents.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+cat <> app.yaml
+env: flex
+runtime: custom
+EOT
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+
+Step 2: Add the Docker file to the publish folder with the following contents.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+cat <> Dockerfile
+FROM mcr.microsoft.com/dotnet/aspnet:8.0
+RUN apt-get update && \
+apt-get install -yq --no-install-recommends \
+libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
+libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
+libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
+libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
+libnss3 libgbm1
+
+ADD / /app
+EXPOSE 8080
+ENV ASPNETCORE_URLS=http://*:8080
+WORKDIR /app
+ENTRYPOINT [ "dotnet", "HtmlToPDFSample.dll"]
+EOT
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+Step 3: You can ensure **Docker** and **app.yaml** files are added in **Workspace**.
+
+
+
+## Deploy to App Engine
+
+Step 1: To deploy the application to the App Engine, run the following command in Cloud Shell Terminal. Afterwards, retrieve the **URL** from the Cloud Shell Terminal.
+
+{% tabs %}
+{% highlight c# tabtitle="C#" %}
+
+gcloud app deploy --version v0
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+
+Step 2: Open the **URL** to access the application, which has been successfully deployed.
+
+
+
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/HtmlToPdf/HtmlToPDFSample).
+
+By executing the program, you will get the **PDF document** as follows. The output will be saved in the **bin folder**.
+
+
+
+Click [here](https://www.syncfusion.com/document-sdk/net-pdf-library/html-to-pdf) to explore the rich set of Syncfusion® HTML to PDF converter library features.
+
+
+
+
+
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/features.md b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/features.md
index 0956b2395..f11fa8174 100644
--- a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/features.md
+++ b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/features.md
@@ -2219,6 +2219,8 @@ htmlConverter.Close()
{% endtabs %}
+N> Our HTML to PDF converter is thread-safe and suitable for multi-threaded environments without synchronization conflicts or data corruption. However, when the [ReuseBrowserProcess](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_ReuseBrowserProcess) property is `enabled`, the same HtmlToPdfConverter instance must be reused across threads, which involves sharing a single browser process. This makes it not thread-safe unless proper synchronization mechanisms, such as locks, are used to serialize access. `Disabling ReuseBrowserProcess` allows true parallelism with isolated browser instances per thread.
+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/Optimize-HTML-to-PDF-performance).
## Temporary path
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/App-engine.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/App-engine.png
new file mode 100644
index 000000000..8d7a83f0a
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/App-engine.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/App_yaml.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/App_yaml.png
new file mode 100644
index 000000000..27837bf62
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/App_yaml.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Console_Page.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Console_Page.png
new file mode 100644
index 000000000..1d3cf8b59
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Console_Page.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/CopyToNewer.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/CopyToNewer.png
new file mode 100644
index 000000000..ce31cb90a
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/CopyToNewer.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Deploy.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Deploy.png
new file mode 100644
index 000000000..15c03145f
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Deploy.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Docker.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Docker.png
new file mode 100644
index 000000000..f7224693b
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Docker.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Docker_File.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Docker_File.png
new file mode 100644
index 000000000..8c509df8c
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Docker_File.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Get_deploy_url.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Get_deploy_url.png
new file mode 100644
index 000000000..1492c4360
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Get_deploy_url.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Include-project.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Include-project.png
new file mode 100644
index 000000000..503d374a0
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Include-project.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Output.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Output.png
new file mode 100644
index 000000000..87b412255
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Output.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Preview.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Preview.png
new file mode 100644
index 000000000..7801745e5
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Preview.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Publish_Folder.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Publish_Folder.png
new file mode 100644
index 000000000..ddfd57c34
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Publish_Folder.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Publish_GCP.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Publish_GCP.png
new file mode 100644
index 000000000..cad98b16f
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Publish_GCP.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Run_Application.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Run_Application.png
new file mode 100644
index 000000000..c7a2781a5
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Run_Application.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Run_View.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Run_View.png
new file mode 100644
index 000000000..65491fbef
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/Run_View.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/ShellCommand.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/ShellCommand.png
new file mode 100644
index 000000000..459eedd6e
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/ShellCommand.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/authorize_button.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/authorize_button.png
new file mode 100644
index 000000000..fb82c0ab6
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/authorize_button.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/authorize_command.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/authorize_command.png
new file mode 100644
index 000000000..30ebb64de
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/authorize_command.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/cloud_shell.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/cloud_shell.png
new file mode 100644
index 000000000..48f179ab0
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/cloud_shell.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/cloud_shell_editor.png b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/cloud_shell_editor.png
new file mode 100644
index 000000000..b257eb2bc
Binary files /dev/null and b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/htmlconversion_images/cloud_shell_editor.png differ
diff --git a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/troubleshooting.md b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/troubleshooting.md
index 5599d4a2f..846f3a2f3 100644
--- a/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/troubleshooting.md
+++ b/Document-Processing/PDF/Conversions/HTML-To-PDF/NET/troubleshooting.md
@@ -628,7 +628,6 @@ blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
-
## Converting the HTML to PDF fails in x32 bit windows system environment
+## Hyperlinks appearances do not navigate to their referenced URLs when using `CreateTemplate` and `DrawPdfTemplate` methods
+
+
+
Issue
+
+
Hyperlinks appearances do not navigate to their referenced URLs when using `CreateTemplate` and `DrawPdfTemplate` methods
+
+
+
+
Reason
+
+
The CreateTemplate and DrawPdfTemplate methods generally do not import annotation details, including hyperlink information, from the original PDF document. This means that while the visual appearance of a hyperlink (blue, underlined text) might be preserved, the underlying functionality of navigating to the URL is not transferred.
+
+
+
+
+
Solution
+
+
A workaround involves manually extracting and re-applying hyperlink annotations. This can be achieved by following these steps:
+1.Extract Annotations: Before creating and drawing the PDF template, extract all annotations, specifically hyperlink annotations, from the original PDF document.
+2.Draw PDF Template: Use the CreateTemplate and DrawPdfTemplate methods to draw the PDF content into a new document.
+3.Incorporate Annotations: After the template has been drawn, programmatically add the extracted hyperlink annotations to the corresponding positions in the new document. This will restore the interactive functionality of the hyperlinks.
+Please refer to the sample project: HTML-to-PDF-Hyperlink
+
+
+
## ERROR:The specified module could not be found in windows server 2012 R2
@@ -1381,7 +1406,7 @@ This issue may occur due to one of the following reasons:
Solution
-To resolve the issue and ensure successful HTML to PDF conversion in Azure App Service (Linux), follow these steps:
+To resolve the issue and ensure successful HTML to PDF conversion in Azure App Service (Linux), follow these steps:
1: Grant File Access Permissions
@@ -1546,5 +1571,26 @@ N> We have option to exclude the default Blink binaries from the installation pa
+{% endhighlight %}
+{% endtabs %}
+
+## How to Exclude BlinkBinaries or Runtime Files in Build or Deployment
+
+The runtime files, or blink binaries, will be copied into a bin or published folder while building and publishing the application.
+By including the native option in the package reference of the csproj file, you can exclude the runtime files or blink binaries from being copied into the bin or publish folder while building and publishing the application. But you need to place the BlinkBinaries in the server disk and set the BlinkPath in the BlinkConverterSettings to perform the conversion.
+
+N> Using this approach, you can reduce the deployment size on your own servers.
+
+Refer to the following package reference:
+
+{% tabs %}
+{% highlight C# %}
+
+
+
+ native
+
+
+
{% endhighlight %}
{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Library/NET/Converting-images-to-PDF.md b/Document-Processing/PDF/PDF-Library/NET/Converting-images-to-PDF.md
index 12a9a505f..d64859b4f 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Converting-images-to-PDF.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Converting-images-to-PDF.md
@@ -25,83 +25,75 @@ This includes a wide range of image formats for PDF conversion. These image form
N> For using image formats other than PNG and JPEG in ASP.NET Core, you need to include the [Syncfusion.Pdf.Imaging.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Imaging.Net.Core) package in your project. This package provides the necessary support for handling other raster image formats like BMP, GIF, TIFF, and ICO.
-You can load images from various sources, including image streams and files on disk using [PdfBitmap](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfBitmap.html) class. Once you have loaded an image, you can draw it on a PDF document using the [DrawImage](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_DrawImage_Syncfusion_Pdf_Graphics_PdfImage_System_Drawing_PointF_) method of the [PdfGraphics](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html) class.
+The [ImageToPdfConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.ImageToPdfConverter.html) class is used to convert image files into PDF documents, with options to customize page size and image positioning.
The following code example shows how to convert image to PDF document.
{% tabs %}
-{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Insert-image-in-a-new-PDF-document/.NET/Insert-image-in-a-new-PDF-document/Program.cs" %}
-
-//Create a new PDF document
-PdfDocument doc = new PdfDocument();
-//Add a page to the document
-PdfPage page = doc.Pages.Add();
-
-//Create PDF graphics for the page
-PdfGraphics graphics = page.Graphics;
-//Load the image from the disk
-FileStream imageStream = new FileStream("Autumn Leaves.jpg", FileMode.Open, FileAccess.Read);
-PdfBitmap image = new PdfBitmap(imageStream);
-//Draw the image
-graphics.DrawImage(image, 0, 0);
-
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
-//If the position is not set to '0' then the PDF will be empty
-stream.Position = 0;
-//Close the document
-doc.Close(true);
+{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Convert_Image_to_PDF/.NET/Convert_Image_to_PDF/Program.cs" %}
+
+// Create an instance of the ImageToPdfConverter class
+ImageToPdfConverter imageToPdfConverter = new ImageToPdfConverter();
+// Set the page size for the document
+imageToPdfConverter.PageSize = PdfPageSize.A4;
+// Set the position of the image in the document
+imageToPdfConverter.ImagePosition = PdfImagePosition.TopLeftCornerOfPage;
+// Create a file stream to read the image file
+using (FileStream imageStream = new FileStream("Image.jpg", FileMode.Open, FileAccess.Read))
+// Convert the image to a PDF document using the ImageToPdfConverter
+using (PdfDocument pdfDocument = imageToPdfConverter.Convert(imageStream))
+{
+ //Save the PDF document
+ pdfDocument.Save("Output.pdf");
+}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Create a new PDF document
-PdfDocument doc = new PdfDocument();
-//Add a page to the document
-PdfPage page = doc.Pages.Add();
-
-//Create PDF graphics for the page
-PdfGraphics graphics = page.Graphics;
-//Load the image from the disk
-PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg");
-//Draw the image
-graphics.DrawImage(image, 0, 0);
-
-//Save the document
-doc.Save("Output.pdf");
-//Close the document
-doc.Close(true);
+// Create an instance of the ImageToPdfConverter class
+ImageToPdfConverter imageToPdfConverter = new ImageToPdfConverter();
+// Set the page size for the document
+imageToPdfConverter.PageSize = PdfPageSize.A4;
+// Set the position of the image in the document
+imageToPdfConverter.ImagePosition = PdfImagePosition.TopLeftCornerOfPage;
+// Create a file stream to read the image file
+using (FileStream imageStream = new FileStream("Image.jpg", FileMode.Open, FileAccess.Read))
+// Convert the image to a PDF document using the ImageToPdfConverter
+using (PdfDocument pdfDocument = imageToPdfConverter.Convert(imageStream))
+{
+ //Save the PDF document
+ pdfDocument.Save("Output.pdf");
+}
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document
-Dim doc As New PdfDocument()
-'Add a page to the document
-Dim page As PdfPage = doc.Pages.Add()
+' Create an instance of the ImageToPdfConverter class
+Dim imageToPdfConverter As New ImageToPdfConverter()
-'Create PDF graphics for the page
-Dim graphics As PdfGraphics = page.Graphics
-'Load the image from the disk
-Dim image As New PdfBitmap("Autumn Leaves.jpg")
-'Draw the image
-graphics.DrawImage(image, 0, 0)
+' Set the page size for the document
+imageToPdfConverter.PageSize = PdfPageSize.A4
-'Save the document
-doc.Save("Output.pdf")
-'Close the document
-doc.Close(True)
+' Set the position of the image in the document
+imageToPdfConverter.ImagePosition = PdfImagePosition.TopLeftCornerOfPage
+
+' Create a file stream to read the image file
+Using imageStream As New FileStream("Image.jpg", FileMode.Open, FileAccess.Read)
+ ' Convert the image to a PDF document using the ImageToPdfConverter
+ Using pdfDocument As PdfDocument = imageToPdfConverter.Convert(imageStream)
+ ' Save the PDF document
+ pdfDocument.Save("Output.pdf")
+ End Using
+End Using
{% endhighlight %}
{% endtabs %}
-You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Images/Insert-image-in-a-new-PDF-document/).
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Images/Convert_Image_to_PDF/.NET).
N> The Syncfusion® .NET Core PDF library supports converting TIFF to PDF with [Syncfusion.Pdf.Imaging.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Imaging.Net.Core) NuGet package in ASP.NET Core platform.
diff --git a/Document-Processing/PDF/PDF-Library/NET/Loading-and-saving-document/Open-and-Save-PDF-file-in-C-Sharp-VB-NET.md b/Document-Processing/PDF/PDF-Library/NET/Loading-and-saving-document/Open-and-Save-PDF-file-in-C-Sharp-VB-NET.md
index 774e4c48a..4df8b2cd1 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Loading-and-saving-document/Open-and-Save-PDF-file-in-C-Sharp-VB-NET.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Loading-and-saving-document/Open-and-Save-PDF-file-in-C-Sharp-VB-NET.md
@@ -1,11 +1,11 @@
---
-title: Open and Save PDF file in C# and VB.NET | Syncfusion
-description: This page describes how to open and save PDF file from or to file system, and stream in C# and VB.NET using Syncfusion .NET PDF library.
+title: Open and Save PDF file using C# and VB.NET | Syncfusion
+description: This page describes how to open and save PDF file from or to file system, and stream using C# and VB.NET using Syncfusion .NET PDF library.
platform: document-processing
control: PDF
documentation: UG
---
-# Open and save PDF file in C# and VB.NET
+# Open and save PDF file using C# and VB.NET
## Namespace required
The following namespaces of Essential® PDF need to be included in your application to load and save the PDF document.
@@ -34,28 +34,27 @@ Imports Syncfusion.Pdf.Parsing
## Opening an existing PDF document
-You can open an existing PDF document by using the [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class. The following example shows how to load an existing document from physical path.
+Open an existing PDF document by using the [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class. The following example shows how to load an existing document from physical path.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an existing PDF document from stream through constructor of `PdfLoadedDocument` class.
-FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream);
+// Load an existing document from file system
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing document from file system.
+// Load an existing document from file system
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Open an existing document from file system.
+' Load an existing document from file system
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
{% endhighlight %}
@@ -64,13 +63,13 @@ Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
## Opening an existing PDF document from Stream
-You can open an existing document from stream by using [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class as shown below.
+Open an existing document from stream by using [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class as shown below.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an existing PDF document from stream through constructor of `PdfLoadedDocument` class.
+// Load an existing PDF document from a stream
FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream);
@@ -78,14 +77,16 @@ PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Opens an existing document from stream.
+// Load an existing PDF document from a stream
+FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Opens an existing document from stream.
+' Load an existing PDF document from a stream
+Dim inputPDFStream As New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)
Dim loadedDocument As New PdfLoadedDocument(inputPDFStream)
{% endhighlight %}
@@ -94,27 +95,30 @@ Dim loadedDocument As New PdfLoadedDocument(inputPDFStream)
## Opening an existing PDF document from byte array
-You can open an existing document from byte array by using [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class as shown in the below code example.
+Open an existing document from byte array by using [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class as shown in the below code example.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an existing document from byte array.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray);
+// Load an existing PDF document from byte array
+byte[] inputPDFByteArray = File.ReadAllBytes("Input.pdf");
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing document from byte array.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray);
+// Load an existing PDF document from byte array
+byte[] inputPDFByteArray = File.ReadAllBytes("Input.pdf");
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Opens an existing document from byte array.
+' Load an existing PDF document from a byte array
+Dim inputPDFByteArray As Byte() = File.ReadAllBytes("Input.pdf")
Dim loadedDocument As New PdfLoadedDocument(inputPDFByteArray)
{% endhighlight %}
@@ -123,28 +127,27 @@ Dim loadedDocument As New PdfLoadedDocument(inputPDFByteArray)
## Opening an Encrypted PDF document
-You can open an existing encrypted PDF document from either the file system or the stream or the byte array using [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html#Syncfusion_Pdf_Parsing_PdfLoadedDocument__ctor_System_Byte___System_String_) class as shows in the below code example.
+Open an existing encrypted PDF document from either the file system or the stream or the byte array using [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html#Syncfusion_Pdf_Parsing_PdfLoadedDocument__ctor_System_Byte___System_String_) class as shows in the below code example.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an encrypted PDF document from stream through constructor of `PdfLoadedDocument` class.
-FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, "password");
+// Load an existing encrypted PDF document from disk
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "password");
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing encrypted document from disk.
+// Load an existing encrypted PDF document from disk
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "password");
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Open an existing encrypted document from disk.
+' Load an existing encrypted document from disk
Dim loadedDocument As New PdfLoadedDocument("Input.pdf","password")
{% endhighlight %}
@@ -155,7 +158,7 @@ Dim loadedDocument As New PdfLoadedDocument("Input.pdf","password")
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an encrypted PDF document from stream through constructor of `PdfLoadedDocument` class.
+// Load an encrypted PDF document from stream
FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, "password");
@@ -163,14 +166,16 @@ PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, "passwo
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing encrypted document from byte array.
+// Load an encrypted PDF document from stream
+FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, "password");
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Open an existing encrypted document from stream.
+' Load an existing PDF document from a stream
+Dim inputPDFStream As New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)
Dim loadedDocument As New PdfLoadedDocument(inputPDFStream,"password")
{% endhighlight %}
@@ -181,21 +186,24 @@ Dim loadedDocument As New PdfLoadedDocument(inputPDFStream,"password")
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an existing encrypted document from byte array.
+// Load an existing PDF document from byte array
+byte[] inputPDFByteArray = File.ReadAllBytes("Input.pdf");
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray, "password");
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing encrypted document from byte array.
+// Load an existing PDF document from byte array
+byte[] inputPDFByteArray = File.ReadAllBytes("Input.pdf");
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray, "password");
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Open an existing encrypted document from byte array.
+' Load an existing PDF document from a byte array
+Dim inputPDFByteArray As Byte() = File.ReadAllBytes("Input.pdf")
Dim loadedDocument As New PdfLoadedDocument(inputPDFByteArray,"password")
{% endhighlight %}
@@ -204,28 +212,27 @@ Dim loadedDocument As New PdfLoadedDocument(inputPDFByteArray,"password")
## Opening a corrupted PDF document
-You can open a corrupted PDF document from either the file system or the stream or the byte array using the [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html#Syncfusion_Pdf_Parsing_PdfLoadedDocument__ctor_System_Byte___System_String_System_Boolean_) as shown below.
+Open a corrupted PDF document from either the file system or the stream or the byte array using the [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html#Syncfusion_Pdf_Parsing_PdfLoadedDocument__ctor_System_Byte___System_String_System_Boolean_) as shown below.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an existing corrupted PDF document from stream through constructor of `PdfLoadedDocument` class.
-FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, true);
+// Load an existing corrupted PDF document from disk
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing corrupted document from disk.
+// Load an existing corrupted PDF document from disk
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Open an existing corrupted document from disk.
+' Load an existing corrupted PDF document from disk
Dim loadedDocument As New PdfLoadedDocument("Input.pdf", True)
{% endhighlight %}
@@ -236,7 +243,7 @@ Dim loadedDocument As New PdfLoadedDocument("Input.pdf", True)
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an existing corrupted PDF document from stream through constructor of `PdfLoadedDocument` class.
+// Load an existing corrupted PDF document from stream
FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, true);
@@ -244,14 +251,16 @@ PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing corrupted document from stream.
+// Load an existing corrupted PDF document from stream
+FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Open an existing corrupted document from stream.
+' Load an existing corrupted PDF document from stream
+Dim inputPDFStream As New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)
Dim loadedDocument As New PdfLoadedDocument(inputPDFStream, True)
{% endhighlight %}
@@ -262,21 +271,24 @@ Dim loadedDocument As New PdfLoadedDocument(inputPDFStream, True)
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Open an existing corrupted document from byte array.
+//Load an existing PDF document from byte array
+byte[] inputPDFByteArray = File.ReadAllBytes("Input.pdf");
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray, true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Open an existing corrupted document from byte array.
+//Load an existing PDF document from byte array
+byte[] inputPDFByteArray = File.ReadAllBytes("Input.pdf");
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFByteArray, true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Open an existing corrupted document from byte array.
+' Load an existing PDF document from a byte array
+Dim inputPDFByteArray As Byte() = File.ReadAllBytes("Input.pdf")
Dim loadedDocument As New PdfLoadedDocument(inputPDFByteArray, True)
{% endhighlight %}
@@ -294,45 +306,33 @@ You can save the manipulated PDF document to file system using [Save](https://he
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
-//To-Do some manipulation
-//To-Do some manipulation
-//Save the PDF document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//If the position is not set to '0' then the PDF will be empty.
-stream.Position = 0;
-//Close the document.
-loadedDocument.Close(true);
-//Defining the content type for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
+// Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
+// To-Do some manipulation
+// To-Do some manipulation
+// Save the PDF document in file system
+loadedDocument.Save("Output.pdf");
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Load an existing PDF document.
+// Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
-//To-Do some manipulation
-//To-Do some manipulation
-//Save the document in file system.
+// To-Do some manipulation
+// To-Do some manipulation
+// Save the PDF document in file system
loadedDocument.Save("Output.pdf");
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load an existing PDF document.
+'Load an existing PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'To-Do some manipulation
'To-Do some manipulation
-'Save the document in file system.
+'Save the document in file system
loadedDocument.Save("Output.pdf")
{% endhighlight %}
@@ -347,12 +347,11 @@ You can also save the manipulated PDF document to stream using overloads of [Sav
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
-//To-Do some manipulation
-//To-Do some manipulation
-//Save the document into stream.
+// Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
+// To-Do some manipulation
+// To-Do some manipulation
+// Save the document into stream
MemoryStream stream = new MemoryStream();
loadedDocument.Save(stream);
@@ -360,14 +359,13 @@ loadedDocument.Save(stream);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Load an existing PDF document.
+// Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
-//To-Do some manipulation
-//To-Do some manipulation
-//Creates an instance of memory stream.
+// To-Do some manipulation
+// To-Do some manipulation
+// Save the document into stream
MemoryStream stream = new MemoryStream();
-//Save the document stream.
-loadedDocument.Save(stream) ;
+loadedDocument.Save(stream);
{% endhighlight %}
@@ -386,7 +384,7 @@ loadedDocument.Save(stream)
{% endtabs %}
-## Saving a PDF document into the same file or stream
+## Saving a PDF document into the same file
You can also resave the manipulated PDF document to the same file using overloads of [Save](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html#Syncfusion_Pdf_Parsing_PdfLoadedDocument_Save) method.
@@ -394,60 +392,33 @@ You can also resave the manipulated PDF document to the same file using overload
{% highlight c# tabtitle="ASP.NET Core" %}
-//PDF doesn't supports saving a PDF document into the same file on the C#/.NET Cross platforms.
+// Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
+// To-Do some manipulation
+// To-Do some manipulation
+// Resave the document to the same file
+loadedDocument.Save();
{% endhighlight %}
{% highlight c# tabtitle="C#" %}
-//Load an existing PDF document.
+// Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
-//To-Do some manipulation
-//To-Do some manipulation
-//Resave the document to the same file.
-loadedDocument.Save() ;
-
-{% endhighlight %}
-
-{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
-'Load an existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
-'To-Do some manipulation
-'To-Do some manipulation
-'Resave the document to the same file.
-loadedDocument.Save()
-
-{% endhighlight %}
-
-{% endtabs %}
-
-{% tabs %}
-
-{% highlight c# tabtitle="C# [Cross-platform]" %}
-
-//PDF doesn't supports saving a PDF document into the same file on the C#/.NET Cross platforms.
-
-{% endhighlight %}
-
-{% highlight c# tabtitle="C# [Windows-specific]" %}
-
-//Load an existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
-//To-Do some manipulation
-//To-Do some manipulation
-//Resave the document to the same stream.
+// To-Do some manipulation
+// To-Do some manipulation
+// Resave the document to the same file
loadedDocument.Save();
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load an existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(stream)
+'Load an existing PDF document
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'To-Do some manipulation
'To-Do some manipulation
-'Resave the document to the same stream.
+'Resave the document to the same file
loadedDocument.Save()
{% endhighlight %}
@@ -462,28 +433,26 @@ After the document manipulation and save operation are completed, you should clo
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
-//To-Do some manipulation
-//To-Do some manipulation
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the document.
+// Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
+// To-Do some manipulation
+// To-Do some manipulation
+// Save the document in file system
+loadedDocument.Save("Output.pdf");
+// Close the document.
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Load an existing PDF document.
+// Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
-//To-Do some manipulation
-//To-Do some manipulation
-//Save the document in file system.
+// To-Do some manipulation
+// To-Do some manipulation
+// Save the document in file system
loadedDocument.Save("Output.pdf");
-//Close the document.
+// Close the document.
loadedDocument.Close(true);
{% endhighlight %}
@@ -514,21 +483,19 @@ You can catch the secured document exception by opening an existing encrypted PD
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument document = null;
try
{
- //Open an existing PDF document from a stream.
- document = new PdfLoadedDocument(docStream, "password");
+ //Load an existing PDF document
+ document = new PdfLoadedDocument("Input.pdf", "password");
}
catch (Syncfusion.Pdf.PdfInvalidPasswordException exception)
{
//Secured PDF document password is invalid or opened without a password.
}
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save the document
+document.Save("Output.pdf");
+//Close the document
document.Close(true);
{% endhighlight %}
@@ -538,31 +505,30 @@ document.Close(true);
PdfLoadedDocument document = null;
try
{
- //Load an existing PDF document.
+ //Load an existing PDF document
document = new PdfLoadedDocument("Input.pdf", "password");
}
catch (Syncfusion.Pdf.PdfInvalidPasswordException exception)
{
//Secured PDF document password is invalid or opened without a password.
}
-//Save the document.
+//Save the document
document.Save("Output.pdf");
-//Close the document.
+//Close the document
document.Close(true);
-
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
Dim document As PdfLoadedDocument = Nothing
Try
- 'Load an existing PDF document.
+ 'Load an existing PDF document
document = New PdfLoadedDocument("Input.pdf", "password")
Catch exception As Syncfusion.Pdf.PdfInvalidPasswordException
'Secured PDF document password is invalid or opened without a password.
End Try
-'Save the document.
+'Save the document
document.Save("Output.pdf")
'Close the document.
document.Close(True)
@@ -572,6 +538,7 @@ document.Close(True)
{% endtabs %}
## Possible error messages of invalid PDF documents while loading
+
The following are the possible error messages of invalid PDF documents while loading:
I. Please find some of the following corrupted error messages that cannot be repaired:
1. Could not find a valid signature (%PDF-).
@@ -582,22 +549,20 @@ I. Please find some of the following corrupted error messages that cannot be rep
6. Error: Bad input stream initializer.
7. Fatal Error occurred.
II. Please find some of the possible offset error messages that may be repairable:
- 1.Invalid cross-reference table with offset position.
- 2.Trailer Prev offset is located in the same cross table section.
+1. Invalid cross-reference table with offset position.
+2. Trailer Prev offset is located in the same cross table section.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Load a PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument document = null;
try
{
- //Open an existing PDF document from the stream.
- document = new PdfLoadedDocument(docStream, true);
+ //Load an existing PDF document from the disk
+ document = new PdfLoadedDocument("Input.pdf", true);
}
-catch (PdfException exception)
+catch (Exception message)
{
//Invalid cross-reference table with offset position
//Trailer Prev offset is located in the same cross table section
@@ -605,15 +570,13 @@ catch (PdfException exception)
//Bad Format error
//Lexical error: Unmatched input
//The document does not contain EOF
- //The document has corrupted cross reference table
+ //The document has corrupted cross reference tables
//Error: Bad input stream initializer
//Fatal error occured
- //Unexpected token name before 257
}
-//Save the document.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save the document
+document.Save("Output.pdf");
+//Close the document
document.Close(true);
{% endhighlight %}
@@ -623,7 +586,7 @@ document.Close(true);
PdfLoadedDocument document = null;
try
{
- //Open an existing PDF document from the disk.
+ //Load an existing PDF document from the disk
document = new PdfLoadedDocument("Input.pdf", true);
}
catch (Exception message)
@@ -638,9 +601,9 @@ catch (Exception message)
//Error: Bad input stream initializer
//Fatal error occured
}
-//Save the document.
+//Save the document
document.Save("Output.pdf");
-//Close the document.
+//Close the document
document.Close(true);
{% endhighlight %}
@@ -649,7 +612,7 @@ document.Close(true);
Dim document As PdfLoadedDocument = Nothing
Try
- 'Load an existing document.
+ 'Load an existing document
document = New PdfLoadedDocument("Input.pdf",true)
Catch exception As Exception
'Invalid cross-reference table with offset position
@@ -662,9 +625,9 @@ Catch exception As Exception
'Error: Bad input stream initializer
'Fatal error occured
End Try
-'Save the document.
+'Save the document
document.Save("Output.pdf")
-'Close the document.
+'Close the document
document.Close(True)
{% endhighlight %}
diff --git a/Document-Processing/PDF/PDF-Library/NET/Overview.md b/Document-Processing/PDF/PDF-Library/NET/Overview.md
index 77462159a..5878b6044 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Overview.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Overview.md
@@ -36,6 +36,19 @@ The following list shows the key features available in the Essential®
* Support to [hyperlinks](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-hyperlinks) for web navigation and document navigation.
* Support to [insert](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-bookmarks#inserting-bookmarks-in-an-existing-pdf), [remove](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-bookmarks#removing-bookmarks-from-an-existing-pdf), and [modify](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-bookmarks#modifying-the-bookmarks) bookmarks.
* Support to layers. [Add](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-layers#adding-layers-in-a-pdf-document), [remove](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-layers#removing-layers-from-an-existing-pdf-document), and [flatten](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-layers#flattening-the-layers-in-an-existing-pdf-document) the layers.
+* Support to embed and manage [rich media content](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-annotations#rich-media-annotation) such as audio and video.
+* Support to embed and execute [JavaScript](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-javascript) within PDF documents.
+* Support to create and manage PDF [portfolios](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-portfolio).
+* Support to draw text using different [fonts](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-text#drawing-text-using-different-fonts).
+* Support to integrate with [cloud storage services](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/save-pdf-files/to-google-cloud-storage) like OneDrive, Google Drive, and Dropbox.
+* Support to convert [images into PDF](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/converting-images-to-pdf) documents.
+* Support to embed and interact with [3D models](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-annotations#3d-annotation).
+* Support to apply and manage [brushes for drawing and styling graphical](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-brushes) elements in PDF documents.
+* Support to arrange content using [flow layout](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-flow-layout) for dynamic and responsive PDF document design.
+* Support to extract [text](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-text-extraction) and [images](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-image-extraction) from PDF documents.
+* Support to create and apply [PDF templates](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-pdf-templates) for consistent document layout and design.
+* Support to add, customize, and manage [headers and footers](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-headers-and-footers) in PDF documents.
+* Support to manage [color spaces](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-colorspace) and edit document [metadata](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-metadata).
* Support for .NET Standard 2.0 onwards.
N> 1. Starting with v20.1.0.x, if you reference Syncfusion® HTML converter or OCR processor assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion® license key in your application to use our components.
diff --git a/Document-Processing/PDF/PDF-Library/NET/PdfGrid.md b/Document-Processing/PDF/PDF-Library/NET/PdfGrid.md
index 7d35bd92a..30ce59073 100644
--- a/Document-Processing/PDF/PDF-Library/NET/PdfGrid.md
+++ b/Document-Processing/PDF/PDF-Library/NET/PdfGrid.md
@@ -3645,7 +3645,6 @@ using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -3685,7 +3684,6 @@ using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using System.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -3725,7 +3723,6 @@ Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Imports Syncfusion.Pdf.Grid
Imports Syncfusion.Drawing
-Imports System.Reflection.Metadata
'Create a new PDF document.
Dim pdfDocument As New PdfDocument()
@@ -3777,7 +3774,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using Syncfusion.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -3832,7 +3828,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using System.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -3886,7 +3881,6 @@ Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Imports Syncfusion.Pdf.Grid
Imports Syncfusion.Drawing
-Imports System.Reflection.Metadata
'Create a new PDF document.
Dim pdfDocument As PdfDocument = New PdfDocument()
@@ -3948,7 +3942,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using Syncfusion.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4012,7 +4005,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using System.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4078,7 +4070,6 @@ Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Imports Syncfusion.Pdf.Grid
Imports Syncfusion.Drawing
-Imports System.Reflection.Metadata
'Create a new PDF document.
Dim pdfDocument As PdfDocument = New PdfDocument()
@@ -4155,7 +4146,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using Syncfusion.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4206,7 +4196,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using System.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4257,7 +4246,6 @@ Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Imports Syncfusion.Pdf.Grid
Imports Syncfusion.Drawing
-Imports System.Reflection.Metadata
'Create a new PDF document.
Dim pdfDocument As PdfDocument = New PdfDocument()
@@ -4320,7 +4308,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using Syncfusion.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4389,7 +4376,6 @@ using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using System.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4459,7 +4445,6 @@ Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Graphics
Imports Syncfusion.Pdf.Grid
Imports Syncfusion.Drawing
-Imports System.Reflection.Metadata
'Create a new PDF document.
Dim pdfDocument As PdfDocument = New PdfDocument()
@@ -4535,7 +4520,6 @@ The following code illustrates how to create the nested table in a PDF document
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using Syncfusion.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4590,7 +4574,6 @@ pdfDocument.Close(true);
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf;
using System.Drawing;
-using System.Reflection.Metadata;
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
@@ -4645,7 +4628,6 @@ pdfDocument.Close(true);
Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Grid
Imports Syncfusion.Drawing
-Imports System.Reflection.Metadata
'Create a new PDF document.
Dim pdfDocument As PdfDocument = New PdfDocument()
diff --git a/Document-Processing/PDF/PDF-Library/NET/Split-Documents.md b/Document-Processing/PDF/PDF-Library/NET/Split-Documents.md
index 516fbb1b1..5bf488845 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Split-Documents.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Split-Documents.md
@@ -82,6 +82,8 @@ Refer to the following code example to split a range of pages.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Split%20PDFs/Split-a-Range-of-Pages/.NET/Split-a-Range-of-Pages/Program.cs" %}
+{% raw %}
+
using Syncfusion.Pdf.Parsing;
//Create the values.
@@ -95,10 +97,13 @@ loadedDocument.SplitByRanges(destinationFilePattern, values);
//close the document
loadedDocument.Close(true);
+{% endraw %}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+{% raw %}
+
using Syncfusion.Pdf.Parsing;
//Create the values.
@@ -112,14 +117,16 @@ loadedDocument.SplitByRanges(destinationFilePattern, values);
//close the document
loadedDocument.Close(true);
+{% endraw %}
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+{% raw %}
Imports Syncfusion.Pdf.Parsing
'Create the values.
-Dim values As Integer(,) = New Integer(,) {{2, 5},{8, 10}}
+Dim values As Integer(,) = New Integer(,) {{2, 5}, {8, 10}}
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Set a output path
@@ -128,7 +135,7 @@ Const destinationFilePattern As String = "Output" + "{0}.pdf"
loadedDocument.SplitByRanges(destinationFilePattern, values)
'Close the document.
loadedDocument.Close(True)
-
+{% endraw %}
{% endhighlight %}
{% endtabs %}
@@ -313,6 +320,7 @@ The Syncfusion® PDF library enables the splitting of PDF document
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Split%20PDFs/Remove-Unused-Resources-when-Splitting-PDF-Documents/.NET/Remove-Unused-Resources-when-Splitting-PDF-Documents/Program.cs" %}
+{% raw %}
using Syncfusion.Pdf;
using Syncfusion.Pdf.Parsing;
@@ -331,9 +339,11 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions);
//Close the document.
loadedDocument.Close(true);
+{% endraw %}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+{% raw %}
using Syncfusion.Pdf;
using Syncfusion.Pdf.Parsing;
@@ -353,9 +363,11 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions);
//Close the document.
loadedDocument.Close(true);
+{% endraw %}
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+{% raw %}
Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Parsing
@@ -375,7 +387,7 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions)
'Close the document.
loadedDocument.Close(True)
-
+{% endraw %}
{% endhighlight %}
{% endtabs %}
@@ -390,7 +402,7 @@ The Syncfusion® PDF library enables the splitting of PDF document
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Split%20PDFs/Import-tagged-structure-when-splitting-PDF-documents/.NET/Import-tagged-structure-when-splitting-PDF-documents/Program.cs" %}
-
+{% raw %}
using Syncfusion.Pdf;
using Syncfusion.Pdf.Parsing;
@@ -409,11 +421,11 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions);
//Close the document.
loadedDocument.Close(true);
-
+{% endraw %}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-
+{% raw %}
using Syncfusion.Pdf;
using Syncfusion.Pdf.Parsing;
@@ -432,11 +444,11 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions);
//Close the document.
loadedDocument.Close(true);
-
+{% endraw %}
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
+{% raw %}
Imports Syncfusion.Pdf
Imports Syncfusion.Pdf.Parsing
@@ -455,7 +467,7 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions)
'Close the document.
loadedDocument.Close(True)
-
+{% endraw %}
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Annotations.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Annotations.md
index 9a436c64c..d2fb53343 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Annotations.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Annotations.md
@@ -5068,6 +5068,132 @@ document.Close(True)
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Annotation/Adding-transparency-for-annotations/.NET).
+## Setting Annotation Intent in PdfFreeTextAnnotation
+
+The [PdfAnnotationIntent.FreeTextTypeWriter](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfAnnotationIntent.html#fields) value specifies that a `free text annotation` in a PDF should behave like a `typewriter-style input field`. This intent is especially useful for simulating manual typing on forms or documents, enabling users to add clear, typed comments or responses.
+
+{% tabs %}
+
+{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Annotation/Setting-Annotation-Intent/.NET/Setting-Annotation-Intent/Program.cs" %}
+
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
+// Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ // Add a page
+ PdfPage page = document.Pages.Add();
+
+ // Define the bounds for the annotation
+ RectangleF bounds = new RectangleF(100, 100, 200, 50);
+
+ // Create a FreeText annotation
+ PdfFreeTextAnnotation freeText = new PdfFreeTextAnnotation(bounds);
+ // Add content.
+ freeText.Text = "Add Free Text Annotation with Intent";
+ // Set the annotation intent to TypeWriter
+ freeText.AnnotationIntent = PdfAnnotationIntent.FreeTextTypeWriter;
+
+ // Customize appearance
+ freeText.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12);
+ freeText.TextMarkupColor = Color.Black;
+ freeText.BorderColor = Color.Gray;
+ freeText.Color = Color.LightYellow;
+
+ // Add the annotation to the page
+ page.Annotations.Add(freeText);
+
+ // Save the document
+ document.Save("Output.pdf");
+}
+
+{% endhighlight %}
+
+{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
+// Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ // Add a page
+ PdfPage page = document.Pages.Add();
+
+ // Define the bounds for the annotation
+ RectangleF bounds = new RectangleF(100, 100, 200, 50);
+
+ // Create a FreeText annotation
+ PdfFreeTextAnnotation freeText = new PdfFreeTextAnnotation(bounds);
+ // Add content.
+ freeText.Text = "Add Free Text Annotation with Intent";
+ // Set the annotation intent to TypeWriter
+ freeText.AnnotationIntent = PdfAnnotationIntent.FreeTextTypeWriter;
+
+ // Customize appearance
+ freeText.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12);
+ freeText.TextMarkupColor = Color.Black;
+ freeText.BorderColor = Color.Gray;
+ freeText.Color = Color.LightYellow;
+
+ // Add the annotation to the page
+ page.Annotations.Add(freeText);
+
+ // Save the document
+ document.Save("Output.pdf");
+}
+
+{% endhighlight %}
+
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
+' Create a new PDF document
+Using document As New PdfDocument()
+
+ ' Add a page
+ Dim page As PdfPage = document.Pages.Add()
+
+ ' Define the bounds for the annotation
+ Dim bounds As New RectangleF(100, 100, 200, 50)
+
+ ' Create a FreeText annotation
+ Dim freeText As New PdfFreeTextAnnotation(bounds)
+
+ ' Add content
+ freeText.Text = "Add Free Text Annotation with Intent"
+
+ ' Set the annotation intent to TypeWriter
+ freeText.AnnotationIntent = PdfAnnotationIntent.FreeTextTypeWriter
+
+ ' Customize appearance
+ freeText.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12)
+ freeText.TextMarkupColor = Color.Black
+ freeText.BorderColor = Color.Gray
+ freeText.Color = Color.LightYellow
+
+ ' Add the annotation to the page
+ page.Annotations.Add(freeText)
+
+ ' Save the document
+ document.Save("Output.pdf")
+End Using
+
+{% endhighlight %}
+
+{% endtabs %}
+
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/260329/Annotation/Setting-Annotation-Intent/.NET).
+
## Adding comments and review status to the PDF annotation
The PDF annotations may have an author-specific state associated with them. The state is not specified in the annotation itself, but it represents a separate text annotation ([Popup Annotation](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfPopupAnnotation.html)).
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-DigitalSignature.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-DigitalSignature.md
index df6b82859..1a4829a66 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-DigitalSignature.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-DigitalSignature.md
@@ -20,6 +20,11 @@ The following code example explains how to add a digital signature to the PDF do
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Add-a-digital-signature-to-the-PDF-document/.NET/Add-a-digital-signature-to-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document.
PdfDocument document = new PdfDocument();
//Adds a new page.
@@ -38,29 +43,27 @@ FileStream imageStream = new FileStream("signature.jpg", FileMode.Open, FileAcce
PdfBitmap signatureImage = new PdfBitmap(imageStream);
//Sets signature information.
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Draws the signature image.
signature.Appearance.Normal.Graphics.DrawImage(signatureImage, 0, 0);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
-//Defining the ContentType for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -76,6 +79,7 @@ PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature");
PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg");
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -90,6 +94,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -105,6 +114,7 @@ Dim signature As New PdfSignature(document, page, pdfCert, "Signature")
Dim signatureImage As New PdfBitmap("signature.jpg")
'Sets signature information
signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -129,6 +139,11 @@ The following code example illustrates how to add a digital signature in the PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Add-a-digital-signature-to-the-PDF-document/.NET/Add-a-digital-signature-to-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -147,29 +162,27 @@ FileStream imageStream = new FileStream("signature.jpg", FileMode.Open, FileAcce
PdfBitmap signatureImage = new PdfBitmap(imageStream);
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Draws the signature image
signature.Appearance.Normal.Graphics.DrawImage(signatureImage, 0, 0);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -187,6 +200,7 @@ PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature");
PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg");
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -201,6 +215,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -218,6 +237,7 @@ Dim signature As New PdfSignature(document, page, pdfCert, "Signature")
Dim signatureImage As New PdfBitmap("signature.jpg")
'Sets signature information
signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -238,9 +258,14 @@ You can add a digital signature to an existing document as follows.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the page
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -255,23 +280,21 @@ signatureField.Signature.Reason = "I am author of this document";
//Adds the field
loadedDocument.Form.Fields.Add(signatureField);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-
+
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Loads the PDF document with signature field
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the page
@@ -295,6 +318,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Loads the PDF document with signature field
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Gets the page
@@ -328,6 +357,12 @@ The following code example illustrates how to add digital signature in a PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Add-digital-signature-using-X509Certificate2/.NET/Add-digital-signature-using-X509Certificate2/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -345,31 +380,28 @@ FileStream imageStream = new FileStream("signature.jpg", FileMode.Open, FileAcce
PdfBitmap signatureImage = new PdfBitmap(imageStream);
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Draws the signature image
signature.Appearance.Normal.Graphics.DrawImage(signatureImage, 0, 0);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -386,6 +418,7 @@ PdfSignature signature = new PdfSignature(document, page, pdfCertificate, "Signa
PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg");
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -401,6 +434,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography.X509Certificates
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -417,6 +456,7 @@ Dim signature As New PdfSignature(document, page, pdfCertificate, "Signature")
Dim signatureImage As New PdfBitmap("signature.jpg")
'Sets signature information
signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -442,9 +482,12 @@ You can load the signature field from the existing PDF document using [PdfLoaded
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Signing-an-existing-PDF-document/.NET/Signing-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page of the document
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
//Gets the first signature field of the PDF document
@@ -455,23 +498,19 @@ FileStream certificateStream = new FileStream("PDF.pfx", FileMode.Open, FileAcce
PdfCertificate certificate = new PdfCertificate(certificateStream, "password123");
field.Signature = new PdfSignature(loadedDocument, page, certificate, "Signature", field);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Loads a PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page of the document
@@ -492,6 +531,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Loads a PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Gets the first page of the document
@@ -522,9 +565,12 @@ You can load the signature field from an existing PDF document using [PdfLoadedS
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page of the document
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
//Gets the first signature field of the PDF document
@@ -535,23 +581,19 @@ FileStream certificateStream = new FileStream("PDF.pfx", FileMode.Open, FileAcce
PdfCertificate certificate = new PdfCertificate(certificateStream, "password123");
field.Signature = new PdfSignature(loadedDocument, page, certificate, "Signature", field);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Loads a PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page of the document
@@ -573,7 +615,11 @@ loadedDocument.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Loads a PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Gets the first page of the document
@@ -606,43 +652,44 @@ The following code example demonstrates how to check if a signature field is sig
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Check-If-PDF-Is-Signed/.NET/Check-If-PDF-Is-Signed/Program.cs" %}
-// Open the signed PDF file for reading
-using (FileStream inputFileStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
-{
- // Load the PDF document
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputFileStream);
+using Syncfusion.Pdf.Parsing;
- // Check if the document contains a form with fields
- if (loadedDocument.Form == null || loadedDocument.Form.Fields.Count == 0)
- {
- Console.WriteLine("No signature fields found in the document.");
- }
- else
+// Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
+
+// Check if the document contains a form with fields
+if (loadedDocument.Form == null || loadedDocument.Form.Fields.Count == 0)
+{
+ Console.WriteLine("No signature fields found in the document.");
+}
+else
+{
+ // Iterate through all fields in the form
+ foreach (PdfLoadedField field in loadedDocument.Form.Fields)
{
- // Iterate through all fields in the form
- foreach (PdfLoadedField field in loadedDocument.Form.Fields)
+ // Check if the field is a signature field
+ PdfLoadedSignatureField signatureField = field as PdfLoadedSignatureField;
+ if (signatureField != null)
{
- // Check if the field is a signature field
- PdfLoadedSignatureField signatureField = field as PdfLoadedSignatureField;
- if (signatureField != null)
- {
- // Determine whether the signature field is signed or not
- string status = signatureField.IsSigned ? "Signed" : "UnSigned";
+ // Determine whether the signature field is signed or not
+ string status = signatureField.IsSigned ? "Signed" : "UnSigned";
- // Output the result for each signature field
- Console.WriteLine("Signature Field " + signatureField.Name + " is: " + status);
- }
+ // Output the result for each signature field
+ Console.WriteLine("Signature Field " + signatureField.Name + " is: " + status);
}
}
-
- // Close the document
- loadedDocument.Close(true);
}
+// Close the document
+loadedDocument.Close(true);
+
+
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf.Parsing;
+
// Load the PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -675,7 +722,9 @@ using (FileStream inputFileStream = new FileStream("Input.pdf", FileMode.Open, F
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
+
+Imports Syncfusion.Pdf.Parsing
+
' Load the PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
@@ -721,19 +770,22 @@ The following code example shows how to sign the PDF document from an external s
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Externally-sign-a-PDF-document/.NET/Externally-sign-a-PDF-document/Program.cs" %}
-//Get the stream from the document
-FileStream documentStream = new FileStream("PDF_Succinctly.pdf ", FileMode.Open, FileAccess.Read);
-//Load the existing PDF document
-PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography;
+using System.Security.Cryptography.Pkcs;
+using System.Security.Cryptography.X509Certificates;
+
+//Load the PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Creates a digital signature
PdfSignature signature = new PdfSignature(document, document.Pages[0], null, "DigitalSignature");
signature.ComputeHash += Signature_ComputeHash;
-//Save the PDF document to stream
-MemoryStream ms = new MemoryStream();
-document.Save(ms);
-//Close the PDF document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
private static void Signature_ComputeHash1(object sender, PdfSignatureEventArgs ars)
@@ -758,6 +810,12 @@ private static void Signature_ComputeHash1(object sender, PdfSignatureEventArgs
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography;
+using System.Security.Cryptography.Pkcs;
+using System.Security.Cryptography.X509Certificates;
//Load existing PDF document
PdfLoadedDocument document = new PdfLoadedDocument("PDF_Succinctly.pdf");
@@ -792,6 +850,12 @@ void Signature_ComputeHash(object sender, PdfSignatureEventArgs arguments)
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography
+Imports System.Security.Cryptography.Pkcs
+Imports System.Security.Cryptography.X509Certificates
+
'Load existing PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("PDF_Succinctly.pdf")
'Creates a digital signature
@@ -827,16 +891,21 @@ End Sub
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Digital%20Signature/Externally-sign-a-PDF-document/).
### Externally sign the PDF document using IPdfExternalSigner
+
The following code example shows how to sign the PDF document from external signature using [IPdfExternalSigner](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Security.IPdfExternalSigner.html).
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Externally-sign-the-PDF-document-using-IPdfExternalSigner/.NET/Externally-sign-the-PDF-document/Program.cs" %}
-//Get the stream from the document
-FileStream documentStream = new FileStream("Input.pdf ", FileMode.Open, FileAccess.Read);
-//Load the existing PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Drawing;
+using System.Security.Cryptography.X509Certificates;
+using System.Security.Cryptography;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Creates a digital signature.
PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0], null, "Signature");
@@ -853,18 +922,10 @@ List certificates = new List();
certificates.Add(new X509Certificate2(Convert.FromBase64String(PublicCert)));
signature.AddExternalSigner(externalSignature, certificates, null);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
//Create the external signer class and sign the document hash.
class ExternalSigner : IPdfExternalSigner
@@ -907,6 +968,12 @@ class ExternalSigner : IPdfExternalSigner
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Drawing;
+using System.Security.Cryptography.X509Certificates;
+using System.Security.Cryptography;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -966,6 +1033,12 @@ class ExternalSigner : IPdfExternalSigner
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography
+Imports System.Drawing
+Imports System.Security.Cryptography.X509Certificates
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -1036,11 +1109,18 @@ The following example illustrates the process of adding timestamps to a PDF docu
{% highlight c# tabtitle="C# [Cross-platform]" %}
-// Get the stream from the input PDF document.
-FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Drawing;
+using System.Security.Cryptography.X509Certificates;
+using System.Security.Cryptography;
+using Org.BouncyCastle.Tsp;
+using System.Net;
+using System.Text;
+using Org.BouncyCastle.Math;
-// Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Create a digital signature for the first page of the document.
PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0], null, "Signature");
@@ -1058,12 +1138,8 @@ List certificates = new List();
certificates.Add(new X509Certificate2(Convert.FromBase64String(PublicCert)));
signature.AddExternalSigner(externalSignature, certificates, null);
-//Create file stream.
-using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
-{
- //Save the PDF document to file stream.
- loadedDocument.Save(outputFileStream);
-}
+//Save the document
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1071,6 +1147,16 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Drawing;
+using System.Security.Cryptography.X509Certificates;
+using System.Security.Cryptography;
+using Org.BouncyCastle.Tsp;
+using System.Net;
+using System.Text;
+using Org.BouncyCastle.Math;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -1098,6 +1184,16 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports Syncfusion.Drawing
+Imports System.Security.Cryptography.X509Certificates
+Imports System.Security.Cryptography
+Imports Org.BouncyCastle.Tsp
+Imports System.Net
+Imports System.Text
+Imports Org.BouncyCastle.Math
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -1388,11 +1484,15 @@ You can create a Long Term validation (LTV) when signing PDF documents externall
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Create-LTV-when-signing-PDF-documents-externally/.NET/Create-LTV-when-signing-PDF-documents-externally/Program.cs" %}
- //Get the stream from the document.
- FileStream documentStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Parsing;
+ using Syncfusion.Pdf.Security;
+ using System.Security.Cryptography;
+ using System.Security.Cryptography.Pkcs;
+ using System.Security.Cryptography.X509Certificates;
- //Load an existing PDF document.
- PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+ //Load the PDF document
+ PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the page of the existing PDF document.
PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage;
@@ -1403,14 +1503,13 @@ You can create a Long Term validation (LTV) when signing PDF documents externall
//Hook up the ComputeHash event.
signature.ComputeHash += Signature_ComputeHash;
- //Save the document into stream
- MemoryStream stream = new MemoryStream();
- document.Save(stream);
+ //Save the document.
+ document.Save("SignedDocument.pdf");
//Close the document
document.Close(true);
- //Load an existing PDF stream..
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
+ //Load an existing PDF stream.
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("SignedDocument.pdf");
//Gets the first signature field of the PDF document
PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -1422,12 +1521,9 @@ You can create a Long Term validation (LTV) when signing PDF documents externall
//Create LTV with your public certificates.
pdfSignature.CreateLongTermValidity(new List { x509 });
- //Save the PDF document
- MemoryStream ms = new MemoryStream();
- loadedDocument.Save(ms);
- //If the position is not set to '0' then the PDF will be empty
- ms.Position = 0;
- //Close the document
+ //Save the document
+ loadedDocument.Save("Output.pdf");
+ //Close the document.
loadedDocument.Close(true);
void Signature_ComputeHash(object sender, PdfSignatureEventArgs ars)
@@ -1454,6 +1550,13 @@ You can create a Long Term validation (LTV) when signing PDF documents externall
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Parsing;
+ using Syncfusion.Pdf.Security;
+ using System.Security.Cryptography;
+ using System.Security.Cryptography.Pkcs;
+ using System.Security.Cryptography.X509Certificates;
+
//Load an existing PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -1467,12 +1570,12 @@ You can create a Long Term validation (LTV) when signing PDF documents externall
signature.ComputeHash += Signature_ComputeHash;
//Save the document.
- document.Save("SignedDocument");
+ document.Save("SignedDocument.pdf");
//Close the document
document.Close(true);
//Load an existing PDF stream..
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument("SignedDocument");
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("SignedDocument.pdf");
//Gets the first signature field of the PDF document
PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -1512,6 +1615,13 @@ You can create a Long Term validation (LTV) when signing PDF documents externall
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Pdf.Parsing
+ Imports Syncfusion.Pdf.Security
+ Imports System.Security.Cryptography
+ Imports System.Security.Cryptography.Pkcs
+ Imports System.Security.Cryptography.X509Certificates
+
' Load an existing PDF document.
Dim document As New PdfLoadedDocument("Input.pdf")
@@ -1583,6 +1693,10 @@ The following code example shows how to sign a PDF document with LTA using [Time
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Sign_PDF_with_LTA/.NET/Sign_PDF_with_LTA/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Pdf;
+
//Load existing PDF document.
FileStream documentStream1 = new FileStream("PDF_Succinctly.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream1);
@@ -1599,13 +1713,12 @@ signature.TimeStampServer = new TimeStampServer(new Uri("http://timestamping.ens
signature.EnableLtv = true;
//Save the PDF document.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+loadedDocument.Save("LTV_document.pdf");
//Close the document.
loadedDocument.Close(true);
//Load existing PDF document.
-PdfLoadedDocument ltDocument = new PdfLoadedDocument(stream);
+PdfLoadedDocument ltDocument = new PdfLoadedDocument("LTV_document.pdf");
//Load the existing PDF page.
PdfLoadedPage lpage = ltDocument.Pages[0] as PdfLoadedPage;
@@ -1613,22 +1726,19 @@ PdfLoadedPage lpage = ltDocument.Pages[0] as PdfLoadedPage;
PdfSignature timeStamp = new PdfSignature(lpage, "timestamp");
timeStamp.TimeStampServer = new TimeStampServer(new Uri("http://timestamping.ensuredca.com"));
-//Save and close the PDF document.
-MemoryStream stream1 = new MemoryStream();
-ltDocument.Save(stream1);
+//Save the document
+ltDocument.Save("Output.pdf");
//Close the document.
ltDocument.Close(true);
-//Defining the ContentType for pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream1, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Pdf;
+
//Load existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("PDF_Succinctly.pdf");
//Load digital ID with password.
@@ -1663,6 +1773,10 @@ ltDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports Syncfusion.Pdf
+
'Loads a PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("PDF_Succinctly.pdf")
'Load digital ID with password.
@@ -1717,6 +1831,11 @@ The following code example shows how to create a PDF digital signature using the
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Sign_PDF_Windows_Certificate/.NET/Sign_PDF_Windows_Certificate/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Pdf;
+using System.Security.Cryptography.X509Certificates;
+
//Initialize the Windows store.
X509Store store = new X509Store("MY", StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
@@ -1726,8 +1845,7 @@ X509Certificate2Collection fcollection = (X509Certificate2Collection)collection.
X509Certificate2 digitalID = collection[0];
//Load existing PDF document.
-FileStream documentStream = new FileStream("PDF_Succinctly.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("PDF_Succinctly.pdf");
//Load X509Certificate2.
PdfCertificate certificate = new PdfCertificate(digitalID);
@@ -1737,22 +1855,20 @@ PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0
signature.Settings.CryptographicStandard = CryptographicStandard.CADES;
signature.Settings.DigestAlgorithm = DigestAlgorithm.SHA512;
-//Save the PDF document.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close(true);
-//Defining the ContentType for pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Pdf;
+using System.Security.Cryptography.X509Certificates;
+
//Initialize the Windows store.
X509Store store = new X509Store("MY", StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
@@ -1781,6 +1897,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports Syncfusion.Pdf
+Imports System.Security.Cryptography.X509Certificates
+
'Initialize the Windows store.
Dim store As X509Store = New X509Store("MY", StoreLocation.CurrentUser)
store.Open(OpenFlags.[ReadOnly] Or OpenFlags.OpenExistingOnly)
@@ -1820,6 +1941,11 @@ Refer to the following code sample.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Adding-a-signature-validation-appearance-in-a-PDF/.NET/Adding-a-signature-validation-appearance-in-a-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -1840,29 +1966,27 @@ PdfBitmap signatureImage = new PdfBitmap(imageStream);
signature.EnableValidationAppearance = true;
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Draws the signature image
signature.Appearance.Normal.Graphics.DrawImage(signatureImage, 0, 0);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page
@@ -1879,6 +2003,7 @@ PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg");
//Sets enable signature validation appearance
signature.EnableValidationAppearance = true;
//Sets signature information
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -1893,6 +2018,11 @@ document.Close( true );
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -1910,6 +2040,7 @@ Dim signatureImage As New PdfBitmap("signature.jpg")
signature.EnableValidationAppearance = True
'Sets signature info
signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -1934,6 +2065,11 @@ Essential® PDF allows you to add timestamp in the digital signatu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Adding-a-timestamp-in-digital-signature-of-PDF/.NET/Adding-a-timestamp-in-digital-signature-of-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -1954,29 +2090,27 @@ PdfBitmap image = new PdfBitmap(imageStream);
signature.TimeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456");
//Sets signature info
signature.Bounds = new RectangleF(new PointF(0, 0), image.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Draws the signature image
signature.Appearance.Normal.Graphics.DrawImage(image, 0, 0);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -1997,6 +2131,7 @@ PdfBitmap image = new PdfBitmap(@"syncfusion_logo.jpeg");
signature.TimeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456");
//Sets signature info
signature.Bounds = new RectangleF(new PointF(0, 0), image.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -2011,6 +2146,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -2028,6 +2168,7 @@ Dim image As New PdfBitmap("syncfusion_logo.jpeg")
signature.TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456")
'Sets signature info
signature.Bounds = New RectangleF(New PointF(0, 0), image.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -2052,6 +2193,9 @@ You can add timestamp to the PDF document using [TimeStampServer](https://help.s
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Adding-a-timestamp-to-PDF-document/.NET/Adding-a-timestamp-to-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Security;
+
//Create a new pdf document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -2062,23 +2206,18 @@ PdfSignature signature = new PdfSignature(page, "Signature");
//Add the time stamp by using the server URI
signature.TimeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456");
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page
@@ -2097,6 +2236,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Security
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -2125,9 +2267,12 @@ You can add timestamp to the existing PDF document using [TimeStampServer](https
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Adding-a-timestamp-to-an-existing-PDF/.NET/Adding-a-timestamp-to-an-existing-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the page
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -2136,23 +2281,19 @@ PdfSignature signature = new PdfSignature(page, "Signature");
//Add the time stamp by using the server URI
signature.TimeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456");
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Add a new page
@@ -2172,6 +2313,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Security
+
'Load the PDF document
Dim document As New PdfLoadedDocument("Input.pdf")
'Gets the first page of the document
@@ -2209,9 +2354,11 @@ You can get the above certificate details from an existing signed PDF document u
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Retrieve-certificate-details-from-an-existing-PDF/.NET/Retrieve-certificate-details-from-an-existing-PDF/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the signature field
PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -2236,6 +2383,9 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the existing signed PDF
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("SignedDocument.pdf");
//Load the PDF form
@@ -2268,6 +2418,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load the existing signed PDF
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Signed.pdf")
'Load the PDF form
@@ -2314,6 +2467,11 @@ The following code example explains how to create LTV PDF using [EnableLtv](http
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Enable-LTV-PDF-signature/.NET/Enable-LTV-PDF-signature/Program.cs" %}
+ using Syncfusion.Drawing;
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Graphics;
+ using Syncfusion.Pdf.Parsing;
+ using Syncfusion.Pdf.Security;
//Creates a new PDF document.
PdfDocument document = new PdfDocument();
@@ -2333,14 +2491,12 @@ The following code example explains how to create LTV PDF using [EnableLtv](http
signature.Settings.CryptographicStandard = CryptographicStandard.CADES;
signature.Settings.DigestAlgorithm = DigestAlgorithm.SHA256;
- //Save the document into stream
- MemoryStream stream = new MemoryStream();
- document.Save(stream);
+ document.Save("SignedDocument.pdf");
//Close the document
document.Close(true);
//Load an existing PDF stream.
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("SignedDocument.pdf");
//Gets the first signature field of the PDF document
PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -2349,11 +2505,9 @@ The following code example explains how to create LTV PDF using [EnableLtv](http
//Enable LTV on Signature.
pdfSignature.EnableLtv = true;
- //Save the document into stream
- MemoryStream ms = new MemoryStream();
- loadedDocument.Save(ms);
- stream.ms = 0;
- //Close the document
+ //Save the document
+ loadedDocument.Save("Output.pdf");
+ //Close the document.
loadedDocument.Close(true);
@@ -2361,6 +2515,12 @@ The following code example explains how to create LTV PDF using [EnableLtv](http
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using System.Drawing;
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Graphics;
+ using Syncfusion.Pdf.Parsing;
+ using Syncfusion.Pdf.Security;
+
//Creates a new PDF document.
PdfDocument document = new PdfDocument();
@@ -2402,6 +2562,12 @@ The following code example explains how to create LTV PDF using [EnableLtv](http
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+ Imports System.Drawing
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Pdf.Graphics
+ Imports Syncfusion.Pdf.Parsing
+ Imports Syncfusion.Pdf.Security
+
' Creates a new PDF document.
Dim document As New PdfDocument()
@@ -2459,6 +2625,11 @@ The following code example explains how to add a digital signature with [cryptog
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Adding-a-digital-signature-with-CAdES-format/.NET/Adding-a-digital-signature-with-CAdES-format/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page
@@ -2481,29 +2652,27 @@ FileStream imageStream = new FileStream("signature.jpg", FileMode.Open, FileAcce
PdfBitmap signatureImage = new PdfBitmap(imageStream);
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Draws the signature image
signature.Appearance.Normal.Graphics.DrawImage(signatureImage, 0, 0);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Adds a new page
@@ -2523,6 +2692,7 @@ settings.CryptographicStandard = CryptographicStandard.CADES;
PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg");
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -2537,6 +2707,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -2556,6 +2731,7 @@ settings.CryptographicStandard = CryptographicStandard.CADES
Dim signatureImage As New PdfBitmap("signature.jpg")
'Sets signature info
signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -2589,6 +2765,11 @@ The following code example explains how to add a digital signature with various
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Add-digital-signature-with-digest-algorithm/.NET/Add-digital-signature-with-digest-algorithm/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page
@@ -2611,29 +2792,27 @@ FileStream imageStream = new FileStream("signature.jpg", FileMode.Open, FileAcce
PdfBitmap signatureImage = new PdfBitmap(imageStream);
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
//Draws the signature image
signature.Appearance.Normal.Graphics.DrawImage(signatureImage, 0, 0);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
-//Defining the ContentType for pdf file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page
@@ -2653,6 +2832,7 @@ settings.DigestAlgorithm = DigestAlgorithm.SHA256;
PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg");
//Sets signature information
signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -2667,6 +2847,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Adds a new page
@@ -2686,6 +2871,7 @@ settings.DigestAlgorithm = DigestAlgorithm.SHA256
Dim signatureImage As New PdfBitmap("signature.jpg")
'Sets signature info
signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -2722,11 +2908,12 @@ The following code example explains how to validate the digitally signed PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Validate-the-digitally-signed-PDF-signature/.NET/Validate-the-digitally-signed-PDF-signature/Program.cs" %}
-// Load the input PDF document stream from the specified file path
-FileStream documentStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
-// Load the signed PDF document using the stream
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+// Load the signed PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Retrieve the first signature field from the PDF form
PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -2856,11 +3043,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-// Load the input PDF document stream from the specified file path
-FileStream documentStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
-// Load the signed PDF document using the stream
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+// Load the signed PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Retrieve the first signature field from the PDF form
PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -2990,11 +3178,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Load the input PDF document stream from the specified file path
-Dim documentStream As New FileStream(Path.GetFullPath("Data/Input.pdf"), FileMode.Open, FileAccess.Read)
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography.X509Certificates
' Load the signed PDF document using the stream
-Dim loadedDocument As New PdfLoadedDocument(documentStream)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
' Retrieve the first signature field from the PDF form
Dim signatureField As PdfLoadedSignatureField = TryCast(loadedDocument.Form.Fields(0), PdfLoadedSignatureField)
@@ -3127,10 +3316,12 @@ The following code example explains how to validate all the signatures in digita
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Validate-all-signatures-in-digitally-signed-PDF/.NET/Validate-all-signatures-in-digitally-signed-PDF/Program.cs" %}
-//Get the stream from the document
-FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-//Load an existing signed PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//X509Certificate2Collection to check the signer's identity using root certificates
X509Certificate2Collection collection = new X509Certificate2Collection();
@@ -3153,6 +3344,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Load an existing signed PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -3173,6 +3368,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography.X509Certificates
+
'Load an existing signed PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -3205,6 +3404,9 @@ This example shows how to validate and identify different types of digital signa
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Get the stream from the document
FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
// Load the signed PDF document
@@ -3278,6 +3480,9 @@ for (int i = form.Fields.Count - 1; i >= 0; i--)
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
// Load the signed PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Signed PDF.pdf");
@@ -3349,6 +3554,9 @@ for (int i = form.Fields.Count - 1; i >= 0; i--)
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
' Load the signed PDF document
Dim loadedDocument As New PdfLoadedDocument("Signed PDF.pdf")
@@ -3420,10 +3628,14 @@ Steps for deferred signing:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/refs/heads/master/Digital%20Signature/Deferred-signing-in-PDF-document/.NET/Deferred-signing-in-PDF-document/Program.cs" %}
-//Get the stream from the document.
-FileStream documentStream = new FileStream("PDF_Succinctly.pdf ", FileMode.Open, FileAccess.Read);
-//Load an existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography;
+using System.Security.Cryptography.X509Certificates;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Creates a digital signature.
PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0], null, "Signature");
@@ -3439,17 +3651,10 @@ System.Collections.Generic.List certificates = new System.Coll
certificates.Add(new X509Certificate2(Convert.FromBase64String(PublicCert)));
signature.AddExternalSigner(externalSignature, certificates, null);
-//Save the document.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the PDF document.
+//Save the document
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
-//Defining the ContentType for a PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
void DeferredSign()
{
@@ -3542,6 +3747,12 @@ class ExternalSigner : IPdfExternalSigner
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography;
+using System.Security.Cryptography.X509Certificates;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("PDF_Succinctly.pdf");
@@ -3655,6 +3866,11 @@ class ExternalSigner : IPdfExternalSigner
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("PDF_Succinctly.pdf")
@@ -3770,6 +3986,10 @@ The following code sample shows how to add the estimated size of the signature i
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Adding-the-estimated-size-of-the-signature/.NET/Adding-the-estimated-size-of-the-signature/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Security;
+
//Creating a new PDF Document.
PdfDocument document = new PdfDocument();
//Adding a new page to the PDF document.
@@ -3784,25 +4004,19 @@ signature.Bounds = new Rectangle(10, 20, 400, 200);
//Sets the estimated size of the signature.
signature.EstimatedSignatureSize = 20000;
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-document.Save(stream);
-//If the position is not set to '0,' then the PDF will be empty.
-stream.Position = 0;
+//Save the document
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
-//Defining the ContentType for a PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Security;
+
//Creating a new PDF Document.
PdfDocument document = new PdfDocument();
//Adding a new page to the PDF document.
@@ -3825,6 +4039,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Creating a new PDF Document.
Dim document As PdfDocument = New PdfDocument()
'Adding a new page to the PDF document.
@@ -3862,10 +4080,13 @@ Steps for deferred signing:
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Get the stream from a document.
-FileStream documentStream = new FileStream("PDF_Succinctly.pdf ", FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Load an existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("PDF_Succinctly.pdf");
//Creates a digital signature.
PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0], null, "Signature");
@@ -3881,16 +4102,9 @@ System.Collections.Generic.List certificates = new System.Coll
signature.AddExternalSigner(externalSignature, certificates, null);
//Save a document.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close a PDF document.
+loadedDocument.Save("EmptySignature.pdf");
+//Close a document.
loadedDocument.Close(true);
-//Defining the ContentType for a PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
//Create an external signer with a signed hash message.
IPdfExternalSigner externalSigner = new ExternalSigner("SHA1");
@@ -3899,8 +4113,8 @@ System.Collections.Generic.List publicCertificates = new Syste
publicCertificates.Add(new X509Certificate2(Convert.FromBase64String(PublicCert)));
//Create an output file stream.
-MemoryStream outputFileStream = new MemoryStream();
-// Get the stream from a document.
+MemoryStream outputFileStream = new MemoryStream();
+//Get the stream from a document.
FileStream inputFileStream = new FileStream("EmptySignature.pdf", FileMode.Open, FileAccess.Read);
string pdfPassword = string.Empty;
//Deferred signing without PKCS7 encoding.
@@ -3960,6 +4174,11 @@ class ExternalSigner : IPdfExternalSigner
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("PDF_Succinctly.pdf");
@@ -4049,6 +4268,11 @@ class ExternalSigner : IPdfExternalSigner
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography.X509Certificates
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("PDF_Succinctly.pdf")
@@ -4147,47 +4371,47 @@ The following code example illustrates how to draw text/images in a digital appe
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Draw-text-or-images-in-the-signature-appearance/.NET/Draw-text-or-images-in-the-signature-appearance/Program.cs" %}
-//Create a new PDF document.
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
+//Creates a new PDF document.
PdfDocument document = new PdfDocument();
-//Add a new page.
+//Adds a new page.
PdfPageBase page = document.Pages.Add();
//Create PDF graphics for the page.
PdfGraphics graphics = page.Graphics;
-//Create a certificate instance from a PFX file with a private key.
-FileStream certificateStream = new FileStream("PDF.pfx", FileMode.Open, FileAccess.Read);
-PdfCertificate pdfCert = new PdfCertificate(certificateStream, "password123");
-//Create a digital signature.
+//Creates a certificate instance from PFX file with private key.
+PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "password123");
+//Creates a digital signature.
PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature");
-//Set an image for signature field.
-FileStream imageStream = new FileStream("signature.jpg", FileMode.Open, FileAccess.Read);
-//Set an image for signature field.
-PdfBitmap signatureImage = new PdfBitmap(imageStream);
-//Set the signature information.
-signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension);
+//Sets an image for signature field.
+PdfBitmap signatureImage = new PdfBitmap(@"signature.png");
+//Sets signature information.
+signature.Bounds = new RectangleF(0,0,200,100);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
-//Create appearance for the digital signature.
+//Create appearance for the digital siganture.
signature.Appearance.Normal.Graphics.DrawImage(signatureImage, signature.Bounds);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document.
+document.Save("DigitalSignature.pdf");
//Close the document.
document.Close(true);
-//Define the ContentType for pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Create a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Creates a new PDF document.
PdfDocument document = new PdfDocument();
//Adds a new page.
@@ -4203,6 +4427,7 @@ PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature");
PdfBitmap signatureImage = new PdfBitmap(@"signature.png");
//Sets signature information.
signature.Bounds = new RectangleF(0,0,200,100);
+signature.SignedName = "Syncfusion";
signature.ContactInfo = "johndoe@owned.us";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
@@ -4218,6 +4443,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a new page.
@@ -4233,6 +4463,7 @@ Dim signature As New PdfSignature(document, page, pdfCert, "Signature")
Dim signatureImage As New PdfBitmap("signature.jpg")
'Set the signature information.
signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension)
+signature.SignedName = "Syncfusion"
signature.ContactInfo = "johndoe@owned.us"
signature.LocationInfo = "Honolulu, Hawaii"
signature.Reason = "I am author of this document."
@@ -4257,11 +4488,11 @@ Added support for LTV validation and getting CRL and OCSP embedded details from
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Get-LTV-information/.NET/Get-LTV-information/Program.cs" %}
-//Gets the stream from the document
-FileStream documentStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
-//Loads an existing signed PDF document
-PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+//Load the PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
@@ -4292,11 +4523,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Gets the stream from the document
-FileStream documentStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
-//Loads an existing signed PDF document
-PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+//Load the PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
@@ -4327,11 +4558,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Gets the stream from the document
-Dim documentStream As New FileStream(Path.GetFullPath("Data/Input.pdf"), FileMode.Open, FileAccess.Read)
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
' Loads an existing signed PDF document
-Dim document As New PdfLoadedDocument(documentStream)
+Dim document As New PdfLoadedDocument("Input.pdf")
' Gets the signature field
Dim signatureField As PdfLoadedSignatureField = TryCast(document.Form.Fields(0), PdfLoadedSignatureField)
@@ -4372,11 +4603,11 @@ Added support to customize revocation validation using [PdfSignatureValidationOp
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Customized-revocation-validation/.NET/Customized-revocation-validation/Program.cs" %}
-//Gets the stream from the document
-FileStream documentStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
-//Loads an existing signed PDF document
-PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+//Load the PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
@@ -4407,11 +4638,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Gets the stream from the document
-FileStream documentStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
-//Loads an existing signed PDF document
-PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+//Load the PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
@@ -4442,6 +4673,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
' Gets the stream from the document
Dim documentStream As New FileStream(Path.GetFullPath("Data/Input.pdf"), FileMode.Open, FileAccess.Read)
@@ -4484,32 +4718,26 @@ The following code example illustrates how to remove existing digital signatures
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Remove_existing_digital_signature_from_PDF/.NET/Remove_existing_digital_signature_from_PDF/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument pdfLoadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument pdfLoadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the signature field from PDF form field collection.
PdfLoadedSignatureField signatureField = pdfLoadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
//Remove signature field from form field collection.
pdfLoadedDocument.Form.Fields.Remove(signatureField);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfLoadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document.
+//Save and close the PDF document.
+pdfLoadedDocument.Save("RemoveDigital.pdf");
pdfLoadedDocument.Close(true);
-//Defining the ContentType for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
PdfLoadedDocument pdfLoadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -4526,6 +4754,8 @@ pdfLoadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document.
Dim pdfLoadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -4552,12 +4782,13 @@ The following code snippet illustrates how to sign a PDF document without showin
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Sign-PDF-without-showing-digital-signature/.NET/Sign-PDF-without-showing-digital-signature/Program.cs" %}
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
+//Load an existing PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load digital ID with password.
-FileStream certificateStream = new FileStream("PDF.pfx", FileMode.Open, FileAccess.Read);
-PdfCertificate certificate = new PdfCertificate(certificateStream, "password123");
+PdfCertificate certificate = new PdfCertificate(@"PDF.pfx", "password123");
//Create a signature with loaded digital ID.
PdfSignature signature = new PdfSignature(loadedDocument, loadedDocument.Pages[0], certificate, "DigitalSignature");
@@ -4568,23 +4799,17 @@ signature.Certificated = true;
//Allow the form fill and and comments.
signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill | PdfCertificationFlags.AllowComments;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document.
-document.Close(true);
-//Defining the ContentType for pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
+//Save and close the PDF document.
+loadedDocument.Save("Certifying.pdf");
+loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load digital ID with password.
@@ -4607,6 +4832,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Load digital ID with password.
@@ -4639,9 +4867,11 @@ The following code snippet illustrates how to retrieve digital signature informa
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Retrieve-digital-signature-information-from-PDF/.NET/Retrieve-digital-signature-information-from-PDF/Program.cs" %}
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the signature field from PdfLoadedDocument form field collection.
PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -4661,6 +4891,9 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -4682,6 +4915,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -4715,23 +4951,25 @@ N> It is recommended to use licensed assemblies or registered license keys in yo
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/refs/heads/master/Digital%20Signature/Multiple-digital-signature/.NET/Multiple-digital-signature/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream("SignatureFields.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Pdf;
+
+//Load an existing PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the first page of the document.
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
//Get the first signature field of the PDF document.
PdfLoadedSignatureField signatureField1 = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
-//Creates a certificate.
-FileStream certificateStream1 = new FileStream("PDF.pfx", FileMode.Open, FileAccess.Read);
-PdfCertificate certificate1 = new PdfCertificate(certificateStream1, "password123");
-//Add signature to the signature field.
+//Create a certificate instance from a PFX file with a private key.
+PdfCertificate certificate1 = new PdfCertificate("PDF.pfx", "password123");
+//Add a signature to the signature field.
signatureField1.Signature = new PdfSignature(loadedDocument, page, certificate1, "Signature", signatureField1);
-//Get the image as a stream.
-FileStream imageStream = new FileStream("Student Signature.jpg", FileMode.Open, FileAccess.Read);
-PdfBitmap signatureImage = new PdfBitmap(imageStream);
-//Draw an image in signature appearance.
+//Set an image for the signature field.
+PdfBitmap signatureImage = new PdfBitmap(@"Student Signature.jpg");
+//Insert an image in the signature appearance.
signatureField1.Signature.Appearance.Normal.Graphics.DrawImage(signatureImage, 0, 0, 90, 20);
//Save the document into the stream.
@@ -4745,33 +4983,28 @@ PdfLoadedPage loadedPage = signedDocument.Pages[0] as PdfLoadedPage;
//Get the first signature field of the PDF document.
PdfLoadedSignatureField signatureField2 = signedDocument.Form.Fields[1] as PdfLoadedSignatureField;
-//Add the signature to the signature field.
-signatureField1.Signature = new PdfSignature(signedDocument, loadedPage, certificate1, "Signature", signatureField2);
-//Load the image as a stream.
-FileStream imageStream1 = new FileStream("Teacher Signature.png", FileMode.Open, FileAccess.Read);
-PdfBitmap signatureImage1 = new PdfBitmap(imageStream1);
-//Draw the image in signature appearance.
-signatureField1.Signature.Appearance.Normal.Graphics.DrawImage(signatureImage1, 0, 0, 90, 20);
-
-//Saving the PDF to the MemoryStream.
-MemoryStream signedStream = new MemoryStream();
-signedDocument.Save(signedStream);
-//Set the position as '0'.
-signedStream.Position = 0;
-//Close the documents.
+//Add a signature to the signature field.
+signatureField2.Signature = new PdfSignature(signedDocument, loadedPage, certificate1, "Signature", signatureField2);
+//Set an image for the signature field.
+PdfBitmap signatureImage1 = new PdfBitmap(@"Teacher Signature.png");
+//Draw an image in the signature appearance.
+signatureField2.Signature.Appearance.Normal.Graphics.DrawImage(signatureImage1, 0, 0, 90, 20);
+
+//Save the PDF document.
+signedDocument.Save("Multiple_signature.pdf");
+//Close the PDF documents.
signedDocument.Close(true);
loadedDocument.Close(true);
-//Defining the ContentType for a pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Multiple_Signature.pdf";
-//Create the FileContentResult object by using the file contents, content type, and file name.
-return File(signedStream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using Syncfusion.Pdf;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the first page of the document.
@@ -4816,6 +5049,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports Syncfusion.Pdf
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the first page of the document.
@@ -4869,9 +5107,12 @@ The following code example illustrates how to retrieve revocation certificate in
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Retrieve-revocation-certificate-information/.NET/Retrieve-revocation-certificate-information/Program.cs" %}
-//Load an existing signed PDF document.
-FileStream documentStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(documentStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get signature field.
PdfLoadedSignatureField loadedSignatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField;
@@ -4920,6 +5161,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Load an existing signed PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -4970,6 +5215,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography.X509Certificates
+
'Load an existing signed PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -5030,9 +5279,10 @@ The following code example illustrates how to retrieve signed revision informati
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Retrieve-signed-revision-information/.NET/Retrieve-signed-revision-information/Program.cs" %}
-//Load an existing PDF document.
-FileStream inputStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(inputStream);
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the document revisions.
PdfRevision[] revisions = document.Revisions;
foreach (PdfRevision rev in revisions)
@@ -5046,11 +5296,12 @@ PdfLoadedSignatureField field = document.Form.Fields[0] as PdfLoadedSignatureFie
int revisionIndex = field.Revision;
//Close the document.
document.Close(true);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the document revisions.
@@ -5071,6 +5322,8 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document.
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the document revisions.
@@ -5100,9 +5353,12 @@ The following code example illustrates how to retrieve revocation certificate in
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Retrieve-revocation-certificate-information-from-digital-signature-embed-timestamp/.NET/Program.cs" %}
-//Load an existing PDF document.
-FileStream inputStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(inputStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
+//Load an existing PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Gets the signature field.
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
//Validates signature and gets the validation result.
@@ -5116,6 +5372,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Load an existing PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Gets the signature field.
@@ -5131,6 +5391,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography.X509Certificates
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Gets the signature field.
@@ -5156,15 +5420,17 @@ Utilize the **GetImages** method within the [PdfLoadedSignatureField](https://he
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Get-images-from-the-existing-signed-signature-field/.NET/Get-images-from-the-existing-signed-signature-field/Program.cs" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF file.
-FileStream fileStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream);
+PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf");
//Get the existing signed signature field.
PdfLoadedSignatureField loadedSignature = ldoc.Form.Fields[0] as PdfLoadedSignatureField;
-//Get the image streams.
-Stream[] imageStreams = loadedSignature.GetImages();
-for (int i = 0; i < imageStreams.Length; i++) {
- File.WriteAllBytes("Output" + i.ToString() + ".jpg", (imageStreams[i] as MemoryStream).ToArray());
+//Get the image.
+Image[] images = loadedSignature.GetImages();
+for (int i = 0; i < images.Length; i++) {
+ images[i].Save("Image" + i.ToString() + ".jpg", ImageFormat.Png);
}
//Close a PDF document.
ldoc.Close(true);
@@ -5173,6 +5439,9 @@ ldoc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF file.
PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf");
//Get the existing signed signature field.
@@ -5189,6 +5458,9 @@ ldoc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Interactive
+
'Load an existing PDF file.
Dim fileStream As FileStream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read)
Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument(fileStream)
@@ -5218,6 +5490,10 @@ Effortlessly Integrate **signature and timestamp** certificates into the Documen
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Loads an existing document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Gets the signature field
@@ -5248,6 +5524,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+using System.Security.Cryptography.X509Certificates;
+
//Gets the stream from the document
FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
//Loads an existing signed PDF document
@@ -5280,6 +5560,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+Imports System.Security.Cryptography.X509Certificates
+
'Loads an existing signed PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Gets the signature field
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Document-Conversions.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Document-Conversions.md
index 5e3be7eb7..b97659453 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Document-Conversions.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Document-Conversions.md
@@ -89,28 +89,33 @@ For ASP.NET Core and Xamarin applications
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/Word-to-PDF/Converting-Word-to-PDF-document/.NET/Converting-Word-to-PDF-document/Program.cs" %}
-// Open the file as Stream.
-FileStream docStream = new FileStream(@"Template.docx", FileMode.Open, FileAccess.Read);
-//Loads file stream into Word document.
-WordDocument wordDocument = new WordDocument(docStream, Syncfusion.DocIO.FormatType.Automatic);
-//Instantiation of DocIORenderer for Word to PDF conversion.
-DocIORenderer render = new DocIORenderer();
-//Converts Word document into PDF document.
-PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);
-//Releases all resources used by the Word document and DocIO Renderer objects.
-render.Dispose();
-wordDocument.Dispose();
-
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-//Close the document.
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocIORenderer;
+using Syncfusion.Pdf;
+
+//Load an existing Word document.
+WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx);
+//Initialize chart to image converter for converting charts during Word to pdf conversion.
+wordDocument.ChartToImageConverter = new ChartToImageConverter();
+//Create an instance of DocToPDFConverter.
+DocToPDFConverter converter = new DocToPDFConverter();
+//Convert Word document into PDF document.
+PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
+
+//Save the PDF file.
+pdfDocument.Save("WordtoPDF.pdf");
+//Close the instance of document objects.
pdfDocument.Close(true);
+wordDocument.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocIORenderer;
+using Syncfusion.Pdf;
+
//Load an existing Word document.
WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx);
//Initialize chart to image converter for converting charts during Word to pdf conversion.
@@ -131,6 +136,10 @@ wordDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.DocIO.DLS
+Imports Syncfusion.DocIORenderer
+Imports Syncfusion.Pdf
+
'Load an existing Word document
Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx)
'Initialize chart to image converter for converting charts during Word to pdf conversion
@@ -175,6 +184,13 @@ Essential® DocIO allows you to customize the Word to PDF conversi
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.DocIO;
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocToPDFConverter;
+using Syncfusion.OfficeChart;
+using Syncfusion.OfficeChartToImageConverter;
+using Syncfusion.Pdf;
+
//Loads an existing Word document.
WordDocument wordDocument = new WordDocument("Sample_Image.docx", FormatType.Docx);
//Initialize chart to image converter for converting charts during Word to pdf conversion.
@@ -203,6 +219,13 @@ wordDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.DocIO
+Imports Syncfusion.DocIO.DLS
+Imports Syncfusion.DocToPDFConverter
+Imports Syncfusion.OfficeChart
+Imports Syncfusion.OfficeChartToImageConverter
+Imports Syncfusion.Pdf
+
'Loads an existing Word document
Dim wordDocument As New WordDocument("Sample_Image.docx", FormatType.Docx)
'Initialize chart to image converter for converting charts during Word to pdf conversion
@@ -250,29 +273,32 @@ The following code illustrates how to convert a workbook to PDF Document using [
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/Excel-to-PDF/Convert-workbook-to-PDF-document/.NET/Convert-workbook-to-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
//Load the document.
- FileStream excelStream = new FileStream("ExcelToPDF.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(excelStream);
+ IWorkbook workbook = application.Workbooks.Open("Sample.xlsx", ExcelOpenType.Automatic);
//Initialize XlsIO renderer.
XlsIORenderer renderer = new XlsIORenderer();
//Convert Excel document into PDF document.
PdfDocument pdfDocument = renderer.ConvertToPDF(workbook);
- //Save the PDF document to stream.
- Stream stream = new FileStream("ExcelToPDF.pdf", FileMode.Create, FileAccess.ReadWrite);
- pdfDocument.Save(stream);
- //Dispose the stream.
- excelStream.Dispose();
- stream.Dispose();
+ //Save the PDF file.
+ pdfDocument.Save("ExcelToPDF.pdf");
}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
@@ -293,6 +319,10 @@ using(ExcelEngine excelEngine = new ExcelEngine())
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.XlsIO
+Imports Syncfusion.XlsIORenderer
+
Using excelEngine As ExcelEngine = New ExcelEngine()
Dim application As IApplication = excelEngine.Excel
application.DefaultVersion = ExcelVersion.Excel2013
@@ -322,30 +352,36 @@ The following code shows how to convert a particular sheet to PDF Document using
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/Excel-to-PDF/Converting-a-worksheet-to-PDF-document/.NET/Converting-a-worksheet-to-PDF-document/Program.cs" %}
-using (ExcelEngine excelEngine = new ExcelEngine())
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
+Using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream excelStream = new FileStream("ExcelToPDF.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(excelStream);
- IWorksheet worksheet = workbook.Worksheets[0];
-
- //Initialize XlsIO renderer.
- XlsIORenderer renderer = new XlsIORenderer();
- //Convert Excel document into PDF document.
- PdfDocument pdfDocument = renderer.ConvertToPDF(worksheet);
-
- //Saving the PDF to the MemoryStream.
- Stream stream = new FileStream("ExcelToPDF.pdf", FileMode.Create, FileAccess.ReadWrite);
- pdfDocument.Save(stream);
- //Dispose the stream.
- excelStream.Dispose();
- stream.Dispose();
+ application.DefaultVersion = ExcelVersion.Excel2013;
+ IWorkbook workbook = application.Workbooks.Open("Sample.xlsx", ExcelOpenType.Automatic);
+ IWorksheet sheet = workbook.Worksheets[0];
+
+ //convert the sheet to PDF.
+ ExcelToPdfConverter converter = new ExcelToPdfConverter(sheet);
+ //Initialize PDF document.
+ PdfDocument pdfDocument= new PdfDocument();
+ //Convert Excel document into PDF document.
+ pdfDocument = converter.Convert();
+
+ //Save the PDF file.
+ pdfDocument.Save("ExcelToPDF.pdf");
}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
Using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
@@ -368,6 +404,10 @@ Using(ExcelEngine excelEngine = new ExcelEngine())
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.XlsIO
+Imports Syncfusion.XlsIORenderer
+
Using excelEngine As ExcelEngine = New ExcelEngine()
Dim application As IApplication = excelEngine.Excel
application.DefaultVersion = ExcelVersion.Excel2013
@@ -399,31 +439,37 @@ The following code snippet shows how to create an individual PDF document for ea
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/Excel-to-PDF/Creating-individual-PDF-document-for-each-worksheet/.NET/Program.cs" %}
-using (ExcelEngine excelEngine = new ExcelEngine())
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
+Using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
- FileStream excelStream = new FileStream("ExcelToPDF.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(excelStream);
-
- //Initialize XlsIO renderer.
- XlsIORenderer renderer = new XlsIORenderer();
+ application.DefaultVersion = ExcelVersion.Excel2013;
+ IWorkbook workbook = application.Workbooks.Open("Sample.xlsx", ExcelOpenType.Automatic);
+
//Create a new PDF document.
- PdfDocument pdfDocument = new PdfDocument();
+ PdfDocument pdfDocument = new PdfDocument();
foreach (IWorksheet sheet in workbook.Worksheets)
{
- pdfDocument = renderer.ConvertToPDF(sheet);
-
+ //Open the Excel document to Convert.
+ ExcelToPdfConverter converter = new ExcelToPdfConverter(sheet);
+ pdfDocument = converter.Convert();
+
//Save the PDF file.
- Stream stream = new FileStream(sheet.Name+".pdf", FileMode.Create, FileAccess.ReadWrite);
- pdfDocument.Save(stream);
- stream.Dispose();
+ pdfDocument.Save(sheet.Name +".pdf");
+ converter.Dispose();
}
- excelStream.Dispose();
}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
Using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
@@ -448,6 +494,10 @@ Using(ExcelEngine excelEngine = new ExcelEngine())
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.XlsIO
+Imports Syncfusion.XlsIORenderer
+
Using excelEngine As ExcelEngine = New ExcelEngine()
Dim application As IApplication = excelEngine.Excel
application.DefaultVersion = ExcelVersion.Excel2013
@@ -480,29 +530,39 @@ To preserve the charts during Excel to PDF conversion, you should initialize the
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/Excel-to-PDF/Converting-Excel-with-chart-to-PDF-document/.NET/Converting-Excel-with-chart-to-PDF-document/Program.cs" %}
-using (ExcelEngine excelEngine = new ExcelEngine())
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
+Using(ExcelEngine excelEngine = new ExcelEngine())
{
- IApplication application = excelEngine.Excel;
- //Initialize XlsIO renderer.
- XlsIORenderer renderer = new XlsIORenderer();
- //Load the document as stream.
- FileStream excelStream = new FileStream("chart.xlsx", FileMode.Open, FileAccess.Read);
- IWorkbook workbook = application.Workbooks.Open(excelStream);
+ IApplication application = excelEngine.Excel;
+ application.DefaultVersion = ExcelVersion.Excel2013;
+ //Instantiating the ChartToImageConverter and assigning the ChartToImageConverter instance of XlsIO application.
+ application.ChartToImageConverter = new ChartToImageConverter();
+ //Tuning chart image quality.
+ application.ChartToImageConverter.ScalingMode = ScalingMode.Best;
+ IWorkbook workbook = application.Workbooks.Open("chart.xlsx");
+ IWorksheet worksheet = workbook.Worksheets[0];
- //Convert Excel document with charts into PDF document.
- PdfDocument pdfDocument = renderer.ConvertToPDF(workbook);
+ //Open the Excel document to Convert.
+ ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
- //Save the PDF document.
- Stream stream = new FileStream("ExcelToPDF.pdf", FileMode.Create, FileAccess.ReadWrite);
- pdfDocument.Save(stream);
- //Dispose the stream.
- excelStream.Dispose();
- stream.Dispose();
+ //Initialize PDF document.
+ PdfDocument pdfDocument = new PdfDocument();
+ //Convert Excel document into PDF document.
+ pdfDocument = converter.Convert();
+ //Save the PDF file.
+ pdfDocument.Save("ExcelToPDF.pdf");
}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.XlsIO;
+using Syncfusion.XlsIORenderer;
+
Using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
@@ -529,6 +589,10 @@ Using(ExcelEngine excelEngine = new ExcelEngine())
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.XlsIO
+Imports Syncfusion.XlsIORenderer
+
Using excelEngine As ExcelEngine = New ExcelEngine()
Dim application As IApplication = excelEngine.Excel
application.DefaultVersion = ExcelVersion.Excel2013
@@ -640,31 +704,33 @@ For ASP.NET Core and Xamarin applications
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/RTF-to-PDF/Convert-RTF-to-PDF-document/.NET/Convert-RTF-to-PDF-document/Program.cs" %}
-//Open the file as Stream
-FileStream docStream = new FileStream(@"Input.rtf", FileMode.Open, FileAccess.Read);
-//Loads file stream into Word document
-WordDocument wordDocument = new WordDocument(docStream, Syncfusion.DocIO.FormatType.Automatic);
-//Instantiation of DocIORenderer for Word to PDF conversion
-DocIORenderer render = new DocIORenderer();
-//Converts Word document into PDF document
-PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);
-
-//Releases all resources used by the Word document and DocIO Renderer objects
-render.Dispose();
-wordDocument.Dispose();
-
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-//Close the document
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocIORenderer;
+using Syncfusion.Pdf;
+
+//Load an existing RTF document.
+WordDocument rtfDocument = new WordDocument("Input.rtf");
+//Create an instance of DocToPDFConverter.
+DocToPDFConverter converter = new DocToPDFConverter();
+//Convert Word document into PDF document.
+PdfDocument pdfDocument = converter.ConvertToPDF(rtfDocument);
+
+//Save the PDF file.
+pdfDocument.Save("RTFToPDF.pdf");
+//Close the instance of document objects.
pdfDocument.Close(true);
+rtfDocument.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocIORenderer;
+using Syncfusion.Pdf;
+
//Load an existing RTF document.
-WordDocument rtfDocument = new WordDocument(inputFileName);
+WordDocument rtfDocument = new WordDocument("Input.rtf");
//Create an instance of DocToPDFConverter.
DocToPDFConverter converter = new DocToPDFConverter();
//Convert Word document into PDF document.
@@ -681,6 +747,10 @@ rtfDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.DocIO.DLS
+Imports Syncfusion.DocIORenderer
+Imports Syncfusion.Pdf
+
'Load an existing Word document
Dim rtfDocument As New WordDocument(inputFileName)
'Create an instance of DocToPDFConverter
@@ -718,6 +788,12 @@ Essential® DocIO allows you to customize the RTF to PDF conversio
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocToPDFConverter;
+using Syncfusion.Pdf;
+using System;
+using System.Collections.Generic;
+
//Loads an existing Word document
WordDocument rtfDocument = new WordDocument(inputFileName);
//create an instance of DocToPDFConverter - responsible for Word to PDF conversion
@@ -741,6 +817,12 @@ rtfDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.DocIO.DLS
+Imports Syncfusion.DocToPDFConverter
+Imports Syncfusion.Pdf
+Imports System
+Imports System.Collections.Generic
+
'Loads an existing Word document
Dim rtfDocument As New WordDocument(inputFileName)
'create an instance of DocToPDFConverter - responsible for Word to PDF conversion
@@ -777,26 +859,28 @@ The code snippet to illustrate the same is given below.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/TIFF-to-PDF/Converting-multipage-TIFF-to-PDF-document/.NET/Converting-multipage-TIFF-to-PDF-document/Program.cs" %}
-//Create a new PDF document
-PdfDocument document = new PdfDocument();
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
-//Load the multi frame TIFF image from the disk
-FileStream imageStream = new FileStream("image.tiff", FileMode.Open, FileAccess.Read);
-PdfTiffImage tiffImage = new PdfTiffImage(imageStream);
+//Create a PDF document
+PdfDocument pdfDocument = new PdfDocument();
+
+//Load multi frame TIFF image
+PdfBitmap tiffImage = new PdfBitmap("image.tiff");
//Get the frame count
int frameCount = tiffImage.FrameCount;
//Access each frame and draw into the page
for (int i = 0; i < frameCount; i++)
{
+ tiffImage.ActiveFrame = i;
//Add a section to the PDF document
- PdfSection section = document.Sections.Add();
+ PdfSection section = pdfDocument.Sections.Add();
//Set page margins
section.PageSettings.Margins.All = 0;
- tiffImage.ActiveFrame = i;
//Create a PDF unit converter instance
PdfUnitConvertor converter = new PdfUnitConvertor();
//Convert to point
- Syncfusion.Drawing.SizeF size = converter.ConvertFromPixels(tiffImage.PhysicalDimension, PdfGraphicsUnit.Point);
+ SizeF size = converter.ConvertFromPixels(tiffImage.PhysicalDimension, PdfGraphicsUnit.Point);
//Set page orientation
section.PageSettings.Orientation = (size.Width > size.Height) ? PdfPageOrientation.Landscape : PdfPageOrientation.Portrait;
//Set page size
@@ -804,20 +888,20 @@ for (int i = 0; i < frameCount; i++)
//Add a page to the section
PdfPage page = section.Pages.Add();
//Draw TIFF image into the PDF page
- page.Graphics.DrawImage(tiffImage, Syncfusion.Drawing.PointF.Empty, size);
+ page.Graphics.DrawImage(tiffImage, PointF.Empty, size);
}
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-document.Save(stream);
-//Close the document
-document.Close(true);
+//Save and close the document
+pdfDocument.Save("Sample.pdf");
+pdfDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+
//Create a PDF document
PdfDocument pdfDocument = new PdfDocument();
@@ -855,6 +939,9 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf
+
'Create a PDF document
Dim pdfDocument As New PdfDocument()
@@ -910,6 +997,11 @@ Refer the below code snippet to draw a single frame monochrome TIFF image with J
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System;
+using System.Collections.Generic;
+
//Create a PDF document
PdfDocument pdfDocument = new PdfDocument();
//Add a page
@@ -930,6 +1022,11 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf
+Imports System
+Imports System.Collections.Generic
+
'Create a PDF document
Dim pdfDocument As New PdfDocument()
'Add a page
@@ -966,28 +1063,29 @@ The below code illustrates how to convert XPS to PDF.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Document%20conversion/Converting-XPS-to-PDF-document/.NET/Converting-XPS-to-PDF-document/Program.cs" %}
-//Initialize XPS to PDF converter.
+using Syncfusion.Pdf;
+using Syncfusion.XPS;
+
+//Create converter class
XPSToPdfConverter converter = new XPSToPdfConverter();
-//Open the XPS file as stream.
-FileStream fileStream = new FileStream("Input.xps", FileMode.Open, FileAccess.ReadWrite);
-//Convert the XPS to PDF.
-PdfDocument document = converter.Convert(fileStream);
-
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-document.Save(stream);
-//Close the documents.
+//Convert the XPS to PDF
+PdfDocument document = converter.Convert("Input.xps");
+
+//Save and close the document
+document.Save("Sample.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.XPS;
+
//Create converter class
XPSToPdfConverter converter = new XPSToPdfConverter();
//Convert the XPS to PDF
-PdfDocument document = converter.Convert(xpsFileName);
+PdfDocument document = converter.Convert("Input.xps");
//Save and close the document
document.Save("Sample.pdf");
@@ -997,10 +1095,13 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.XPS
+
'Create converter class
Dim converter As New XPSToPdfConverter()
'Convert the XPS to PDF
-Dim document As PdfDocument = converter.Convert(xpsFileName)
+Dim document As PdfDocument = converter.Convert("Input.xps")
'Save and close the document
document.Save("Sample.pdf")
@@ -1220,6 +1321,9 @@ The following code snippet illustrates how to convert PDF page into image using
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.PdfToImageConverter;
+using System.IO;
+
//Initialize PDF to Image converter.
PdfToImageConverter imageConverter = new PdfToImageConverter();
//Load the PDF document as a stream
@@ -1227,13 +1331,16 @@ FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.R
imageConverter.Load(inputStream);
//Convert PDF to Image.
Stream outputStream = imageConverter.Convert(0, false, false);
-MemoryStream stream = outputStream as MemoryStream;
-return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Image.Jpeg, "sample.jpeg");
+Bitmap image = new Bitmap(outputStream);
+image.Save("sample.png");
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.PdfToImageConverter;
+using System.IO;
+
//Initialize PDF to Image converter.
PdfToImageConverter imageConverter = new PdfToImageConverter();
//Load the PDF document as a stream
@@ -1248,6 +1355,9 @@ image.Save("sample.png");
{% endhighlight %}
{% highlight vb tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.PdfToImageConverter
+Imports System.IO
+
'Initialize PDF to Image converter.
Dim imageConverter As PdfToImageConverter = New PdfToImageConverter()
'Load the PDF document as a stream
@@ -1279,6 +1389,9 @@ The [HTML to PDF converter library](https://www.syncfusion.com/document-processi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/HTML%20to%20PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs, 300" %}
+using Syncfusion.HtmlConverter;
+using Syncfusion.Pdf;
+
//Initialize HTML to PDF converter.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
//Convert URL to PDF
@@ -1292,6 +1405,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.HtmlConverter;
+using Syncfusion.Pdf;
+
//Initialize HTML to PDF converter.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
//Convert URL to PDF
@@ -1305,6 +1421,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.HtmlConverter
+Imports Syncfusion.Pdf
+
' Initialize HTML to PDF converter
Dim htmlConverter As New HtmlToPdfConverter()
@@ -1330,20 +1449,24 @@ The [HTML to PDF converter library](https://www.syncfusion.com/document-processi
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.HtmlConverter;
+using Syncfusion.Pdf;
+
//Initialize HTML to PDF converter
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
-//Convert URL to PDF document.
+//Convert a SVG file to PDF with HTML converter
PdfDocument document = htmlConverter.Convert("inputSVG.svg");
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document
+//Save and close the PDF document
+document.Save("SVGToPDF.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.HtmlConverter;
+using Syncfusion.Pdf;
+
//Initialize HTML to PDF converter
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
//Convert a SVG file to PDF with HTML converter
@@ -1356,6 +1479,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.HtmlConverter
+Imports Syncfusion.Pdf
+
'Initialize HTML to PDF converter
Dim htmlConverter As HtmlToPdfConverter = New HtmlToPdfConverter()
'Convert a SVG file to PDF with HTML converter
@@ -1366,4 +1492,4 @@ document.Close(True)
{% endhighlight %}
-{% endtabs %}
+ {% endtabs %}
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Document.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Document.md
index 2557aa4ba..75759e9e7 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Document.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Document.md
@@ -17,6 +17,9 @@ You can choose the standard or custom page size when you add a page to the PDF d
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Create-a-PDF-document-with-standard-page-size/.NET/Create-a-PDF-document-with-standard-page-size/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the page size.
@@ -31,10 +34,8 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -42,6 +43,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the page size.
@@ -65,6 +69,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Set the page size.
@@ -96,6 +103,9 @@ You can create a PDF document with custom page size in [PdfPageSettings Size](ht
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Create-a-PDF-document-with-custom-page-size/.NET/Create-a-PDF-document-with-custom-page-size/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the custom page size.
@@ -110,10 +120,8 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -121,6 +129,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the custom page size.
@@ -144,6 +155,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Set the custom page size.
@@ -175,6 +189,9 @@ You can change page orientation from portrait to landscape, through [PdfPageOrie
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Change-the-page-orientation-from-portrait-to-landscape/.NET/Change-the-page-orientation-from-portrait-to-landscape/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the page size.
@@ -191,10 +208,8 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -202,6 +217,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the page size.
@@ -227,6 +245,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf
+
'Create a new PDF document.
Dim document As New PdfDocument()
' Set the page size.
@@ -262,6 +283,10 @@ You can also change orientation by setting the rotation angle using [PdfPageRota
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Rotate_PDF_based_on_angle/.NET/Rotate_PDF_based_on_angle/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the page size.
@@ -278,10 +303,8 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -289,6 +312,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
// Set the page size.
@@ -314,6 +341,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Set the page size.
@@ -349,6 +380,10 @@ PDF sections are parts of the PDF document, which may contain one or more pages
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Create_sections_in_PDF_document/.NET/Create_sections_in_PDF_document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a section to PDF document.
@@ -363,10 +398,8 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -374,6 +407,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a section to PDF document.
@@ -397,6 +434,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a section to PDF document.
@@ -436,6 +477,8 @@ The following code snippet illustrates how to print a PDF document.
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.PdfViewer;
+
PdfDocumentView viewer = new PdfDocumentView();
//Load the PDF document
viewer.Load("Input.pdf");
@@ -456,6 +499,8 @@ viewer.Dispose();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.PdfViewer
+
Dim viewer As New PdfDocumentView()
'Load the PDF document
viewer.Load("Input.pdf")
@@ -486,6 +531,10 @@ The following code snippet illustrates how to set PDF document information.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Add_PDF_document_properties/.NET/Add_PDF_document_properties/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -506,10 +555,8 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -517,6 +564,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -546,6 +597,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
@@ -583,9 +638,10 @@ To read and modify the document [DocumentInformation](https://help.syncfusion.co
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Change_existing_PDF_properties/.NET/Change_existing_PDF_properties/Program.cs" %}
-//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf.Parsing;
+
+//Load a existing PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Modify document information.
document.DocumentInformation.Author = "Syncfusion";
@@ -595,10 +651,8 @@ document.DocumentInformation.Keywords = "PDF";
document.DocumentInformation.Subject = "Document information DEMO";
document.DocumentInformation.Title = "Essential PDF Sample";
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -606,7 +660,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Create a new PDF document.
+using Syncfusion.Pdf.Parsing;
+
+//Load a existing PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Modify document information.
@@ -626,7 +682,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Pdf.Parsing
+
+'Load a existing PDF document
Dim document As New PdfLoadedDocument("Input.pdf")
'Modify document information.
@@ -656,9 +714,10 @@ To remove specific details from the existing document information, use the **Rem
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Remove-specific-keys-from-the-existing-document-information/.NET/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Remove the document information properties.
document.DocumentInformation.Remove("Title");
@@ -670,10 +729,8 @@ document.DocumentInformation.Remove("Producer");
document.DocumentInformation.Remove("ModDate");
document.DocumentInformation.Remove("CreationDate");
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -681,6 +738,8 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -703,6 +762,8 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document.
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -735,19 +796,18 @@ The Essential® PDF supports incremental update for PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Perform-incremental-update-for-the-PDF-document/.NET/Perform-incremental-update-for-the-PDF-document/Program.cs" %}
-//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Disable the incremental update
loadedDocument.FileStructure.IncrementalUpdate = false;
//Set the compression level
loadedDocument.Compression = PdfCompressionLevel.Best;
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -755,6 +815,9 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -772,6 +835,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf
+
'Load the PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
@@ -801,6 +867,10 @@ You can hide the menu bar and toolbar by enabling [HideMenubar](https://help.syn
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Create_PDF_with_viewer_preference/.NET/Create_PDF_with_viewer_preference/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -819,10 +889,8 @@ document.ViewerPreferences.HideToolbar = true;
//Shows user interface elements in the document's window (such as scroll bars and navigation controls).
document.ViewerPreferences.HideWindowUI = false;
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -830,6 +898,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -857,6 +929,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf
+Imports System.Drawing
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -892,6 +968,9 @@ You can also allow the reader application to initially display the bookmarks, th
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Create-PDF-with-display-of-specific-panel/.NET/Create-PDF-with-display-of-specific-panel/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -906,9 +985,8 @@ graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Dra
//Show the attachments panel.
document.ViewerPreferences.PageMode = PdfPageMode.UseAttachments;
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -916,6 +994,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -939,6 +1020,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -978,6 +1062,10 @@ The following code sample illustrates how to create a PDF document in multi-thre
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
IEnumerable works = Enumerable.Range(0, 100);
Parallel.ForEach(works, index => GeneratePDF(index));
@@ -1010,6 +1098,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
Dim works As IEnumerable(Of Integer) = Enumerable.Range(0, 100)
Parallel.ForEach(works, Sub(index) GeneratePDF(index))
Private Sub GeneratePDF(ByVal index As Integer)
@@ -1046,6 +1138,11 @@ To modify the existing PDF document in multi-threading environment [EnableThread
{% tabs %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
IEnumerable works = Enumerable.Range(0, 100);
Parallel.ForEach(works, index => GeneratePDF(index));
@@ -1075,6 +1172,11 @@ doc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
Dim works As IEnumerable(Of Integer) = Enumerable.Range(0, 100)
Parallel.ForEach(works, Sub(index) GeneratePDF(index))
Private Sub GeneratePDF(ByVal index As Integer)
@@ -1115,6 +1217,10 @@ The following code snippet explains how to have uniform resource naming in a PDF
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Create_PDF_with_Uniform_Resouce_Naming/.NET/Create_PDF_with_Uniform_Resouce_Naming/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Disable unique resource naming
PdfDocument.EnableUniqueResourceNaming = false;
@@ -1139,16 +1245,19 @@ PdfFont font3 = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20);
//Draw the text
graphics.DrawString("こんにちは世界", font3, PdfBrushes.Blue, new PointF(50, 150));
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-//Close the document
+//Save the document.
+doc.Save("Output.pdf");
+//Close the document.
doc.Close(true);
{%endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Disable unique resource naming
PdfDocument.EnableUniqueResourceNaming = false;
@@ -1180,6 +1289,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Disable unique resource naming
PdfDocument.EnableUniqueResourceNaming = False
@@ -1222,9 +1335,11 @@ Enabling this property will optimize the memory but difference in time occurs ba
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Manage_memory_while_appending_PDF_document/.NET/Manage_memory_while_appending_PDF_document/Program.cs" %}
-//Load an existing PDF document
-FileStream docStream = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create a new PDF document
PdfDocument document = new PdfDocument();
@@ -1234,17 +1349,18 @@ document.EnableMemoryOptimization = true;
//Append the document with source document
document.Append(loadedDocument);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the documents
-document.Close(true);
+//Save the document.
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("file1.pdf");
@@ -1265,6 +1381,10 @@ loadedDocument.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As New PdfLoadedDocument("file1.pdf")
@@ -1293,10 +1413,13 @@ Syncfusion PDF Library provides support to check whether the existing PDF docume
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Find_corrupted_PDF_document/.NET/Find_corrupted_PDF_document/Program.cs" %}
+
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using System.Text;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-//Create a new instance for the PDF analyzer
-PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(docStream);
+PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer("Input.pdf");
//Get the syntax errors
SyntaxAnalyzerResult result = analyzer.AnalyzeSyntax();
@@ -1321,6 +1444,10 @@ analyzer.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using System.Text;
+
//Create a new instance for the PDF analyzer
PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer("Input.pdf");
@@ -1347,6 +1474,10 @@ analyzer.Close();
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Create a new instance for the PDF analyzer
Dim analyzer As PdfDocumentAnalyzer = New PdfDocumentAnalyzer("Input.pdf")
@@ -1379,6 +1510,9 @@ Refer to the following code sample to achieve the same,
{% tabs %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Embed all the non-embedded fonts.
@@ -1393,6 +1527,9 @@ loadedDocument.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf.Parsing
+
//Load an existing document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
// Embed all the non-embedded fonts.
@@ -1415,6 +1552,8 @@ The Essential® PDF allows you to get or set the [BaseUri](https:/
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Add_BaseUri_in_the_PDF_document/.NET/Add_BaseUri_in_the_PDF_document/Program.cs" %}
+using Syncfusion.Pdf;
+
//Create a new instance of the PdfDocument class.
PdfDocument document = new PdfDocument();
//Set the Base URI.
@@ -1423,14 +1562,15 @@ document.BaseUri = "https://www.syncfusion.com/";
PdfPage page = document.Pages.Add();
//Save the document.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+
//Create a new instance of the PdfDocument class.
PdfDocument document = new PdfDocument();
//Set the Base URI.
@@ -1446,6 +1586,9 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf.Parsing
+
'Create a new instance of the PdfDocument class.
Dim document As PdfDocument = New PdfDocument()
'Set the Base URI.
@@ -1467,17 +1610,21 @@ The following code example illustrates the retrieval of [BaseUri](https://help.s
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Retrieve_BaseUri_from_the_existing_PDF/.NET/Retrieve_BaseUri_from_the_existing_PDF/Program.cs" %}
-//Load the PDF document as file stream.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-//Load a PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document.
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the Base URI.
string baseUri = document.BaseUri;
//Close the document.
document.Close(true);
+
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -1488,6 +1635,9 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing document.
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the Base URI.
@@ -1507,6 +1657,10 @@ Essential® PDF enables you to track the save progress through the
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Document/Create-a-PDF-document-with-save-progress/.NET/PDF-document-with-save-progress/Program.cs" %}
+ using Syncfusion.Pdf.Graphics;
+ using Syncfusion.Pdf;
+ using Syncfusion.Drawing;
+
// Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -1529,13 +1683,8 @@ Essential® PDF enables you to track the save progress through the
// Subscribe to the SaveProgress event.
document.SaveProgress += new PdfDocument.ProgressEventHandler(document_SaveProgress);
- // Create a file stream to save the PDF document.
- using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
- {
- // Save the PDF document to the file stream.
- document.Save(outputFileStream);
- }
-
+ //Save the document.
+ document.Save("Output.pdf");
// Close the document.
document.Close(true);
@@ -1551,6 +1700,10 @@ Essential® PDF enables you to track the save progress through the
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf.Graphics;
+ using Syncfusion.Pdf;
+ using System.Drawing;
+
// Create a new PDF document.
PdfDocument document = new PdfDocument();
// Add multiple pages to the document.
@@ -1567,12 +1720,8 @@ Essential® PDF enables you to track the save progress through the
}
// Subscribe to the SaveProgress event.
document.SaveProgress += new PdfDocument.ProgressEventHandler(document_SaveProgress);
- // Create a file stream to save the PDF document.
- using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
- {
- // Save the PDF document to the file stream.
- document.Save(outputFileStream);
- }
+ //Save the document.
+ document.Save("Output.pdf");
// Close the document.
document.Close(true);
@@ -1587,6 +1736,10 @@ Essential® PDF enables you to track the save progress through the
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+ Imports Syncfusion.Pdf.Graphics
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Drawing
+
Module Program
Sub Main()
' Create a new PDF document.
@@ -1604,11 +1757,8 @@ Essential® PDF enables you to track the save progress through the
Next
' Subscribe to the SaveProgress event.
AddHandler document.SaveProgress, AddressOf document_SaveProgress
- ' Create a file stream to save the PDF document.
- Using outputFileStream As New FileStream(Path.GetFullPath("../../../Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite)
- ' Save the PDF document to the file stream.
- document.Save(outputFileStream)
- End Using
+ ' Save the document.
+ document.Save("Output.pdf")
' Close the document.
document.Close(True)
End Sub
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Flow-Layout.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Flow-Layout.md
index 5a5e0eb6d..c35b83751 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Flow-Layout.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Flow-Layout.md
@@ -90,11 +90,11 @@ PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);
render.Dispose();
wordDocument.Dispose();
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-//Close the documents.
+//Save and close the PDF document.
+pdfDocument.Save("Output.pdf");
pdfDocument.Close(true);
+//Close the document.
+wordDocument.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
@@ -180,6 +180,11 @@ You can create PDF document with text and image using the following code snippet
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
+
+using Syncfusion.Pdf;
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocToPDFConverter;
+
//A new document is created.
WordDocument document = new WordDocument();
//Adding a new section to the document.
@@ -230,15 +235,18 @@ PdfDocument pdfDocument = render.ConvertToPDF(document);
render.Dispose();
document.Dispose();
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-//Close the documents.
+//Saves the PDF file.
+pdfDocument.Save("Sample.pdf");
pdfDocument.Close(true);
+document.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocToPDFConverter;
+
//A new document is created.
WordDocument document = new WordDocument();
//Adding a new section to the document.
@@ -293,6 +301,11 @@ document.Close();
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.DocIO.DLS
+Imports Syncfusion.DocToPDFConverter
+Imports Syncfusion.Pdf
+
'A new document is created
Dim document As New WordDocument()
'Adding a new section to the document
@@ -355,6 +368,11 @@ You can create PDF document with simple table using the following code snippet.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" %}
+
+using Syncfusion.Pdf;
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocToPDFConverter;
+
//Creates a new Word document.
WordDocument wordDocument = new WordDocument();
//Adding a new section to the document.
@@ -424,15 +442,19 @@ PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);
render.Dispose();
wordDocument.Dispose();
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-//Close the documents.
+//Save and close the PDF document.
+pdfDocument.Save("Output.pdf");
pdfDocument.Close(true);
+//Close the document.
+wordDocument.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocToPDFConverter;
+
//Creates a new Word document.
WordDocument wordDocument = new WordDocument();
//Adding a new section to the document.
@@ -508,6 +530,11 @@ wordDocument.Close();
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.DocIO.DLS
+Imports Syncfusion.DocToPDFConverter
+Imports Syncfusion.Pdf
+
'Creates a new Word document
Dim wordDocument As New WordDocument()
'Adding a new section to the document
@@ -593,7 +620,13 @@ Syncfusion Essential® PDF supports creating a PDF document with f
The following code snippet explains how to create a PDF document with image, paragraph text, header text, a line below the header text, and a table using flow model.
{% tabs %}
-{% highlight c# tabtitle="C#" %}
+{% highlight c# tabtitle="C# [Cross-platform]" %}
+
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Grid;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -650,15 +683,20 @@ grid.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable5DarkAccent5);
//Draw the table in page, below the line with a height gap of 20.
grid.Draw(page, new PointF(0, layoutResult.Bounds.Bottom + 20));
-//Saving the PDF to the MemoryStream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document.
+document.Save("Output.pdf");
//Close the instance of PdfDocument.
document.Close(true);
+
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Grid;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -722,6 +760,12 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Grid
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Headers-and-Footers.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Headers-and-Footers.md
index dd22c7e57..ad0b75ad9 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Headers-and-Footers.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Headers-and-Footers.md
@@ -22,6 +22,10 @@ The below code snippet explains how to draw the page numbers in footer using aut
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Header%20and%20Footer/Adding-an-automatic-field-in-header-and-footer/.NET/Adding-an-automatic-field-in-header-and-footer/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document
@@ -52,16 +56,18 @@ compositeField.Draw(footer.Graphics, new PointF(470, 40));
//Add the footer template at the bottom.
pdfDocument.Template.Bottom = footer;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-//Closes the document.
+//Save and close the document.
+pdfDocument.Save("Output.pdf");
pdfDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document
@@ -98,6 +104,10 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim pdfDocument As New PdfDocument()
'Add a page to the PDF document.
@@ -146,6 +156,10 @@ The example below illustrates how to implement a dynamic footer that updates uni
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Header%20and%20Footer/Adding-dynamic-headers-and-footers-in-PDF/.NET/Adding-dynamic-headers-and-footers-in-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -213,10 +227,7 @@ PdfPage firstPage = document.Pages.Add();
textElement.Draw(firstPage, new PointF(0, headerHeight));
// Save and close the document.
-using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.Write))
-{
- document.Save(outputFileStream);
-}
+document.Save("Output.pdf");
document.Close(true);
// Add header and footer to every page.
@@ -249,6 +260,10 @@ static void PageAddedHandler(object sender, PageAddedEventArgs e)
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -349,6 +364,10 @@ static void PageAddedHandler(object sender, PageAddedEventArgs e)
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
' Create a new PDF document.
Dim document As New PdfDocument()
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-HyperLinks.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-HyperLinks.md
index 2a18cf994..332504196 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-HyperLinks.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-HyperLinks.md
@@ -1,17 +1,20 @@
---
-title: Working with Hyperlinks | Syncfusion
+title: Working with Hyperlinks in PDF | Syncfusion
description: This section explains how to add hyperlink in a new and existing PDF document using Syncfusion .NET PDF library
platform: document-processing
control: PDF
documentation: UG
---
-# Working with Hyperlinks
+# Working with Hyperlinks in PDF
In PDF, hyperlinks can be added to allow the users to navigate to another part of PDF file, web page or any other external content. Essential® PDF provides support for all these types of hyperlink.
+To quickly get started with working with hyperlinks in PDF documents using the Syncfusion® PDF library for .NET, refer to this video tutorial:
+{% youtube "https://youtu.be/g6HhVg2Fbd8?si=1WFL_6RCfRQvZhKb" %}
+
## Working with Web navigation
-You can navigate to specified URL from a PDF document by using the [PdfTextWebLink](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfTextWebLink.html) class.
+You can navigate to specified URL from a PDF document by using the [PdfTextWebLink](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfTextWebLink.html) class.
Please refer the below code snippet for navigating to the web page.
@@ -19,6 +22,11 @@ Please refer the below code snippet for navigating to the web page.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Hyperlinks/Navigate-to-specific-URL-from-a-PDF-document/.NET/Navigate-to-specific-URL-from-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -37,9 +45,8 @@ textLink.Font = font;
//Draw the hyperlink in PDF page.
textLink.DrawTextWebLink(page, new PointF(10, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -47,6 +54,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -74,6 +86,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -109,9 +125,14 @@ To add a web hyperlink to an existing document, please refer the below code snip
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Hyperlinks/Add-a-web-hyperlink-to-an-existing-PDF-document/.NET/Add-a-web-hyperlink-to-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page.
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Create the font.
@@ -128,9 +149,8 @@ textLink.Font = font;
//Draw the hyperlink in loaded page graphics.
textLink.DrawTextWebLink(loadedPage.Graphics, new PointF(10, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -138,6 +158,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(@"Filename.pdf");
//Load the page.
@@ -165,6 +191,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document.
Dim loadedDocument As New PdfLoadedDocument("fileName.pdf")
'Load the page.
@@ -202,6 +233,11 @@ To allow the users to navigate to any other part of the same document, [PdfDocum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Hyperlinks/Add-the-hyperlink-for-internal-document-navigation/.NET/Add-the-hyperlink-for-internal-document-navigation/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page.
@@ -228,9 +264,8 @@ documentLinkAnnotation.Destination.Zoom = 5;
//Add this annotation to a new page.
page.Annotations.Add(documentLinkAnnotation);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -238,6 +273,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page.
@@ -273,6 +313,10 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page.
@@ -316,9 +360,14 @@ To add a [PdfDocumentLinkAnnotation](https://help.syncfusion.com/cr/document-pro
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Hyperlinks/Internal-document-navigation-to-an-existing-PDF/.NET/Internal-document-navigation-to-an-existing-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("fileName.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page.
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Create a new rectangle.
@@ -337,9 +386,8 @@ documentLinkAnnotation.Destination.Location = new PointF(10, 0);
//Add this annotation to respective page.
loadedPage.Annotations.Add(documentLinkAnnotation);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -347,6 +395,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(@"fileName.pdf");
//Load the page.
@@ -376,6 +430,11 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document.
Dim loadedDocument As New PdfLoadedDocument("fileName.pdf")
'Load the page.
@@ -417,6 +476,9 @@ Please refer the below code snippet for navigating to external documents.
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create the PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page.
@@ -429,9 +491,8 @@ PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(bounds, fil
//Add this annotation to a page.
page.Annotations.Add(fileLinkAnnotation);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -439,6 +500,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create the PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page.
@@ -460,6 +524,9 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
'Create the PDF document
Dim document As New PdfDocument()
'Creates a new page and adds it as the last page of the document
@@ -495,7 +562,10 @@ To open a file in relative path, the [PdfLaunchAction](https://help.syncfusion.c
{% endhighlight %}
-{% highlight c# tabtitle="C#" %}
+{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
//Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -520,7 +590,10 @@ document.Close();
{% endhighlight %}
-{% highlight vb.net tabtitle="VB.NET" %}
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
'Create a new PDF document
Dim document As New PdfDocument()
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Image-Extraction.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Image-Extraction.md
index 932a39df7..a07dd7903 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Image-Extraction.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Image-Extraction.md
@@ -15,9 +15,12 @@ Refer to the following code snippet to extract the images from a PDF page.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Image%20Extraction/Extract-images-from-a-PDF-pages/.NET/Extract-images-from-a-PDF-pages/Program.cs" %}
-//Load an existing PDF
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Exporting;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page
PdfPageBase pageBase = loadedDocument.Pages[0];
@@ -30,8 +33,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Exporting;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page
PdfPageBase pageBase = loadedDocument.Pages[0];
@@ -44,8 +51,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Exporting
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the first page
Dim pageBase As PdfPageBase = loadedDocument.Pages(0)
@@ -72,9 +83,13 @@ Refer to the following code snippet to extract the image info from a PDF page.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Image%20Extraction/Extract-the-image-info-from-a-PDF-page/.NET/Extract-the-image-info-from-a-PDF-page/Program.cs" %}
-//Load an existing PDF
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Exporting;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page
PdfPageBase pageBase = loadedDocument.Pages[0];
@@ -87,8 +102,13 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Exporting;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page
PdfPageBase pageBase = loadedDocument.Pages[0];
@@ -101,8 +121,13 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Exporting
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the first page
Dim pageBase As PdfPageBase = loadedDocument.Pages(0)
@@ -125,6 +150,9 @@ The following code example illustrates how to extract images from an entire PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Image%20Extraction/Extract-images-from-PDF-documents/.NET/Extract-images-from-PDF-documents/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using System.IO;
+
//Get stream from an existing PDF document.
FileStream inputStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
//Initialize the PDF document extractor.
@@ -144,6 +172,9 @@ documentExtractor.Dispose();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using System.IO;
+
//Get stream from an existing PDF document.
FileStream inputStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
//Initialize the PDF document extractor.
@@ -163,6 +194,9 @@ documentExtractor.Dispose();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports System.IO
+
'Get stream from an existing PDF document.
Dim inputStream As FileStream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read)
'Initialize the PDF document extractor.
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Images.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Images.md
index 33c5f9f79..4d004d4f8 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Images.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Images.md
@@ -34,6 +34,9 @@ The following code snippet shows how to add a file from disk to the PDF document
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Insert-image-in-a-new-PDF-document/.NET/Insert-image-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -47,10 +50,8 @@ PdfBitmap image = new PdfBitmap(imageStream);
//Draw the image
graphics.DrawImage(image, 0, 0);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
+//Save the document
+doc.Save("Output.pdf");
//Close the document
doc.Close(true);
@@ -58,6 +59,9 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -79,6 +83,9 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim doc As New PdfDocument()
'Add a page to the document
@@ -110,9 +117,12 @@ You can also add images into an existing PDF document using the below code snipp
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Insert-image-in-an-existing-PDF-document/.NET/Insert-image-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument doc = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
//Get first page from document
PdfLoadedPage page = doc.Pages[0] as PdfLoadedPage;
@@ -124,10 +134,8 @@ PdfBitmap image = new PdfBitmap(imageStream);
//Draw the image
graphics.DrawImage(image, 0, 0);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
+//Save the document
+doc.Save("Output.pdf");
//Close the document
doc.Close(true);
@@ -135,6 +143,10 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load a PDF document
PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf");
//Get first page from document
@@ -156,6 +168,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load a PDF document
Dim doc As New PdfLoadedDocument("input.pdf")
'Get first page from document
@@ -182,9 +198,12 @@ To add image from stream, use the below code snippet.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Insert-image-in-an-existing-PDF-document/.NET/Insert-image-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument doc = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
//Get first page from document
PdfLoadedPage page = doc.Pages[0] as PdfLoadedPage;
@@ -196,10 +215,8 @@ PdfBitmap image = new PdfBitmap(imageStream);
//Draw the image
graphics.DrawImage(image, 0, 0);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
+//Save the document
+doc.Save("Output.pdf");
//Close the document
doc.Close(true);
@@ -207,6 +224,10 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load a PDF document
PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf");
//Get first page from document
@@ -230,6 +251,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load a PDF document
Dim doc As New PdfLoadedDocument("input.pdf")
'Get first page from document
@@ -278,6 +303,10 @@ The following code illustrate this,
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Create a PDF Document
PdfDocument doc = new PdfDocument();
//Add pages to the document
@@ -304,6 +333,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a PDF Document
Dim doc As New PdfDocument()
'Add pages to the document
@@ -342,6 +375,9 @@ The following code illustrate shows how to add a mask to TIFF image.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Add-a-mask-to-TIFF-image/.NET/Add-a-mask-to-TIFF-image/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a PDF document
PdfDocument doc = new PdfDocument();
//Add pages to the document
@@ -360,9 +396,8 @@ image.Mask = mask;
graphics.DrawImage(image, 0, 0);
///Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
+//Save the document
+doc.Save("Output.pdf");
//Close the document
doc.Close(true);
@@ -370,6 +405,9 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a PDF document
PdfDocument doc = new PdfDocument();
//Add pages to the document
@@ -394,6 +432,9 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a PDF document
Dim doc As New PdfDocument()
'Add pages to the document
@@ -430,9 +471,11 @@ Essential® PDF allows you to replace images in an existing docume
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Load an existing PDF document.
-FileStream pdfStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(pdfStream);
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create an image instance.
FileStream imageStream = new FileStream(Path.GetFullPath("Autumn Leaves.jpg"), FileMode.Open, FileAccess.Read);
@@ -440,9 +483,8 @@ PdfBitmap bmp = new PdfBitmap(imageStream);
//Replace the first image in the page
loadedDocument.Pages[0].ReplaceImage(0, bmp);
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-loadedDocument.Save(stream);
+//Save the document
+loadedDocument.Save("Output.pdf");
//Close the document
loadedDocument.Close(true);
@@ -450,6 +492,9 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
PdfLoadedDocument doc = new PdfLoadedDocument(@"image.pdf");
//Create an image instance
@@ -466,6 +511,9 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Graphics
+
'Load the PDF document
Dim doc As New PdfLoadedDocument("image.pdf")
'Create an image instance
@@ -492,6 +540,9 @@ You can allow a large image to paginate across multiple pages in the PDF documen
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Paginate-an-image-in-PDF-document/.NET/Paginate-an-image-in-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create Document
PdfDocument doc = new PdfDocument();
//Add new page
@@ -507,17 +558,17 @@ format.Layout = PdfLayoutType.Paginate;
//Draw image
image.Draw(page, 20, 400, format);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
-//Close the document
+//Save the PDF
+doc.Save("output.pdf");
doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create Document
PdfDocument doc = new PdfDocument();
//Add new page
@@ -540,6 +591,9 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create Document
Dim doc As New PdfDocument()
'Add new page
@@ -564,6 +618,136 @@ doc.Close(True)
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Images/Paginate-an-image-in-PDF-document).
+## Clipping and graphics state
+
+This example demonstrates how to draw an image in a PDF document and apply a clipping region using the [SetClip](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#methods) method. Clipping restricts drawing to a defined area, allowing partial rendering of content. The code also uses [Save](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#methods) and [Restore](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#methods) methods of [PdfGraphics](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html) to manage the graphics state, enabling temporary clipping and restoring the full drawing area afterward.
+
+{% tabs %}
+
+{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Clipping-and-graphics-state/.NET/Clipping-and-graphics-state/Program.cs" %}
+
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
+// Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ // Add a page to the document
+ PdfPage page = document.Pages.Add();
+ // Get the graphics object for the page
+ PdfGraphics graphics = page.Graphics;
+ // Open the image file as a stream
+ using FileStream imageStream = new FileStream(Path.GetFullPath("Input.png"), FileMode.Open, FileAccess.Read);
+ // Load the image from the stream
+ PdfBitmap image = new PdfBitmap(imageStream);
+
+ // Save the current graphics state (to restore later)
+ PdfGraphicsState state = graphics.Save();
+
+ // Define a rectangular clipping region
+ RectangleF clipRect = new RectangleF(50, 50, 200, 100);
+ graphics.SetClip(clipRect);
+
+ // Draw the image — only the part within the clipping region will be visible
+ graphics.DrawImage(image, new RectangleF(40, 60, 150, 80));
+
+ // Restore the graphics state to remove the clipping region
+ graphics.Restore(state);
+ // Draw the image again — this time the full image will be visible
+ graphics.DrawImage(image, new RectangleF(60, 160, 150, 80));
+
+ // Save the PDF document
+ document.Save("Output.pdf");
+}
+
+{% endhighlight %}
+
+{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
+// Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ // Add a page to the document
+ PdfPage page = document.Pages.Add();
+ // Get the graphics object for the page
+ PdfGraphics graphics = page.Graphics;
+ // Open the image file as a stream
+ using FileStream imageStream = new FileStream(Path.GetFullPath("Input.png"), FileMode.Open, FileAccess.Read);
+ // Load the image from the stream
+ PdfBitmap image = new PdfBitmap(imageStream);
+
+ // Save the current graphics state (to restore later)
+ PdfGraphicsState state = graphics.Save();
+
+ // Define a rectangular clipping region
+ RectangleF clipRect = new RectangleF(50, 50, 200, 100);
+ graphics.SetClip(clipRect);
+
+ // Draw the image — only the part within the clipping region will be visible
+ graphics.DrawImage(image, new RectangleF(40, 60, 150, 80));
+
+ // Restore the graphics state to remove the clipping region
+ graphics.Restore(state);
+ // Draw the image again — this time the full image will be visible
+ graphics.DrawImage(image, new RectangleF(60, 160, 150, 80));
+
+ // Save the PDF document
+ document.Save("Output.pdf");
+}
+
+{% endhighlight %}
+
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
+' Create a new PDF document
+Using document As New PdfDocument()
+' Add a page to the document
+Dim page As PdfPage = document.Pages.Add()
+
+' Get the graphics object for the page
+Dim graphics As PdfGraphics = page.Graphics
+
+' Open the image file as a stream
+Using imageStream As New FileStream(Path.GetFullPath("Input.png"), FileMode.Open, FileAccess.Read)
+' Load the image from the stream
+Dim image As New PdfBitmap(imageStream)
+
+' Save the current graphics state (to restore later)
+Dim state As PdfGraphicsState = graphics.Save()
+
+' Define a rectangular clipping region
+Dim clipRect As New RectangleF(50, 50, 200, 100)
+graphics.SetClip(clipRect)
+
+' Draw the image — only the part within the clipping region will be visible
+graphics.DrawImage(image, New RectangleF(40, 60, 150, 80))
+
+' Restore the graphics state to remove the clipping region
+graphics.Restore(state)
+
+' Draw the image again — this time the full image will be visible
+graphics.DrawImage(image, New RectangleF(60, 160, 150, 80))
+End Using
+
+' Save the PDF document
+document.Save("Output.pdf")
+End Using
+
+{% endhighlight %}
+
+{% endtabs %}
+
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Images/Clipping-and-graphics-state/.NET).
+
## Applying transparency and rotation to the image
You can add transparency and rotation to the image using [SetTransparency](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_SetTransparency_System_Single_) and [RotateTransform](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_RotateTransform_System_Single_) methods of [PdfGraphics](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html) respectively. This is explained in the below code snippet.
@@ -572,6 +756,9 @@ You can add transparency and rotation to the image using [SetTransparency](https
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Add-transparancy-and-rotation-to-the-image/.NET/Add-transparancy-and-rotation-to-the-image/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create Document
PdfDocument doc = new PdfDocument();
//Add a new page
@@ -594,17 +781,17 @@ image.Draw(page, 0, 0);
//Restore the graphics state
page.Graphics.Restore(state);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as strea
-doc.Save(stream);
-//Close the document
+//Save the PDF
+doc.Save("output.pdf");
doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create Document
PdfDocument doc = new PdfDocument();
//Add a new page
@@ -633,6 +820,9 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create Document
Dim doc As New PdfDocument()
'Add a new page
@@ -663,6 +853,160 @@ doc.Close(True)
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Images/Add-transparancy-and-rotation-to-the-image/).
+## Unit conversion in image position
+
+The [PdfUnitConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfUnitConvertor.html) class provides precise measurement conversion capabilities for PDF layouts. When positioning images in a PDF document, the converter translates pixel dimensions to PDF points, enabling millimeter-perfect placement and sizing. This ensures images maintain their aspect ratio while rendering at exact locations and filling designated spaces like rectangles.
+
+The code snippet to illustrate the same is given below.
+
+{% tabs %}
+
+{% highlight c# tabtitle="C# [Cross-platform]" %}
+
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
+//Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ using (FileStream stream = new FileStream("Image.png", FileMode.Open, FileAccess.Read))
+ {
+ //Load the image from the disk
+ PdfBitmap image = new PdfBitmap(stream);
+
+ //Add the first section to the PDF document
+ PdfSection section = document.Sections.Add();
+
+ //Initialize unit converter
+ PdfUnitConverter converter = new PdfUnitConverter();
+
+ //Convert the image size from pixel to points
+ SizeF size = converter.ConvertFromPixels(image.PhysicalDimension, PdfGraphicsUnit.Point);
+
+ //Set section size based on the image size
+ section.PageSettings.Size = size;
+
+ // Set section orientation based on the image size (by default Portrait)
+ if (image.Width > image.Height)
+ section.PageSettings.Orientation = PdfPageOrientation.Landscape;
+
+ //Set a margin for the section
+ section.PageSettings.Margins.All = 0;
+
+ //Add a page to the section
+ PdfPage page = section.Pages.Add();
+
+ //Draw image
+ page.Graphics.DrawImage(image, 0, 0);
+
+ //Save the document
+ document.Save("Output.pdf");
+ }
+}
+
+{% endhighlight %}
+
+{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
+//Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ using (FileStream stream = new FileStream("Image.png", FileMode.Open, FileAccess.Read))
+ {
+ //Load the image from the disk
+ PdfBitmap image = new PdfBitmap(stream);
+
+ //Add the first section to the PDF document
+ PdfSection section = document.Sections.Add();
+
+ //Initialize unit converter
+ PdfUnitConverter converter = new PdfUnitConverter();
+
+ //Convert the image size from pixel to points
+ SizeF size = converter.ConvertFromPixels(image.PhysicalDimension, PdfGraphicsUnit.Point);
+
+ //Set section size based on the image size
+ section.PageSettings.Size = size;
+
+ // Set section orientation based on the image size (by default Portrait)
+ if (image.Width > image.Height)
+ section.PageSettings.Orientation = PdfPageOrientation.Landscape;
+
+ //Set a margin for the section
+ section.PageSettings.Margins.All = 0;
+
+ //Add a page to the section
+ PdfPage page = section.Pages.Add();
+
+ //Draw image
+ page.Graphics.DrawImage(image, 0, 0);
+
+ //Save the document
+ document.Save("Output.pdf");
+ }
+}
+
+{% endhighlight %}
+
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
+Module Program
+ Sub Main()
+ ' Create a new PDF document
+ Using document As New PdfDocument()
+
+ ' Load the image from disk
+ Using stream As New FileStream("Image.png", FileMode.Open, FileAccess.Read)
+ Dim image As New PdfBitmap(stream)
+
+ ' Add a section to the PDF document
+ Dim section As PdfSection = document.Sections.Add()
+
+ ' Initialize unit converter
+ Dim converter As New PdfUnitConverter()
+
+ ' Convert image size from pixels to points
+ Dim size As SizeF = converter.ConvertFromPixels(image.PhysicalDimension, PdfGraphicsUnit.Point)
+
+ ' Set section size based on image size
+ section.PageSettings.Size = size
+
+ ' Set orientation to landscape if image is wider than tall
+ If image.Width > image.Height Then
+ section.PageSettings.Orientation = PdfPageOrientation.Landscape
+ End If
+
+ ' Remove margins
+ section.PageSettings.Margins.All = 0
+
+ ' Add a page to the section
+ Dim page As PdfPage = section.Pages.Add()
+
+ ' Draw the image at position (0, 0)
+ page.Graphics.DrawImage(image, 0, 0)
+
+ ' Save the document
+ document.Save("Output.pdf")
+ End Using
+ End Using
+ End Sub
+End Module
+
+{% endhighlight %}
+
+{% endtabs %}
+
+You can download a complete working sample from GitHub.
+
## Converting multi page TIFF to PDF
Multi frame TIFF image can be converted to PDF document. This can be done by accessing each frame of the multi frame TIFF image and rendering it in each page of the PDF document using [PdfBitmap](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfBitmap.html) class.
@@ -673,6 +1017,9 @@ The code snippet to illustrate the same is given below.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Converting-multi-page-TIFF-to-PDF/.NET/Converting-multi-page-TIFF-to-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Set page margins
@@ -691,17 +1038,17 @@ for (int i = 0; i < frameCount; i++)
tiffImage.ActiveFrame = i;
graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height);
}
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
-//Close the document
-doc.Close(true);
+//Save and close the document
+pdfDocument.Save("Sample.pdf");
+pdfDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a PDF document
PdfDocument pdfDocument = new PdfDocument();
//Set page margins
@@ -728,6 +1075,9 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a PDF document
Dim pdfDocument As New PdfDocument()
'Set page margins
@@ -767,27 +1117,31 @@ The code snippet to illustrate the same is given below.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Images/Remove-images-from-PDF-document/.NET/Remove-images-from-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Exporting;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page.
PdfPageBase pageBase = loadedDocument.Pages[0];
//Extract images from the first page.
PdfImageInfo[] imageInfo = loadedDocument.Pages[0].GetImagesInfo();
//Remove the Image.
pageBase.RemoveImage(imageInfo[0]);
-//Create the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-loadedDocument.Save(stream);
-//Close the document
+//Save and close the document
+loadedDocument.Save("Sample.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Exporting;
+using Syncfusion.Pdf.Parsing;
+
//Load a PDF document
PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf");
//Load the first page
@@ -805,6 +1159,10 @@ doc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
'Load the first page
@@ -813,10 +1171,9 @@ Dim pageBase As PdfPageBase = loadedDocument.Pages(0)
Dim imageInfo As PdfImageInfo = pageBase.ImagesInfo(0)
'Remove the Image
pageBase.RemoveImage(imageInfo)
-Dim stream As New MemoryStream()
'Save the document
-loadedDocument.Save(stream)
+loadedDocument.Save("Output.pdf")
'Close the document
loadedDocument.Close(True)
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-JavaScript.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-JavaScript.md
index 07ad2112a..966551198 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-JavaScript.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-JavaScript.md
@@ -22,6 +22,9 @@ You can add the JavaScript action to the PDF document by using [PdfJavaScriptAct
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/JavaScript/Add-the-JavaScript-action-to-the-PDF-document/.NET/Add-the-JavaScript-action-to-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document
PdfDocument document = new PdfDocument();
//Add a page
@@ -32,23 +35,17 @@ PdfJavaScriptAction scriptAction = new PdfJavaScriptAction("app.alert(\"Hello Wo
//Add the JavaScript action
document.Actions.AfterOpen = scriptAction;
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document
PdfDocument document = new PdfDocument();
//Add a page
@@ -67,6 +64,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
'Create a new document
Dim document As New PdfDocument()
'Add a page
@@ -97,6 +97,11 @@ The following code snippet illustrate this.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/JavaScript/Add-JavaScript-action-to-the-form-fields-in-a-PDF/.NET/Add-JavaScript-action-to-the-form-fields-in-a-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Creates a new page
@@ -116,23 +121,19 @@ submitButton.Actions.MouseDown = scriptAction;
//Add the submit button to the new document
document.Form.Fields.Add(submitButton);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Creates a new page
@@ -161,6 +162,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As New PdfDocument()
'Creates a new page
@@ -199,6 +205,10 @@ The 3D Annotations are used to represent 3D artworks in a PDF document. You can
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/JavaScript/Add-JavaScript-to-3D-annotation-in-a-PDF-document/.NET/Add-JavaScript-to-3D-annotation-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Creates a new page
@@ -218,23 +228,18 @@ pdf3dAnnotation.Activation = activation;
//Adds annotation to page
page.Annotations.Add(pdf3dAnnotation);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "3DAnnotation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Creates a new PDF document
PdfDocument document = new PdfDocument();
//Creates a new page
@@ -261,6 +266,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
'Creates a new PDF document
Dim document As New PdfDocument()
'Creates a new page
@@ -297,6 +306,10 @@ Add or modify the JavaScript action in a [PdfLoadedDocument](https://help.syncfu
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -312,6 +325,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
'Load the PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Layers.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Layers.md
index 11603afce..98e5eb3c2 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Layers.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Layers.md
@@ -20,6 +20,10 @@ Essential® PDF allows the users to create a layer in a PDF page u
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Adding-layers-in-a-PDF-document/.NET/Adding-layers-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create PDF document.
PdfDocument document = new PdfDocument();
//Add the page.
@@ -41,23 +45,19 @@ graphics.TranslateTransform(100, 180);
//Draw ellipse.
graphics.DrawEllipse(pen, bounds);
-//Save and close the document.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document.
+//Save the document.
+document.Save("Sample.pdf");
+//Close the document
document.Close(true);
-//Defining the ContentType for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create PDF document.
PdfDocument document = new PdfDocument();
//Add the page.
@@ -88,6 +88,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create PDF document.
Dim document As New PdfDocument()
'Add the page.
@@ -126,9 +130,13 @@ The below code illustrates how to add the multiple layers in an existing PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Add-the-multiple-layers-in-an-existing-PDF-document/.NET/Add-the-multiple-layers-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get first page from document
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -148,25 +156,22 @@ graphics.TranslateTransform(100, 180);
//Draw ellipse.
graphics.DrawEllipse(pen, bounds);
-//Save and close the document
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document.
-loadedDocument.Close(true);
-//Defining the ContentType for pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
+//Save the document.
+document.Save("Sample.pdf");
+//Close the document
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get first page from document
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -195,8 +200,13 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports System.Drawing
+
'Load the existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get first page from document
Dim loadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage)
@@ -235,6 +245,11 @@ Essential® PDF allows the users to add different types of [Annota
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Adding-annotation-to-layer-in-the-PDF-document/.NET/Adding-annotation-to-layer-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create new PDF document
PdfDocument document = new PdfDocument();
//Add page
@@ -255,23 +270,20 @@ annotation.Layer = layer;
//Add annotation to the created page
page.Annotations.Add(annotation);
-//Save and close the document
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document.
+document.Save("Sample.pdf");
//Close the document
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create new PDF document
PdfDocument document = new PdfDocument();
//Add page
@@ -301,6 +313,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+Imports System.Drawing
+
'Create new PDF document
Dim document As New PdfDocument()
'Add page
@@ -338,9 +355,14 @@ The following code illustrates how to add annotation to the layers in an existin
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Add-annotation-to-the-layer-in-an-existing-PDF-document/.NET/Add-annotation-to-the-layer-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page from the document
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -359,23 +381,21 @@ annotation.Layer = Layer;
//Add annotation to the created page
loadedPage.Annotations.Add(annotation);
-//Save and close the document
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
+//Save the document.
+loadedDocument.Save("Sample.pdf");
//Close the document
loadedDocument.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page from the document
@@ -405,6 +425,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Interactive
+Imports System.Drawing
+
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Gets the first page from the document
@@ -444,6 +470,10 @@ Essential® PDF allows users to add nested layers in the PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Add-nested-layers-in-the-PDF-document/.NET/Add-nested-layers-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create the PDF document
PdfDocument document = new PdfDocument();
//Add the page
@@ -466,25 +496,19 @@ graphics.TranslateTransform(100, 180);
//Draw an ellipse
graphics.DrawEllipse(pen, bounds);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-document.Save(stream);
-//If the position is not set to '0', the PDF will be empty
-stream.Position = 0;
+//Save the document.
+document.Save("Sample.pdf");
//Close the document
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create the PDF document
PdfDocument document = new PdfDocument();
//Add the page
@@ -516,6 +540,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create the PDF document
Dim document As New PdfDocument()
'Add the page
@@ -557,9 +585,11 @@ You can remove the layers using [RemoveAt](https://help.syncfusion.com/cr/docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Removing-layers-from-an-existing-PDF-document/.NET/Removing-layers-from-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Gets the first page from the document
PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage;
@@ -568,23 +598,18 @@ PdfPageLayerCollection layers = loadedPage.Layers;
//Remove the layer
layers.RemoveAt(0);
-//Save and close the document
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document
+document.Save("Output.pdf");
//Close the document
document.Close(true);
-//Defining the ContentType for pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Gets the first page from the document
@@ -604,6 +629,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Gets the first page from the document
@@ -633,29 +661,29 @@ You can flatten a layer in a PDF document by removing it from the [PdfDocumentLa
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Flattening-the-layers-in-an-existing-PDF-document/.NET/Flattening-the-layers-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document
-FileStream inputStream = new FileStream("Layers.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the layer collection
PdfDocumentLayerCollection layers = loadedDocument.Layers;
//Flatten a layer in the PDF document
layers.RemoveAt(0);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Set the position as '0'
-stream.Position = 0;
-//Download the PDF document in the browser
-FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/pdf");
-fileStreamResult.FileDownloadName = "Output.pdf";
-return fileStreamResult;
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
+//Close the instance of PdfLoadedDocument
+loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Layers.pdf");
@@ -673,6 +701,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Layers.pdf")
@@ -702,6 +733,10 @@ The below code illustrates how to toggle the visibility of layers in new PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Toggle-the-visibility-of-layers-in-new-PDF-document/.NET/Toggle-the-visibility-of-layers-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create the document
PdfDocument document = new PdfDocument();
//Create a page
@@ -724,23 +759,19 @@ graphics.TranslateTransform(100, 180);
//Draw ellipse
graphics.DrawEllipse(pen, bounds);
-//Save and close the document
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save the PDF document
+document.Save("Output.pdf");
+//Close the instance of PdfLoadedDocument
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create the document
PdfDocument document = new PdfDocument();
//Create a page
@@ -773,6 +804,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
'Create the document
Dim document As New PdfDocument()
'Create a page
@@ -812,32 +846,29 @@ The following code illustrates how to toggle the visibility of layers in an exis
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Toggle-the-visibility-of-layers-in-an-existing-PDF/.NET/Toggle-the-visibility-of-layers-in-an-existing-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Gets the first layer from the layer collection
PdfLayer layer = document.Layers[0];
//Disable the visibility
layer.Visible = false;
-//Save and close the document
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document
+document.Save("Output.pdf");
//Close the document
document.Close(true);
-//Defining the content type for PDF file.
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -855,6 +886,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -884,6 +918,10 @@ The following code sample shows how to add a lock state to the layer in a new PD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Add-a-lock-state-to-the-layer-in-a-new-PDF-document/.NET/Add-a-lock-state-to-the-layer-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creating a new PDF document.
PdfDocument document = new PdfDocument();
//Adding a new page to the PDF document.
@@ -899,25 +937,19 @@ PdfGraphics graphics = layer.CreateGraphics(page);
//Draw ellipse.
graphics.DrawEllipse(PdfPens.Red, new RectangleF(50, 50, 40, 40));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-document.Save(stream);
-//If the position is not set to '0,' then the PDF will be empty.
-stream.Position = 0;
-//Close the document.
+//Save the PDF document.
+document.Save("Output.pdf");
+//Close the PDF document.
document.Close(true);
-//Defining the content type for a PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creating a new PDF document.
PdfDocument document = new PdfDocument();
//Adding a new page to the PDF document.
@@ -942,6 +974,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Creating a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Adding a new page to the PDF document.
@@ -986,6 +1022,10 @@ This is illustrated in the following code sample.
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Layers.pdf");
@@ -1009,6 +1049,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Output.pdf")
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Metadata.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Metadata.md
index 795912637..12093da51 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Metadata.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Metadata.md
@@ -24,6 +24,9 @@ You can add XMP metadata in a PDF document using the [XmpMetadata](https://help.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Adding-XMP-metadata-in-PDF-document/.NET/Adding-XMP-metadata-in-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a PDF document
PdfDocument pdfDoc = new PdfDocument();
//Create a page
@@ -47,22 +50,16 @@ basic.Nickname = "nickname";
basic.Rating.Add(-25);
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a PDF document
PdfDocument pdfDoc = new PdfDocument();
//Create a page
@@ -86,13 +83,16 @@ basic.Nickname = "nickname";
basic.Rating.Add(-25);
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create a PDF document
Dim pdfDoc As New PdfDocument()
'Create a page
@@ -133,9 +133,12 @@ You can add metadata in an existing PDF document using the [XmpMetadata](https:/
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Adding-XMP-metadata-to-an-existing-PDF-document/.NET/Adding-XMP-metadata-to-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Xmp;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument pdfDoc = new PdfLoadedDocument(docStream);
+PdfLoadedDocument pdfDoc = new PdfLoadedDocument("Input.pdf");
//Get XMP object
XmpMetadata metaData = pdfDoc.DocumentInformation.XmpMetadata;
@@ -155,22 +158,18 @@ basic.Nickname = "nickname";
basic.Rating.Add(-25);
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
+
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Xmp;
+
//Load the document
PdfLoadedDocument pdfDoc = new PdfLoadedDocument("input.pdf");
@@ -192,13 +191,17 @@ basic.Nickname = "nickname";
basic.Rating.Add(-25);
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Load the document
Dim pdfDoc As New PdfLoadedDocument("input.pdf")
@@ -260,6 +263,9 @@ The [BasicSchema](https://help.syncfusion.com/cr/document-processing/Syncfusion.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Create-PDF-document-with-XMP-basic-schema/.NET/Create-PDF-document-with-XMP-basic-schema/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a PDF document
PdfDocument pdfDoc = new PdfDocument();
//Create a page
@@ -283,22 +289,17 @@ basic.Nickname = "nickname";
basic.Rating.Add(-25);
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
+
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a PDF document
PdfDocument pdfDoc = new PdfDocument();
//Create a page
@@ -322,13 +323,16 @@ basic.Nickname = "nickname";
basic.Rating.Add(-25);
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create a PDF document
Dim pdfDoc As New PdfDocument()
'Create a page
@@ -381,6 +385,9 @@ The [DublinCoreSchema](https://help.syncfusion.com/cr/document-processing/Syncfu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Create-PDF-document-with-dubline-core-schema-properties/.NET/Create-PDF-document-with-dubline-core-schema-properties/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create new PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -399,22 +406,16 @@ dublin.Type.Add("PDF");
dublin.Publisher.Add("Essential PDF");
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create new PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -433,13 +434,16 @@ dublin.Type.Add("PDF");
dublin.Publisher.Add("Essential PDF");
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create new PDF document
Dim pdfDoc As New PdfDocument()
'Add a new page
@@ -483,6 +487,9 @@ The [RightsManagementSchema](https://help.syncfusion.com/cr/document-processing/
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Create-PDF-document-with-right-management-schema/.NET/Create-PDF-document-with-right-management-schema/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -499,22 +506,16 @@ rights.Owner.Add("Syncfusion");
rights.Marked = true;
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -530,13 +531,16 @@ rights.Owner.Add("Syncfusion");
rights.Marked = true;
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create PDF document
Dim pdfDoc As New PdfDocument()
'Add a new page
@@ -572,6 +576,9 @@ This schema describes very simple workflow or job information and the [BasicJobT
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Create-PDF-document-with-basic-job-ticket-schema/.NET/Create-PDF-document-with-basic-job-ticket-schema/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a document
PdfDocument pdfDoc = new PdfDocument();
//Add a page
@@ -586,22 +593,16 @@ BasicJobTicketSchema basicJob = metaData.BasicJobTicketSchema;
basicJob.JobRef.Add("PDF document creation");
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document.
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a document
PdfDocument pdfDoc = new PdfDocument();
//Add a page
@@ -616,13 +617,16 @@ BasicJobTicketSchema basicJob = metaData.BasicJobTicketSchema;
basicJob.JobRef.Add("PDF document creation");
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create a document
Dim pdfDoc As New PdfDocument()
'Add a page
@@ -661,6 +665,9 @@ The [PagedTextSchema](https://help.syncfusion.com/cr/document-processing/Syncfus
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Create-PDF-document-with-pages-text-schema/.NET/Create-PDF-document-with-pages-text-schema/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a PDF document
PdfDocument pdfDoc = new PdfDocument();
//Create a Page
@@ -678,22 +685,16 @@ pagedText.NPages = 1;
pagedText.PlateNames.Add("Sample page");
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a Pdf document
PdfDocument pdfDoc = new PdfDocument();
//Create a Page
@@ -711,13 +712,16 @@ pagedText.NPages = 1;
pagedText.PlateNames.Add("Sample page");
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create a PDF document
Dim pdfDoc As New PdfDocument()
'Create a Page
@@ -752,6 +756,9 @@ This schema specifies the properties used with Adobe PDF documents. The [PDFSche
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Create-PDF-document-with-PDF-schema/.NET/Create-PDF-document-with-PDF-schema/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a page
@@ -768,22 +775,16 @@ pdfSchema.PDFVersion = "1.5";
pdfSchema.Keywords = "Essential PDF";
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create a PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a page
@@ -800,13 +801,16 @@ pdfSchema.PDFVersion = "1.5";
pdfSchema.Keywords = "Essential PDF";
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create a PDF document
Dim pdfDoc As New PdfDocument()
'Add a page
@@ -845,6 +849,9 @@ Add the following code sample to define the custom schema in a PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Create-PDF-document-with-custom-schema/.NET/Create-PDF-document-with-custom-schema/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -860,23 +867,17 @@ customSchema["DOCID"] = "SYNCSAM001";
customSchema["Encryption"] = "Standard";
customSchema["Project"] = "Data processing";
-//Save the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save and close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "DocumentInformation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create Pdf document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -894,13 +895,16 @@ customSchema["Encryption"] = "Standard";
customSchema["Project"] = "Data processing";
//Save and close the document
-pdfDoc.Save("DocumentInformation.pdf");
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create PDF document
Dim pdfDoc As New PdfDocument()
'Add a new page
@@ -935,6 +939,9 @@ Essential® PDF allows you to add required metadata (custom schema
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Adding-custom-schema-to-the-PDF-document/.NET/Adding-custom-schema-to-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -950,22 +957,16 @@ customSchema["creationDate"] = DateTime.Now.ToString();
customSchema["DOCID"] = "SYNCSAM001";
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "CustomMetaField.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add a new page
@@ -988,6 +989,9 @@ pdfDoc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create PDF document
Dim pdfDoc As New PdfDocument()
'Add a new page
@@ -1020,6 +1024,9 @@ The custom metadata can be added in PDF document by using the [CustomMetadata](h
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Adding-custom-metadata-to-the-PDF-document/.NET/Adding-custom-metadata-to-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add new PDF page
@@ -1031,22 +1038,16 @@ pdfDoc.DocumentInformation.CustomMetadata["CompanyName"] = "Syncfusion";
pdfDoc.DocumentInformation.CustomMetadata["Key"] = "DocumentKey";
//Save and close the document
-MemoryStream stream = new MemoryStream();
-pdfDoc.Save(stream);
-stream.Position = 0;
-//Close the document
+pdfDoc.Save("Output.pdf");
pdfDoc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "AddCustomField.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+
//Create PDF document
PdfDocument pdfDoc = new PdfDocument();
//Add new PDF page
@@ -1065,6 +1066,9 @@ pdfDoc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Create PDF document
Dim pdfDoc As New PdfDocument()
'Add new PDF page
@@ -1093,30 +1097,28 @@ Removing the custom metadata from an existing PDF document using the [Remove](ht
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Remove-custom-metadata-from-an-existing-PDF-document/.NET/Remove-custom-metadata-from-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Remove custom metadata using key name
loadedDocument.DocumentInformation.CustomMetadata.Remove("Key");
//Save and close the document
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Xmp;
+using Syncfusion.Pdf.Parsing;
+
//Load the document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -1131,6 +1133,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Load the document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
@@ -1159,6 +1165,10 @@ You can add the XMP metadata along with an image to the PDF document. The [PdfBi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Adding-XMP-metadata-along-with-an-image-in-PDF/.NET/Adding-XMP-metadata-along-with-an-image-in-PDF/Program.cs" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using System.Reflection.Metadata;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -1172,24 +1182,18 @@ PdfBitmap image = new PdfBitmap(imageStream, true);
//Draw the image
graphics.DrawImage(image, 0, 0);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-doc.Save(stream);
-stream.Position = 0;
+//Save the document
+doc.Save("Output.pdf");
//Close the document
doc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using System.Reflection.Metadata;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -1211,6 +1215,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Reflection.Metadata
+
'Create a new PDF document
Dim doc As New PdfDocument()
'Add a page to the document
@@ -1244,9 +1252,12 @@ Refer to the following code example to extract the image metadata from a PDF ima
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Metadata/Extracting-XMP-metadata-from-PDF-image/.NET/Extracting-XMP-metadata-from-PDF-image/Program.cs" %}
-//Load an existing PDF
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Xmp;
+using Syncfusion.Pdf;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page
PdfPageBase pageBase = loadedDocument.Pages[0];
@@ -1262,6 +1273,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Xmp;
+using Syncfusion.Pdf;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
//Load the first page
@@ -1279,6 +1294,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Xmp
+Imports Syncfusion.Pdf
+
'Load an existing PDF
Dim loadedDocument As New PdfLoadedDocument(fileName)
'Load the first page
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Named-Destination.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Named-Destination.md
index b864b4559..71141373f 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Named-Destination.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Named-Destination.md
@@ -28,6 +28,11 @@ The following code example shows how to add named destination in a new PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Named%20Destination/Adding-named-destination-to-a-PDF-document/.NET/Adding-named-destination-to-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page to the document.
@@ -43,16 +48,19 @@ doc.NamedDestinationCollection.Add(destination);
//Draw the text.
page.Graphics.DrawString("Hello World!!", new PdfStandardFont(PdfFontFamily.Helvetica, 10), PdfBrushes.Black, new PointF(0, 500));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-//Closes the document
+//Save the document.
+doc.Save("Output.pdf");
+//Close the document.
doc.Close(true);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page to the document.
@@ -77,6 +85,11 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
'Create a new PDF document.
Dim doc As New PdfDocument()
'Add a page to the document.
@@ -111,9 +124,13 @@ The following code example shows how to add named destination in an existing PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Named%20Destination/Adding-named-destination-to-an-existing-PDF-document/.NET/Adding-named-destination-to-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the first page of the document.
PdfPageBase page = loadedDocument.Pages[0];
//Create an instance for named destination.
@@ -125,16 +142,20 @@ destination.Destination.Location = new PointF(0, 500);
destination.Destination.Zoom = 4;
loadedDocument.NamedDestinationCollection.Add(destination);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Closes the document.
+//Save the document.
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the first page of the document.
@@ -157,6 +178,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Interactive
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the first page of the document.
@@ -189,9 +215,11 @@ You can remove the named destination using [Remove](https://help.syncfusion.com/
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Named%20Destination/Remove-and-modify-the-named-destination-in-a-PDF/.NET/Remove-and-modify-the-named-destination-in-a-PDF/Program.cs" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Barcode.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument lDoc = new PdfLoadedDocument(docStream);
+PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf");
//Get the named destination collection.
PdfNamedDestinationCollection destinationCollection = lDoc.NamedDestinationCollection;
//Remove the named destination by title.
@@ -200,9 +228,8 @@ destinationCollection.Remove("TOC");
PdfNamedDestination destination = destinationCollection[0];
destination.Title = "POC";
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-lDoc.Save(stream);
+//Save the document.
+lDoc.Save("Output.pdf");
//Close the document.
lDoc.Close(true);
@@ -210,6 +237,9 @@ lDoc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument lDoc = new PdfLoadedDocument("Sample.pdf");
//Get the named destination collection.
@@ -230,6 +260,9 @@ lDoc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Interactive
+
'Load the PDF document.
Dim lDoc As New PdfLoadedDocument("Sample.pdf")
'Get the named destination collection.
@@ -260,6 +293,11 @@ The following code example shows how to add named destination to the [Bookmarks]
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Named%20Destination/Adding-named-destination-to-the-bookmarks/.NET/Adding-named-destination-to-the-bookmarks/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page to the document.
@@ -278,10 +316,8 @@ PdfBookmark bookmark = doc.Bookmarks.Add("TOC");
//Assign the named destination to the bookmark.
bookmark.NamedDestination = destination;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-stream.Position = 0;
+//Save the document.
+doc.Save("Sample.pdf");
//Close the document.
doc.Close(true);
@@ -289,6 +325,11 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page to the document.
@@ -316,6 +357,11 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
'Create a new PDF document.
Dim doc As New PdfDocument()
'Add a page to the document.
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Conformance.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Conformance.md
index ecf21596b..30a3ab9f7 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Conformance.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Conformance.md
@@ -123,6 +123,9 @@ You can create a PDF/A-1b document by specifying the conformance level as ```Pdf
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA1B-document/.NET/Creating-the-new-PDFA1B-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-1b standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B);
//Add a page to the document
@@ -137,25 +140,16 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-1b standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B);
//Add a page.
@@ -180,6 +174,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with PDF/A-1b standard.
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A1B)
'Add a page.
@@ -214,6 +211,9 @@ You can create a PDF/A-2b document by specifying the conformance level as ```Pdf
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA2B-document/.NET/Creating-the-new-PDFA2B-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-2b standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2B);
//Add a page to the document
@@ -228,25 +228,17 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-2b standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2B);
//Add a page
@@ -271,6 +263,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with PDF/A-2b standard
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A2B)
'Add a page
@@ -307,6 +302,10 @@ You can create a PDF/A-3b document by specifying the conformance level as Pdf_A3
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA3B-document/.NET/Creating-the-new-PDFA3B-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document with PDF/A-3b standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3B);
//Add a page to the document
@@ -330,25 +329,18 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document with PDF/A-3b standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3B);
//Add a page
@@ -381,6 +373,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
'Create a new document with PDF/A-3b standard
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A3B)
'Add a page
@@ -425,6 +421,9 @@ You can create a PDF/A-1a document by specifying the conformance level as ```Pdf
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA1A-document/.NET/Creating-the-new-PDFA1A-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-1a standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1A);
//Add a page to the document
@@ -438,25 +437,16 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-1a standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1A);
//Add a page.
@@ -480,6 +470,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with PDF/A-1a standard.
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A1A)
'Add a page.
@@ -515,6 +508,9 @@ You can create a PDF/A-2a document by specifying the conformance level as ```Pdf
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA2A-document/.NET/Creating-the-new-PDFA2A-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-2a standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2A);
//Add a page to the document
@@ -528,25 +524,17 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-2a standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2A);
//Add a page
@@ -570,6 +558,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with PDF/A-2a standard
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A2A)
'Add a page
@@ -605,6 +596,10 @@ You can create a PDF/A-3a document by specifying the conformance level as ``Pdf_
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA3A-document/.NET/Creating-the-new-PDFA3A-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document with PDF/A-3a standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3A);
//Add a page to the document
@@ -628,25 +623,18 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document with PDF/A-3a standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3A);
//Add a page
@@ -680,6 +668,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
'Create a new document with PDF/A-3a standard
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A3A)
'Add a page
@@ -725,6 +717,9 @@ You can create a PDF/A-2u document by specifying the conformance level as ```Pdf
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA2U-document/.NET/Creating-the-new-PDFA2U-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-2u standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2U);
//Add a page to the document
@@ -738,25 +733,16 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/A-2u standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2U);
//Add a page
@@ -780,6 +766,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with PDF/A-2u standard
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A2U)
'Add a page
@@ -815,6 +804,10 @@ You can create a PDF/A-3u document by specifying the conformance level as ``Pdf_
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA3U-document/.NET/Creating-the-new-PDFA3U-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document with PDF/A-3u standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3U);
//Add a page to the document
@@ -838,25 +831,18 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new document with PDF/A-3u standard
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3U);
//Add a page
@@ -890,6 +876,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
'Create a new document with PDF/A-3u standard
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A3U)
'Add a page
@@ -935,6 +925,9 @@ Create a PDF/A-4 document by specifying the conformance level as ``Pdf_A4`` thro
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA4-document/.NET/Creating-the-new-PDFA4-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with the PDF/A-4 standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4);
//Add a page to the document.
@@ -948,25 +941,17 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Create the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into the memory stream.
-document.Save(stream);
-//If the position is not set to '0,' a PDF will be empty.
-stream.Position = 0;
-//Close the document.
-document.Close(true);
-//Define the content type for a PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Output.pdf";
-//Create the FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
+//Save and close the document.
+document.Save("Output.pdf");
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with the PDF/A-4 standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4);
//Add a page.
@@ -990,6 +975,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with the PDF/A-4 standard.
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A4)
'Add a page.
@@ -1025,6 +1013,9 @@ Create a PDF/A-4E document by specifying the conformance level as ``Pdf_A4E`` th
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-the-new-PDFA4E-document/.NET/Creating-the-new-PDFA4E-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with the PDF/A-4 standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4);
//Creates a new page.
@@ -1040,22 +1031,16 @@ activation.ShowToolbar = true; pdf3dAnnotation.Activation = activation;
//Add the annotation to the page.
page.Annotations.Add(pdf3dAnnotation);
-//Save the document into the stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream); stream.Position = 0;
-//Close the document.
-document.Close(true);
-//Define the ContentType for a pdf file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "3DAnnotation.pdf";
-//Create the FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
-
+//Save and close the document.
+document.Save("Output.pdf");
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with the PDF/A-4E standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4E);
//Create a new page.
@@ -1079,6 +1064,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with the PDF/A-4 standard.
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A4E)
'Creates a new page.
@@ -1115,6 +1103,9 @@ Create a PDF/A-4f document by specifying the conformance level as ``Pdf_A4F`` th
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Creating-a-new-PDFA4F-document/.NET/Creating-a-new-PDFA4F-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with the PDF/A-4F standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4F);
//Add a page to the document.
@@ -1140,18 +1131,17 @@ PdfFont font = new PdfTrueTypeFont(fontStream, 14);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0));
-//Save the document into the memory stream.
-MemoryStream stream = new MemoryStream();
-await document.SaveAsync(stream);
-//Close the document.
-document.Close(true);
-//Save the stream as a PDF document file in the local machine. Refer to the PDF/UWP section for respective code samples.
-Save(stream, "Output.pdf");
+//Save and close the document.
+document.Save("Output.pdf");
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with the PDF/A-3b standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4F);
//Add a page.
@@ -1184,6 +1174,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with the PDF/A-3b standard.
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A4F)
'Add a page.
@@ -1233,6 +1226,9 @@ You can create a PDF/X-1a document by specifying the conformance level as ```Pdf
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document with PDF/x standard.
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_X1A2001);
//Add a page.
@@ -1258,6 +1254,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document with PDF/x standard.
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_X1A2001)
'Add a page.
@@ -1307,32 +1306,32 @@ Refer to the following code sample to implement this conversion.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/Program.cs" %}
-//Load an existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using SkiaSharp;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Sample level font event handling
loadedDocument.SubstituteFont += LoadedDocument_SubstituteFont ;
//Convert the loaded document to PDF/A document
loadedDocument.ConvertToPDFA(PdfConformanceLevel.Pdf_A1B);
-//Save the document
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
-loadedDocument.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
+loadedDocument.Close(true)
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using SkiaSharp;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -1347,6 +1346,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports SkiaSharp
+
'Load an existing PDF document.
Dim document As New PdfLoadedDocument("Input.pdf")
@@ -1429,9 +1433,15 @@ N> To convert an existing PDF to a PDF/A-compliant document in .NET Core, ensure
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Font_Subsetting_in_PDFA_conversion/.NET/Font_Subsetting_in_PDFA_conversion/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf;
+using System.Reflection.Metadata;
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Graphics;
+using SkiaSharp;
+
//Load an existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Sample level font event handling
loadedDocument.SubstituteFont += LoadedDocument_SubstituteFont;
@@ -1447,17 +1457,21 @@ options.SubsetFonts = true;
// Convert to PDF/A conformance
loadedDocument.ConvertToPDFA(options);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf;
+using System.Reflection.Metadata;
+using System.Drawing;
+using Syncfusion.Pdf.Graphics;
+using SkiaSharp;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -1478,6 +1492,13 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf
+Imports System.Reflection.Metadata
+Imports System.Drawing
+Imports Syncfusion.Pdf.Graphics
+Imports SkiaSharp
+
' Load an existing PDF document.
Dim document As New PdfLoadedDocument("Input.pdf")
@@ -1562,9 +1583,11 @@ You can find the conformance level of the existing PDF document using the [Confo
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Get-the-conformance-level-of-the-existing-PDF-document/.NET/Program.cs" %}
-//Load an existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the conformance level of the loaded document.
PdfConformanceLevel conformance = loadedDocument.Conformance;
@@ -1576,6 +1599,9 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -1589,6 +1615,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf
+
'Load an existing PDF.
Dim document As New PdfLoadedDocument("Input.pdf")
@@ -1613,24 +1642,20 @@ The following code sample shows the delegate for handling PDF to PDF/A conversio
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Get-PDF-to-PDFA-conversion-progress/.NET/Get-PDF-to-PDFA-conversion-progress/Program.cs" %}
-
-
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Subscribe to the PdfAConversionProgress event to track the PDF to PDF/A conversion process
loadedDocument.PdfAConversionProgress += new PdfLoadedDocument.PdfAConversionProgressEventHandler(pdfAConversion_TrackProgress);
loadedDocument.ConvertToPDFA(PdfConformanceLevel.Pdf_A1B);
-//Save the document
-FileStream outputStream = new FileStream(Path.GetFullPath(@"Output.pdf"), FileMode.Create, FileAccess.Write);
-loadedDocument.Save(outputStream);
-
-//Close the document
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
@@ -1645,6 +1670,9 @@ void pdfAConversion_TrackProgress(object sender, PdfAConversionProgressEventArgs
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load a PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
@@ -1668,6 +1696,9 @@ Console.WriteLine(String.Format("PDF to PDF/A conversion Process " + arguments.
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf
+
'Load a PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
@@ -1699,30 +1730,25 @@ An existing PDF/A conformance document can be converted to a PDF document using
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Conformance/Convert-PDFA-to-PDF-document/.NET/Convert-PDFA-to-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+
//Load a PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Remove PDF/A conformance.
document.RemoveConformance();
//Save the document.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
-//Defining the content type for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "output.pdf";
-
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument("input.pdf");
@@ -1738,6 +1764,8 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing document.
Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Templates.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Templates.md
index d925cfe00..4fc50279b 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Templates.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-PDF-Templates.md
@@ -19,6 +19,10 @@ The below code snippet illustrates how to add contents to the [PdfTemplate](http
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Templates/Add-the-contents-to-template-and-render-into-PDF-page/.NET/Add-the-contents-to-template-and-render-into-PDF-page/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -37,9 +41,8 @@ template.Graphics.DrawString("Hello World", font, brush, 5, 5);
//Draw the template on the page graphics of the document.
pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
+//Save the document.
+pdfDocument.Save("Output.pdf");
//Close the document.
pdfDocument.Close(true);
@@ -47,6 +50,10 @@ pdfDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -74,6 +81,10 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim pdfDocument As New PdfDocument()
'Add a page to the PDF document.
@@ -109,9 +120,12 @@ The below code snippet illustrates how to render the [PdfTemplate](https://help.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Templates/Render-the-template-in-an-existing-PDF-document/.NET/Render-the-template-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page into Pdf document.
PdfLoadedPage LoadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -128,9 +142,8 @@ template.Graphics.DrawString("Hello World", font, brush, 5, 5);
//Draw the template on the page graphics of the document.
LoadedPage.Graphics.DrawPdfTemplate(template, Syncfusion.Drawing.PointF.Empty);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -138,8 +151,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page into Pdf document.
PdfLoadedPage LoadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -165,8 +182,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Load the existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the page into Pdf document.
Dim LoadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage)
@@ -204,9 +225,12 @@ The below code illustrates how to create the template from an existing page and
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Templates/Create-template-from-an-existing-PDF-document/.NET/Create-template-from-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page.
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Create the template from the page.
@@ -221,19 +245,21 @@ PdfGraphics graphics = page.Graphics;
//Draw the template.
graphics.DrawPdfTemplate(template, Syncfusion.Drawing.PointF.Empty, new Syncfusion.Drawing.SizeF(page.Size.Width / 2, page.Size.Height));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+loadedDocument.Save("Output.pdf");
//Close the document.
-document.Close(true);
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page.
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Create the template from the page.
@@ -258,8 +284,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Load the existing PDF document
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the page
Dim loadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage)
'Create the template from the page
@@ -296,6 +326,10 @@ The below code illustrates how to add the page template elements in a PDF docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Templates/Add-the-page-template-elements-in-a-PDF-document/.NET/Add-the-page-template-elements-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -329,9 +363,8 @@ compositeField.Draw(footer.Graphics, new Syncfusion.Drawing.PointF(470, 40));
//Add the footer template at the bottom.
pdfDocument.Template.Bottom = footer;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
+//Save the document.
+pdfDocument.Save("Output.pdf");
//Close the document.
pdfDocument.Close(true);
@@ -339,6 +372,10 @@ pdfDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -379,6 +416,10 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim pdfDocument As New PdfDocument()
'Add a page to the PDF document.
@@ -429,12 +470,15 @@ Multiple templates can be drawn over a PDF page, to create a document-overlay us
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Templates/Creating-the-document-overlays/.NET/Creating-the-document-overlays/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream1 = new FileStream(fileName1, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument1 = new PdfLoadedDocument(docStream1);
+PdfLoadedDocument loadedDocument1 = new PdfLoadedDocument("Input1.pdf");
//Load the PDF document.
-FileStream docStream2 = new FileStream(fileName2, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument2 = new PdfLoadedDocument(docStream2);
+PdfLoadedDocument loadedDocument2 = new PdfLoadedDocument("Input2.pdf");
//Create the new document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -451,23 +495,25 @@ template = loadedPage.CreateTemplate();
//Draw the loaded template into new document.
page.Graphics.DrawPdfTemplate(template, new PointF(10, 10), new SizeF(400, 500));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Set the position as '0'.
-stream.Position = 0;
+//Save the new document.
+document.Save("Output.pdf");
//Closes the documents.
-document.Close(true);
loadedDocument1.Close(true);
loadedDocument2.Close(true);
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing documents.
-PdfLoadedDocument loadedDocument1 = new PdfLoadedDocument(fileName1);
-PdfLoadedDocument loadedDocument2 = new PdfLoadedDocument(fileName2);
+PdfLoadedDocument loadedDocument1 = new PdfLoadedDocument("Input1.pdf");
+PdfLoadedDocument loadedDocument2 = new PdfLoadedDocument("Input2.pdf");
//Create the new document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -495,9 +541,14 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+Imports System.Drawing
+
'Load the existing documents.
-Dim loadedDocument1 As New PdfLoadedDocument(fileName1)
-Dim loadedDocument2 As New PdfLoadedDocument(fileName2)
+Dim loadedDocument1 As New PdfLoadedDocument("Input1.pdf")
+Dim loadedDocument2 As New PdfLoadedDocument("Input2.pdf")
'Create the new document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -535,9 +586,12 @@ The following code sample shows how to add a [PdfPageTemplate](https://help.sync
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/PDF%20Templates/Add-a-template-from-an-existing-PDF-document/.NET/Add-a-template-from-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Loads an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the first page of the document.
PdfPageBase page = loadedDocument.Pages[0];
@@ -550,17 +604,19 @@ pageTemplate.IsVisible = true;
//Adds the page template.
loadedDocument.PdfPageTemplates.Add(pageTemplate);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-loadedDocument.Save(stream);
-//Close the document.
+//Save the PDF document.
+loadedDocument.Save("output.pdf");
+//Close the PDF document.
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Loads an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get the first page of the document.
@@ -584,6 +640,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Loads an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
'Get the first page of the documsent.
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Pages.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Pages.md
index 2841de9bb..7f719a83a 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Pages.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Pages.md
@@ -15,6 +15,9 @@ The following code sample explains you on how to add a [PdfPage](https://help.sy
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Add-a-new-page-to-the-PDF-document/.NET/Add-a-new-page-to-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page.
@@ -29,17 +32,17 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14);
//Draw the text.
graphics.DrawString("Hello world!", font, brush, new Syncfusion.Drawing.PointF(20, 20));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page.
@@ -62,6 +65,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page.
@@ -94,23 +100,23 @@ You can insert an empty page at any location in the existing PDF document using
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Insert-pages-in-a-PDF-document/.NET/Insert-pages-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Insert a new page in the beginning of the document.
loadedDocument.Pages.Insert(0);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-loadedDocument.Save(stream);
-//Close the document.
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Insert a new page in the beginning of the document.
@@ -123,6 +129,8 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Insert a new page in the beginning of the document.
@@ -145,6 +153,9 @@ You can add margin to all the PDF pages of the PDF document using the [PageSetti
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Add-margin-to-the-PDF-pages/.NET/Add-margin-to-the-PDF-pages/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Set margin for all the pages.
@@ -161,17 +172,17 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14);
//Draw the text.
graphics.DrawString("Hello world!", font, brush, new Syncfusion.Drawing.PointF(20, 20));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Set margin for all the pages
@@ -196,6 +207,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Set margin for all the pages.
@@ -234,6 +248,9 @@ The following code snippet explains how to add more sections to a PDF document w
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Adding-sections-with-different-page-settings/.NET/Adding-sections-with-different-page-settings/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Create a solid brush and standard font
@@ -293,17 +310,18 @@ graphics = page.Graphics;
//Draw simple text on the page
graphics.DrawString("Rotated by 270 degrees", font, brush, new PointF(20, 20));
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
+
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Create a solid brush and standard font
@@ -372,6 +390,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Create a solid brush and standard font
@@ -451,6 +472,9 @@ For example, to use lowercase Roman numerals (i, ii, iii, ...), assign `PdfNumbe
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document.
PdfDocument document = new PdfDocument();
//Add a section to the document.
@@ -484,21 +508,17 @@ for (int i = 0; i < 3; i++)
page.Graphics.DrawString("This is the main content of a page with a footer.", font, PdfBrushes.Black, new PointF(10, 10));
}
-//Create file stream.
-using (FileStream outputFileStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite))
-{
- //Save the PDF document to file stream.
- document.Save(outputFileStream);
-}
-
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new document.
PdfDocument document = new PdfDocument();
//Add a section to the document.
@@ -541,6 +561,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new document.
Dim document As New PdfDocument()
'Add a section to the document.
@@ -592,9 +615,10 @@ You can get page count from the existing PDF document as shown in the following
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Get-number-of-pages-from-PDF-document/.NET/Get-number-of-pages-from-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page count.
int pageCount = loadedDocument.Pages.Count;
//Close the document.
@@ -604,6 +628,8 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page count.
@@ -615,6 +641,8 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page count.
@@ -637,10 +665,11 @@ Essential® PDF allows you to import a page or import a range of p
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Importing-pages-from-one-PDF-to-another-PDF/.NET/Importing-pages-from-one-PDF-to-another-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create a new PDF document.
PdfDocument document = new PdfDocument();
int startIndex = 0;
@@ -648,18 +677,17 @@ int endIndex = loadedDocument.Pages.Count - 1;
//Import all the pages to the new PDF document.
document.ImportPageRange(loadedDocument, startIndex, endIndex);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
-//Close the document instances.
-document.Close(true);
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create a new PDF document.
@@ -679,6 +707,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create a new PDF document.
@@ -710,10 +741,11 @@ N> Performance will be effective only in the large PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Import-pages-from-PDF-without-bookmarks/.NET/Import-pages-from-PDF-without-bookmarks/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-//Load the PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the new PDF document
PdfDocument document = new PdfDocument();
int startIndex = 0;
@@ -721,18 +753,17 @@ int endIndex = loadedDocument.Pages.Count - 1;
//Import all the pages to the new PDF document
document.ImportPageRange(loadedDocument, startIndex, endIndex, false);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-document.Save(stream);
-//Close the document instances
-document.Close(true);
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -754,6 +785,9 @@ System.Diagnostics.Process.Start("Output.pdf");
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Create the new PDF document
@@ -783,22 +817,25 @@ You can rearrange the pages in an existing PDF document using [ReArrange](https:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Rearrange-pages-in-an-existing-PDF-document/.NET/Rearrange-pages-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Rearrange the page by index
-loadedDocument.Pages.ReArrange(new int[] { 1, 0 });//Creating the stream object
-MemoryStream stream = new MemoryStream();
+loadedDocument.Pages.ReArrange(new int[] { 1, 0 });
-//Save the document as stream
-loadedDocument.Save(stream);
-//Close the document
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Rearrange the page by index
@@ -811,6 +848,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Rearrange the page by index
@@ -834,10 +874,11 @@ You can alter the page label for the existing PDF document using [PdfPageLabel](
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Changing-page-numbers-in-a-PDF-document/.NET/Changing-page-numbers-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-//Load the PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Create a page label
PdfPageLabel pageLabel = new PdfPageLabel();
//Set the number style with upper case roman letters
@@ -846,17 +887,16 @@ pageLabel.NumberStyle = PdfNumberStyle.UpperRoman;
pageLabel.StartNumber = 1;
loadedDocument.LoadedPageLabel = pageLabel;
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-loadedDocument.Save(stream);
-//Close the document
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create a page label
@@ -876,6 +916,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create a page label
@@ -905,23 +948,24 @@ You can remove the pages from the existing PDF document using [RemoveAt](https:/
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Remove-pages-from-the-existing-PDF-document/.NET/Remove-pages-from-the-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Remove the first page in the PDF document
loadedDocument.Pages.RemoveAt(0);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-loadedDocument.Save(stream);
-//Close the document.
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Remove the first page in the PDF document
@@ -935,6 +979,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Remove the first page in the PDF document
@@ -958,6 +1005,10 @@ You can rotate a particular PDF page in the PDF document using [PdfPageRotateAng
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Rotating-a-PDF-page/.NET/Rotating-a-PDF-page/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a section.
@@ -975,17 +1026,18 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14);
//Draws the text.
graphics.DrawString("Rotated by 90 degree", font, brush, new Syncfusion.Drawing.PointF(20, 20));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a section.
@@ -1012,6 +1064,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a section.
@@ -1048,24 +1104,27 @@ You can also rotate a PDF page in the existing PDF document using [PdfPageRotate
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Rotate-an-existing-PDF-page/.NET/Rotate-an-existing-PDF-page/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the page
PdfPageBase loadedPage = loadedDocument.Pages[0] as PdfPageBase;
//Set the rotation for loaded page
loadedPage.Rotation = PdfPageRotateAngle.RotateAngle90;
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the document
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the page.
@@ -1082,6 +1141,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Gets the page.
@@ -1108,24 +1170,27 @@ You can find the empty pages from the PDF document using the [IsBlank](https://h
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Pages/Detect-empty-pages-from-PDF/.NET/Detect-empty-pages-from-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the page.
PdfPageBase loadedPage = loadedDocument.Pages[0] as PdfPageBase;
//get the page is blank or not.
bool isEmpty = loadedPage.IsBlank;
-//Save the document into a stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the document.
+//Save and close the document.
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the page.
@@ -1142,6 +1207,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("input.pdf")
'Gets the page.
@@ -1170,28 +1238,30 @@ Essential® PDF allows to split the pages of an existing PDF docum
//Due to platform limitations, Essential® PDF supports splitting a PDF file into individual pages only in Windows Forms, WPF, ASP.NET, and ASP.NET MVC platforms. However this can be achieved by using the following code snippet.
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
-for (int i=0;i® PDF provides support for extracting the files from the PDF Portfolio using [Attachments](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html#Syncfusion_Pdf_Parsing_PdfLoadedDocument_Attachments) property of [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class and saving the files to the disk. The following code sample shows the steps to extract files from PDF Portfolio.
+Files embedded in a PDF portfolio can be extracted using the [Attachments](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html#Syncfusion_Pdf_Parsing_PdfLoadedDocument_Attachments) property of the [PdfLoadedDocument](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) class. Each attachment can be accessed, read, and saved to disk. Metadata such as file name and MIME type can also be retrieved during the extraction process.
+
+The following code demonstrates how to iterate through the attachments in a PDF portfolio.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Portfolio/Extracting-the-files-from-PDF-portfolio/.NET/Extracting-the-files-from-PDF-portfolio/Program.cs" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
-FileStream docStream = new FileStream("Sample.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
-//Iterate the attachments
+// Iterate through all attachments in the PDF document
foreach (PdfAttachment attachment in document.Attachments)
{
- //Extract the attachment and save to the disk
- FileStream s = new FileStream(attachment.FileName, FileMode.Create);
- s.Write(attachment.Data, 0, attachment.Data.Length);
- s.Dispose();
+ // Create a file stream to save the attachment to disk using its original file name
+ using (FileStream s = new FileStream(attachment.FileName, FileMode.Create))
+ {
+ // Write the attachment data to the file
+ s.Write(attachment.Data, 0, attachment.Data.Length);
+ }
+ // Retrieve the MIME type of the attachment (e.g., application/pdf, image/png)
+ string mimeType = attachment.MimeType;
+ Console.WriteLine($"Saved: {attachment.FileName}, MIME Type: {mimeType}");
+ // Optional: Access additional metadata if needed
+ DateTime creationDate = attachment.CreationDate;
+ DateTime modificationDate = attachment.ModificationDate;
+ string description = attachment.Description;
+ PdfAttachmentRelationship relationship = attachment.Relationship;
+ // Log or use the metadata as needed
+ Console.WriteLine($"Description: {description}");
+ Console.WriteLine($"Created on: {creationDate}, Modified on: {modificationDate}");
+ Console.WriteLine($"Relationship: {relationship}");
}
-
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Sample.pdf");
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Sample.pdf");
-//Iterate the attachments
+// Iterate through all attachments in the PDF document
foreach (PdfAttachment attachment in document.Attachments)
{
- //Extract the attachment and save to the disk
- FileStream s = new FileStream(attachment.FileName, FileMode.Create);
- s.Write(attachment.Data, 0, attachment.Data.Length);
- s.Dispose();
+ // Create a file stream to save the attachment to disk using its original file name
+ using (FileStream s = new FileStream(attachment.FileName, FileMode.Create))
+ {
+ // Write the attachment data to the file
+ s.Write(attachment.Data, 0, attachment.Data.Length);
+ }
+ // Retrieve the MIME type of the attachment (e.g., application/pdf, image/png)
+ string mimeType = attachment.MimeType;
+ Console.WriteLine($"Saved: {attachment.FileName}, MIME Type: {mimeType}");
+ // Optional: Access additional metadata if needed
+ DateTime creationDate = attachment.CreationDate;
+ DateTime modificationDate = attachment.ModificationDate;
+ string description = attachment.Description;
+ PdfAttachmentRelationship relationship = attachment.Relationship;
+ // Log or use the metadata as needed
+ Console.WriteLine($"Description: {description}");
+ Console.WriteLine($"Created on: {creationDate}, Modified on: {modificationDate}");
+ Console.WriteLine($"Relationship: {relationship}");
}
-
//Save and close the document
document.Save("Output.pdf");
document.Close(true);
@@ -162,15 +227,31 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document
Dim document As New PdfLoadedDocument("Sample.pdf")
-'Iterate the attachments
+' Iterate through all attachments in the PDF document
For Each attachment As PdfAttachment In document.Attachments
- 'Extracting the attachment and saving into the local disk
- Dim s As New FileStream(attachment.FileName, FileMode.Create)
- s.Write(attachment.Data, 0, attachment.Data.Length)
- s.Dispose()
+ ' Create a file stream to save the attachment to disk using its original file name
+ Using s As New FileStream(attachment.FileName, FileMode.Create)
+ ' Write the attachment data to the file
+ s.Write(attachment.Data, 0, attachment.Data.Length)
+ End Using
+ ' Retrieve the MIME type of the attachment (e.g., application/pdf, image/png)
+ Dim mimeType As String = attachment.MimeType
+ Console.WriteLine($"Saved: {attachment.FileName}, MIME Type: {mimeType}")
+ ' Optional: Access additional metadata if needed
+ Dim creationDate As DateTime = attachment.CreationDate
+ Dim modificationDate As DateTime = attachment.ModificationDate
+ Dim description As String = attachment.Description
+ Dim relationship As PdfAttachmentRelationship = attachment.Relationship
+ ' Log or use the metadata as needed
+ Console.WriteLine($"Description: {description}")
+ Console.WriteLine($"Created on: {creationDate}, Modified on: {modificationDate}")
+ Console.WriteLine($"Relationship: {relationship}")
Next
'Save and close the document
@@ -191,30 +272,24 @@ The following code example illustrates how to remove files from an existing PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Portfolio/Remove-the-files-from-PDF-portfolio/.NET/Remove-the-files-from-PDF-portfolio/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Sample.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Remove the file from the Portfolio
document.Attachments.RemoveAt(0);
-//Save and close the document
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+document.Save("Sample.pdf");
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Sample.pdf");
@@ -229,6 +304,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document
Dim document As New PdfLoadedDocument("Sample.pdf")
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Redaction.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Redaction.md
index 616c54d60..c9ccb547a 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Redaction.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Redaction.md
@@ -24,9 +24,13 @@ The following code example demonstrates the redaction of PDF documents from the
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Removing-sensitive-content-from-the-PDF-document/.NET/Removing-sensitive-content-from-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load the existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
@@ -37,17 +41,19 @@ page.AddRedaction(redaction);
//Redact the contents from the PDF document
document.Redact();
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document
-document.Save(stream);
-//Close the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get first page from the document
@@ -66,6 +72,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load a PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get first page from the document
@@ -96,9 +107,14 @@ The following code example explains how to add overlay text in the redacted area
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Display-text-on-the-redacted-area/.NET/Display-text-on-the-redacted-area/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load the existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
@@ -113,17 +129,20 @@ page.AddRedaction(redaction);
//Redact the contents from the PDF document
document.Redact();
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document
-document.Save(stream);
-//Close the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get first page from the document
@@ -146,6 +165,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load a PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get first page from the document
@@ -180,9 +205,14 @@ The following code example explains how to redact the information from a page by
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Draw-image-on-the-redacted-area-in-PDF-document/.NET/Draw-image-on-the-redacted-area-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load the existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
@@ -196,17 +226,20 @@ page.AddRedaction(redaction);
//Redact the contents from the PDF document
document.Redact();
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document
-document.Save(stream);
-//Close the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get first page from the document
@@ -228,6 +261,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load a PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get first page from the document
@@ -261,9 +300,14 @@ The following code example explains how to redact the information from a page by
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Draw-pattern-on-the-redacted-area-in-PDF-document/.NET/Draw-pattern-on-the-redacted-area-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load the existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
@@ -299,17 +343,19 @@ page.AddRedaction(redaction);
//Redact the contents from the PDF document
document.Redact();
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the documents
-document.Save(stream);
-//Close the documents
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get first page from the document
@@ -354,6 +400,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load a PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get first page from the document
@@ -410,9 +462,13 @@ The following code example explains how to redact the information from a page wi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Fill-color-on-the-redacted-area-in-a-PDF/.NET/Fill-color-on-the-redacted-area-in-a-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load the existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
@@ -425,17 +481,19 @@ page.AddRedaction(redaction);
//Redact the contents from the PDF document
document.Redact();
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document
-document.Save(stream);
-//Close the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get first page from the document
@@ -456,6 +514,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load a PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get first page from the document
@@ -488,9 +552,13 @@ The following code snippet explains how to redact the information from a page wi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Redaction-without-fill-color-and-appearance/.NET/Redaction-without-fill-color-and-appearance/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load the existing PDF document
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
@@ -502,17 +570,19 @@ page.AddRedaction(redaction);
//Redact the contents from the PDF document
document.Redact();
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document
-document.Save(stream);
-//Close the document
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get first page from the document
@@ -531,6 +601,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load a PDF document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get first page from the document
@@ -561,6 +636,11 @@ The following code example demonstrates how to apply a appearance fill color to
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Redaction-fill-color-customization/.NET/Redaction-fill-color-customization/Program.cs" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf;
+using Syncfusion.Drawing;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -593,16 +673,19 @@ annot.SetAppearance(true);
//Add the annotation to the page
page.Annotations.Add(annot);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the PDF document
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf;
+using Syncfusion.Drawing;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -644,6 +727,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf
+Imports System.Drawing
+
' Create a new PDF document
Dim document As PdfDocument = New PdfDocument()
' Create a new page
@@ -696,9 +784,13 @@ The code snippet to illustrate the same is given below.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Get-the-redaction-progress-from-PDF-document/.NET/Get-the-redaction-progress-from-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load an existing PDF document
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -708,11 +800,8 @@ PdfRedaction redaction = new PdfRedaction(new RectangleF(37, 94, 50, 10), System
page.AddRedaction(redaction);
loadedDocument.RedactionProgress += redaction_TrackProgress;
-//Create the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-loadedDocument.Save(stream);
-//Close the document
+//Save and close the PDF document
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
//Event handler for Track redaction process
@@ -725,6 +814,11 @@ void redaction_TrackProgress(object sender, RedactionProgressEventArgs arguments
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Load the first page
@@ -751,6 +845,11 @@ MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % co
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
'Load the first page
@@ -763,8 +862,7 @@ page.Redactions.Add(redaction)
loadedDocument.RedactionProgress += redaction_TrackProgress
'Save the document
-Dim stream As New MemoryStream()
-loadedDocument.Save(stream)
+loadedDocument.Save("Output.pdf")
'Close the document
loadedDocument.Close(True)
@@ -786,9 +884,13 @@ Using [PdfRedactionResult](https://help.syncfusion.com/cr/document-processing/Sy
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Get-the-result-of-redaction-with-other-information/.NET/Get-the-result-of-redaction-with-other-information/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load an existing PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page.
PdfLoadedPage page = loadedDocument.Pages[0];
@@ -807,17 +909,19 @@ else
Console.WriteLine("Content not redacted properly...");
}
-//Create the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-loadedDocument.Save(stream);
-//Close the document
+//Save and close the PDF document
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load an existing PDF document
PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf");
//Load the first page
@@ -847,6 +951,11 @@ lDoc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load an existing PDF
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
'Load the first page
@@ -868,8 +977,7 @@ End If
Next
'Save the document
-Dim stream As New MemoryStream()
-loadedDocument.Save(stream)
+loadedDocument.Save("Output.pdf")
'Close the document
loadedDocument.Close(True)
@@ -889,9 +997,13 @@ The code snippet to illustrate the same is given below.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Redact-text-content-alone-on-the-redated-area/.NET/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load an existing PDF document
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
PdfRedaction redaction = new PdfRedaction(new RectangleF(150, 150, 60, 24), Color.Transparent);
//Only the text within the redaction bounds should be redacted.
redaction.TextOnly = true;
@@ -900,17 +1012,18 @@ foreach (PdfLoadedPage loadedPage in document.Pages)
loadedPage.AddRedaction(redaction);
}
document.Redact();
-//Create the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into stream
-loadedDocument.Save(stream);
-//Close the document
+//Save and close the PDF document
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Redaction;
+
//Load a PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
PdfRedaction redaction = new PdfRedaction(new RectangleF(150, 150, 60, 24), Color.Transparent);
@@ -930,6 +1043,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Redaction
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
'Create PDF redaction for the page
@@ -940,8 +1058,7 @@ For Each loadedPage As PdfLoadedPage In document.Pages
Next
document.Redact()
'Save the document
-Dim stream As New MemoryStream()
-loadedDocument.Save(stream)
+loadedDocument.Save("Output.pdf")
'Close the document
loadedDocument.Close(True)
@@ -962,11 +1079,13 @@ The following code snippet explains how to find text by regular expression patte
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Redaction/Find-text-by-regular-expression-pattern-and-redact-it-from-PDF-document/.NET/Find_text_by_regular_expression/Program.cs" %}
- //Create stream from an existing PDF document.
- FileStream docStream = new FileStream(Path.GetFullPath("Input.pdf"), FileMode.Open, FileAccess.Read);
+ using Syncfusion.Pdf.Parsing;
+ using Syncfusion.Pdf.Redaction;
+ using Syncfusion.Pdf;
+ using System.Text.RegularExpressions;
//Load the existing PDF document.
- PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+ PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document.
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
@@ -1001,17 +1120,19 @@ The following code snippet explains how to find text by regular expression patte
//Redact the contents from the PDF document.
document.Redact();
- //Creating the stream object
- MemoryStream stream = new MemoryStream();
- //Save the document
- document.Save(stream);
- //Close the document
+ //Save and close the PDF document
+ document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf.Parsing;
+ using Syncfusion.Pdf.Redaction;
+ using Syncfusion.Pdf;
+ using System.Text.RegularExpressions;
+
//Load a PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -1052,11 +1173,13 @@ The following code snippet explains how to find text by regular expression patte
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create stream from an existing PDF document.
- Dim docStream As New FileStream(Path.GetFullPath("Input.pdf"), FileMode.Open, FileAccess.Read)
+ Imports Syncfusion.Pdf.Parsing
+ Imports Syncfusion.Pdf.Redaction
+ Imports Syncfusion.Pdf
+ Imports System.Text.RegularExpressions
'Load the existing PDF document.
- Dim document As New PdfLoadedDocument(docStream)
+ Dim document As New PdfLoadedDocument("Input.pdf")
'Get the first page from the document.
Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage)
@@ -1087,10 +1210,8 @@ The following code snippet explains how to find text by regular expression patte
'Redact the contents from the PDF document.
document.Redact()
- 'Creating the stream object
- Dim stream As New MemoryStream()
'Save the document
- document.Save(stream)
+ document.Save("Output.pdf")
'Close the document
document.Close(True)
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md
index 6947d09c0..c4f7837f2 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md
@@ -26,6 +26,11 @@ User password: Prevents people from opening or viewing a PDF document. Once the
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Encrypt-PDF-with-RC4-using-user-password/.NET/Encrypt-PDF-with-RC4-using-user-password/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -46,16 +51,19 @@ security.UserPassword = "password";
//Draw the text.
graphics.DrawString("Encrypted with RC4 128bit", font, brush, new PointF(0, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -84,6 +92,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -124,6 +137,11 @@ Owner password: Sets PDF document restrictions, which can include printing, cont
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Encrypt-PDF-with-RC4-using-owner-password/.NET/Encrypt-PDF-with-RC4-using-owner-password/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -147,16 +165,19 @@ security.UserPassword = "password";
//Draw the text.
graphics.DrawString("This document is protected with owner password", font, brush, new PointF(0, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -188,6 +209,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -229,6 +255,11 @@ You can encrypt PDF document by specifying the [Algorithm](https://help.syncfusi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Encrypt-PDF-with-AES-using-user-password/.NET/Encrypt-PDF-with-AES-using-user-password/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -249,16 +280,19 @@ security.UserPassword = "password";
//Draw the text.
graphics.DrawString("Encrypted with AES 256bit", font, brush, new PointF(0, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -287,6 +321,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -323,6 +362,11 @@ You can protect the PDF document from printing, editing, copying with the [Owner
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Encrypt-PDF-with-AES-using-owner-password/.NET/Encrypt-PDF-with-AES-using-owner-password/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -346,16 +390,19 @@ security.UserPassword = "password";
//Draw the text.
graphics.DrawString("This document is protected with owner password", font, brush, new PointF(0, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -387,6 +434,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -432,6 +484,11 @@ Refer to the following code example for further details.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Secure_data%20_with%20_AES_GCM/.NET/Secure_data%20_with%20_AES_GCM/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -461,17 +518,19 @@ security.Algorithm = PdfEncryptionAlgorithm.AESGCM;
security.OwnerPassword = "ownerPassword";
security.UserPassword = "userPassword";
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -510,6 +569,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
' Create a new PDF document
Dim document As PdfDocument = New PdfDocument()
@@ -570,6 +634,11 @@ You can encrypt all the PDF content by specifying the [EncryptionOptions](https:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Encrypt-all-contents-of-the-PDF-document/.NET/Encrypt-all-contents-of-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -592,16 +661,19 @@ security.UserPassword = "password";
//Draw the text.
graphics.DrawString("Encrypted with AES 256bit", font, brush, new PointF(0, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -632,6 +704,11 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -676,6 +753,11 @@ N> Encrypt all contents except metadata is only supported in AES algorithms wit
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Encrypt-all-contents-except-metadata-of-the-PDF/.NET/Encrypt-all-contents-except-metadata-of-the-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -698,16 +780,19 @@ security.UserPassword = "password";
//Draw the text.
graphics.DrawString("Encrypted all contents except metadata with AES 256bit", font, brush, new PointF(0, 40));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
-document.Close(true);
+//Save and close the document.
+document.Save("Output.pdf");
+document.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -738,6 +823,11 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -782,6 +872,11 @@ N> [UserPassword](https://help.syncfusion.com/cr/document-processing/Syncfusion.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Encrypt-only-attachment-in-the-PDF-document/.NET/Encrypt-only-attachment-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -812,16 +907,19 @@ attachment.MimeType = "application/txt";
//Add the attachment to the document.
document.Attachments.Add(attachment);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Security;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -860,6 +958,11 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Security
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -908,61 +1011,64 @@ The following code example demonstrates how to decrypt a PDF document and restor
{% tabs %}
-{% highlight c# tabtitle="C# [Cross-platform]" %}
+{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Decrypting-encrypted-PDF-document/.NET/Decrypting-encrypted-PDF-document/Program.cs" %}
-using (FileStream inputStream = new FileStream(@"Data/Input.pdf", FileMode.Open, FileAccess.Read))
-{
- // Load the encrypted PDF document from the input stream
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream, "syncfusion");
-
- // Set the document permissions to default (removes any restrictions)
- loadedDocument.Security.Permissions = PdfPermissionsFlags.Default;
-
- // Clear the owner and user passwords to decrypt the document
- loadedDocument.Security.OwnerPassword = string.Empty;
- loadedDocument.Security.UserPassword = string.Empty;
-
- using (FileStream outputStream = new FileStream(@"Output/Output.pdf", FileMode.Create, FileAccess.Write))
- {
- // Save the decrypted PDF document to the output stream
- loadedDocument.Save(outputStream);
- }
- // Close the loaded PDF document and release resources
- loadedDocument.Close(true);
-}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
+ // Load the encrypted PDF document from the input stream
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "syncfusion");
+
+ // Set the document permissions to default (removes any restrictions)
+ loadedDocument.Security.Permissions = PdfPermissionsFlags.Default;
+
+ // Clear the owner and user passwords to decrypt the document
+ loadedDocument.Security.OwnerPassword = string.Empty;
+ loadedDocument.Security.UserPassword = string.Empty;
+
+ //Save and close the document.
+ loadedDocument.Save("Output.pdf");
+ loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read))
-{
- // Load the encrypted PDF document from the input stream
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream, "syncfusion");
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
- // Set the document permissions to default (removes any restrictions)
- loadedDocument.Security.Permissions = PdfPermissionsFlags.Default;
+ // Load the encrypted PDF document from the input stream
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "syncfusion");
- // Clear the owner and user passwords to decrypt the document
- loadedDocument.Security.OwnerPassword = string.Empty;
- loadedDocument.Security.UserPassword = string.Empty;
+ // Set the document permissions to default (removes any restrictions)
+ loadedDocument.Security.Permissions = PdfPermissionsFlags.Default;
- // Save the decrypted PDF document to the output stream
- loadedDocument.Save("Output.pdf");
+ // Clear the owner and user passwords to decrypt the document
+ loadedDocument.Security.OwnerPassword = string.Empty;
+ loadedDocument.Security.UserPassword = string.Empty;
- // Close the loaded PDF document and release resources
- loadedDocument.Close(true);
-}
+ //Save and close the document.
+ loadedDocument.Save("Output.pdf");
+ loadedDocument.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Open the encrypted PDF document using FileStream
-Using inputStream As New FileStream(Path.GetFullPath("Data/Input.pdf"), FileMode.Open, FileAccess.Read)
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
' Load the encrypted PDF document from the input stream with password
- Dim loadedDocument As New PdfLoadedDocument(inputStream, "syncfusion")
+ Dim loadedDocument As New PdfLoadedDocument("Input.pdf", "syncfusion")
' Set the document permissions to default (removes any restrictions)
loadedDocument.Security.Permissions = PdfPermissionsFlags.Default
@@ -977,13 +1083,11 @@ Using inputStream As New FileStream(Path.GetFullPath("Data/Input.pdf"), FileMode
' Close the loaded PDF document and release resources
loadedDocument.Close(True)
-End Using
-
{% endhighlight %}
{% endtabs %}
-You can download a complete working sample from GitHub.
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Security/Decrypting-encrypted-PDF-document/.NET).
## Opening an encrypt-only-attachment document
@@ -1001,11 +1105,11 @@ The following code example explains how to load an encrypt-only-attachment docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Load-an-encrypt-only-attachment-document/.NET/Load-an-encrypt-only-attachment-document/Program.cs" %}
-//Get the stream from an existing PDF document.
-FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
//Load the PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(docStream, "password");
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf", "password");
//Accessing the attachments.
foreach (PdfAttachment attachment in document.Attachments)
@@ -1022,11 +1126,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Get the stream from an existing PDF document.
-FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
//Load the PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(docStream, "password");
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf", "password");
//Accessing the attachments.
foreach (PdfAttachment attachment in document.Attachments)
@@ -1043,11 +1147,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Get the stream from an existing PDF document.
-Dim docStream As New FileStream(Path.GetFullPath("Data/Input.pdf"), FileMode.Open, FileAccess.Read)
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Interactive
' Load the PDF document.
-Dim document As New PdfLoadedDocument(docStream, "password")
+Dim document As New PdfLoadedDocument("Input.pdf", "password")
' Accessing the attachments.
For Each attachment As PdfAttachment In document.Attachments
@@ -1073,11 +1177,11 @@ The following code example illustrates how to provide the password when accessin
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Set-user-password-when-accessing-the-attachment/.NET/Set-user-password-when-accessing-the-attachment/Program.cs" %}
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
//Load the PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
document.OnPdfPassword += Document_OnPdfPassword;
@@ -1104,11 +1208,11 @@ void Document_OnPdfPassword(object sender, OnPdfPasswordEventArgs args)
{% highlight c# tabtitle="C# [Windows-specific]" %}
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
//Load the PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
document.OnPdfPassword += Document_OnPdfPassword;
@@ -1135,11 +1239,11 @@ void Document_OnPdfPassword(object sender, OnPdfPasswordEventArgs args)
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Get stream from an existing PDF document.
-Dim docStream As New FileStream(Path.GetFullPath("Data/Input.pdf"), FileMode.Open, FileAccess.Read)
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Interactive
' Load the PDF document.
-Dim document As New PdfLoadedDocument(docStream)
+Dim document As New PdfLoadedDocument("Input.pdf")
' Add the event handler for PDF password.
AddHandler document.OnPdfPassword, AddressOf Document_OnPdfPassword
@@ -1175,9 +1279,11 @@ N> [UserPassword](https://help.syncfusion.com/cr/document-processing/Syncfusion.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Protect-attachments-in-existing-PDF-document/.NET/Protect-attachments-in-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//PDF document security.
PdfSecurity security = document.Security;
@@ -1189,9 +1295,8 @@ security.UserPassword = "password";
//Specifies encryption option.
security.EncryptionOptions = PdfEncryptionOptions.EncryptOnlyAttachments;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -1199,6 +1304,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -1221,6 +1329,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load the PDF document.
Dim document As New PdfLoadedDocument("Input.pdf")
@@ -1253,9 +1364,11 @@ You can protect an existing PDF document with both [UserPassword](https://help.s
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Protect-an-existing-PDF-document/.NET/Protect-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//PDF document security.
PdfSecurity security = document.Security;
@@ -1266,16 +1379,17 @@ security.Algorithm = PdfEncryptionAlgorithm.AES;
security.OwnerPassword = "ownerPassword256";
security.UserPassword = "userPassword256";
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the document.
+//Save and close the document.
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -1297,6 +1411,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load an existing document.
Dim document As New PdfLoadedDocument("Input.pdf")
@@ -1328,22 +1445,26 @@ You can change the [UserPassword](https://help.syncfusion.com/cr/document-proces
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Change-password-of-the-PDF-document/.NET/Change-password-of-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream, "password");
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "password");
//Change the user password
loadedDocument.Security.UserPassword = "NewPassword";
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the document
+//Save the password changed PDF document.
+loadedDocument.Save("Output.pdf");
+//Close the document.
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the password protected PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf","password");
//Change the user password.
@@ -1358,6 +1479,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load the password protected PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf", "password")
'Change the user password
@@ -1429,22 +1553,25 @@ You can change the permission of the PDF document using the [Permissions](https:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Change-the-permission-of-the-PDF-document/.NET/Change-the-permission-of-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream, "syncfusion");
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "syncfusion");
//Change the permission
loadedDocument.Security.Permissions = PdfPermissionsFlags.CopyContent | PdfPermissionsFlags.AssembleDocument;
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the PDF document
+//Save and Close the PDF document
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the password protected PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "syncfusion");
//Change the permission
@@ -1458,6 +1585,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load the password protected PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf", "syncfusion")
'Change the permission
@@ -1481,22 +1611,25 @@ You can remove the [UserPassword](https://help.syncfusion.com/cr/document-proces
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Remove-password-from-user-password-PDF-document/.NET/Remove-password-from-user-password-PDF-document/Program.cs" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream, "password");
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf", "password");
//Change the user password
loadedDocument.Security.UserPassword = string.Empty;
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the document
+//Save and Close the PDF document
+loadedDocument.Save("Output.pdf");
loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Parsing;
+using Syncfusion.Pdf.Security;
+
//Load the password protected PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf","password");
//Change the user password
@@ -1511,6 +1644,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Parsing
+Imports Syncfusion.Pdf.Security
+
'Load the password protected PDF document
Dim loadedDocument As New PdfLoadedDocument("Input.pdf", "password")
'Change the user password
@@ -1535,11 +1671,13 @@ You can determine whether the existing PDF document is password protected or not
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/Determine-whether-the-PDF-is-protected-or-not/.NET/Determine-whether-the-PDF-is-protected-or-not/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
try
{
//Load the PDF document
- FileStream docStream = new FileStream("Output.pdf", FileMode.Open, FileAccess.Read);
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
}
catch (PdfDocumentException exception)
{
@@ -1553,6 +1691,9 @@ catch (PdfDocumentException exception)
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
try
{
//Load the password protected PDF document without user password
@@ -1570,6 +1711,9 @@ catch (PdfDocumentException exception)
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
Try
'Load the password protected PDF document without user password
Dim loadedDocument As New PdfLoadedDocument("Output.pdf")
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Shapes.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Shapes.md
index 58980f3ae..eb9d8891e 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Shapes.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Shapes.md
@@ -31,6 +31,10 @@ You can draw a polygon in PDF document by using the [DrawPolygon](https://help.s
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-polygon-in-new-PDF-document/.NET/Draw-polygon-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -50,9 +54,8 @@ PointF[] points = { p1, p2, p3, p4, p5 };
//Draw the polygon on PDF document
page.Graphics.DrawPolygon(pen, brush, points);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -60,6 +63,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -87,6 +94,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -122,9 +133,12 @@ The following code snippet explains how to draw a polygon in an existing PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-polygon-in-an-existing-PDF-document/.NET/Draw-a-polygon-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Initialize PdfPen to draw the polygon
@@ -141,9 +155,8 @@ PointF[] points = { p1, p2, p3, p4, p5 };
//Draw the polygon on PDF document
loadedPage.Graphics.DrawPolygon(pen, brush, points);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -151,6 +164,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -178,6 +195,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -215,6 +236,10 @@ You can draw a line in PDF document by using the [DrawLine](https://help.syncfus
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-line-in-new-PDF-document/.NET/Draw-a-line-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -228,9 +253,8 @@ PointF point2 = new PointF(10, 100);
//Draw the line on PDF document
page.Graphics.DrawLine(pen, point1, point2);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -238,6 +262,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -259,6 +287,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -288,12 +320,15 @@ The following code snippet explains how to draw a line in an existing PDF docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-line-in-an-existing-PDF-document/.NET/Draw-a-line-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
-
//Initialize pen to draw the line
PdfPen pen = new PdfPen(PdfBrushes.Black, 5f);
//Create the line points
@@ -302,9 +337,8 @@ PointF point2 = new PointF(10, 100);
//Draw the line on PDF document
loadedPage.Graphics.DrawLine(pen, point1, point2);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -312,6 +346,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -333,6 +372,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -365,6 +409,10 @@ You can draw a curve in PDF document by using the [Draw](https://help.syncfusion
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-curve-in-new-PDF-document/.NET/Draw-a-curve-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -377,9 +425,8 @@ PdfBezierCurve bezier = new PdfBezierCurve(new PointF(0, 0), new PointF(100, 50)
//Draw the bezier curve on PDF document
bezier.Draw(graphics, new PointF(10, 10));
-//Save the PDF document to MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -387,6 +434,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -408,6 +459,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -437,22 +492,25 @@ The following code snippet explains how to draw a curve in an existing PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-curve-in-an-existing-PDF-document/.NET/Draw-a-curve-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Get the graphics of PdfLoadedPage
PdfGraphics graphics = loadedPage.Graphics;
//Create new instance of PdfBezierCurve
-PdfBezierCurve bezier = new PdfBezierCurve(new PointF(0, 0), new PointF(100, 50), new PointF(50, 50), new PointF(100, 100));
+PdfBezierCurve bezier = new PdfBezierCurve(new PointF(0, 0), new PointF(100, 50), new PointF(50, 50), new PointF(100, 100));
//Draw the bezier curve on PDF document
bezier.Draw(graphics, new PointF(10, 10));
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -460,6 +518,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -481,6 +544,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -512,6 +580,10 @@ You can draw a path in PDF document by using the [DrawPath](https://help.syncfus
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-path-in-a-new-PDF-document/.NET/Draw-path-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -527,9 +599,8 @@ path.AddLine(new PointF(100, 200), new PointF(10, 100));
//Draw the PDF path on page
page.Graphics.DrawPath(PdfPens.Black, path);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -537,6 +608,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -561,6 +636,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -593,9 +672,13 @@ The following code snippet explains how to draw path in an existing PDF document
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-path-in-an-existing-PDF-document/.NET/Draw-path-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -609,9 +692,8 @@ path.AddLine(new PointF(100, 200), new PointF(10, 100));
//Draw the PDF path on page
loadedPage.Graphics.DrawPath(PdfPens.Black, path);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -619,6 +701,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -643,6 +730,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -681,6 +773,10 @@ You can draw a rectangle in PDF document by using the [DrawRectangle](https://he
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-rectangle-in-a-new-PDF-document/.NET/Draw-a-rectangle-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -693,9 +789,8 @@ RectangleF bounds = new RectangleF(10, 10, 100, 50);
//Draw the rectangle on PDF document
page.Graphics.DrawRectangle(brush, bounds);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -703,6 +798,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -724,6 +823,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -753,12 +856,16 @@ The following code snippet explains how to draw a rectangle in an existing PDF d
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-rectangle-in-an-existing-PDF-document/.NET/Draw-a-rectangle-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+//Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
+
//Initialize PdfSolidBrush for drawing the rectangle
PdfSolidBrush brush = new PdfSolidBrush(Color.Green);
//Set the bounds for rectangle
@@ -766,9 +873,8 @@ RectangleF bounds = new RectangleF(10, 10, 100, 50);
//Draw the rectangle on PDF document
loadedPage.Graphics.DrawRectangle(brush, bounds);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -776,6 +882,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -797,6 +908,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -828,6 +944,10 @@ You can draw a pie in PDF document by using the [DrawPie](https://help.syncfusio
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-pie-in-new-PDF-document/.NET/Draw-a-pie-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -842,9 +962,8 @@ RectangleF rectangle = new RectangleF(10, 50, 200, 200);
//Draw the pie on PDF document
page.Graphics.DrawPie(pen, PdfBrushes.Green, rectangle, 180, 60);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -852,6 +971,10 @@ document.Close(true);
{% highlight c# tabtitle="C#" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -875,6 +998,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -906,9 +1033,13 @@ The following code snippet explains how to draw a pie in an existing PDF documen
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-pie-in-an-existing-PDF-document/.NET/Draw-a-pie-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -921,16 +1052,20 @@ RectangleF rectangle = new RectangleF(10, 50, 200, 200);
//Draw the pie on PDF document
loadedPage.Graphics.DrawPie(pen, PdfBrushes.Green, rectangle, 180, 60);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the instance of PdfLoadedDocument
-loadedDocument.Close(true);
+//Save the PDF document
+document.Save("Output.pdf");
+//Close the instance of PdfDocument
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -954,6 +1089,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -987,6 +1127,10 @@ You can draw an arc in PDF document by using the [DrawArc](https://help.syncfusi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-an-arc-in-new-PDF-document/.NET/Draw-an-arc-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -1000,9 +1144,8 @@ RectangleF bounds = new RectangleF(20, 40, 200, 200);
//Draw the arc on PDF document
page.Graphics.DrawArc(pen, bounds, 270, 90);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -1010,6 +1153,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -1033,6 +1180,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -1064,9 +1215,13 @@ The following code snippet explains how to draw an arc in an existing PDF docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-an-arc-in-an-existing-PDF-document/.NET/Draw-an-arc-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -1079,9 +1234,8 @@ RectangleF bounds = new RectangleF(20, 40, 200, 200);
//Draw the arc on PDF document
loadedPage.Graphics.DrawArc(pen, bounds, 270, 90);
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -1089,6 +1243,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -1112,6 +1271,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -1145,6 +1309,10 @@ You can draw a bezier in PDF document by using the [DrawBezier](https://help.syn
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-bazier-in-new-PDF-document/.NET/Draw-a-bazier-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -1155,9 +1323,8 @@ PdfPen pen = new PdfPen(PdfBrushes.Brown, 1f);
//Draw the bezier on PDF document
page.Graphics.DrawBezier(pen, new PointF(10, 10), new PointF(10, 50), new PointF(50, 80), new PointF(80, 10));
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -1165,6 +1332,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -1184,6 +1355,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -1211,9 +1386,13 @@ The following code snippet explains how to draw a bezier in an existing PDF docu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-a-bazier-in-an-existing-PDF-document/.NET/Draw-a-bazier-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -1222,9 +1401,8 @@ PdfPen pen = new PdfPen(PdfBrushes.Brown, 1f);
//Draw the bezier on PDF document
loadedPage.Graphics.DrawBezier(pen, new PointF(10, 10), new PointF(10, 50), new PointF(50, 80), new PointF(80, 10));
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -1232,6 +1410,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -1251,6 +1434,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -1280,6 +1468,10 @@ You can draw an ellipse in PDF document by using the [DrawEllipse](https://help.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-an-ellipse-in-new-PDF-document/.NET/Draw-an-ellipse-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -1290,9 +1482,8 @@ PdfSolidBrush brush = new PdfSolidBrush(Color.Red);
//Draw ellipse on the page
page.Graphics.DrawEllipse(brush, new RectangleF(10, 10, 200, 100));
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the PDF document
+document.Save("Output.pdf");
//Close the instance of PdfDocument
document.Close(true);
@@ -1300,6 +1491,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -1319,6 +1514,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -1346,9 +1545,13 @@ The following code snippet explains how to draw an ellipse in an existing PDF do
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-an-ellipse-in-an-existing-PDF-document/.NET/Draw-an-ellipse-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document as stream
-FileStream inputStream = new FileStream("Input.pdf", FileMode.Open);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
+//Load an existing PDF document
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -1357,9 +1560,8 @@ PdfSolidBrush brush = new PdfSolidBrush(Color.Red);
//Draw ellipse on the page
loadedPage.Graphics.DrawEllipse(brush, new RectangleF(10, 10, 200, 100));
-//Saving the PDF to the MemoryStream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the PDF document
+loadedDocument.Save("Output.pdf");
//Close the instance of PdfLoadedDocument
loadedDocument.Close(true);
@@ -1367,6 +1569,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page into PdfLoadedPage
@@ -1386,6 +1593,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the page into PdfLoadedPage
@@ -1415,6 +1627,10 @@ You can also allow large shapes to paginate across pages by assigning ```Paginat
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Draw-large-shapes-across-multiple-pages/.NET/Draw-large-shapes-across-multiple-pages/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create Document
PdfDocument doc = new PdfDocument();
//Add new page
@@ -1432,16 +1648,18 @@ ellipse.Brush = PdfBrushes.Brown;
//Draw ellipse.
ellipse.Draw(page, 20, 20, format);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-//Closes the document
+//Save and close the PDF document
+doc.Save("Shapes.pdf");
doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create Document
PdfDocument doc = new PdfDocument();
//Add new page
@@ -1467,6 +1685,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create Document
Dim doc As New PdfDocument()
'Add new page
@@ -1504,6 +1726,10 @@ The following code example demonstrates applying a dash pattern to a line shape.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Shapes/Dash-pattern-in-shapes/.NET/Dash-pattern-in-shapes/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
// Add a page to the document
@@ -1523,12 +1749,9 @@ dashPen.DashPattern = dashPattern;
// Draw a line with the custom dash pattern
graphics.DrawLine(dashPen, new Syncfusion.Drawing.PointF(10, 10), new PointF(300, 10));
-//Create file stream.
-using (FileStream outputFileStream = new FileStream("Output/Output.pdf", FileMode.Create, FileAccess.ReadWrite))
-{
- //Save the PDF document to file stream.
- document.Save(outputFileStream);
-}
+
+//Save the PDF document to file stream.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -1536,6 +1759,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
// Add a page to the document
@@ -1565,6 +1792,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
' Create a new PDF document
Dim document As New PdfDocument()
' Add a page to the document
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Tagged-PDF.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Tagged-PDF.md
index c85b41ebc..8959a48b1 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Tagged-PDF.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Tagged-PDF.md
@@ -28,6 +28,10 @@ The following code sample explains you how to add tag for the text element in PD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Add-tag-for-the-text-element-in-PDF-document/.NET/Add-tag-for-the-text-element-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -53,23 +57,18 @@ element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
//Draws text
PdfLayoutResult result = element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width, 200));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+doc.Save("Output.pdf");
doc.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -103,6 +102,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates new PDF document
Dim doc As PdfDocument = New PdfDocument()
'Set the document title
@@ -148,6 +151,10 @@ The following code explains how to add tag for image element in PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Add-tag-for-image-element-in-PDF-document/.NET/Add-tag-for-image-element-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -172,23 +179,18 @@ bitmap.PdfTag = imageElement;
//Draw image
bitmap.Draw(page.Graphics, new PointF(50, 20));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+doc.Save("Image.pdf");
doc.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Image.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -218,6 +220,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates new PDF document
Dim doc As PdfDocument = New PdfDocument()
'Set the document title
@@ -259,6 +265,10 @@ The following code explains how to add tag for shape element in the PDF document
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Adding-tag-to-shape-element-in-the-PDF-document/.NET/Adding-tag-to-shape-element-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -284,23 +294,18 @@ line.PdfTag = element;
//Draws the line
line.Draw(page.Graphics);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+doc.Save("Output.pdf");
doc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -331,6 +336,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates new PDF document
Dim doc As PdfDocument = New PdfDocument()
'Set the document title
@@ -373,6 +382,11 @@ The following code explains how to add tag for the form fields in PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Adding-tag-to-form-fields-in-the-PDF-document/.NET/Adding-tag-to-form-fields-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set document information
@@ -395,23 +409,19 @@ textBoxField.ToolTip = "TextBox field";
//Add the form field to the document.
doc.Form.Fields.Add(textBoxField);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+doc.Save("Output.pdf");
doc.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document information
@@ -442,6 +452,11 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
'Creates new PDF document
Dim doc As PdfDocument = New PdfDocument()
'Set the document information
@@ -484,6 +499,10 @@ The following code explains how to add tag for the annotations in PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Adding-tag-to-annotation-in-the-PDF-document/.NET/Adding-tag-to-annotation-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -508,23 +527,18 @@ popupAnnotation.Icon = PdfPopupIcon.NewParagraph;
//Adds this annotation to a new page
page.Annotations.Add(popupAnnotation);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+doc.Save("Output.pdf");
doc.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "PopupAnnotation.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Creates new PDF document
PdfDocument doc = new PdfDocument();
//Set the document title
@@ -558,6 +572,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
'Creates new PDF document
Dim doc As PdfDocument = New PdfDocument()
'Set the document title
@@ -603,6 +621,11 @@ The following code example shows how to add tag for hyperlink in PDF document
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Add-tag-for-hyperlink-in-the-PDF-document/.NET/Add-tag-for-hyperlink-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
document.DocumentInformation.Title = "Link";
@@ -630,24 +653,21 @@ textLink.Brush = PdfBrushes.Blue;
//Draw the hyperlink in PDF page
textLink.DrawTextWebLink(page, new PointF(10, 40));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document
+document.Save("Output.pdf");
+//Close the document
document.Close(true);
fontStream.Dispose();
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
document.DocumentInformation.Title = "Link";
@@ -685,6 +705,11 @@ fontStream.Dispose();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument()
document.DocumentInformation.Title = "Link"
@@ -733,6 +758,10 @@ The following code sample explains how to add tag support for the template eleme
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Add-tags-to-template-in-PDF-document/.NET/Add-tags-to-template-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates a new PDF document
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.DocumentInformation.Title = "TemplateDocument";
@@ -760,23 +789,18 @@ template.Graphics.DrawRectangle(brush, new RectangleF(0, 30, 150, 90));
//Draw the template on the page graphics of the document
pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+pdfDocument.Save("Output.pdf");
pdfDocument.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates a new PDF document
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.DocumentInformation.Title = "TemplateDocument";
@@ -810,6 +834,10 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates a new PDF document
Dim pdfDocument As PdfDocument = New PdfDocument()
pdfDocument.DocumentInformation.Title = "TemplateDocument"
@@ -857,6 +885,11 @@ The following code snippet illustrates how to add tag for table element.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Add-tags-to-table-in-the-PDF-document/.NET/Add-tags-to-table-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Grid;
+
//Creates a new PDF document
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.DocumentInformation.Title = "Table";
@@ -906,23 +939,19 @@ pdfGridRow.Cells[2].PdfTag = new PdfStructureElement(PdfTagType.TableDataCell);
//Draw the PdfGrid
pdfGrid.Draw(pdfPage, PointF.Empty);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+pdfDocument.Save("Output.pdf");
pdfDocument.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Grid;
+
//Creates a new PDF document
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.DocumentInformation.Title = "Table";
@@ -980,6 +1009,11 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Grid
+
'Creates a new PDF document
Dim pdfDocument As PdfDocument = New PdfDocument()
pdfDocument.DocumentInformation.Title = "Table"
@@ -1049,6 +1083,10 @@ The following code example illustrates how to add tag support for list element.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Add-the-tag-to-list-element-in-PDF-document/.NET/Add-the-tag-to-list-element-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Sets document title
@@ -1092,23 +1130,18 @@ for (int i = 0; i < products.Length; i++)
//Draw the list
pdfList.Draw(page, new RectangleF(0, 20, size.Width, size.Height));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save and close the document
+document.Save("Output.pdf");
document.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Sets document title
@@ -1158,6 +1191,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument()
'Sets document title
@@ -1218,6 +1255,10 @@ You can apply tags to nested list elements using the [PdfStructureElement](https
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
@@ -1285,12 +1326,8 @@ mainList.Items[1].SubList = subList;
// Draw the main list, which includes the nested sublist, on the PDF
mainList.Draw(page, new RectangleF(0, 30, size.Width, size.Height));
-//Create file stream.
-using (FileStream outputFileStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite))
-{
- //Save the PDF document to file stream.
- document.Save(outputFileStream);
-}
+//Save the PDF document
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -1298,6 +1335,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
@@ -1374,6 +1415,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
' Create a new PDF document
Dim document As New PdfDocument()
@@ -1465,10 +1510,14 @@ The following code sample demonstrates how to create a well-tagged PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Well-Tagged-PDF/.NET/Well-Tagged-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4);
-//Set Pdf File version 2.0
+//Set PDF File version 2.0
document.FileStructure.Version = PdfVersion.Version2_0;
//Set true to auto tag all elements in document
@@ -1499,21 +1548,23 @@ textElement.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
// Draw text element with tag
textElement.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width, 200));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document
+document.Save("Output.pdf");
//Closes the document
-document.Close(true);
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4);
-//Set Pdf File version 2.0
+//Set PDF File version 2.0
document.FileStructure.Version = PdfVersion.Version2_0;
//Set true to auto tag all elements in document
@@ -1553,10 +1604,14 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates new PDF document
Dim doc As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A4)
-'Set Pdf File version 2.0
+'Set PDF File version 2.0
doc.FileStructure.Version = PdfVersion.Version2_0
'Set true to auto tag all elements in document
@@ -1608,10 +1663,14 @@ The following code sample demonstrates how to create a PDF with Universal Access
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/PDF-for-Universal-Accessibility/.NET/PDF-for-Universal-Accessibility/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
-//Set Pdf File version 2.0
+//Set PDF File version 2.0
document.FileStructure.Version = PdfVersion.Version2_0;
//Set true to auto tag all elements in document
@@ -1640,21 +1699,23 @@ textElement.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
// Draw text element with tag
textElement.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width, 200));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document
+document.Save("Output.pdf");
//Closes the document
-document.Close(true);
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
-//Set Pdf File version 2.0
+//Set PDF File version 2.0
document.FileStructure.Version = PdfVersion.Version2_0;
//Set true to auto tag all elements in document
@@ -1692,10 +1753,14 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates new PDF document
Dim doc As PdfDocument = New PdfDocument()
-'Set Pdf File version 2.0
+'Set PDF File version 2.0
doc.FileStructure.Version = PdfVersion.Version2_0
'Set true to auto tag all elements in document
@@ -1745,6 +1810,10 @@ The following code explains how to add tag for header and footers in the PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Add-tags-for-header-and-footer-in-the-PDF-document/.NET/Add-tags-for-header-and-footer-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document
@@ -1786,23 +1855,18 @@ compositeField.Draw(footer.Graphics, new PointF(470, 40));
//Add the footer template at the bottom
pdfDocument.Template.Bottom = footer;
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+pdfDocument.Save("HeaderFooter.pdf");
pdfDocument.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "HeaderFooter.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document
@@ -1850,6 +1914,10 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates new PDF document
Dim pdfDocument As PdfDocument = New PdfDocument()
'Add a page to the PDF document
@@ -1909,6 +1977,10 @@ The following code example illustrates how to order the tagged elements in a PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Order-the-tagged-elements-in-a-PDF-document/.NET/Order-the-tagged-elements-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Sets document title
@@ -1951,23 +2023,18 @@ element2.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
element2.PdfTag = paraStruct2;
element2.Draw(page.Graphics, new PointF(0, 100));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Sets document title
@@ -2019,6 +2086,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument()
'Sets document title
@@ -2083,6 +2154,10 @@ N> Enabling the auto-tag feature will never add alternate texts/descriptions for
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Auto-tag-the-elements-in-a-PDF-document/.NET/Auto-tag-the-elements-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument document = new PdfDocument();
//Set true to auto tag all elements in document
@@ -2106,23 +2181,18 @@ PdfTextElement element2 = new PdfTextElement("This is paragraph THREE.", new Pdf
element2.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
element2.Draw(page.Graphics, new PointF(0, 100));
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document and dispose it
+document.Save("Output.pdf");
document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "AutoTag.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates new PDF document
PdfDocument document = new PdfDocument();
//Set true to auto tag all elements in document
@@ -2154,6 +2224,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Creates new PDF document
Dim document As PdfDocument = New PdfDocument()
'Set true to auto tag all elements in document
@@ -2212,10 +2286,12 @@ The following code sample shows how to preserve document structured tags in the
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Converting-word-document-to-Tagged-PDF/.NET/Converting-word-document-to-Tagged-PDF/Program.cs" %}
-//Open the file as Stream
-FileStream docStream = new FileStream(@"D:\Template.docx", FileMode.Open, FileAccess.Read);
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocIORenderer;
+using Syncfusion.Pdf;
+
//Loads file stream into Word document
-WordDocument wordDocument = new WordDocument(docStream, Syncfusion.DocIO.FormatType.Automatic);
+WordDocument wordDocument = new WordDocument("Template.docx", Syncfusion.DocIO.FormatType.Automatic);
//Instantiation of DocIORenderer for Word to PDF conversion
DocIORenderer render = new DocIORenderer();
@@ -2225,19 +2301,20 @@ render.Settings.AutoTag = true;
//Converts Word document into PDF document
PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);
-//Releases all resources used by the Word document and DocIO Renderer objects
-render.Dispose();
-wordDocument.Dispose();
-//Saves the PDF file
-MemoryStream outputStream = new MemoryStream();
-pdfDocument.Save(outputStream);
-//Closes the instance of PDF document object
-pdfDocument.Close();
+//Saves the PDF file to file system
+pdfDocument.Save("WordtoPDF.pdf");
+//Closes the instance of document objects
+pdfDocument.Close(true);
+wordDocument.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.DocIO.DLS;
+using Syncfusion.DocIORenderer;
+using Syncfusion.Pdf;
+
//Loads an existing Word document
WordDocument wordDocument = new WordDocument("Sample.docx", FormatType.Docx);
@@ -2259,6 +2336,10 @@ wordDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.DocIO.DLS
+Imports Syncfusion.DocIORenderer
+Imports Syncfusion.Pdf
+
'Loads an existing Word document
Dim wordDocument As New WordDocument("Sample.docx", FormatType.Docx)
@@ -2304,6 +2385,10 @@ The following code sample demonstrates how to create custom role mapping documen
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Tagged%20PDF/Custom-Role-Mapping/.NET/Custom-Role-Mapping/Program.cs" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using Syncfusion.Drawing;
+
// Create a new PDF document
PdfDocument doc = new PdfDocument();
@@ -2344,10 +2429,8 @@ element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
// Draw text on the page
PdfLayoutResult result = element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width, 200));
-// Save the document into a memory stream (Cross-platform compatibility)
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-stream.Position = 0; // Reset stream position for further processing if needed
+// Save the document
+doc.Save("Output.pdf");
// Close the document to release resources
doc.Close(true);
@@ -2355,6 +2438,10 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using System.Drawing;
+
// Create a new PDF document
PdfDocument doc = new PdfDocument();
@@ -2405,6 +2492,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
' Create a new PDF document
Dim doc As New PdfDocument()
@@ -2464,10 +2555,13 @@ You can extract the existing tag details by using the [StructureElement](https:/
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Get the stream from the document.
-FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using System.Drawing;
+
//Load the existing PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the structure element root from the document.
PdfStructureElement rootElement = document.StructureElement;
//Get the child elements for the element.
@@ -2493,6 +2587,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using System.Drawing;
+
//Load the existing PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the structure element root from the document.
@@ -2522,6 +2621,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document.
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the structure element root from the document.
@@ -2557,10 +2661,13 @@ You can also extract the accessibility tags page-wise with the help of the [Stru
{% highlight c# tabtitle="C# [Cross-platform]" %}
-//Get the stream from the document.
-FileStream documentStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using System.Drawing;
+
//Load the existing PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(documentStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document.
PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage;
//Get the structure elements associated with the page.
@@ -2590,6 +2697,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+using System.Drawing;
+
//Load the existing PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the first page from the document.
@@ -2622,6 +2734,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document.
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Get the first page from the document.
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md
index 2c4e45eef..5f0638fb1 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md
@@ -22,10 +22,11 @@ The following code snippet explains how to extract the texts from a page.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text%20Extraction/Extract-the-texts-from-a-page-in-the-PDF-document/.NET/Extract-the-texts-from-a-page-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Sample.pdf", FileMode.Open, FileAccess.Read);
-//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page.
PdfPageBase page = loadedDocument.Pages[0];
@@ -38,8 +39,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the first page.
PdfPageBase page = loadedDocument.Pages[0];
@@ -52,8 +56,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the first page.
Dim page As PdfPageBase = loadedDocument.Pages(0)
@@ -78,10 +85,11 @@ The below code illustrates how to extract the text from entire PDF document:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text%20Extraction/Extract-text-from-the-entire-PDF-document/.NET/Extract-text-from-the-entire-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Sample.pdf", FileMode.Open, FileAccess.Read);
-//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Loading page collections
PdfLoadedPageCollection loadedPages = loadedDocument.Pages;
@@ -98,8 +106,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
// Load an existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Loading page collections
PdfLoadedPageCollection loadedPages = loadedDocument.Pages;
@@ -116,8 +127,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
' Load an existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
' Loading page collections
Dim loadedPages As PdfLoadedPageCollection = loadedDocument.Pages
@@ -145,10 +159,11 @@ Please refer the following code snippet to extract the text with layout.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text%20Extraction/Extract-the-text-with-layout-in-a-PDF-document/.NET/Extract-the-text-with-layout-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Sample.pdf", FileMode.Open, FileAccess.Read);
-//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load first page.
PdfPageBase page = loadedDocument.Pages[0];
@@ -157,9 +172,8 @@ string extractedTexts = page.ExtractText(true);
//Close the document.
loadedDocument.Close(true);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document
+loadedDocument.Save("Output.pdf");
//Closes the document
loadedDocument.Close(true);
@@ -167,8 +181,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load first page.
PdfPageBase page = loadedDocument.Pages[0];
@@ -181,15 +198,20 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-//Load an existing PDF.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
-//Load first page.
-PdfPageBase page = loadedDocument.Pages[0];
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
-//Extract text from first page.
-string extractedTexts = page.ExtractText(true);
-//close the document
-loadedDocument.Close(true);
+' Load an existing PDF
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
+
+' Load the first page
+Dim page As PdfPageBase = loadedDocument.Pages(0)
+
+' Extract text from the first page
+Dim extractedTexts As String = page.ExtractText(True)
+
+' Close the document
+loadedDocument.Close(True)
{% endhighlight %}
@@ -211,8 +233,11 @@ You can get the line and its properties that contains texts by using [TextLine](
//PDF supports getting the lines and its properties using TextLine only in WinForms, WPF and Xamarin platforms. Instead of TextLine, TextLineCollection can be used in ASP.NET Core.
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
// Load the existing PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Get the first page of the loaded PDF document
PdfPageBase page = loadedDocument.Pages[0];
var lineCollection = new TextLineCollection();
@@ -232,8 +257,11 @@ foreach (var line in lineCollection.TextLine)
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
// Load the existing PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Get the first page of the loaded PDF document
PdfPageBase page = loadedDocument.Pages[0];
TextLines lineCollection = new TextLines();
@@ -250,8 +278,12 @@ string text = line.Text;
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
' Load the existing PDF document
-Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(fileName)
+Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
' Get the first page of the loaded PDF document
Dim page As PdfPageBase = loadedDocument.Pages(0)
Dim lineCollection As TextLines = New TextLines()
@@ -281,8 +313,12 @@ You can get the single word and its properties by using [TextWord](https://help.
//PDF supports getting the word and its properties using TextWord only in WinForms, WPF and Xamarin platforms. Instead of TextLine, TextLineCollection can be used in ASP.NET Core.
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
// Load the existing PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Get the first page of the loaded PDF document
PdfPageBase page = loadedDocument.Pages[0];
var lineCollection = new TextLineCollection();
@@ -304,8 +340,12 @@ foreach (var line in lineCollection.TextLine)
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
// Load the existing PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Get the first page of the loaded PDF document
PdfPageBase page = loadedDocument.Pages[0];
TextLines lineCollection = new TextLines();
@@ -325,8 +365,12 @@ List textWordCollection = line.WordCollection;
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports System.Drawing
+
' Load the existing PDF document
-Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(fileName)
+Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
' Get the first page of the loaded PDF document
Dim page As PdfPageBase = loadedDocument.Pages(0)
Dim lineCollection As TextLines = New TextLines()
@@ -356,8 +400,12 @@ You can retrieve a single character and its properties, including bounds, font n
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text%20Extraction/Get-text-glyph-details-from-extract-text/.NET/Get-text-glyph-details-from-extract-text/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
// Load the existing PDF document
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Get the first page of the loaded PDF document
PdfPageBase page = loadedDocument.Pages[0];
TextLineCollection lineCollection = new TextLineCollection();
@@ -393,8 +441,12 @@ Color glyphColor = textGlyph.TextColor;
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+Imports System.Drawing
+
' Load the existing PDF document
-Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(stream)
+Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
' Get the first page of the loaded PDF document
Dim page As PdfPageBase = loadedDocument.Pages(0)
Dim lineCollection As New TextLineCollection()
@@ -441,9 +493,11 @@ The code example provided below demonstrates the utilization of the [FindText](h
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Find-text-in-PDF-document/.NET/Find-text-in-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Returns page number and rectangle positions of the text maches.
Dictionary> matchRects = new Dictionary>();
loadedDocument.FindText("document", out matchRects);
@@ -454,6 +508,9 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Returns page number and rectangle positions of the text maches.
@@ -466,6 +523,9 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Parsing
+
'Load an existing PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Returns page number and rectangle positions of the text maches.
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text.md
index 864810cdb..bbc38ad9b 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text.md
@@ -20,6 +20,10 @@ You can add text in the new PDF document by using [DrawString](https://help.sync
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Drawing-text-in-a-new-PDF-document/.NET/Drawing-text-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -32,17 +36,18 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream.
-document.Save(stream);
-//Close the document.
+//Save the document and dispose it
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -64,6 +69,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -98,6 +107,10 @@ Please refer to the below code example to understand how to save and restore the
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/refs/heads/master/Text/Saving-and-Restoring-the-PdfGraphics/.NET/Saving-and-Restoring-the-PdfGraphics/Saving-and-Restoring-the-PdfGraphics/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document
using (PdfDocument pdfDocument = new PdfDocument())
{
@@ -116,11 +129,8 @@ using (PdfDocument pdfDocument = new PdfDocument())
graphics.Restore();
// Draw text that is not influenced by transformations
graphics.DrawString("This text is not rotated.", font, PdfBrushes.Black, new PointF(0, 100));
- using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
- {
- //Save the PDF document to file stream.
- pdfDocument.Save(outputFileStream);
- }
+ // Save the document to a file
+ pdfDocument.Save("Output.pdf");
}
@@ -128,6 +138,10 @@ using (PdfDocument pdfDocument = new PdfDocument())
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
// Create a new PDF document
using (PdfDocument pdfDocument = new PdfDocument())
{
@@ -153,6 +167,11 @@ using (PdfDocument pdfDocument = new PdfDocument())
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Pdf.Graphics
+ Imports System.Drawing
+
' Create a PDF document
Using pdfDocument As New PdfDocument()
' Add Pages to the document
@@ -171,8 +190,9 @@ using (PdfDocument pdfDocument = new PdfDocument())
graphics.Restore()
' Draw text that is not influenced by transformations
graphics.DrawString("This text is not rotated.", font, PdfBrushes.Black, New PointF(0, 100))
- ' Save the document to a file
+ ' Save and close the document to a file
pdfDocument.Save("Output.pdf")
+ pdfDocument.Close(True)
{% endhighlight %}
@@ -190,9 +210,13 @@ The following code snippet illustrates how to add text in the existing PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Draw-text-in-an-existing-PDF-document/.NET/Draw-text-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument doc = new PdfLoadedDocument(docStream);
+PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
//Get first page from document.
PdfLoadedPage page = doc.Pages[0] as PdfLoadedPage;
//Create PDF graphics for the page.
@@ -203,10 +227,8 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream.
-doc.Save(stream);
+//Save the document.
+doc.Save("Output.pdf");
//Close the document.
doc.Close(true);
@@ -214,6 +236,11 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load a PDF document.
PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf");
//Get first page from document.
@@ -235,6 +262,11 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+Imports Syncfusion.Pdf.Parsing
+
'Load a PDF document.
Dim doc As New PdfLoadedDocument("input.pdf")
'Get first page from document
@@ -278,6 +310,10 @@ You can add text using the standard PDF fonts, by initializing [PdfFont](https:/
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Draw-text-in-PDF-document-using-standard-fonts/.NET/Draw-text-in-PDF-document-using-standard-fonts/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -290,17 +326,18 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream.
-document.Save(stream);
-//Close the document.
+//Save the document and dispose it
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -322,6 +359,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -345,14 +386,38 @@ document.Close(True)
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Text/Draw-text-in-PDF-document-using-standard-fonts/).
-### Draw text using TrueType fonts
+### Draw Text using TrueType fonts
-You can add text using the TrueType fonts installed in the system, by initializing [PdfFont](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfFont.html) class as [PdfTrueTypeFont](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfTrueTypeFont.html) class. The following code snippet illustrates this.
+You can add text using TrueType fonts either installed on the system or provided as a font stream by initializing the [PdfFont](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfFont.html) class as a [PdfTrueTypeFont](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfTrueTypeFont.html). The following code Example demonstrates this approach.
{% tabs %}
+{% highlight c# tabtitle="C# [Cross-platform]" %}
+
+//Create a new PDF document.
+PdfDocument document = new PdfDocument();
+//Add a page to the document.
+PdfPage page = document.Pages.Add();
+
+//Create PDF graphics for the page.
+PdfGraphics graphics = page.Graphics;
+//Provide the path of the local *.ttf file
+PdfFont font = new PdfTrueTypeFont("Arial.ttf", 14);
+//Draw the text.
+graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0));
+
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
+document.Close(true);
+
+{% endhighlight %}
+
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -374,6 +439,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -401,6 +469,9 @@ You can add text using the font file from local file system by providing the pat
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Draw-text-in-a-PDF-using-TrueType-fonts/.NET/Draw-text-in-a-PDF-using-TrueType-fonts/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -409,22 +480,21 @@ PdfPage page = document.Pages.Add();
//Create PDF graphics for the page.
PdfGraphics graphics = page.Graphics;
//Load the TrueType font from the local *.ttf file.
-FileStream fontStream = new FileStream("Arial.ttf", FileMode.Open, FileAccess.Read);
-PdfFont font = new PdfTrueTypeFont(fontStream, 14);
+PdfFont font = new PdfTrueTypeFont("Arial.ttf", 14);
//Draw the text.
graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream.
-document.Save(stream);
-//Close the document.
+//Save the document and dispose it
+document.Save("Output.pdf");
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -446,6 +516,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -477,6 +550,9 @@ You can add text using CJK fonts, initializing [PdfFont](https://help.syncfusion
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Draw-text-in-a-PDF-using-CJK-fonts/.NET/Draw-text-in-a-PDF-using-CJK-fonts/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -489,10 +565,8 @@ PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20);
//Draw the text.
graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -500,6 +574,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -521,6 +598,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -552,6 +632,10 @@ The Essential® PDF allows you to measure the size of a string whi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Measure-the-text-in-PDF-document/.NET/Measure-the-text-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create the new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -567,17 +651,19 @@ SizeF size = font.MeasureString(text);
//Draw string to th ePDF page
graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-document.Save(stream);
-//Close the document
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create the new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -602,6 +688,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create the new PDF document
Dim document As New PdfDocument()
'Add a page to the document
@@ -639,13 +729,15 @@ Refer to the following code example for further information.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Measure-tilting-space-in-PDF/.NET/Measure-tilting-space-in-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
PdfDocument document = new PdfDocument();
//Add a page to the document
PdfPage page = document.Pages.Add();
-// Load the font file from the stream
-FileStream fontStream = new FileStream(@"../../../arial.ttf", FileMode.Open, FileAccess.Read);
//Create a new PDF font instance
-PdfFont font = new PdfTrueTypeFont(fontStream, 14, PdfFontStyle.Italic);
+PdfFont font = new PdfTrueTypeFont("arial.ttf", 14, PdfFontStyle.Italic);
//Create a new PDF string format instance
PdfStringFormat format = new PdfStringFormat();
//Enable the measure tilting space
@@ -655,18 +747,20 @@ string text = "Hello World!";
SizeF size = font.MeasureString(text, format);
//Draw the text to the PDF document.
page.Graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(0, 0, size.Width, size.Height));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document as stream
-document.Save(stream);
-//Close the document
-document.Close(true);
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
- //Create a new PDF document
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
+//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
PdfPage page = document.Pages.Add();
@@ -690,14 +784,16 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create the new PDF document
Dim document As PdfDocument = New PdfDocument()
'Add a page to the document
Dim page As PdfPage = document.Pages.Add()
-'Load the font file from the stream
-Dim fontStream As FileStream = New FileStream("font.ttf", FileMode.Open, FileAccess.Read)
'Create a new PDF font instance
-Dim font As PdfFont = New PdfTrueTypeFont(fontStream, 14, PdfFontStyle.Italic)
+Dim font As PdfFont = New PdfTrueTypeFont("font.ttf", 14, PdfFontStyle.Italic)
'Create a new PDF string format instance
Dim format As PdfStringFormat = New PdfStringFormat()
'Enable a measure tilting space
@@ -707,9 +803,8 @@ Dim text As String = "Hello World!"
Dim size As SizeF = font.MeasureString(text, format)
'Draw the text to the PDF document.
page.Graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(0, 0, size.Width, size.Height))
-Dim stream As MemoryStream = New MemoryStream()
-Save the document as stream
-document.Save(stream)
+Save the document
+document.Save("Output.pdf")
Close the document
document.Close(True)
@@ -719,6 +814,166 @@ document.Close(True)
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Text/Measure-tilting-space-in-PDF/.NET).
+## Unit conversion in text layout
+
+The [PdfUnitConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfUnitConvertor.html) class is used to accurately position and layout paragraph text within a PDF document. By converting measurements from inches to points, it ensures consistent margins and precise placement of content.
+
+This example demonstrates how to use converted units to accurately position and format paragraph text within a PDF document.
+
+{% tabs %}
+
+{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Unit-conversion-in-text-layout/.NET/Unit-conversion-in-text-layout/Program.cs" %}
+
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
+// Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ // Add a page
+ PdfPage page = document.Pages.Add();
+
+ // Initialize unit converter
+ PdfUnitConverter converter = new PdfUnitConverter();
+
+ // Convert margins from inches to points
+ float margin = converter.ConvertUnits(1f, PdfGraphicsUnit.Inch, PdfGraphicsUnit.Point);
+
+ // Define text bounds to fill the page with margins
+ RectangleF textBounds = new RectangleF(
+ margin,
+ margin,
+ page.Graphics.ClientSize.Width - 2 * margin,
+ page.Graphics.ClientSize.Height - 2 * margin
+ );
+
+ // Define font and paragraph text
+ PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14);
+
+ string paragraphText = "Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base.";
+
+ // Create text element and layout format
+ PdfTextElement textElement = new PdfTextElement(paragraphText, font, PdfBrushes.Black);
+
+ PdfLayoutFormat layoutFormat = new PdfLayoutFormat
+ {
+ Break = PdfLayoutBreakType.FitPage,
+ Layout = PdfLayoutType.Paginate
+ };
+
+ // Draw the paragraph text within the bounds
+ textElement.Draw(page, textBounds, layoutFormat);
+
+ //Save the document
+ document.Save("Output.pdf");
+}
+
+{% endhighlight %}
+
+{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
+// Create a new PDF document
+using (PdfDocument document = new PdfDocument())
+{
+ // Add a page
+ PdfPage page = document.Pages.Add();
+
+ // Initialize unit converter
+ PdfUnitConverter converter = new PdfUnitConverter();
+
+ // Convert margins from inches to points
+ float margin = converter.ConvertUnits(1f, PdfGraphicsUnit.Inch, PdfGraphicsUnit.Point);
+
+ // Define text bounds to fill the page with margins
+ RectangleF textBounds = new RectangleF(
+ margin,
+ margin,
+ page.Graphics.ClientSize.Width - 2 * margin,
+ page.Graphics.ClientSize.Height - 2 * margin
+ );
+
+ // Define font and paragraph text
+ PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14);
+
+ string paragraphText = "Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base.";
+
+ // Create text element and layout format
+ PdfTextElement textElement = new PdfTextElement(paragraphText, font, PdfBrushes.Black);
+
+ PdfLayoutFormat layoutFormat = new PdfLayoutFormat
+ {
+ Break = PdfLayoutBreakType.FitPage,
+ Layout = PdfLayoutType.Paginate
+ };
+
+ // Draw the paragraph text within the bounds
+ textElement.Draw(page, textBounds, layoutFormat);
+
+ //Save the document
+ document.Save("Output.pdf");
+}
+
+{% endhighlight %}
+
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
+Module Program
+ Sub Main()
+ ' Create a new PDF document
+ Using document As New PdfDocument()
+
+ ' Add a page
+ Dim page As PdfPage = document.Pages.Add()
+
+ ' Initialize unit converter
+ Dim converter As New PdfUnitConverter()
+
+ ' Convert 1 inch margin to points
+ Dim margin As Single = converter.ConvertUnits(1.0F, PdfGraphicsUnit.Inch, PdfGraphicsUnit.Point)
+
+ ' Define text bounds to fill the page with margins
+ Dim textBounds As New RectangleF(
+ margin,
+ margin,
+ page.Graphics.ClientSize.Width - 2 * margin,
+ page.Graphics.ClientSize.Height - 2 * margin
+ )
+
+ ' Define font and paragraph text
+ Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 14)
+ Dim paragraphText As String = "Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base."
+
+ ' Create text element and layout format
+ Dim textElement As New PdfTextElement(paragraphText, font, PdfBrushes.Black)
+ Dim layoutFormat As New PdfLayoutFormat With {
+ .Break = PdfLayoutBreakType.FitPage,
+ .Layout = PdfLayoutType.Paginate
+ }
+
+ text within the bounds
+ textElement.Draw(page, textBounds, layoutFormat)
+
+ ' Save the document
+ document.Save("Output.pdf")
+ End Using
+ End Sub
+End Module
+
+{% endhighlight %}
+
+{% endtabs %}
+
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Text/Unit-conversion-in-text-layout/.NET).
+
## Embedding fonts and working with Unicode text
To embed a font or display Unicode text in the document, the ‘Unicode’ Boolean parameter of the [PdfTrueTypeFont](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfTrueTypeFont.html#Syncfusion_Pdf_Base__ctor) constructor has to be set to true. The following code illustrates the same.
@@ -735,6 +990,10 @@ N> To render a Unicode text in the PDF document the chosen font should have the
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -760,6 +1019,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
@@ -795,6 +1058,10 @@ The Essential® PDF allows you to draw the right-to-left language
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Draw-Right-To-Left-text-in-a-PDF-document/.NET/Draw-Right-To-Left-text-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -803,8 +1070,7 @@ PdfPage page = doc.Pages.Add();
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
//Create a new PDF font instance
-FileStream fontStream = new FileStream("arial.ttf", FileMode.Open, FileAccess.Read);
-PdfFont font = new PdfTrueTypeFont(fontStream, 14);
+PdfFont font = new PdfTrueTypeFont("arial.ttf", 14);
//Set the format for string
PdfStringFormat format = new PdfStringFormat();
//Set right-to-left text direction for RTL text
@@ -814,8 +1080,7 @@ format.Alignment = PdfTextAlignment.Right;
format.ParagraphIndent = 35f;
//Read the text from file
-FileStream rtlText = new FileStream("Arabic.txt", FileMode.Open, FileAccess.Read);
-StreamReader reader = new StreamReader(rtlText, Encoding.Unicode);
+StreamReader reader = new StreamReader("Arabic.txt", Encoding.Unicode);
string text = reader.ReadToEnd();
reader.Dispose();
//Draw string with right-to-left format
@@ -827,10 +1092,8 @@ format.Alignment = PdfTextAlignment.Left;
//Draw string with left-to-right format
graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(0, 100, page.GetClientSize().Width, page.GetClientSize().Height), format);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-doc.Save(stream);
+//Save the document
+doc.Save("Output.pdf");
//Close the document
doc.Close(true);
@@ -838,6 +1101,10 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -877,6 +1144,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document
Dim doc As PdfDocument = New PdfDocument()
'Add a page to the document
@@ -977,6 +1248,10 @@ The following code example illustrates how to render the HTML string in a PDF do
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Adding-HTML-styled-text-to-PDF-document/.NET/Adding-HTML-styled-text-to-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -997,16 +1272,19 @@ format.Break = PdfLayoutBreakType.FitPage;
//Draw htmlString.
richTextElement.Draw(page, new RectangleF(0, 20, page.GetClientSize().Width, page.GetClientSize().Height), format);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-//Close the document
+//Save the document
+doc.Save("Output.pdf");
+//Close the document
doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page to the document.
@@ -1038,6 +1316,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim doc As New PdfDocument()
'Add a page to the document.
@@ -1078,6 +1360,9 @@ Essential® PDF allows you to create multi-column text in PDF docu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Creating-a-multicolumn-PDF-document/.NET/Creating-a-multicolumn-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a PDF document instance
PdfDocument document = new PdfDocument();
//Add page to the document
@@ -1094,10 +1379,8 @@ textElement = new PdfTextElement(text, new PdfStandardFont(PdfFontFamily.TimesRo
//Draw the text in the second column
textElement.Draw(page, new RectangleF(page.GetClientSize().Width / 2, 0, page.GetClientSize().Width / 2, page.GetClientSize().Height));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -1105,6 +1388,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a PDF document instance
PdfDocument document = new PdfDocument();
//Add page to the document
@@ -1129,6 +1415,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a PDF document instance
Dim document As New PdfDocument()
'Add page to the document
@@ -1165,6 +1454,9 @@ The following code example demonstrates how to add elements relatively and also
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Add-text-across-multiple-pages/.NET/Add-text-across-multiple-pages/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a PDF document instance
PdfDocument document = new PdfDocument();
//Add page to the document
@@ -1173,8 +1465,7 @@ PdfPage page = document.Pages.Add();
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
//Read the long text from the text file
-FileStream inputStream = new FileStream("Input.txt", FileMode.Open, FileAccess.Read);
-StreamReader reader = new StreamReader(inputStream, Encoding.ASCII);
+StreamReader reader = new StreamReader("Input.txt", Encoding.ASCII);
string text = reader.ReadToEnd();
reader.Dispose();
const int paragraphGap = 10;
@@ -1188,10 +1479,8 @@ PdfLayoutResult result = textElement.Draw(page, new RectangleF(0, 0, page.GetCli
//Draw the second paragraph from the first paragraph end position
result = textElement.Draw(page, new RectangleF(0, result.Bounds.Bottom + paragraphGap, page.GetClientSize().Width / 2, page.GetClientSize().Height), layoutFormat);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -1199,6 +1488,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a PDF document instance
PdfDocument document = new PdfDocument();
//Add page to the document
@@ -1230,6 +1522,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+
'Create a PDF document instance
Dim document As New PdfDocument()
'Add page to the document
@@ -1280,6 +1575,10 @@ The following code example illustrates how to insert RTF text in PDF document.
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page.
@@ -1307,6 +1606,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim doc As New PdfDocument()
'Add a page.
@@ -1345,6 +1648,10 @@ Essential® PDF allows you to create an ordered list in the docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Adding-an-ordered-list-to-PDF-document/.NET/Adding-an-ordered-list-to-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new instance of PdfDocument class.
PdfDocument document = new PdfDocument();
//Add a new page to the document.
@@ -1374,10 +1681,8 @@ foreach (string s in products)
}
pdfList.Draw(page, new RectangleF(0, 20, size.Width, size.Height));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -1385,6 +1690,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new instance of PdfDocument class.
PdfDocument document = new PdfDocument();
//Add a new page to the document.
@@ -1422,6 +1731,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new instance of PdfDocument class.
Dim document As New PdfDocument()
'Add a new page to the document.
@@ -1469,6 +1782,10 @@ Essential® PDF also provides support to create an unordered List
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Adding-an-unordered-list-to-PDF-document/.NET/Adding-an-unordered-list-to-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new instance of PdfDocument class.
PdfDocument document = new PdfDocument();
//Add a new page to the document.
@@ -1502,10 +1819,8 @@ list.TextIndent = 10;
//Draw list
list.Draw(page, new RectangleF(0, 10, size.Width, size.Height));
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -1513,6 +1828,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new instance of PdfDocument class.
PdfDocument document = new PdfDocument();
//Add a new page to the document.
@@ -1554,6 +1873,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new instance of PdfDocument class.
Dim document As New PdfDocument()
'Add a new page to the document.
@@ -1611,6 +1934,10 @@ Essential® PDF allows you to replace the fonts in an existing PDF
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Creates a new PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Replace font
@@ -1624,6 +1951,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Creates a new PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Replace font
@@ -1653,6 +1984,9 @@ The following code snippet illustrates how to get the bound of a text from PDF d
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.PdfViewer;
+
PdfViewerControl documentViewer = new PdfViewerControl();
//Load the PDF document
documentViewer.Load("Input.pdf");
@@ -1666,6 +2000,9 @@ documentViewer.Dispose();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing;
+Imports Syncfusion.PdfViewer;
+
Dim documentViewer As New PdfViewerControl()
'Load the PDF document
documentViewer.Load("Input.pdf")
@@ -1687,6 +2024,10 @@ Essential® PDF allows you to add complex script language text in
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Drawing-complex-script-language-text-to-PDF/.NET/Drawing-complex-script-language-text-to-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -1694,9 +2035,8 @@ PdfPage page = doc.Pages.Add();
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
-FileStream fontStream = new FileStream("tahoma.ttf", FileMode.Open, FileAccess.Read);
//Create a new PDF font instance
-PdfFont pdfFont = new PdfTrueTypeFont(fontStream, 10);
+PdfFont pdfFont = new PdfTrueTypeFont("tahoma.ttf", 10);
//Set the format for string
PdfStringFormat format = new PdfStringFormat();
//Set the format as complex script layout type
@@ -1704,16 +2044,19 @@ format.ComplexScript = true;
//Draw the text
graphics.DrawString("สวัสดีชาวโลก", pdfFont, PdfBrushes.Black, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format);
-//Save the PDF document
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-//Close the PDF document
+//Save the document
+doc.Save("Output.pdf");
+//Close the document
doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -1740,6 +2083,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document
Dim doc As New PdfDocument()
'Add a page to the document
@@ -1774,9 +2121,12 @@ You can add the complex script language text in an existing PDF document by usin
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Add-complex-script-to-an-existing-PDF-document/.NET/Add-complex-script-to-an-existing-PDF-document/Program.cs" %}
-FileStream inputFileStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
//Load a PDF document
-PdfLoadedDocument doc = new PdfLoadedDocument(inputFileStream);
+PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
//Get first page from the document
PdfLoadedPage page = doc.Pages[0] as PdfLoadedPage;
@@ -1792,16 +2142,19 @@ format.ComplexScript = true;
//Draw the text
graphics.DrawString("สวัสดีชาวโลก", pdfFont, PdfBrushes.Black, new RectangleF(0, 0, page.Size.Width, page.Size.Height), format);
-//Save the PDF document
-MemoryStream stream = new MemoryStream();
-await doc.Save(stream);
-//Close the PDF document
+//Save the document
+doc.Save("Output.pdf");
+//Close the document
doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Load a PDF document
PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf");
//Get first page from the document
@@ -1828,6 +2181,10 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Load a PDF document
Dim doc As New PdfLoadedDocument("input.pdf")
'Get first page from the document
@@ -1864,14 +2221,17 @@ Essential® PDF supports drawing text on a PDF document with OpenT
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Draw-text-using-OpenTypeFont-in-PDF-document/.NET/Draw-text-using-OpenTypeFont-in-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page
PdfPage page = document.Pages.Add();
//Create font
-FileStream fontFileStream = new FileStream("Font.otf", FileMode.Open, FileAccess.Read);
-PdfFont font = new PdfTrueTypeFont(fontFileStream, 14);
+PdfFont font = new PdfTrueTypeFont("Font.otf", 14);
//Text to draw
string text = "Syncfusion Essential PDF is a.NET Core PDF library used to create, read, and edit PDF files in any application";
//Create a brush
@@ -1884,16 +2244,19 @@ RectangleF rect = new RectangleF(0, 0, clipBounds.Width, clipBounds.Height);
//Draw the text
page.Graphics.DrawString(text, font, brush, rect);
-//Save the PDF document
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the PDF document
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -1919,6 +2282,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document
Dim document As PdfDocument = New PdfDocument
'Add a page to the document
@@ -1954,6 +2321,10 @@ The Essential® PDF allows you to draw text using a different type
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Drawing-text-with-baseline-alignment-in-a-PDF/.NET/Drawing-text-with-baseline-alignment-in-a-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
//Create a new PDF document
PdfDocument doc = new PdfDocument();
//Add a page to the document
@@ -1961,14 +2332,11 @@ PdfPage page = doc.Pages.Add();
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
-FileStream fontStream = new FileStream("tahoma.ttf", FileMode.Open, FileAccess.Read);
-FileStream fontStream1 = new FileStream("Arial.ttf", FileMode.Open, FileAccess.Read);
-FileStream fontStream2 = new FileStream("Calibri.ttf", FileMode.Open, FileAccess.Read);
//Create a new PDF font instance
-PdfFont font = new PdfTrueTypeFont(fontStream, 8);
-PdfFont font1 = new PdfTrueTypeFont(fontStream1, 20);
+PdfFont font = new PdfTrueTypeFont("tahoma.ttf", 8);
+PdfFont font1 = new PdfTrueTypeFont("Arial.ttf", 20);
PdfFont font2 = new PdfStandardFont(PdfFontFamily.Helvetica,16);
-PdfFont font3 = new PdfTrueTypeFont(fontStream2, 25);
+PdfFont font3 = new PdfTrueTypeFont("Calibri.ttf", 25);
//Set the format for string
PdfStringFormat format = new PdfStringFormat();
//Set the line alignment
@@ -1981,23 +2349,19 @@ graphics.DrawString("Hello World!", font, PdfBrushes.Black, new PointF(0, 50), f
graphics.DrawString("Hello World!", font1, PdfBrushes.Black, new PointF(65, 50), format);
graphics.DrawString("Hello World!", font2, PdfBrushes.Black, new PointF(220, 50), format);
graphics.DrawString("Hello World!", font3, PdfBrushes.Black, new PointF(320, 50), format);
-//Save the PDF document
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
-//Close the PDF document
-doc.Close(true);
-
-//Defining the content type for PDF file.
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Output.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
+//Save the document
+doc.Save("Output.pdf");
+//Close the document
+doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -2032,6 +2396,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document
Dim document As New PdfDocument()
'Add a page to the document
@@ -2078,6 +2446,10 @@ The following code sample explains this.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Drawing-text-using-different-text-alignment/.NET/Drawing-text-using-different-text-alignment/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -2099,19 +2471,19 @@ graphics.DrawRectangle(PdfPens.Black, new RectangleF(10, 10, 200, 20));
//Draw the text
graphics.DrawString("Right-Alignment", font, PdfBrushes.Red, new RectangleF(10, 10, 200, 20), format);
-//Create a file stream to save the document
-using (FileStream fs = new FileStream("Output.pdf", FileMode.Create, FileAccess.Write))
-{
- //Save the document to the file stream
- document.Save(fs);
-}
-//Close the document
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a page to the document
@@ -2143,6 +2515,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document
Dim document As New PdfDocument()
'Add a page to the document
@@ -2186,6 +2562,10 @@ N>To enable this functionality in .NET Core, ensure that the following encoding
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Add-text-encoding-using-standard-PDF-fonts/.NET/Add-text-encoding-using-standard-PDF-fonts/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Adding a new page to the PDF document
@@ -2200,10 +2580,8 @@ font.SetTextEncoding(Encoding.GetEncoding("Windows-1250"));
//Draw string to a PDF page.
graphics.DrawString("äÖíßĆŇ", font, PdfBrushes.Black, PointF.Empty);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -2211,6 +2589,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Adding a new page to the PDF document.
@@ -2234,6 +2616,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Adding a new page to the PDF document.
@@ -2269,6 +2655,10 @@ The following code example demonstrates how to access the remainder text when th
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
@@ -2311,6 +2701,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
@@ -2353,6 +2747,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
' Create a new PDF document
Dim document As New PdfDocument()
@@ -2406,6 +2804,10 @@ The following code example illustrates this.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Text/Customizing-truetype-fonts-in-a-PDF/.NET/Customizing-truetype-fonts-in-a-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Drawing;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -2417,11 +2819,11 @@ FileStream fontStream = new FileStream("Arial.ttf", FileMode.Open, FileAccess.Re
// Initialize the PdfFontSettings
PdfFontSettings fontSettings = new PdfFontSettings(10, PdfFontStyle.Bold, true, true, true);
PdfFont pdfFont = new PdfTrueTypeFont(fontStream, fontSettings);
-//Draw the text. graphics.DrawString("Hello World!!!", pdfFont, PdfBrushes.Black, new PointF(0, 0));
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-document.Save(stream);
+//Draw the text.
+graphics.DrawString("Hello World!!!", pdfFont, PdfBrushes.Black, new PointF(0, 0));
+
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -2429,6 +2831,10 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using System.Drawing;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
@@ -2438,7 +2844,8 @@ PdfGraphics graphics = page.Graphics;
// Initialize the PdfFontSettings
PdfFontSettings fontSettings = new PdfFontSettings(10, PdfFontStyle.Bold, true, true, true);
PdfFont pdfFont = new PdfTrueTypeFont(new Font("Arial"), fontSettings);
-//Draw the text. graphics.DrawString("Hello World!!!", pdfFont, PdfBrushes.Black, new PointF(0, 0));
+//Draw the text.
+graphics.DrawString("Hello World!!!", pdfFont, PdfBrushes.Black, new PointF(0, 0));
//Save the document.
document.Save("Output.pdf");
//Close the document.
@@ -2448,6 +2855,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim document As PdfDocument = New PdfDocument
'Add a page to the document.
@@ -2476,7 +2887,6 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
**LineLimit:** When LineLimit is enabled, the provided string will be laid out within the specified bounds. If the LineLimit property is disabled, the layout will continue to fill any remaining space. The default value of the LineLimit property is true.
-
**NoClip:** If we enable the NoClip option, it will show the text without cutting any words. If we disable the NoClip option, any text outside the fitting area will be hidden.
The following code example illustrates this.
@@ -2485,6 +2895,10 @@ The following code example illustrates this.
{% highlight c# tabtitle="C# [Cross-platform]" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Graphics;
+ using Syncfusion.Drawing;
+
// Create a new PdfStringFormat and set its properties
PdfStringFormat format = new PdfStringFormat();
//Set no clip
@@ -2512,10 +2926,8 @@ The following code example illustrates this.
// Draw the string inside the rectangle with the specified font, brush, and format
graphics.DrawString("PDF text line 1 \r\nPDF text line 3", font, PdfBrushes.Black, new RectangleF(100, 100, 100, 20), format);
- //Creating the stream object.
- MemoryStream stream = new MemoryStream();
- //Save the document into stream.
- document.Save(stream);
+ //Save the document.
+ document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -2524,6 +2936,10 @@ The following code example illustrates this.
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Graphics;
+ using System.Drawing;
+
// Create a new PdfStringFormat and set its properties
PdfStringFormat format = new PdfStringFormat();
//Set no clip
@@ -2560,6 +2976,10 @@ The following code example illustrates this.
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Pdf.Graphics
+ Imports System.Drawing
+
' Create a new PdfStringFormat and set its properties
Dim format As New PdfStringFormat()
' Set no clip
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Watermarks.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Watermarks.md
index d3422ab4d..f88bc1253 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Watermarks.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Watermarks.md
@@ -14,12 +14,18 @@ To quickly get started, add Watermarks and Bookmarks to a PDF document in .NET u
## Adding text watermark in PDF document
-The below code illustrates how to draw the text watermark in new PDF document using [DrawString](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_DrawString_System_String_Syncfusion_Pdf_Graphics_PdfFont_Syncfusion_Pdf_Graphics_PdfPen_Syncfusion_Pdf_Graphics_PdfBrush_System_Drawing_PointF_) method of [PdfGraphics](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html) class. The transparency can be applied to the text or images using [SetTransparency](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_SetTransparency_System_Single_) method and rotation can be applied using [RotateTransform](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_RotateTransform_System_Single_) method.
+The below code illustrates how to draw the text watermark in new PDF document using [DrawString](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_DrawString_System_String_Syncfusion_Pdf_Graphics_PdfFont_Syncfusion_Pdf_Graphics_PdfPen_Syncfusion_Pdf_Graphics_PdfBrush_System_Drawing_PointF_) method of [PdfGraphics](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html) class. The transparency can be applied to the text or images using [SetTransparency](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_SetTransparency_System_Single_) method and rotation can be applied using [RotateTransform](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_RotateTransform_System_Single_) method.
+
+The [PdfGraphicsState](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphicsState.html) class is used to save the current graphics context of a PdfGraphics object. This includes properties like transformations, transparency settings, clipping paths, and other graphical configurations. By calling `graphics.Save()`, you store the current state before applying changes such as rotation or transparency. Later, you can restore this state using `graphics.Restore(state)` to revert to the original settings, ensuring that temporary modifications do not affect subsequent drawing operations. This is especially useful when adding watermarks, as it allows you to isolate the watermark styling from other content on the page.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Watermark/Adding-text-watermark-in-PDF-document/.NET/Adding-text-watermark-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -35,23 +41,18 @@ graphics.SetTransparency(0.25f);
graphics.RotateTransform(-40);
graphics.DrawString("Imported using Essential PDF", font, PdfPens.Red, PdfBrushes.Red, new PointF(-150, 450));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-stream.Position = 0;
-//Close the document.
+//Save and close the document.
+pdfDocument.Save("Watermark.pdf");
pdfDocument.Close(true);
-//Defining the content type for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Watermark.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -75,6 +76,10 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim pdfDocument As New PdfDocument()
'Add a page to the PDF document.
@@ -109,9 +114,13 @@ The below code illustrates how to draw the text watermark in an existing PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Watermark/Add-text-watermark-in-an-existing-PDF-document/.NET/Add-text-watermark-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get first page from document.
PdfPageBase loadedPage = loadedDocument.Pages[0];
//Create PDF graphics for the page.
@@ -124,27 +133,23 @@ PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
PdfGraphicsState state = graphics.Save();
graphics.SetTransparency(0.25f);
graphics.RotateTransform(-40);
-graphics.DrawString("Imported using Essential PDF", font, PdfPens.Red, PdfBrushes.Red, new PointF(-150,
+graphics.DrawString("Imported using Essential PDF", font, PdfPens.Red, PdfBrushes.Red, new PointF(-150, 450));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document.
+//Save and close the document.
+loadedDocument.Save("Watermark.pdf");
loadedDocument.Close(true);
-//Defining the content type for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Watermark.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get first page from document.
PdfPageBase loadedPage = loadedDocument.Pages[0];
//Create PDF graphics for the page.
@@ -166,8 +171,13 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports System.Drawing
+
'Load an existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get first page from document.
Dim loadedPage As PdfPageBase = loadedDocument.Pages(0)
'Create PDF graphics for the page.
@@ -197,12 +207,18 @@ The following screenshot shows the output of adding text watermark to an existin
## Adding image watermark in PDF document
-The below code sample illustrates how to add image watermark in PDF document, using [DrawImage](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_DrawImage_Syncfusion_Pdf_Graphics_PdfImage_System_Drawing_PointF_System_Drawing_SizeF_) method of [PdfGraphics](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html) class. The transparency can be applied to the text or images using [SetTransparency](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_SetTransparency_System_Single_) method and rotation can be applied using [RotateTransform](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_RotateTransform_System_Single_) method.
+The below code sample illustrates how to add image watermark in PDF document, using [DrawImage](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_DrawImage_Syncfusion_Pdf_Graphics_PdfImage_System_Drawing_PointF_System_Drawing_SizeF_) method of [PdfGraphics](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html) class. The transparency can be applied to the text or images using [SetTransparency](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_SetTransparency_System_Single_) method and rotation can be applied using [RotateTransform](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphics.html#Syncfusion_Pdf_Graphics_PdfGraphics_RotateTransform_System_Single_) method.
+
+The [PdfGraphicsState](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Graphics.PdfGraphicsState.html) class is used to save the current graphics context of a PdfGraphics object. This includes properties like transformations, transparency settings, clipping paths, and other graphical configurations. By calling `graphics.Save()`, you store the current state before applying changes such as rotation or transparency. Later, you can restore this state using `graphics.Restore(state)` to revert to the original settings, ensuring that temporary modifications do not affect subsequent drawing operations. This is especially useful when adding watermarks, as it allows you to isolate the watermark styling from other content on the page.
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Watermark/Adding-image-watermark-in-PDF-document/.NET/Adding-image-watermark-in-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -219,23 +235,18 @@ graphics.SetTransparency(0.25f);
//Draw the image.
graphics.DrawImage(image, new PointF(0, 0), pdfPage.Graphics.ClientSize);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-pdfDocument.Save(stream);
-stream.Position = 0;
-//Close the document.
+//Save and close the document.
+pdfDocument.Save("Watermark.pdf");
pdfDocument.Close(true);
-//Defining the content type for PDF file.
-string contentType = "application/pdf";
-//Define the file name.
-string fileName = "Watermark.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name.
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+
//Create a new PDF document.
PdfDocument pdfDocument = new PdfDocument();
//Add a page to the PDF document.
@@ -258,6 +269,10 @@ pdfDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports System.Drawing
+
'Create a new PDF document.
Dim pdfDocument As New PdfDocument()
'Add a page to the PDF document.
@@ -291,9 +306,13 @@ The below code illustrates how to draw the image watermark in existing PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Watermark/Draw-the-image-watermark-in-an-existing-PDF-document/.NET/Draw-the-image-watermark-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get first page from document
PdfPageBase loadedPage = loadedDocument.Pages[0];
//Create PDF graphics for the page
@@ -307,25 +326,21 @@ graphics.SetTransparency(0.25f);
//Draw the image
graphics.DrawImage(image, new PointF(0, 0), loadedPage.Graphics.ClientSize);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-stream.Position = 0;
-//Close the document
+//Save and close the document.
+loadedDocument.Save("watermark.pdf");
loadedDocument.Close(true);
-//Defining the content type for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Watermark.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get first page from document.
PdfPageBase loadedPage = loadedDocument.Pages[0];
//Create PDF graphics for the page.
@@ -346,8 +361,13 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports System.Drawing
+
'Load the document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get first page from document.
Dim loadedPage As PdfPageBase = loadedDocument.Pages(0)
'Create PDF graphics for the page
@@ -382,9 +402,13 @@ The following code example explains how to add a watermark annotation in the PDF
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Annotation/Add-watermark-annotation-in-the-PDF-document/.NET/Add-watermark-annotation-in-the-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
-FileStream docStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the page
PdfLoadedPage lpage = loadedDocument.Pages[0] as PdfLoadedPage;
@@ -397,16 +421,19 @@ watermark.Appearance.Normal.Graphics.DrawString("Watermark Text", new PdfStandar
//Adds the annotation to page
lpage.Annotations.Add(watermark);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
-//Close the document
-loadedDocument.Close(true);
+//Saves the document.
+loadedDocument.Save("WatermarkAnnotation.pdf");
+loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get the page
@@ -429,6 +456,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Parsing
+Imports System.Drawing
+
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedDocument("input.pdf")
'Get the page
@@ -460,9 +492,12 @@ You can remove the Watermark annotation from the annotation collection, represen
{% tabs %}
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Watermark/Removing-watermark-annotation-in-PDF-document/.NET/Remove-watermark-annotation-in-the-PDF-document/Program.cs" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Graphics;
+ using Syncfusion.Pdf.Parsing;
+
//Load the PDF document
- FileStream docStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Iterate through the annotations collection and remove PdfLoadedWatermark annotations
foreach (PdfPageBase page in loadedDocument.Pages)
{
@@ -477,16 +512,18 @@ You can remove the Watermark annotation from the annotation collection, represen
}
}
- //Save the document into stream
- MemoryStream stream = new MemoryStream();
- loadedDocument.Save(stream);
- //Close the document
- loadedDocument.Close(true);
+ //Saves the document to disk.
+ loadedDocument.Save("WatermarkAnnotation.pdf");
+ loadedDocument.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Graphics;
+ using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
// Iterate through the annotations collection and remove PdfLoadedWatermark annotations
@@ -511,6 +548,10 @@ You can remove the Watermark annotation from the annotation collection, represen
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Pdf.Graphics
+ Imports Syncfusion.Pdf.Parsing
+
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedDocument("input.pdf")
' Iterate through the annotations collection and remove PdfLoadedWatermark annotations
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-XFA.MD b/Document-Processing/PDF/PDF-Library/NET/Working-with-XFA.MD
index f64c310e9..92cc4fa51 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-XFA.MD
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-XFA.MD
@@ -24,6 +24,8 @@ The following code example explains how to add a new page using [PdfXfaPage](htt
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-a-new-page-in-a-PDF-XFA-document/.NET/Add-a-new-page-in-a-PDF-XFA-document/Program.cs" %}
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -38,16 +40,16 @@ mainForm.Fields.Add(textElement);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf", PdfXfaType.Dynamic);
//Close the document.
document.Close();
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -71,6 +73,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -110,6 +114,10 @@ The below sample illustrates how to create a new PDF document with XFA page size
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Create-a-new-PDF-document-with-XFA-page-size/.NET/Create-a-new-PDF-document-with-XFA-page-size/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -128,9 +136,8 @@ mainForm.Fields.Add(textElement);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -138,6 +145,10 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -165,6 +176,10 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document.
Dim document As New PdfXfaDocument()
'Set the page size.
@@ -200,6 +215,10 @@ You can create a custom page size to the PDF document by using following code sn
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Create-a-custom-page-size-to-the-PDF-document/.NET/Create-a-custom-page-size-to-the-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -218,9 +237,8 @@ mainForm.Fields.Add(textElement);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -228,6 +246,10 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -255,6 +277,10 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Set the page size
@@ -290,6 +316,10 @@ You can change page orientation from portrait to landscape by using [PdfXfaPageO
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Change-page-orientation-from-portrait-to-landscape-in-PDF/.NET/Change-page-orientation-from-portrait-to-landscape-in-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -310,9 +340,8 @@ mainForm.Fields.Add(textElement);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -320,6 +349,10 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -349,6 +382,10 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Set the page size
@@ -388,6 +425,10 @@ To create a dynamic XFA forms using [PdfXfaType](https://help.syncfusion.com/cr/
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Create-a-dynamic-XFA-forms-in-a-PDF-document/.NET/Create-a-dynamic-XFA-forms-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -406,9 +447,8 @@ mainForm.Fields.Add(textElement);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -416,6 +456,10 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -443,6 +487,10 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Set the page size
@@ -480,6 +528,10 @@ To create a static XFA forms using [PdfXfaType](https://help.syncfusion.com/cr/d
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Create-a-static-XFA-forms-in-a-PDF-document/.NET/Create-a-static-XFA-forms-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -498,9 +550,8 @@ mainForm.Fields.Add(textElement);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Static);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -508,6 +559,10 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Set the page size.
@@ -535,6 +590,10 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Set the page size
@@ -574,6 +633,9 @@ The below code snippet illustrates how to add a textbox field to a new PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -592,9 +654,8 @@ mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -602,6 +663,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -629,6 +693,9 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document.
Dim document As New PdfXfaDocument()
'Add a new XFA page.
@@ -664,10 +731,11 @@ The below code snippet illustrates how to add a textbox field to an existing PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-a-textbox-field-to-an-existing-PDF-document/.NET/Add-a-textbox-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -680,10 +748,8 @@ textBoxField.ToolTip = "First Name";
//Add the field to the existing XFA form.
loadedForm.Fields.Add(textBoxField);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-loadedDocument.Save(stream);
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -691,6 +757,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -714,6 +783,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document.
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form.
@@ -747,6 +819,9 @@ The below code snippet illustrates how to add a numeric field to a new PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-a-XFA-numeric-field-to-a-new-PDF-document/.NET/Add-a-XFA-numeric-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -763,9 +838,8 @@ mainForm.Fields.Add(numericField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Save the PDF document to stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -773,6 +847,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -798,6 +875,9 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.
+
'Create a new PDF XFA document.
Dim document As New PdfXfaDocument()
'Add a new XFA page.
@@ -831,10 +911,11 @@ The below code snippet illustrates how to add the numeric field to an existing P
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-numeric-field-to-an-existing-PDF-document/.NET/Add-the-XFA-numeric-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -845,10 +926,8 @@ numericField.Caption.Text = "Numeric Field";
//Add the field to the existing XFA form.
loadedForm.Fields.Add(numericField);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-loadedDocument.Save(stream);
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -856,6 +935,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -877,6 +959,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -908,6 +993,9 @@ The below code snippet illustrates how to add a combo box field to a new PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-a-combobox-field-to-a-new-PDF-document/.NET/Add-a-combobox-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -929,10 +1017,8 @@ mainForm.Fields.Add(comboBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-document.Save(stream, PdfXfaType.Dynamic);
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -940,6 +1026,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -969,6 +1058,9 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Create a new PDF XFA document
Dim document As PdfXfaDocument = New PdfXfaDocument()
'Add a new XFA page
@@ -1006,10 +1098,11 @@ The below code snippet illustrates how to add the combo box field to an existing
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-combobox-field-to-an-existing-PDF-document/.NET/Add-the-combobox-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -1024,10 +1117,8 @@ comboBoxField.Items.Add("Documentation.");
//Add the field to the existing XFA form.
loadedForm.Fields.Add(comboBoxField);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-loadedDocument.Save(stream);
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -1035,6 +1126,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -1060,6 +1154,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -1095,6 +1192,9 @@ The below code snippet illustrates how to add a list box field to a new PDF docu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-listbox-field-to-a-new-PDF-document/.NET/Add-the-XFA-listbox-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1117,10 +1217,8 @@ mainForm.Fields.Add(listBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-document.Save(stream, PdfXfaType.Dynamic);
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -1128,6 +1226,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1159,6 +1260,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -1198,10 +1301,11 @@ The below code snippet illustrates how to add the list box field to an existing
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-listbox-field-to-an-existing-PDF-document/.NET/Add-the-XFA-listbox-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -1218,10 +1322,8 @@ listBoxField.Items.Add("German");
//Add the field to the existing XFA form.
loadedForm.Fields.Add(listBoxField);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-loadedDocument.Save(stream);
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -1229,6 +1331,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -1256,6 +1361,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -1293,6 +1401,9 @@ The below code snippet illustrates how to add a check box field to a new PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-checkbox-field-to-a-new-PDF-document/.NET/Add-the-XFA-checkbox-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1310,10 +1421,8 @@ mainForm.Fields.Add(checkBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-document.Save(stream, PdfXfaType.Dynamic);
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -1321,6 +1430,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1347,6 +1459,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -1381,10 +1495,11 @@ The below code snippet illustrates how to add the check box field to an existing
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-checkbox-field-to-an-existing-PDF-document/.NET/Add-the-XFA-checkbox-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -1396,10 +1511,8 @@ checkBoxField.CheckedStyle = PdfXfaCheckedStyle.Cross;
//Add the field to the existing XFA form.
loadedForm.Fields.Add(checkBoxField);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-loadedDocument.Save(stream);
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -1407,6 +1520,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -1429,6 +1545,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -1461,6 +1580,9 @@ The below code snippet illustrates how to add a radio button field to a new PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-radio-button-field-to-a-new-PDF-document/.NET/Add-the-XFA-radio-button-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1486,10 +1608,8 @@ mainForm.Fields.Add(group);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-document.Save(stream, PdfXfaType.Dynamic);
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -1497,6 +1617,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1531,6 +1654,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -1573,10 +1698,11 @@ The below code snippet illustrates how to add the radio button field to an exist
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-radio-button-field-to-an-existing-PDF-document/.NET/Add-the-XFA-radio-button-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -1596,10 +1722,8 @@ group.Items.Add(radioButtonField2);
//Add the field to the existing XFA form.
loadedForm.Fields.Add(group);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -1607,6 +1731,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -1637,6 +1764,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -1677,6 +1807,9 @@ The below code snippet illustrates how to add a date time field to a new PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-datetime-field-in-a-new-PDF-document/.NET/Add-the-XFA-datetime-field-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1695,17 +1828,17 @@ mainForm.Fields.Add(dateTimeField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1733,6 +1866,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -1768,10 +1903,11 @@ The below code snippet illustrates how to add the date time field to an existing
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-datetime-field-in-an-existing-PDF-document/.NET/Add-the-XFA-datetime-field-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -1784,10 +1920,8 @@ dateTimeField.ToolTip = "Date Time";
//Add the field to the existing XFA form.
loadedForm.Fields.Add(dateTimeField);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -1795,6 +1929,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -1818,6 +1955,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -1851,6 +1991,9 @@ The below code snippet illustrates how to add a button field to a new PDF docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-button-field-to-a-new-PDF-document/.NET/Add-the-XFA-button-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1867,17 +2010,17 @@ mainForm.Fields.Add(buttonField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -1903,6 +2046,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -1936,10 +2081,11 @@ The below code snippet illustrates how to add the button field to an existing PD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-button-field-to-an-existing-PDF-document/.NET/Add-the-XFA-button-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -1950,10 +2096,8 @@ buttonField.Content = "Click";
//Add the field to the existing XFA form.
loadedForm.Fields.Add(buttonField);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -1961,6 +2105,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -1982,6 +2129,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -2013,6 +2163,9 @@ The below code snippet illustrates how to add a text element to a new PDF docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-text-element-to-a-new-PDF-document/.NET/Add-the-XFA-text-element-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2029,10 +2182,8 @@ mainForm.Fields.Add(textElement);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -2040,6 +2191,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2065,6 +2219,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -2098,10 +2254,11 @@ The below code snippet illustrates how to add a text element to an existing PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-text-element-to-an-existing-PDF-document/.NET/Add-the-XFA-text-element-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -2112,10 +2269,8 @@ textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle
//Add the text element to the existing XFA form.
loadedForm.Fields.Add(textElement);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -2123,6 +2278,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -2144,6 +2302,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -2175,6 +2336,9 @@ The below code snippet illustrates how to add the rectangle field to a new PDF d
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-rectangle-field-to-a-new-PDF-document/.NET/Add-the-XFA-rectangle-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2191,17 +2355,17 @@ mainForm.Fields.Add(rectangle);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2227,6 +2391,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -2260,10 +2426,11 @@ The below code snippet illustrates how to add the rectangle field to an existing
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-rectangle-field-to-an-existing-PDF-document/.NET/Add-the-XFA-rectangle-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -2274,10 +2441,8 @@ rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.FromArgb(0,255,0,0));
//Add the rectangle to the existing XFA form.
loadedForm.Fields.Add(rectangle);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -2285,6 +2450,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form
@@ -2306,6 +2474,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -2337,6 +2508,9 @@ The below code snippet illustrates how to add the circle field to a new PDF docu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-circle-field-to-a-new-PDF-document/.NET/Add-the-XFA-circle-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2353,17 +2527,17 @@ mainForm.Fields.Add(circle);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2389,6 +2563,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -2422,10 +2598,11 @@ The below code snippet illustrates how to add the circle field to an existing PD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-circle-field-to-an-existing-PDF-document/.NET/Add-circle-field-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -2436,10 +2613,8 @@ circle.Border.FillColor = new PdfXfaSolidBrush(Color.FromArgb(0,255,0,0));
//Add the circle to the existing XFA form.
loadedForm.Fields.Add(circle);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -2447,6 +2622,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -2468,6 +2646,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -2499,6 +2680,9 @@ The below code snippet illustrates how to add a line to a new PDF document using
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-line-to-a-new-PDF-document/.NET/Add-the-XFA-line-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2515,17 +2699,17 @@ mainForm.Fields.Add(line);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2551,6 +2735,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -2584,10 +2770,11 @@ The below code snippet illustrates how to add a line to an existing PDF document
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-XFA-line-to-an-existing-PDF-document/.NET/Add-XFA-line-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -2598,10 +2785,8 @@ line.Color = new PdfColor(Color.FromArgb(0,255,0,0));
//Add the line to the existing XFA form.
loadedForm.Fields.Add(line);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -2609,6 +2794,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm.pdf");
//Load the existing XFA form.
@@ -2630,6 +2818,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm.pdf")
'Load the existing XFA form
@@ -2661,6 +2852,9 @@ The below code snippet illustrates how to add an image to a new PDF document usi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-image-to-a-new-PDF-document/.NET/Add-the-XFA-image-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2677,17 +2871,17 @@ mainForm.Fields.Add(image);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream, PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
-
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
@@ -2711,6 +2905,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add a new XFA page
@@ -2742,24 +2938,23 @@ The below code snippet illustrates how to add an image to an existing PDF docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-XFA-image-to-an-existing-PDF-document/.NET/Add-the-XFA-image-to-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
//Load the image as stream.
-MemoryStream imageStream = new MemoryStream(File.ReadAllBytes(imageFileName));
+MemoryStream imageStream = new MemoryStream(File.ReadAllBytes("Image.png"));
//Create a image and add the properties.
PdfXfaImage image = new PdfXfaImage("imgage1", imageStream);
//Add the image to the existing XFA form.
loadedForm.Fields.Add(image);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -2767,6 +2962,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
@@ -2786,6 +2984,9 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
+
'Load the existing XFA document
Dim loadedDocument As New PdfLoadedXfaDocument("XfaForm1.pdf")
'Load the existing XFA form
@@ -2822,6 +3023,9 @@ You can set the flow direction to an XFA form while creating, using [PdfXfaFlowD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Set-the-horizontal-flow-direction-in-XFA-forms/.NET/Set-the-horizontal-flow-direction-in-XFA-forms/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -2846,10 +3050,8 @@ mainForm.Fields.Add(textBoxField1);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Add the field to the XFA form.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf", PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -2857,6 +3059,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -2890,6 +3095,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -2933,6 +3140,9 @@ You can set the flow direction to an XFA form while creating, using [PdfXfaFlowD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Set-the-vertical-flow-direction-in-XFA-forms/.NET/Set-the-vertical-flow-direction-in-XFA-forms/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -2957,17 +3167,18 @@ mainForm.Fields.Add(textBoxField1);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
-
+
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3001,6 +3212,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3044,6 +3257,9 @@ You can rotate a form field in XFA document, using [PdfXfaRotateAngle](https://h
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Rotating-the-XFA-form-fields-in-a-PDF-document/.NET/Rotating-the-XFA-form-fields-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3064,10 +3280,8 @@ mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3075,6 +3289,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3104,6 +3321,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3143,6 +3362,9 @@ You can validate the date time fields of the input text by enabling the [Require
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Validating-the-XFA-datetime-field-in-a-PDF-document/.NET/Validating-the-XFA-datetime-field-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3163,10 +3385,8 @@ mainForm.Fields.Add(dateTimeField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3174,6 +3394,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3203,6 +3426,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3244,6 +3469,9 @@ Please refer the below link for numeric pattern format in detail,
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Customizing-the-XFA-numeric-field-in-a-PDF-document/.NET/Customizing-the-XFA-numeric-field-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3262,10 +3490,8 @@ mainForm.Fields.Add(numericField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3273,6 +3499,9 @@ document.Close();
{% highlight c# tabtitle="C#" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3337,6 +3566,9 @@ You can add the nested sub forms by using [PdfXfaForm](https://help.syncfusion.c
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-XFA-nested-subforms-in-a-PDF-document/.NET/Add-XFA-nested-subforms-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3366,10 +3598,8 @@ mainForm.Fields.Add(form1);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3377,6 +3607,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3415,6 +3648,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3487,10 +3722,8 @@ mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3498,6 +3731,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3525,6 +3761,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3562,6 +3800,9 @@ You can add the vertical alignments in XFA form fields through [VerticalAlignmen
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-vertical-alignments-in-XFA-form-fields/.NET/Add-the-vertical-alignments-in-XFA-form-fields/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3580,10 +3821,8 @@ mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3591,6 +3830,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3618,6 +3860,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3655,6 +3899,9 @@ You can add margin to the XFA form fields by using [Margins](https://help.syncfu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Adding-margins-to-the-XFA-form-fields/.NET/Adding-margins-to-the-XFA-form-fields/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3674,10 +3921,8 @@ mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3685,6 +3930,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3713,6 +3961,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3751,6 +4001,9 @@ You can add padding to the XFA form fields by using [padding](https://help.syncf
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-the-padding-to-XFA-form-fields/.NET/Add-the-padding-to-XFA-form-fields/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3769,10 +4022,8 @@ mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3780,6 +4031,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3807,6 +4061,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3844,6 +4100,9 @@ You can add border to the XFA fields by using [Border](https://help.syncfusion.c
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Add-border-to-the-XFA-form-fields/.NET/Add-border-to-the-XFA-form-fields/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3863,10 +4122,8 @@ mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -3874,6 +4131,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -3902,6 +4162,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -3944,10 +4206,11 @@ Please refer the below sample for filling the XFA text box field using [PdfLoade
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Filling-the-XFA-textbox-field-in-an-existing-PDF-document/.NET/Filling-the-XFA-textbox-field-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -3956,10 +4219,8 @@ PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as Pd
//fill the text box.
loadedTextBox.Text = "First Name";
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -3967,6 +4228,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -3986,6 +4250,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4015,10 +4281,11 @@ You can fill the XFA numeric field by using [PdfLoadedXfaNumericField](https://h
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Filling-the-XFA-numeric-field-in-an-existing-PDF-document/.NET/Filling-the-XFA-numeric-field-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4027,10 +4294,8 @@ PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"]
//fill the numeric field.
loadedNumericField.NumericValue = 945322;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4038,6 +4303,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4057,6 +4325,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4086,10 +4356,11 @@ You can fill the XFA combo box field by using [PdfLoadedXfaComboBoxField](https:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Filling-the-XFA-combobox-field-in-an-existing-PDF-document/.NET/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4098,10 +4369,8 @@ PdfLoadedXfaComboBoxField loadedComboBoxField = (loadedForm.Fields["subform1[0]"
//Set the combo box selected index.
loadedComboBoxField.SelectedIndex = 1;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4109,6 +4378,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4128,6 +4400,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4155,10 +4429,11 @@ You can fill and save hidden items in XFA combo box field by using [HiddenItems]
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Fill-and-save-hidden-items-in-XFA-combobox-field/.NET/Fill-and-save-hidden-items-in-XFA-combobox-field/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4170,10 +4445,8 @@ loadedComboBoxField.SelectedValue = loadedComboBoxField.HiddenItems[0];
List hiddenValues = new List();
hiddenValues = loadedComboBoxField.HiddenItems;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4181,6 +4454,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("Input.pdf");
//Load the existing XFA form.
@@ -4203,6 +4479,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("Input.pdf")
'Load the existing XFA form
@@ -4235,10 +4513,11 @@ You can fill the XFA list box field by using [PdfLoadedXfaListBoxField](https://
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Fill-the-XFA-listbox-field-in-an-existing-PDF-document/.NET/Fill-the-XFA-listbox-field-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4247,10 +4526,8 @@ PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"]
//Set the list box selected index.
loadedListBoxField.SelectedIndex = 1;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4258,6 +4535,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4277,6 +4557,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4304,10 +4586,11 @@ You can also select the multiple values by using [SelectedItems](https://help.sy
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Select-multiple-values-in-an-existing-XFA-listbox-field/.NET/Select-multiple-values-in-an-existing-XFA-listbox-field/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4316,10 +4599,8 @@ PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"]
//Set the list box selected items.
loadedListBoxField.SelectedItems = new string[] { "English", "Spanish" };
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4327,6 +4608,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4346,6 +4630,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4375,10 +4661,11 @@ You can fill the XFA date time field by using [PdfLoadedXfaDateTimeField](https:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Fill-the-XFA-datetime-field-in-an-existing-PDF-document/.NET/Fill-the-XFA-datetime-field-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4387,10 +4674,8 @@ PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"
//Set the value.
loadedDateTimeField.Value = DateTime.Now;
-//Save the document to memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close();
@@ -4398,6 +4683,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4417,6 +4705,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4446,10 +4736,11 @@ You can fill the XFA check box field by using [PdfLoadedXfaCheckBoxField](https:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Fill-the-XFA-checkbox-field-in-an-existing-PDF-document/.NET/Fill-the-XFA-checkbox-field-in-an-existing-PDF-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4458,10 +4749,8 @@ PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as
//Check the check box.
loadedCheckBox.IsChecked = true;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4469,6 +4758,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4488,6 +4780,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4517,10 +4811,11 @@ You can fill the XFA radio button field by using [PdfLoadedXfaRadioButtonField](
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Fill-the-XFA-radiobutton-field-in-an-existing-PDF-document/.NET/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4531,10 +4826,8 @@ PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fie
//Check the radio button.
loadedRadioButtonField.IsChecked = true;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4542,6 +4835,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4563,6 +4859,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4596,6 +4894,9 @@ The below code snippet illustrates how to set the [ReadOnly](https://help.syncfu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Removing-editing-capability-of-form-fields-in-a-new-PDF/.NET/Removing-editing-capability-of-form-fields-in-a-new-PDF/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -4614,10 +4915,8 @@ mainForm.ReadOnly = true;
//Add the XFA form to the document.
document.XfaForm = mainForm;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-document.Save(stream,PdfXfaType.Dynamic);
+//Save the document.
+document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//Close the document.
document.Close();
@@ -4625,6 +4924,9 @@ document.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add new XFA page.
@@ -4652,6 +4954,8 @@ document.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Create a new PDF XFA document
Dim document As New PdfXfaDocument()
'Add new XFA page
@@ -4687,19 +4991,18 @@ The below code snippet illustrates how to set the [ReadOnly](https://help.syncfu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Remove-editing-capability-to-an-existing-form-fields/.NET/Remove-editing-capability-to-an-existing-form-fields/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
//Set the form as read only.
loadedForm.ReadOnly = true;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4707,6 +5010,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4723,6 +5029,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4757,6 +5065,9 @@ The following code snippet illustrates how to flatten the XFA form field.
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing document.
PdfLoadedXfaDocument ldoc = new PdfLoadedXfaDocument("input.pdf");
//Set flatten.
@@ -4771,6 +5082,8 @@ ldoc.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing document
Dim ldoc As New PdfLoadedXfaDocument("input.pdf")
'Set flatten
@@ -4795,10 +5108,11 @@ You can remove the dynamic XFA form fields by using [Remove](https://help.syncfu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Removing-the-dynamic-form-fields-from-an-existing-PDF/.NET/Removing-the-dynamic-form-fields-from-an-existing-PDF/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4807,10 +5121,8 @@ PdfLoadedXfaTextBoxField loadedText = (loadedForm.Fields["subform1[0]"] as PdfLo
//Remove the field.
loadedForm.Fields.Remove(loadedText);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4818,6 +5130,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4837,6 +5152,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4866,10 +5183,11 @@ You can modify the existing dynamic XFA fields like Width, Height and Text by us
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Modidy-the-existing-fields-in-XFA-document/.NET/Modidy-the-existing-fields-in-XFA-document/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Load the existing XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
@@ -4881,10 +5199,8 @@ loadedText.Height = 30;
//Set the caption text.
loadedText.Caption.Text = "Second Name";
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4892,6 +5208,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing PDF document.
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf");
//Load the existing XFA form.
@@ -4914,6 +5233,8 @@ loadedDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa
'Load the existing PDF document
Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf")
'Load the existing XFA form
@@ -4948,19 +5269,18 @@ The following sample illustrates how to clear the date time field in an existing
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/XFA/Clear-XFA-datetime-field-value-in-an-existing-XFA-document/.NET/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
+using Syncfusion.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA document.
-PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(docStream);
+PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("XfaForm1.pdf");
//Get the date time field.
PdfLoadedXfaDateTimeField dateTimeField = loadedDocument.XfaForm.TryGetFieldByCompleteName("form[0].subform[0].dateTime[0]") as PdfLoadedXfaDateTimeField;
//Clear the date time field value.
dateTimeField.ClearValue();
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document to memory stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("XfaForm.pdf");
//Close the document.
loadedDocument.Close();
@@ -4968,6 +5288,9 @@ loadedDocument.Close();
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using System.Drawing;
+using Syncfusion.Pdf.Xfa;
+
//Load the existing XFA PDF document.
PdfLoadedXfaDocument loadedXfaDocument = new PdfLoadedXfaDocument("input.pdf");
//Get the date time field.
@@ -4983,7 +5306,8 @@ loadedXfaDocument.Close();
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing XFA PDF document
+Imports System.Drawing
+Imports Syncfusion.Pdf.Xfa'Load the existing XFA PDF document
Dim loadedXfaDocument As PdfLoadedXfaDocument = New PdfLoadedXfaDocument("input.pdf")
'Get the date time field
Dim dateTimeField As PdfLoadedXfaDateTimeField = TryCast(loadedXfaDocument.XfaForm.TryGetFieldByCompleteName("form[0].subform[0].dateTime[0]"), PdfLoadedXfaDateTimeField)
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-ZUGFeRD-invoice.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-ZUGFeRD-invoice.md
index 8be1a1b8e..d0746ee48 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-ZUGFeRD-invoice.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-ZUGFeRD-invoice.md
@@ -162,6 +162,9 @@ Using **PDF/A-3b** conformance, you can create a **ZUGFeRD invoice PDF** by spec
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/ZUGFeRD/Factur-X/.NET/Factur-X/Program.cs" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf;
+
//Create a new PDF document
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3B);
@@ -184,17 +187,18 @@ attachment.MimeType = "text/xml";
//Add attachment to PDF document
document.Attachments.Add(attachment);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
+//Save the document
+document.Save("Output.pdf");
//Closes the document
-document.Close(true);
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf;
+
//Create a new PDF document
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3B);
@@ -226,6 +230,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf
+
' Create a new PDF document
Dim document As New PdfDocument(PdfConformanceLevel.Pdf_A3B)
@@ -266,6 +273,9 @@ The complete code to create ZUGFeRD invoice PDF document as follows.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/ZUGFeRD/Create-ZUGFeRD-compliment-PDF-invoice/.NET/Create-ZUGFeRD-compliment-PDF-invoice/Program.cs" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf;
+
//Create ZUGFeRD invoice PDF document
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3B);
//Set ZUGFeRD conformance level
@@ -281,25 +291,18 @@ attachment.MimeType = "application/xml";
//Add attachment to PDF document
document.Attachments.Add(attachment);
-//Creating the stream object
-MemoryStream stream = new MemoryStream();
-//Save the document into memory stream
-document.Save(stream);
-//If the position is not set to '0', then the PDF will be empty
-stream.Position = 0;
-//Close the document
-document.Close(true);
-//Defining the ContentType for PDF file
-string contentType = "application/pdf";
-//Define the file name
-string fileName = "Zugferd.pdf";
-//Creates a FileContentResult object by using the file contents, content type, and file name
-return File(stream, contentType, fileName);
+//Save the document
+document.Save("Output.pdf");
+//Closes the document
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf;
+
//Create ZUGFeRD invoice PDF document
PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3B);
//Set ZUGFeRD conformance level
@@ -323,6 +326,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf
+
'Create ZUGFeRD invoice PDF document
Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A3B)
'Set ZUGFeRD conformance level
@@ -356,28 +362,32 @@ You can extract the ZUGFeRD invoice using [PdfAttachment](https://help.syncfusio
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/ZUGFeRD/Extract-ZUGFeRD-invoice-from-PDF-document/.NET/Extract-ZUGFeRD-invoice-from-PDF-document/Program.cs" %}
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
-//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+//Loads the PDF document
+PdfLoadedDocument document = new PdfLoadedDocument("Sample.pdf");
-//Iterates the attachments.
-foreach (PdfAttachment attachment in loadedDocument.Attachments)
+//Iterates the attachments
+foreach (PdfAttachment attachment in document.Attachments)
{
- //Extracts the ZUGFeRD invoice attachment and saves it to the disk.
- FileStream s = new FileStream("Output/" + attachment.FileName, FileMode.Create, FileAccess.Write);
- s.Write(attachment.Data, 0, attachment.Data.Length);
- s.Dispose();
+//Extracts the ZUGFeRD invoice attachment and saves it to the disk
+FileStream s = new FileStream(attachment.FileName, FileMode.Create);
+s.Write(attachment.Data, 0, attachment.Data.Length);
+s.Dispose();
}
-//Close the PDF document.
-loadedDocument.Close(true);
+//Saves and closes the document
+document.Save("Output.pdf");
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Loads the PDF document
PdfLoadedDocument document = new PdfLoadedDocument("Sample.pdf");
@@ -398,6 +408,9 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Loads the PDF document
Dim document As New PdfLoadedDocument("Sample.pdf")
diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-forms.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-forms.md
index cb5da10af..8f6961431 100644
--- a/Document-Processing/PDF/PDF-Library/NET/Working-with-forms.md
+++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-forms.md
@@ -26,6 +26,11 @@ The below code snippet illustrates how to add a textbox field to a new PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -38,10 +43,8 @@ textBoxField.ToolTip = "First Name";
//Add the form field to the document.
document.Form.Fields.Add(textBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -49,6 +52,11 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Drawing;
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Graphics;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -70,7 +78,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Drawing
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Graphics
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As PdfDocument = New PdfDocument()
'Add a new page to the PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -99,9 +112,12 @@ The below code snippet illustrates how to add the textbox to an existing PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-the-textbox-to-an-existing-PDF-document/.NET/Add-the-textbox-to-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -115,10 +131,8 @@ textBoxField.ToolTip = "First Name";
//Add the form field to the existing PDF document.
loadedDocument.Form.Fields.Add(textBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -126,8 +140,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if(loadedDocument.Form==null)
loadedDocument.CreateForm();
@@ -150,8 +168,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing PDF document
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create the form if the form does not exist in the loaded document
If loadedDocument.Form Is Nothing Then
loadedDocument.CreateForm()
@@ -187,6 +209,9 @@ Please refer the below code snippet for adding the combo box in new PDF document
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Adding-combo-box-in-the-new-PDF-document/.NET/Adding-combo-box-in-the-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -205,10 +230,8 @@ comboBoxField.Items.Add(new PdfListFieldItem("Documentation", "content"));
//Add combo box to the form.
document.Form.Fields.Add(comboBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -216,6 +239,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -242,8 +268,11 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
-'Create a new PDF document
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document
Dim page As PdfPage = document.Pages.Add()
@@ -278,9 +307,12 @@ Please refer the below code snippet for adding the combo box in existing PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Adding-the-combo-box-in-existing-PDF-document/.NET/Adding-the-combo-box-in-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -300,10 +332,8 @@ comboBoxField.Items.Add(new PdfListFieldItem("Documentation", "content"));
//Add combo box to the form.
loadedDocument.Form.Fields.Add(comboBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -311,8 +341,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if(loadedDocument.Form==null)
loadedDocument.CreateForm();
@@ -341,8 +375,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing PDF document
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create the form if the form does not exist in the loaded document
If loadedDocument.Form Is Nothing Then
loadedDocument.CreateForm()
@@ -382,29 +420,28 @@ Use the [TextAlignment](https://help.syncfusion.com/cr/document-processing/Syncf
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Annotation/Set-text-alignment-in-a-Combo-Box-field/.NET/Set-text-alignment-in-a-Combo-Box-field/Program.cs" %}
- // Load an existing document from a file stream.
- using (FileStream fileStream = new FileStream("SourceForm.pdf", FileMode.Open, FileAccess.Read))
- {
- PdfLoadedDocument doc = new PdfLoadedDocument(fileStream);
- // Load an existing combo box field by its name.
- PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField;
- // Set text alignment to center for the combo box field.
- comboField.TextAlignment = PdfTextAlignment.Center;
-
- // Save the updated document to a file stream.
- using (FileStream outputStream = new FileStream("Form.pdf", FileMode.Create, FileAccess.Write))
- {
- doc.Save(outputStream);
- }
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Interactive;
+ using Syncfusion.Pdf.Parsing;
- // Close the document.
- doc.Close(true);
- }
+ // Load an existing document.
+ PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
+ // Load an existing combo box field by its name.
+ PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField;
+ // Set text alignment to center for the combo box field.
+ comboField.TextAlignment = PdfTextAlignment.Center;
+ // Save the updated document.
+ doc.Save("Form.pdf");
+ doc.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Interactive;
+ using Syncfusion.Pdf.Parsing;
+
// Load an existing document.
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing combo box field by its name.
@@ -418,8 +455,11 @@ Use the [TextAlignment](https://help.syncfusion.com/cr/document-processing/Syncf
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
- ' Load an existing document.
+
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Pdf.Interactive
+
+ 'Load the PDF document.
Dim doc As New PdfLoadedDocument("SourceForm.pdf")
' Load an existing combo box field by its name.
Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField)
@@ -445,6 +485,9 @@ Please refer the below code snippet for adding the radio button in new PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Adding-radio-button-in-new-PDF-document/.NET/Adding-radio-button-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -463,16 +506,16 @@ radioButtonItem2.Bounds = new Syncfusion.Drawing.RectangleF(100, 170, 20, 20);
employeesRadioList.Items.Add(radioButtonItem1);
employeesRadioList.Items.Add(radioButtonItem2);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
//Create a new PDF document.
PdfDocument document = new PdfDocument();
@@ -500,8 +543,11 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
-'Create a new PDF document.
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -536,9 +582,12 @@ The below code snippet illustrates how to add the radio button in existing PDF d
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-radio-button-in-existing-PDF-document/.NET/Add-radio-button-in-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -558,10 +607,8 @@ radioButtonItem2.Bounds = new Syncfusion.Drawing.RectangleF(100, 170, 20, 20);
employeesRadioList.Items.Add(radioButtonItem1);
employeesRadioList.Items.Add(radioButtonItem2);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -569,8 +616,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if(loadedDocument.Form==null)
loadedDocument.CreateForm();
@@ -599,8 +650,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing PDF document
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create the form if the form does not exist in the loaded document
If loadedDocument.Form Is Nothing Then
loadedDocument.CreateForm()
@@ -640,6 +695,9 @@ You can choose default value for radio button field using [SelectedIndex](https:
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/refs/heads/master/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Program.cs" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Interactive;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
// Add a new page to the PDF document
@@ -672,16 +730,18 @@ You can choose default value for radio button field using [SelectedIndex](https:
// Add the radio button list to the form
document.Form.Fields.Add(employeesRadioList);
- //Save the document into stream.
- MemoryStream stream = new MemoryStream();
- document.Save(stream);
- //Close the document.
- document.Close(true);
+//Save the document.
+document.Save("Form.pdf");
+//Close the document.
+document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Interactive;
+
// Create a new PDF document
PdfDocument document = new PdfDocument();
// Add a new page to the PDF document
@@ -723,7 +783,10 @@ You can choose default value for radio button field using [SelectedIndex](https:
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
- ' Create a new PDF document
+ Imports Syncfusion.Pdf
+ Imports Syncfusion.Pdf.Interactive
+
+ 'Load the PDF document.
Dim document As New PdfDocument()
' Add a new page to the PDF document
Dim page As PdfPage = document.Pages.Add()
@@ -777,6 +840,9 @@ Please refer the below code snippet for adding the list box field in new PDF doc
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-listbox-field-in-new-PDF-document/.NET/Add-listbox-field-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -797,10 +863,8 @@ listBoxField.MultiSelect = true;
//Add the list box into PDF document.
document.Form.Fields.Add(listBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -808,6 +872,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -836,8 +903,11 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
-'Create a new PDF document.
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -874,9 +944,12 @@ Please refer the below code snippet for adding the list box field in existing PD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-listbox-field-in-an-existing-PDF-document/.NET/Add-listbox-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -898,10 +971,8 @@ listBoxField.MultiSelect = true;
//Add the list box into PDF document.
loadedDocument.Form.Fields.Add(listBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -909,8 +980,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if(loadedDocument.Form==null)
loadedDocument.CreateForm();
@@ -941,8 +1016,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create the form if the form does not exist in the loaded document.
If loadedDocument.Form Is Nothing Then
loadedDocument.CreateForm()
@@ -986,6 +1065,9 @@ Please refer the below code snippet for adding the check box field in new PDF do
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-checkbox-field-in-new-PDF-document/.NET/Add-checkbox-field-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -999,10 +1081,8 @@ checkBoxField.Bounds = new Syncfusion.Drawing.RectangleF(0, 20, 10, 10);
//Add the form field to the document.
document.Form.Fields.Add(checkBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -1010,6 +1090,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -1031,8 +1114,11 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
-'Create a new PDF document.
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -1062,8 +1148,12 @@ Please refer the below code snippet for adding the check box field in existing P
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Adding-checkbox-field-in-an-existing-PDF-document/.NET/Adding-checkbox-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if(loadedDocument.Form==null)
loadedDocument.CreateForm();
@@ -1087,35 +1177,41 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-'Load the existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
-'Create the form if the form does not exist in the loaded document.
-If loadedDocument.Form Is Nothing Then
-loadedDocument.CreateForm()
-End If
-'Load the page.
-Dim loadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage)
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
-'Create Check Box field.
-Dim checkBoxField As New PdfCheckBoxField(loadedPage, "CheckBox")
-'Set check box properties.
-checkBoxField.ToolTip = "Check Box"
-checkBoxField.Bounds = New RectangleF(0, 20, 10, 10)
-'Add the form field to the existing document.
-loadedDocument.Form.Fields.Add(checkBoxField)
+//Load the existing PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
+//Create the form if the form does not exist in the loaded document.
+if(loadedDocument.Form==null)
+ loadedDocument.CreateForm();
+//Load the page.
+PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
-'Save the document.
-loadedDocument.Save("Form.pdf")
-'close the document.
-loadedDocument.Close(True)
+//Create Check Box field.
+PdfCheckBoxField checkBoxField = new PdfCheckBoxField(loadedPage, "CheckBox");
+//Set check box properties.
+checkBoxField.ToolTip = "Check Box";
+checkBoxField.Bounds = new RectangleF(0, 20, 10, 10);
+//Add the form field to the existing document.
+loadedDocument.Form.Fields.Add(checkBoxField);
+
+//Save the document.
+loadedDocument.Save("Form.pdf");
+//Close the document.
+loadedDocument.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -1130,10 +1226,8 @@ checkBoxField.Bounds = new Syncfusion.Drawing.RectangleF(0, 20, 10, 10);
//Add the form field to the existing document.
loadedDocument.Form.Fields.Add(checkBoxField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1153,6 +1247,9 @@ Please refer the below code snippet for adding the signature field in new PDF do
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-signature-field-in-a-new-PDF-document/.NET/Add-signature-field-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -1166,10 +1263,8 @@ signatureField.ToolTip = "Signature";
//Add the form field to the document.
document.Form.Fields.Add(signatureField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -1177,6 +1272,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -1199,7 +1297,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -1229,9 +1330,12 @@ Please refer the below code snippet for adding the signature field in existing P
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Adding-the-signatre-field-in-existing-PDF-document/.NET/Adding-the-signatre-field-in-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -1246,10 +1350,8 @@ signatureField.ToolTip = "Signature";
//Add the form field to the existing document.
loadedDocument.Form.Fields.Add(signatureField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1257,8 +1359,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if(loadedDocument.Form==null)
loadedDocument.CreateForm();
@@ -1282,8 +1388,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create the form if the form does not exist in the loaded document.
If loadedDocument.Form Is Nothing Then
loadedDocument.CreateForm()
@@ -1318,6 +1428,9 @@ The signedDate parameter in the [PdfSignature](https://help.syncfusion.com/cr/do
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Digital%20Signature/Customize-the-signed-date/.NET/Customize-the-signed-date/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Creates a new PDF document.
PdfDocument document = new PdfDocument();
//Adds a new page.
@@ -1327,9 +1440,8 @@ PdfSignature signature = new PdfSignature(page, "Signature", new DateTime(2020,
signature.TimeStampServer = new TimeStampServer(new Uri("http://timestamp.digicert.com"));
signature.SignedName = "Test";
signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(200, 100));
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -1337,6 +1449,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Creates a new PDF document.
PdfDocument document = new PdfDocument();
//Adds a new page.
@@ -1354,8 +1469,11 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
-'Creates a new PDF document.
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Adds a new page.
Dim page As PdfPage = document.Pages.Add()
@@ -1385,6 +1503,9 @@ The below code illustrates how to add the button field in new PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Add-the-button-field-in-a-new-PDF-document/.NET/Add-the-button-field-in-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -1398,10 +1519,8 @@ buttonField.Text = "Click";
//Add the form field to the document.
document.Form.Fields.Add(buttonField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -1409,6 +1528,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -1430,8 +1552,11 @@ document.Close(true);
{% endhighlight %}
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-
-'Create a new PDF document.
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -1461,9 +1586,12 @@ Please refer the below code snippet for adding the button field in existing PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Adding-button-field-in-an-existing-PDF-document/.NET/Adding-button-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -1477,10 +1605,8 @@ buttonField.Text = "Click";
//Add the form field to the existing document.
loadedDocument.Form.Fields.Add(buttonField);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the PDF document to stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1488,8 +1614,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Create the form if the form does not exist in the loaded document.
if (loadedDocument.Form == null)
loadedDocument.CreateForm();
@@ -1510,10 +1640,14 @@ loadedDocument.Close(true);
{% endhighlight %}
-{% highlight c# tabtitle="C# [Windows-specific]" %}
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
-'Load the existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Create the form if the form does not exist in the loaded document.
If loadedDocument.Form Is Nothing Then
loadedDocument.CreateForm()
@@ -1547,6 +1681,9 @@ You can add a complex script language text in PDF AcroForm fields by using the [
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new PDF page.
@@ -1570,16 +1707,18 @@ document.Form.Fields.Add(textField);
//Set default appearance as false.
document.Form.SetDefaultAppearance(false);
-//Save the PDF document.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the PDF document.
+//Save the document.
+document.Save("Form.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new PDF page.
@@ -1611,7 +1750,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new PDF page.
Dim page As PdfPage = document.Pages.Add()
@@ -1657,6 +1799,9 @@ The following code example illustrates how to add complex script support for all
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new PDF page.
@@ -1680,16 +1825,18 @@ document.Form.SetDefaultAppearance(false);
//Enable complex script layout for form.
document.Form.ComplexScript = true;
-//Save the PDF document.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-//Close the PDF document.
+//Save the document.
+document.Save("Form.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new PDF page.
@@ -1721,7 +1868,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new PDF page
Dim page As PdfPage = document.Pages.Add()
@@ -1758,9 +1909,11 @@ You can also flatten the existing form fields with complex script layout by usin
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Flatten-the-existing-form-fields-with-complex-script/.NET/Flatten-the-existing-form-fields-with-complex-script/Program.cs" %}
-//Load the existing PDF document.
-FileStream inputFileStream = new FileStream("Form.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputFileStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the existing PDF form.
PdfLoadedForm lForm = loadedDocument.Form as PdfLoadedForm;
//Set the complex script layout.
@@ -1768,10 +1921,8 @@ lForm.ComplexScript = true;
//Set flatten.
lForm.Flatten = true;
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
//Save the document.
-loadedDocument.Save(stream);
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1779,6 +1930,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Form.pdf");
//Get the existing PDF form.
@@ -1797,7 +1952,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing PDF document
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Form.pdf")
'Get the existing PDF form
Dim lForm As PdfLoadedForm = TryCast(loadedDocument.Form, PdfLoadedForm)
@@ -1835,9 +1994,12 @@ You can fill a text box field using [Text](https://help.syncfusion.com/cr/docume
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Filling-the-textbox-field-in-an-existing-PDF-document/.NET/Filling-the-textbox-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -1845,9 +2007,8 @@ PdfLoadedForm loadedForm = loadedDocument.Form;
PdfLoadedTextBoxField loadedTextBoxField = loadedForm.Fields[0] as PdfLoadedTextBoxField;
loadedTextBoxField.Text = "First Name";
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1855,8 +2016,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -1873,8 +2038,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -1901,9 +2070,12 @@ You can fill a combo box field using [SelectedValue](https://help.syncfusion.com
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Fill-the-combobox-field-in-an-existing-PDF-document/.NET/Fill-the-combobox-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -1912,9 +2084,8 @@ PdfLoadedComboBoxField loadedComboboxField = loadedForm.Fields[1] as PdfLoadedCo
//Select the item.
loadedComboboxField.SelectedIndex = 1;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1922,8 +2093,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -1941,8 +2116,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -1970,9 +2149,12 @@ You can fill a radio button field using [SelectedValue](https://help.syncfusion.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Fill-radio-button-field-in-an-existing-PDF-document/.NET/Fill-radio-button-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -1981,9 +2163,8 @@ PdfLoadedRadioButtonListField loadedRadioButtonField = loadedForm.Fields[3] as P
//Select the item.
loadedRadioButtonField.SelectedIndex = 1;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -1991,8 +2172,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2010,8 +2195,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -2039,9 +2228,12 @@ The below code snippet illustrates how to fill the list box field in an existing
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Fill-list-box-field-in-an-existing-PDF-document/.NET/Fill-list-box-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2050,9 +2242,8 @@ PdfLoadedListBoxField loadedListBox = loadedForm.Fields[2] as PdfLoadedListBoxFi
//Fill list box and Modify the list box select index.
loadedListBox.SelectedIndex = new int[2] { 1, 2 };
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -2060,8 +2251,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2079,8 +2274,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -2108,9 +2307,12 @@ You can fill a check box field by enabling [Checked](https://help.syncfusion.com
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Fill-the-checkbox-field-in-an-existing-PDF-document/.NET/Fill-the-checkbox-field-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2121,9 +2323,8 @@ loadedCheckBoxField.Items[0].Checked = true;
//Check the checkbox if it is not grouped.
loadedCheckBoxField.Checked = true;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -2131,8 +2332,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2152,8 +2357,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -2183,9 +2392,12 @@ The below code snippet illustrates how to fill the signature field with certific
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Fill-the-signature-field-in-an-existing-PDF/.NET/Fill-the-signature-field-in-an-existing-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2199,9 +2411,8 @@ loadedSignatureField.Signature = new PdfSignature();
loadedSignatureField.Signature.Certificate = certificate;
loadedSignatureField.Signature.Reason = "Reason";
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -2209,8 +2420,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2232,8 +2447,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
Dim loadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage)
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -2269,9 +2488,12 @@ The following code snippet illustrates how to fill XFA forms via Acroform API.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Fill-the-XFA-forms-fields-via-acroform-API/.NET/Fill-the-XFA-forms-fields-via-acroform-API/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the existing Acroform.
PdfLoadedForm acroform = loadedDocument.Form;
//Enable XFA form filling.
@@ -2285,10 +2507,8 @@ PdfLoadedTextBoxField lastName = acroform.Fields["LastName"] as PdfLoadedTextBox
//Set text.
lastName.Text = "Bistro";
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Form.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -2296,6 +2516,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the existing XFA PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Form.pdf");
//Get the existing Acroform.
@@ -2320,7 +2544,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the existing XFA PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Form.pdf")
'Get the existing Acroform.
Dim acroform As PdfLoadedForm = loadedDocument.Form
@@ -2356,9 +2584,12 @@ The following code example illustrates this.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Enumarate-form-fields-in-a-PDF-document/.NET/Enumarate-form-fields-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm form = document.Form;
@@ -2373,9 +2604,8 @@ for (int i = 0; i < fields.Count; i++)
}
}
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -2383,8 +2613,12 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument document = new PdfLoadedDocument(fileName);
+PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm form = document.Form;
@@ -2407,8 +2641,12 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim document As New PdfLoadedDocument(fileName)
+Dim document As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim form As PdfLoadedForm = document.Form
@@ -2445,6 +2683,9 @@ By default, the value is set to true. This is illustrated in the following code
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Auto-naming-of-form-fields-in-a-PDF-document/.NET/Auto-naming-of-form-fields-in-a-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -2469,10 +2710,8 @@ textBoxField1.Text = "Doe";
//Add form field to the document.
document.Form.Fields.Add(textBoxField1);
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -2480,6 +2719,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -2513,7 +2755,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to the PDF document
Dim page As PdfPage = document.Pages.Add()
@@ -2563,9 +2809,12 @@ The following code snippet explains how to modify an existing form field in a PD
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Modify-the-existing-form-field-in-PDF-document/.NET/Modify-the-existing-form-field-in-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2577,9 +2826,8 @@ loadedTextBoxField.SpellCheck = true;
loadedTextBoxField.Text = "New text of the field.";
loadedTextBoxField.Password = false;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -2587,8 +2835,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2609,8 +2861,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -2643,9 +2899,12 @@ Please refer to the code example below to set the check box item.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Export_checkbox_values/.NET/Export_checkbox_values/Program.cs" %}
-//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2657,17 +2916,19 @@ PdfLoadedCheckBoxItem pdfLoadedCheckBoxItem = loadedCheckBoxField.Items[0] as Pd
//Set the Export value
pdfLoadedCheckBoxItem.ExportValue = "123";
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -2692,6 +2953,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
@@ -2724,9 +2989,12 @@ You can retrieve/modify the fore and background color of existing form fields in
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Modifying-fore-and-backcolor-of-existing-form-fields/.NET/Modifying-fore-and-backcolor-of-existing-form-fields/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2741,9 +3009,8 @@ PdfColor backColor = loadedTextBoxField.BackColor;
//Set the background color.
loadedTextBoxField.BackColor = new PdfColor(Color.Green);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -2751,8 +3018,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -2774,10 +3045,14 @@ loadedDocument.Close(true);
{% endhighlight %}
-{% highlight c# tabtitle="C# [Windows-specific]" %}
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
@@ -2813,9 +3088,12 @@ The following code example illustrates how to get option values from acroform ra
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Get-option-value-from-acroform-radio-button/.NET/Get-option-value-from-acroform-radio-button/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument doc = new PdfLoadedDocument(docStream);
+PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
//Gets the loaded form.
PdfLoadedForm form = doc.Form;
//Set default appearance to false.
@@ -2833,9 +3111,8 @@ foreach (PdfLoadedRadioButtonItem item in radioButtonField.Items)
}
}
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
+//Save the document.
+doc.Save("Output.pdf");
//Close the document.
doc.Close(true);
@@ -2843,6 +3120,10 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
//Gets the loaded form.
@@ -2870,7 +3151,11 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load an existing document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim doc As New PdfLoadedDocument("SourceForm.pdf")
'Gets the loaded form.
Dim form As PdfLoadedForm = doc.Form
@@ -2907,9 +3192,12 @@ The following code snippet demonstrates how to retrieving an existing widget ann
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Loop through each page in the loaded PDF document.
foreach (PdfLoadedPage page in loadedDocument.Pages)
{
@@ -2942,6 +3230,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Loop through each page in the loaded PDF document.
@@ -2976,7 +3268,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Load the PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
' Loop through each page in the loaded PDF document.
@@ -3020,9 +3316,12 @@ Refer to the code snippet below to retrieve a custom value from a form field usi
{% highlight c# tabtitle="C# [Cross-platform]" %}
-// Load the PDF document using a file stream
-FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read);
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page of the document
PdfField field = loadedDocument.Form.Fields[0] as PdfField;
@@ -3051,7 +3350,11 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
-// Load the PDF document using a file stream
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
+// Load the PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Gets the first page of the document
@@ -3082,7 +3385,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Load the PDF document
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
' Get the first form field from the document
@@ -3121,9 +3428,12 @@ The below code snippet explains how to get the field from collection using [TryG
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Get-the-field-from-collection-using-TryGetField/.NET/Get-the-field-from-collection-using-TryGetField/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument doc = new PdfLoadedDocument(docStream);
+PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
//Load the form from the loaded document.
PdfLoadedForm form = doc.Form;
@@ -3136,9 +3446,8 @@ if (fieldCollection.TryGetField("f1-1", out loadedField))
(loadedField as PdfLoadedTextBoxField).Text = "1";
}
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-doc.Save(stream);
+//Save the document.
+doc.Save("Output.pdf");
//Close the document.
doc.Close(true);
@@ -3146,8 +3455,12 @@ doc.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the document.
-PdfLoadedDocument doc = new PdfLoadedDocument(fileName);
+PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
//Load the form from the loaded document.
PdfLoadedForm form = doc.Form;
@@ -3168,8 +3481,12 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the form from the loaded document.
Dim form As PdfLoadedForm = loadedDocument.Form
@@ -3201,9 +3518,12 @@ Please refer the below code snippet to get the field value from collection using
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Get-the-field-from-collection-using-TryGetValue/.NET/Get-the-field-from-collection-using-TryGetValue/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the form from the loaded document.
PdfLoadedForm form = loadedDocument.Form;
@@ -3213,9 +3533,8 @@ string fieldValue = string.Empty;
//Get the field value using TryGetValue Method.
fieldCollection.TryGetValue("FirstName", out fieldValue);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -3223,8 +3542,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(filename);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the form from the loaded document.
PdfLoadedForm form = loadedDocument.Form;
@@ -3242,8 +3565,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load the document.
-Dim loadedDocument As New PdfLoadedDocument(filename)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the form from the loaded document.
Dim form As PdfLoadedForm = loadedDocument.Form
@@ -3273,11 +3600,12 @@ The below code illustrates get the pages of a form fields.
{% highlight c# tabtitle="C# [Cross-platform]" %}
-// Use the 'using' statement to automatically dispose of the FileStream when done.
-using (FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
-{
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Interactive;
+ using Syncfusion.Pdf.Parsing;
+
// Load the PDF document from the stream.
- PdfLoadedDocument document = new PdfLoadedDocument(docStream);
+ PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Get all the form fields in the PDF.
PdfLoadedForm loadedForm = document.Form;
@@ -3306,12 +3634,15 @@ using (FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAcc
// Close the PDF document.
document.Close(true);
-}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
// Load the PDF document.
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
@@ -3347,7 +3678,11 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Load the PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim document As New PdfLoadedDocument("Input.pdf")
' Get all the form fields in the PDF.
@@ -3389,9 +3724,12 @@ The below code illustrates how to remove the form fields from the existing PDF d
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Remove-the-form-fields-form-the-existing-PDF-document/.NET/Remove-the-form-fields-form-the-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page.
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Get the loaded form.
@@ -3403,9 +3741,8 @@ loadedForm.Fields.Remove(loadedTextBoxField);
//Remove the field at index 0.
loadedForm.Fields.RemoveAt(0);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -3413,8 +3750,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C#" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the page.
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
//Get the loaded form.
@@ -3433,10 +3774,14 @@ loadedDocument.Close(true);
{% endhighlight %}
-{% highlight vb.net tabtitle="VB.NET" %}
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
-'Load the PDF document
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the page
Dim loadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage)
'Get the loaded form
@@ -3469,6 +3814,9 @@ Please refer the sample for flattening the form fields in new PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Removing-editing-capability-of-form-fields/.NET/Removing-editing-capability-of-form-fields/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -3483,9 +3831,8 @@ document.Form.Flatten = true;
//Add the form field to the document.
document.Form.Fields.Add(textBoxField);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -3493,6 +3840,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -3516,7 +3866,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -3547,9 +3900,12 @@ Please refer the sample for flattening the form fields in existing PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Flattening-form-fields-in-an-existing-PDF-document/.NET/Flattening-form-fields-in-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
PdfLoadedFormFieldCollection fields = loadedForm.Fields;
@@ -3559,9 +3915,8 @@ loadedTextBoxField.Text = "Text";
//Flatten the whole form.
loadedForm.Flatten = true;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -3569,8 +3924,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm = loadedDocument.Form;
PdfLoadedFormFieldCollection fields = loadedForm.Fields;
@@ -3588,8 +3947,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
Dim fields As PdfLoadedFormFieldCollection = loadedForm.Fields
@@ -3619,18 +3982,19 @@ Please refer the code sample to flatten the form fields before saving the PDF do
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Flattening-form-fields-in-an-existing-PDF-document/.NET/Flattening-form-fields-in-an-existing-PDF-document/Program.cs" %}
-//Load an existing PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Flatten the form fields.
loadedForm.FlattenFields();
-//Create memory stream.
-MemoryStream stream = new MemoryStream();
-//Save the document into stream.
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("Output.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -3638,6 +4002,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load a PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get the loaded form.
@@ -3654,6 +4022,10 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
@@ -3681,6 +4053,9 @@ The below code snippet illustrates how to set the [ReadOnly](https://help.syncfu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Set-readonly-property-to-a-new-PDF-document/.NET/Set-readonly-property-to-a-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -3698,9 +4073,8 @@ textBoxField.Text = "john";
//Add the form field to the document.
document.Form.Fields.Add(textBoxField);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -3708,6 +4082,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -3734,7 +4111,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -3768,17 +4148,19 @@ The below code snippet illustrates how to set the [ReadOnly](https://help.syncfu
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Set-the-ReadOnly-property-to-an-existing-PDF-document/.NET/Set-the-ReadOnly-property-to-an-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Set the form as read only.
loadedForm.ReadOnly = true;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -3786,8 +4168,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Set the form as read only.
@@ -3802,8 +4188,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
'Set the form as read only.
@@ -3833,17 +4223,18 @@ The below code illustrates how to import FDF file to PDF.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Importing-FDF-file-to-PDF-document/.NET/Importing-FDF-file-to-PDF-document/Program.cs" %}
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get stream from an existing PDF document.
FileStream fdfStream = new FileStream("ImportFDF.fdf", FileMode.Open, FileAccess.Read);
//Import the FDF stream.
loadedDocument.Form.ImportDataFDF(fdfStream, true);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -3851,8 +4242,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load the existing form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Load the FDF file.
@@ -3866,8 +4261,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load an existing document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load the existing form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
'Load the FDF file.
@@ -3894,10 +4293,12 @@ The below code illustrates how to export FDF file from PDF document.
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Export-FDF-file-from-PDF-document/.NET/Export-FDF-file-from-PDF-document/Program.cs" %}
-//Get stream from an existing PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-//Load the PDF document from stream.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
+//Load the PDF document.
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load an existing form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Load the FDF file.
@@ -3911,8 +4312,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C#" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Load an existing form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Export the existing PDF document to FDF file.
@@ -3922,10 +4327,14 @@ loadedDocument.Close(true);
{% endhighlight %}
-{% highlight vb.net tabtitle="VB.NET" %}
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
-'Load an existing document
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+'Load the PDF document.
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Load an existing form
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
'Export the existing PDF document to FDF file
@@ -3947,6 +4356,9 @@ You can set the export value of the check box field in PDF forms using [PdfCheck
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -3985,17 +4397,18 @@ checkBoxField2.BackColor = Color.YellowGreen;
// Add to form
form.Fields.Add(checkBoxField2);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -4043,7 +4456,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Create a new PDF document
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to the PDF document
Dim page As PdfPage = document.Pages.Add()
@@ -4102,6 +4518,9 @@ The following code example illustrates how to enable or disable unison functiona
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -4136,17 +4555,18 @@ reportFrequencyRadioList.Items.Add(monthlyItem);
// Add the radio button list field to the document's form fields
document.Form.Fields.Add(reportFrequencyRadioList);
-//Save the document into stream
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
-stream.Position = 0;
-//Closes the document
+//Save the document.
+document.Save("Output.pdf");
+//Close the document.
document.Close(true);
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document.
@@ -4190,7 +4610,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Create a new PDF document
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to the PDF document
Dim page As PdfPage = document.Pages.Add()
@@ -4273,9 +4696,12 @@ The following code snippet explains how to set appearance to the PDF form fields
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Set-appearance-to-the-PDF-form-fields/.NET/Set-appearance-to-the-PDF-form-fields/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Set the default appearance.
@@ -4285,9 +4711,8 @@ loadedForm.SetDefaultAppearance(false);
PdfLoadedTextBoxField loadedTextBoxField = loadedForm.Fields[0] as PdfLoadedTextBoxField;
loadedTextBoxField.Text ="text";
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -4295,8 +4720,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Set the default appearance.
@@ -4315,8 +4744,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
'Set the default appearance.
@@ -4371,6 +4804,9 @@ The following code snippet explains how to set the visibility of form fields in
{% highlight c# tabtitle="C# [Cross-platform]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page of the document.
@@ -4387,10 +4823,8 @@ firstNameTextBox.Visibility = PdfFormFieldVisibility.Visible;
page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55);
//Add the textbox in document.
document.Form.Fields.Add(firstNameTextBox);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -4398,6 +4832,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page of the document.
@@ -4414,10 +4851,8 @@ firstNameTextBox.Visibility = PdfFormFieldVisibility.Visible;
page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55);
//Add the textbox in document.
document.Form.Fields.Add(firstNameTextBox);
-//Creating the stream object.
-MemoryStream stream = new MemoryStream();
-//Save the document as stream.
-document.Save(stream);
+//Save the document.
+document.Save("Output.pdf");
//Close the document.
document.Close(true);
@@ -4425,7 +4860,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Creates a new page and adds it as the last page of the document.
Dim page As PdfPage = document.Pages.Add()
@@ -4441,10 +4879,9 @@ firstNameTextBox.Visibility = PdfFormFieldVisibility.Visible
page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55)
'Add the textbox in document.
document.Form.Fields.Add(firstNameTextBox)
-'Creating the stream object.
-Dim stream As New MemoryStream()
-'Save the document as stream.
-document.Save(stream)
+
+'Save the document.
+document.Save("Output.pdf")
'Close the document.
document.Close(True)
@@ -4464,11 +4901,12 @@ The following code example demonstrates how to modify these indicator colors pro
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Customize-indicator-colors/.NET/Customize-indicator-colors/Program.cs" %}
-// Open the input PDF file stream.
-using (FileStream fileStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
-{
+ using Syncfusion.Pdf;
+ using Syncfusion.Pdf.Interactive;
+ using Syncfusion.Pdf.Parsing;
+
// Load the PDF document from the input stream.
- PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileStream);
+ PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
// Access the existing form fields in the PDF.
PdfLoadedForm form = loadedDocument.Form;
@@ -4492,20 +4930,20 @@ using (FileStream fileStream = new FileStream("Input.pdf", FileMode.Open, FileAc
}
// Disable the default appearance to allow custom rendering of form fields.
form.SetDefaultAppearance(false);
- // Create the output file stream.
- using (FileStream outputFileStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite))
- {
- // Save the modified PDF document to the new file stream.
- loadedDocument.Save(outputFileStream);
- }
+
+ // Save the modified PDF document
+ loadedDocument.Save("Output.pdf");
// Close the PDF document.
loadedDocument.Close(true);
-}
{% endhighlight %}
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
// Load the PDF document from the input PDF file.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
@@ -4541,7 +4979,11 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-' Load the PDF document from the input PDF file.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
' Access the form fields in the loaded PDF document.
@@ -4585,9 +5027,12 @@ The following code illustrates how to set [AutoResizeText](https://help.syncfusi
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Auto-resize-the-text-of-textboxfield-in-a-PDF/.NET/Auto-resize-the-text-of-textboxfield-in-a-PDF/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -4598,9 +5043,8 @@ loadedField.AutoResizeText = true;
//Flatten the form.
form.Flatten = true;
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -4608,6 +5052,10 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load an existing document.
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
//Read the text box field.
@@ -4629,7 +5077,11 @@ doc.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Load an existing document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
+'Load the PDF document.
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
Dim form As PdfLoadedForm = doc.Form
@@ -4663,6 +5115,9 @@ The below code illustrates how to enable the default appearance in new PDF docum
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Enable-default-appearance-in-new-PDF-document/.NET/Enable-default-appearance-in-new-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -4677,9 +5132,8 @@ document.Form.Fields.Add(textBoxField);
//Enable the default Appearance.
document.Form.SetDefaultAppearance(false);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-document.Save(stream);
+//Save the document.
+document.Save("Form.pdf");
//Close the document.
document.Close(true);
@@ -4687,6 +5141,9 @@ document.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a new page to PDF document.
@@ -4710,7 +5167,10 @@ document.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
-'Create a new PDF document.
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+
+'Load the PDF document.
Dim document As New PdfDocument()
'Add a new page to PDF document.
Dim page As PdfPage = document.Pages.Add()
@@ -4741,9 +5201,12 @@ The below code illustrates how to enable the default appearance in existing PDF
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Forms/Enable-default-appearance-in-existing-PDF-document/.NET/Enable-default-appearance-in-existing-PDF-document/Program.cs" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-FileStream docStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -4753,9 +5216,8 @@ loadedTextBoxField.Text = "First Name";
//Enable the default Appearance.
loadedDocument.Form.SetDefaultAppearance(false);
-//Save the document into stream.
-MemoryStream stream = new MemoryStream();
-loadedDocument.Save(stream);
+//Save the document.
+loadedDocument.Save("flatten.pdf");
//Close the document.
loadedDocument.Close(true);
@@ -4763,8 +5225,12 @@ loadedDocument.Close(true);
{% highlight c# tabtitle="C# [Windows-specific]" %}
+using Syncfusion.Pdf;
+using Syncfusion.Pdf.Interactive;
+using Syncfusion.Pdf.Parsing;
+
//Load the PDF document.
-PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);
+PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -4783,8 +5249,12 @@ loadedDocument.Close(true);
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+Imports Syncfusion.Pdf
+Imports Syncfusion.Pdf.Interactive
+Imports Syncfusion.Pdf.Parsing
+
'Load the PDF document.
-Dim loadedDocument As New PdfLoadedDocument(fileName)
+Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get the loaded form.
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/accessibility.md b/Document-Processing/PDF/PDF-Viewer/angular/accessibility.md
index 685ded52b..8322defa9 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/accessibility.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/accessibility.md
@@ -8,7 +8,7 @@ documentation: ug
domainurl: ##DomainURL##
---
-# Accessibility in Syncfusion® Angular PDF Viewer components
+# Accessible PDF Viewing with Syncfusion Angular Components
The PDF Viewer component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
@@ -132,7 +132,7 @@ import { LinkAnnotationService, BookmarkViewService, MagnificationService,
})
export class AppComponent implements OnInit {
public document = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
- public resourceUrl = 'https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
ngOnInit(): void {
}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/annotation-event.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/annotation-event.md
new file mode 100644
index 000000000..26f0352cb
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/annotation-event.md
@@ -0,0 +1,1546 @@
+---
+layout: post
+title: Annotations Events | Syncfusion
+description: Learn here all about annotation events in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# PDF Viewer Annotations events in Angular
+
+The PDF Viewer control provides support for several annotation events. The annotation events supported by the PDF Viewer control are:
+
+| Annotation events | Description |
+|---------------------------------|--------------------------------------------------------------------|
+| [annotationAdd](#annotationadd) | Event triggers when an annotation is added. |
+| [annotationDoubleClick](#annotationdoubleclick) | Event triggers when an annotation is double-clicked. |
+| [annotationMouseLeave](#annotationmouseleave) | Event triggers when the mouse cursor leaves an annotation. |
+| [annotationMouseover](#annotationmouseover) | Event triggers when the mouse cursor moves over an annotation. |
+| [annotationMove](#annotationmove) | Event triggers when an annotation is moved. |
+| [annotationMoving](#annotationmoving) | Event triggers while an annotation is being moved. |
+| [annotationPropertiesChange](#annotationpropertieschange) | Event triggers when an annotation’s properties are changed. |
+| [annotationRemove](#annotationremove) | Event triggers when an annotation is removed. |
+| [annotationResize](#annotationresize) | Event triggers when an annotation is resized. |
+| [annotationSelect](#annotationselect) | Event triggers when an annotation is selected. |
+| [annotationUnselect](#annotationunselect) | Event triggers when an annotation is unselected. |
+| [beforeAddFreeText](#beforeaddfreetext) | Event triggers before adding free text. |
+| [addSignature](#addsignature) | Event triggers when a signature is added. |
+| [removeSignature](#removesignature) | Event triggers when a signature is removed. |
+| [resizeSignature](#resizesignature) | Event triggers when a signature is resized. |
+| [signaturePropertiesChange](#signaturepropertieschange) | Event triggers when signature properties change. |
+| [signatureSelect](#signatureselect) | Event triggers when a signature is selected. |
+| [signatureUnselect](#signatureunselect) | Event triggers when a signature is unselected. |
+
+### annotationAdd
+
+The [annotationAdd](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#annotationadd) event is triggered when an annotation is added to the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [AnnotationAddEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotationaddeventargs/). It provides properties such as `annotationId`, `pageNumber`, `annotationType`, and `bounds`.
+
+The following example illustrates how to handle the `annotationAdd` event.
+
+```html
+
+```
+
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onAnnotationUnselect(args: any): void {
+ console.log('Annotation unselected with ID:', args.annotationId);
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
+### beforeAddFreeText
+
+The [beforeAddFreeText](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#beforeaddfreetext) event is triggered before adding free text to the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [BeforeAddFreeTextEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/beforeAddFreeTextEventArgs/).
+
+The following example illustrates how to handle the `beforeAddFreeText` event.
+
+```html
+
+
+
+
+```
+
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onBeforeAddFreeText(args: any): void {
+ console.log('Before adding free text on page:', args.pageIndex);
+
+ // Optional: Cancel the addition of the free text annotation
+ // args.cancel = true;
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
+## Signature-related events
+
+### addSignature
+
+The [addSignature](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#addsignature) event is triggered when a signature is added to the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [AddSignatureEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/addSignatureEventArgs/). It provides properties such as `pageNumber`.
+
+The following example illustrates how to handle the `addSignature` event.
+
+```html
+
+
+
+
+```
+
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onAddSignature(args: any): void {
+ console.log('Signature added to page:', args.pageIndex);
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
+### removeSignature
+
+The [removeSignature](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#removesignature) event is triggered when a signature is removed from the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [RemoveSignatureEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/removeSignatureEventArgs/). It provides properties such as `pageNumber`.
+
+The following example illustrates how to handle the `removeSignature` event.
+
+```html
+
+
+
+
+```
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onRemoveSignature(args: any): void {
+ console.log('Signature removed from page:', args.pageIndex);
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
+### resizeSignature
+
+The [resizeSignature](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#resizesignature) event is triggered when a signature is resized in the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [ResizeSignatureEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/resizeSignatureEventArgs/).
+
+The following example illustrates how to handle the `resizeSignature` event.
+
+```html
+
+
+
+
+```
+
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onResizeSignature(args: any): void {
+ console.log('Signature resized on page:', args.pageIndex);
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
+### signaturePropertiesChange
+
+The [signaturePropertiesChange](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#signaturepropertieschange) event is triggered when signature properties are changed in the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [SignaturePropertiesChangeEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/signaturePropertiesChangeEventArgs/).
+
+The following example illustrates how to handle the `signaturePropertiesChange` event.
+
+```html
+
+
+
+
+```
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onSignaturePropertiesChange(args: any): void {
+ console.log('Signature properties changed on page:', args.pageIndex);
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
+### signatureSelect
+
+The [signatureSelect](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#signatureselect) event is triggered when a signature is selected in the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [SignatureSelectEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/signatureSelectEventArgs/).
+
+The following example illustrates how to handle the `signatureSelect` event.
+
+```html
+
+
+
+
+```
+
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onSignatureSelect(args: any): void {
+ console.log('Signature selected on page:', args.pageIndex);
+ }
+}
+
+{% endhighlight %}
+{% endtabs %}
+
+### signatureUnselect
+
+The [signatureUnselect](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#signatureunselect) event is triggered when a signature is unselected in the PDF Viewer.
+
+#### Event Arguments
+
+For event data, see [SignatureUnSelectEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/signatureUnSelectEventArgs/).
+
+The following example illustrates how to handle the `signatureUnselect` event.
+
+```html
+
+
+
+
+```
+
+{% tabs %}
+{% highlight ts tabtitle="app.component.ts" %}
+import { Component, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ PdfViewerModule,
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./app.component.css'],
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ],
+ standalone: true,
+ imports: [PdfViewerModule]
+})
+export class AppComponent implements OnInit {
+ @ViewChild('pdfViewer')
+ public pdfViewerControl!: PdfViewerComponent;
+
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ ngOnInit(): void {
+ // Initialization logic if needed
+ }
+
+ onSignatureUnselect(args: any): void {
+ console.log('Signature unselected on page:', args.pageIndex);
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/annotations-in-mobile-view.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/annotations-in-mobile-view.md
new file mode 100644
index 000000000..8a63a622f
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/annotations-in-mobile-view.md
@@ -0,0 +1,122 @@
+---
+layout: post
+title: Annotations mobileView in Angular PDF Viewer control | Syncfusion
+description: Learn how to use annotations in mobile view with the Syncfusion Angular PDF Viewer (Essential JS 2).
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+# Annotations in mobile view in Angular PDF Viewer control
+
+## Open the annotation toolbar
+
+**Step 1:** Click Edit Annotation on the toolbar to enable the annotation toolbar.
+
+
+
+**Step 2:** The annotation toolbar appears below the main toolbar.
+
+
+
+## Add sticky note annotations
+
+**Step 1:** Click the Sticky Notes icon, then tap the page where the note should be placed.
+
+
+
+**Step 2:** Tap the page to add the sticky note annotation.
+
+
+
+## Add text markup annotations
+
+**Step 1:** Tap a text markup icon, select the text to mark, then tap the selection to apply the markup.
+
+
+
+**Step 2:** The text markup annotation is applied to the selected text.
+
+
+
+## Add shape and measurement annotations
+
+**Step 1:** Tap the Shape or Measure icon to open the corresponding toolbar.
+
+
+
+**Step 2:** Choose a shape or measurement type, then draw it on the page.
+
+
+
+**Step 3:** The annotation appears on the PDF page.
+
+
+
+## Add stamp annotations
+
+**Step 1:** Tap the Stamp icon and select a stamp type from the menu.
+
+
+
+**Step 2:** Tap the page to place the stamp annotation.
+
+
+
+## Add signature annotations
+
+**Step 1:** Tap the Signature icon to open the canvas. Draw the signature, tap Create, then tap the viewer to place it.
+
+
+
+**Step 2:** The signature is added to the page.
+
+
+
+## Add ink annotations
+
+**Step 1:** Tap the Ink tool and draw on the page.
+
+
+
+**Step 2:** The ink annotation appears on the page.
+
+
+
+## Change annotation properties (before adding)
+
+**Step 1:** Change properties before placing the annotation.
+
+**Step 2:** Tap the annotation icon to open the property toolbar, adjust properties, then place the annotation on the page.
+
+
+
+## Change annotation properties (after adding)
+
+**Step 1:** Change annotation properties after adding the annotation.
+
+**Step 2:** Select the annotation to show the property toolbar, then adjust the properties.
+
+
+
+## Delete annotations
+
+**Step 1:** Select the annotation to show the property toolbar, then tap the Delete icon to remove it.
+
+
+
+## Open the comment panel
+
+**Step 1:** Open the comment panel using the icon in the property toolbar or the annotation toolbar.
+
+
+
+**Step 2:** The comment panel appears.
+
+
+
+## Close the comment panel
+
+**Step 1:** Tap the Close button to close the comment panel.
+
+
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/comments.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/comments.md
index 74d1afd0b..97bfc7808 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/comments.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/comments.md
@@ -1,16 +1,16 @@
---
layout: post
-title: Comments in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Comments in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Comments in Angular PDF Viewer component | Syncfusion
+description: Learn about comments, replies, and status in the Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2.
platform: document-processing
control: Comments
documentation: ug
domainurl: ##DomainURL##
---
-# Comments
+# Comments in Angular PDF Viewer control
-The PDF Viewer control provides options to add, edit, and delete the comments to the following annotation in the PDF documents:
+The PDF Viewer control provides options to add, edit, and delete comments for the following annotations in PDF documents:
* Shape annotation
* Stamp annotation
@@ -20,11 +20,11 @@ The PDF Viewer control provides options to add, edit, and delete the comments to
* Free text annotation
* Ink annotation
-
+
## Adding a comment to the annotation
-Annotation comment, comment replies, and status can be added to the PDF document using the comment panel.
+Annotation comments, replies, and status can be managed in the PDF document using the comment panel.
### Comment panel
@@ -33,87 +33,87 @@ Annotation comments can be added to the PDF using the comment panel. The comment
1. Using the annotation menu
* Click the Edit Annotation button in the PDF Viewer toolbar. A toolbar appears below it.
- * Click the Comment Panel button. A comment panel will appear.
+ * Click the Comment Panel button. The comment panel opens.
2. Using Context menu
- * Select annotation in the PDF document and right-click it.
- * Select the comment option in the context menu that appears.
+ * Select the annotation in the PDF document and right-click it.
+ * Select Comment from the context menu..
3. Using the Mouse click
- * Select annotation in the PDF document and double click it, a comment panel will appear.
+ * Select the annotation in the PDF document and double-click it. The comment panel opens.
-If the comment panel is already in the open state, you can select the annotations and add annotation comments using the comment panel.
+If the comment panel is already open, select the annotation and add comments using the panel.
### Adding comments
-* Select annotation in the PDF document and click it.
-* The selected annotation comment container is highlighted in the comment panel.
-* Now, you can add comment and comment replies using the comment panel.
+* Select the annotation in the PDF document.
+* The corresponding comment thread is highlighted in the comment panel.
+* Add comments and replies using the comment panel.
-
+
### Adding Comment Replies
-* The PDF Viewer control provides an option to add multiple replies to the comment.
-* After adding the annotation comment, you can add a reply to the comment.
+* Multiple replies can be added to a comment.
+* After adding a comment, add replies as needed.
### Adding Comment or Reply Status
-* Select the Annotation Comments in the comment panel.
-* Click the more options button showing in the Comments or reply container.
-* Select the Set Status option in the context menu that appears.
-* Select the status of the annotation comment in the context menu that appears.
+* Select the annotation comment in the comment panel.
+* Click More options in the comment or reply container.
+* Select Set Status from the context menu.
+* Choose a status for the comment.
-
+
### Editing the comments and comments replies of the annotations
-The comment, comment replies, and status of the annotation can be edited using the comment panel.
+Comments, replies, and status can be edited using the comment panel.
### Editing the Comment or Comment Replies
-The annotation comment and comment replies can be edited in the following ways:
+Edit comments and replies in the following ways:
1. Using the Context menu
- * Select the Annotation Comments in the comment panel.
- * Click the More options button showing in the Comments or reply container.
- * Select the Edit option in the context menu that appears.
- * Now, an editable text box appears. You can change the content of the annotation comment or comment reply.
+ * Select the annotation comment in the comment panel.
+ * Click More options in the comment or reply container.
+ * Select Edit from the context menu.
+ * An editable text box appears. Change the content of the comment or reply.
2. Using the Mouse Click
- * Select the annotation comments in the comment panel.
- * Double click the comment or comment reply content.
- * Now, an editable text box appears. You can change the content of the annotation comment or comment reply.
+ * Select the annotation comment in the comment panel.
+ * Double-click the comment or reply content.
+ * An editable text box appears. Change the content of the comment or reply.
### Editing Comment or Reply Status
-* Select the Annotation Comments in the comment panel.
-* Click the more options button showing in the Comments or reply container.
-* Select the Set Status option in the context menu that appears.
-* Select the status of the annotation comment in the context menu that appears.
-* Status ‘None’ is the default state. If the status is set to ‘None,’ the comments or reply does not appear.
+* Select the annotation comment in the comment panel.
+* Click More options in the comment or reply container.
+* Select Set Status from the context menu.
+* Choose a status for the comment.
+* None is the default state. Selecting None clears the status indicator; the comment or reply remains visible.
-
+
### Delete Comment or Comment Replies
-* Select the Annotation Comments in the comment panel.
-* Click the more options button shown in the Comments or reply container.
-* Select the Delete option in the context menu that appears.
+* Select the annotation comment in the comment panel.
+* Click More options in the comment or reply container.
+* Select Delete from the context menu.
-
+
->The annotation will be deleted on deleting the comment using comment panel.
+>Deleting the root comment from the comment panel also deletes the associated annotation.
## How to check the comments added by the user
-The comments added to the PDF document can be viewed by using the `comments` property of the annotation.
+Comments added to the PDF document can be read using the annotation's `comments` property.
-Refer to the following code to check the comments added in the PDF document using a button click event.
+The following example logs comments in response to a button click.
{% tabs %}
{% highlight html tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/free-text-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/free-text-annotation.md
index a3dc6dfff..28d00cd1a 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/free-text-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/free-text-annotation.md
@@ -1,30 +1,30 @@
---
layout: post
-title: Free text annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Free text annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Free text annotation in Angular PDF Viewer component | Syncfusion
+description: Learn about free text annotations in the Syncfusion Angular PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
platform: document-processing
control: Free text annotation
documentation: ug
domainurl: ##DomainURL##
---
-# Free text annotation
+# Free text annotation in Angular PDF Viewer control
-The PDF Viewer control provides the options to add, edit, and delete the free text annotations.
+The PDF Viewer control provides options to add, edit, and delete free text annotations.
-## Adding a free text annotation to the PDF document
+## Add a free text annotation to the PDF document
-The Free text annotations can be added to the PDF document using the annotation toolbar.
+Free text annotations can be added to the PDF document using the annotation toolbar.
-* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Select the **Free Text Annotation** button in the annotation toolbar. It enables the Free Text annotation mode.
-* You can add the text over the pages of the PDF document.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar. The annotation toolbar appears below it.
+* Select the **Free Text Annotation** button to enable free text annotation mode.
+* Add text anywhere on the pages of the PDF document.
-In the pan mode, if the free text annotation mode is entered, the PDF Viewer control will switch to text select mode.
+When in pan mode, selecting free text annotation switches the PDF Viewer to text select mode.
-
+
-Refer to the following code sample to switch to the Free Text annotation mode using a button click.
+The following example switches to free text annotation mode using a button click.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -147,11 +147,11 @@ RemoveSelection() {
[View sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/Annotations/How%20to%20clear%20the%20selection%20from%20annotation)
-## Adding a Free Text annotation to the PDF document Programmatically
+## Add a free text annotation programmatically to the PDF document
-With the PDF Viewer library, you can add a Free Text annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+The PDF Viewer library allows adding a free text annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method
-Here's a example of how you can utilize the **addAnnotation()** method to include a Free Text annotation programmatically
+Here is an example of adding a free text annotation programmatically using addAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -262,63 +262,63 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Editing the properties of free text annotation
+## Edit the properties of free text annotations
-The font family, font size, font styles, font color, text alignment, fill color, the border stroke color, border thickness, and opacity of the free text annotation can be edited using the Font Family tool, Font Size tool, Font Color tool, Text Align tool, Font Style tool Edit Color tool, Edit Stroke Color tool, Edit Thickness tool, and Edit Opacity tool in the annotation toolbar.
+Font family, font size, styles, font color, text alignment, fill color, stroke color, border thickness, and opacity can be edited using the Font Family, Font Size, Font Color, Text Align, Font Style, Edit Color, Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
-### Editing font family
+### Edit font family
-The font family of the annotation can be edited by selecting the desired font in the Font Family tool.
+Edit the font family by selecting a font in the Font Family tool.
-
+
-### Editing font size
+### Edit font size
-The font size of the annotation can be edited by selecting the desired size in the Font Size tool.
+Edit the font size by selecting a size in the Font Size tool.
-
+
-### Editing font color
+### Edit font color
-The font color of the annotation can be edited using the color palette provided in the Font Color tool.
+Edit the font color using the color palette in the Font Color tool.
-
+
-### Editing the text alignment
+### Edit the text alignment
-The text in the annotation can be aligned by selecting the desired styles in the drop-down pop-up in the Text Align tool.
+Align text by selecting an option from the Text Align tool..
-
+
-### Editing text styles
+### Edit text styles
-The style of the text in the annotation can be edited by selecting the desired styles in the drop-down pop-up in the Font Style tool.
+Edit text styles by selecting options in the Font Style tool.
-
+
-### Editing fill color
+### Edit fill color
-The fill color of the annotation can be edited using the color palette provided in the Edit Color tool.
+Edit the fill color using the color palette in the Edit Color tool.
-
+
-### Editing stroke color
+### Edit stroke color
-The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
+Edit the stroke color using the color palette in the Edit Stroke Color tool.
-
+
-### Editing thickness
+### Edit thickness
-The border thickness of the annotation can be edited using the range slider provided in the Edit Thickness tool.
+Edit border thickness using the range slider in the Edit Thickness tool.

-### Editing opacity
+### Edit opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Edit border thickness using the range slider in the Edit Thickness tool.
-
+
## Move the free text annotation programmatically
@@ -367,11 +367,11 @@ public annotationAddEventHandler(args) {
Find the sample [how to get the newly added free text annotation id](https://stackblitz.com/edit/angular-dxub1a-utuefq?file=app.component.ts)
-## Change the content of an existing Free text annotation programmatically
+## Change the content of an existing free text annotation programmatically
-To change the content of an existing free text annotation in the Syncfusion® PDF viewer programmatically, you can use the **editAnnotation()** method.
+To change the content of an existing free text annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method to change the content of a free text annotation:
+Here is an example of changing the content of a free text annotation using editAnnotation():
```html
@@ -391,14 +391,13 @@ changeContent() {
```
-Find the sample [how to change the content of an existing free text annotation programmatically](https://stackblitz.com/edit/angular-dxub1a-krsywy?file=app.component.ts)
+N> The current version of the PDF Viewer does not edit existing document text. New free text annotations can be added and modified within the document.
-## Setting default properties during control initialization
+## Set default properties during control initialization
-The properties of the free text annotation can be set before creating the control using the FreeTextSettings.
+Default properties for free text annotations can be set before creating the control using FreeTextSettings.
-After editing the default values, they will be changed to the selected values.
-Refer to the following code sample to set the default free text annotation settings.
+After changing default values, the selected values are applied. The following example sets default free text annotation settings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/import-export-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/import-export-annotation.md
index 110f55793..d898baf19 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/import-export-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/import-export-annotation.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Import export annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Import export annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Import export annotation in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Import export annotation in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Import export annotation
documentation: ug
@@ -542,7 +542,7 @@ import { PdfViewerComponent, LinkAnnotationService, BookmarkViewService,
{% endhighlight %}
{% endtabs %}
->Run the [web service](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices/tree/main/ASP.NET%20Core/PdfViewerWebService_3.0) and then the angular code. Also note that, the JSON file for importing the annotation should be placed in the location as specified in the GetDocumentPath method of the PdfViewerController.
+>Run the [web service](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices/tree/main/ASP.NET%20Core/PdfViewerWebService_8.0) and then the angular code. Also note that, the JSON file for importing the annotation should be placed in the location as specified in the GetDocumentPath method of the PdfViewerController.
Refer to the following code snippet to import annotations from an XFDF file.
@@ -623,7 +623,7 @@ import { PdfViewerComponent, LinkAnnotationService, BookmarkViewService,
{% endhighlight %}
{% endtabs %}
->Run the [web service](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices/tree/main/ASP.NET%20Core/PdfViewerWebService_3.0) and then the angular code. Also note that, the XFDF file for importing the annotation should be placed in the location as specified in the GetDocumentPath method of the PdfViewerController.
+>Run the [web service](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices/tree/main/ASP.NET%20Core/PdfViewerWebService_8.0) and then the angular code. Also note that, the XFDF file for importing the annotation should be placed in the location as specified in the GetDocumentPath method of the PdfViewerController.
## Importing Annotation Using Base64 Data
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/ink-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/ink-annotation.md
index 3cd38c54b..b571cf752 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/ink-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/ink-annotation.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Ink annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Ink annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Ink annotation in Angular PDF Viewer component | Syncfusion
+description: Learn about ink annotations in the Syncfusion Angular PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
platform: document-processing
control: Ink annotation
documentation: ug
@@ -10,21 +10,21 @@ domainurl: ##DomainURL##
# Ink Annotation in Angular PDF Viewer component
-The PDF Viewer control provides the options to add, edit, and delete the ink annotations.
+The PDF Viewer control provides options to add, edit, and delete ink annotations.
-
+
-## Adding an ink annotation to the PDF document
+## Add an ink annotation to the PDF document
-The ink annotations can be added to the PDF document using the annotation toolbar.
+Ink annotations can be added to the PDF document using the annotation toolbar.
-* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Select the **Draw Ink** button in the annotation toolbar. It enables the ink annotation mode.
-* You can draw anything over the pages of the PDF document.
+* Click the **Edit Annotation** button in the PDF Viewer toolbar. The annotation toolbar appears below it.
+* Select the **Draw Ink** button to enable ink annotation mode.
+* Draw on any page of the PDF document.
-
+
-Refer to the following code sample to switch to the ink annotation mode.
+Ink tool in the annotation toolbar
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -103,11 +103,11 @@ import { PdfViewerComponent, LinkAnnotationService, BookmarkViewService,
{% endhighlight %}
{% endtabs %}
-## Adding a Ink annotation to the PDF document Programmatically
+## Add an ink annotation programmatically to the PDF document
-With the PDF Viewer library, you can add a Ink annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+The PDF Viewer library allows adding an ink annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a Ink annotation programmatically
+Here is an example of adding an ink annotation programmatically using addAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -197,11 +197,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Edit the existing Ink annotation programmatically
+## Edit an existing ink annotation programmatically
-To modify existing Ink annotation in the Syncfusion® PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing ink annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -305,34 +305,33 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Editing the properties of the ink annotation
+## EEdit the properties of ink annotations
-The stroke color, thickness, and opacity of the ink annotation can be edited using the Edit stroke color tool, Edit thickness tool, and Edit opacity tool in the annotation toolbar.
+Stroke color, thickness, and opacity can be edited using the Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
-### Editing stroke color
+### Edit stroke color
-The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
+Edit the stroke color using the color palette in the Edit Stroke Color tool.
-
+
-### Editing thickness
+### Edit thickness
-The thickness of the border of the annotation can be edited using the range slider provided in the Edit Thickness tool.
+Edit thickness using the range slider in the Edit Thickness tool.

-### Editing opacity
+### Edit opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Edit opacity using the range slider in the Edit Opacity tool.
-
+
-## Setting default properties during the control initialization
+## Set default properties during control initialization
-The properties of the ink annotation can be set before creating the control using the InkAnnotationSettings.
+Default properties for ink annotations can be set before creating the control using InkAnnotationSettings.
-After editing the default values, they will be changed to the selected values.
-Refer to the following code sample to set the default ink annotation settings.
+After changing default values, the selected values are applied.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/line-angle-constraints.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/line-angle-constraints.md
index cf8d2f71b..f3fbc5986 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/line-angle-constraints.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/line-angle-constraints.md
@@ -1,18 +1,19 @@
---
layout: post
-title: Line Angle Constraints in Angular PDF Viewer | Syncfusion
+title: Line angle constraints in Angular PDF Viewer | Syncfusion
+description: Programmatically manage text markup annotations like highlight, underline, strikethrough, and squiggly in your PDF documents.
description: Learn all about Line Angle Constraints Annotation in the Syncfusion Angular PDF Viewer component of Essential JS 2 and more.
platform: document-processing
control: Line Angle Constraints
documentation: ug
---
-# Line Angle Constraints in Angular PDF Viewer
+# Line angle constraints in Angular PDF Viewer
The PDF Viewer control provides robust **line angle constraints** functionality. This allows users to draw line type annotations with controlled angle snapping, improving accuracy and consistency across technical drawings and measurements across your PDF documents.
-## Enabling Line Angle Constraints
-To enable line angle constraints, configure the `enableLineAngleConstraints` property within the `annotationDrawingOptions` of the PDF Viewer. When enabled, line-type annotations are automatically restricted to fixed angles.
+## Enable line angle constraints
+onfigure the `enableLineAngleConstraints` property within `annotationDrawingOptions`. When enabled, supported line-type annotations snap to fixed angles.
The following code demonstrates how to enable line angle constraints:
@@ -97,48 +98,49 @@ The `enableLineAngleConstraints` property activates angle snapping for line-base
- Automatic angle snapping during the drawing
- Enhanced precision for technical drawings and measurements
-- Desktop support: Hold **Shift** while drawing to activate constraints
+- Desktop support: Desktop behavior: hold Shift while drawing to toggle constraints (when disabled, Shift temporarily enables; when enabled, Shift enforces snapping)
- Real-time visual feedback showing angle snapping behavior
### restrictLineAngleTo
-The `restrictLineAngleTo` property defines the angle increment (in degrees) that constrains line-based annotations. The default value is **45 degrees**.
+Defines the angle increment (in degrees) used to constrain supported annotations. The default is 45.
-**Angle Snapping Rules:**
+Angle snapping rules:
- The initial drawing direction is treated as the 0° reference point
- Snapped angles are calculated based on the increment
- If the increment doesn’t divide 360 evenly, angles reset after 360°
-**Examples:**
+Examples:
- restrictLineAngleTo: 45 → Snapped angles: 0°, 45°, 90°, 135°, 180°, 225°, 270°, 315°, 360°
- restrictLineAngleTo: 100 → Snapped angles: 0°, 100°, 200°, 300°, 360°
-## Working with Constrained Annotations
+## Work with constrained annotations
### Drawing Behavior
When line angle constraints are enabled:
-**Initial Drawing:** Start drawing a line, arrow, polygon, distance, perimeter, area, or volume as usual.
-**Angle Snapping:** The line snaps to the nearest allowed angle.
-**Visual Feedback:** Snapped angle is shown in real time.
-**Completion:** Release to complete the annotation.
+- Start drawing a supported annotation (Line, Arrow, Polyline, Distance, or Perimeter).
+- The segment snaps to the nearest allowed angle.
+- A visual indicator reflects snapping in real time.
+- Release to complete the annotation.
### Keyboard Shortcuts
-**Desktop Platforms:**
-
-**Shift + Drag:** Enables angle snapping even when `enableLineAngleConstraints` is false.
+Desktop platforms:
+- Shift + drag: toggles snapping. If constraints are disabled, Shift temporarily enables them; if enabled, Shift enforces snapping.
### Selector-Based Modifications
When modifying existing line annotations using selectors:
- Constraints apply based on the original line direction.
-- The reference angle (0°) is determined by the lines current orientation.
-- Only lines and arrows support constraint snapping during modification.
-- Adjustments snap to the configured angle increment relative to the original direction.
+- The reference angle (0°) is determined by the line’s current orientation.
+- Constraint snapping during modification is supported for Line and Arrow.
+- Adjustments snap to the configured angle increment.
+
+[View a sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/How%20to)
-N> You can refer to our [Angular PDF Viewer](https://www.syncfusion.com/angular-ui-components/angular-pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [Angular PDF Viewer example](https://github.com/syncfusion/ej2-angular-samples/tree/master/src/app/pdfviewer) to know how to render and configure the PDF Viewer.
+N> Refer to the Angular PDF Viewer [feature tour](https://www.syncfusion.com/pdf-viewer-sdk/angular-pdf-viewer) for feature highlights. Explore the [Angular PDF Viewer examples](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples) to learn how to render and configure the PDF Viewer.
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/measurement-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/measurement-annotation.md
index 22de57732..03fd47d83 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/measurement-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/measurement-annotation.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Measurement annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Measurement annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Measurement annotation in Angular PDF Viewer control | Syncfusion
+description: Learn about measurement annotations in the Syncfusion Angular PDF Viewer (Essential JS 2): distance, perimeter, area, radius, and volume.
platform: document-processing
control: Measurement annotation
documentation: ug
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
# Measurement Annotation in Angular PDF Viewer component
-The PDF Viewer provides the options to add measurement annotations. You can measure the page annotations with the help of measurement annotation. The supported measurement annotations in the PDF Viewer control are:
+The PDF Viewer provides options to add measurement annotations. The supported measurement annotations are:
* Distance
* Perimeter
@@ -18,22 +18,22 @@ The PDF Viewer provides the options to add measurement annotations. You can meas
* Radius
* Volume
-
+
## Adding measurement annotations to the PDF document
The measurement annotations can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Measurement Annotation** dropdown button. A dropdown pop-up will appear and shows the measurement annotations to be added.
-* Select the measurement type to be added to the page in the dropdown pop-up. It enables the selected measurement annotation mode.
-* You can measure and add the annotation over the pages of the PDF document.
+* Click the **Measurement Annotation** drop-down button. The pop-up lists available measurement annotation types.
+* Select a measurement type to enable its annotation mode.
+* Measure and add annotations on the pages of the PDF document.
-In the pan mode, if the measurement annotation mode is entered, the PDF Viewer control will switch to text select mode.
+When in pan mode, selecting a measurement annotation switches the PDF Viewer to text select mode.

-Refer to the following code snippet to switch to distance annotation mode.
+The following example switches to distance annotation mode.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -112,11 +112,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Adding a measurement annotation to the PDF document Programmatically
+## Add a measurement annotation to the PDF document Programmatically
-With the PDF Viewer library, you can add a measurement annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+The PDF Viewer library allows adding measurement annotations programmatically using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a measurement annotation programmatically:
+Here is an example showing how to add measurement annotations programmatically using addAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -289,11 +289,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Edit the existing measurement annotation programmatically
+## Edit an existing measurement annotation programmatically
-To modify existing measurement annotation in the Syncfusion® PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing measurement annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -503,29 +503,29 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Editing the properties of measurement annotation
+## Edit the properties of measurement annotations
-The fill color, stroke color, thickness, and opacity of the measurement annotation can be edited using the Edit Color tool, Edit Stroke Color tool, Edit Thickness tool, and Edit Opacity tool in the annotation toolbar.
+The fill color, stroke color, thickness, and opacity can be edited using the Edit Color, Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
-### Editing fill color
+### Edit fill color
The fill color of the annotation can be edited using the color palette provided in the Edit Color tool.

-### Editing stroke color
+### Edit stroke color
The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.

-### Editing thickness
+### Edit thickness
-The thickness of the border of the annotation can be edited using the range slider provided in the Edit thickness tool.
+Edit border thickness using the range slider provided in the Edit Thickness tool.

-### Editing opacity
+### Edit opacity
The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
@@ -533,14 +533,13 @@ The opacity of the annotation can be edited using the range slider provided in t
### Editing the line properties
-The properties of the line measurements such as distance and perimeter annotations can be edited using the Line properties window. It can be opened by selecting the Properties option in the context menu that appears on right-clicking the distance and perimeter annotations.
+Line-based measurement annotations (distance and perimeter) have additional options in the Line Properties window. Open it by right-clicking the annotation and selecting Properties from the context menu.

-## Setting default properties during control initialization
+## Set default properties during control initialization
-The properties of the measurement annotations can be set before creating the control using distanceSettings, perimeterSettings, areaSettings, radiusSettings and volumeSettings.
-Refer to the following code snippet to set the default annotation settings.
+Default properties for measurement annotations can be set before creating the control using distanceSettings, perimeterSettings, areaSettings, radiusSettings, and volumeSettings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/shape-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/shape-annotation.md
index 9d9134269..b3b949c12 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/shape-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/shape-annotation.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Shape annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Shape annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Shape annotation in Angular PDF Viewer control | Syncfusion
+description: Learn about shape annotations in the Syncfusion Angular PDF Viewer (Essential JS 2), including add, edit, delete, and default settings.
platform: document-processing
control: Shape annotation
documentation: ug
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
# Shape Annotation in Angular PDF Viewer component
-The PDF Viewer control provides the options to add, edit, and delete the shape annotations. The shape annotation types supported in the PDF Viewer control are:
+The PDF Viewer control provides options to add, edit, and delete shape annotations. The supported shape annotation types are:
* Line
* Arrow
@@ -18,20 +18,22 @@ The PDF Viewer control provides the options to add, edit, and delete the shape a
* Circle
* Polygon
-
+
## Adding a shape annotation to the PDF document
Shape annotations can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Shape Annotation** drop-down button. A drop-down pop-up will appear and shows the shape annotations to be added.
-* Select the shape types to be added to the page in the drop-down pop-up. It enables the selected shape annotation mode.
-* You can add the shapes over the pages of the PDF document.
+* Click the **Shape Annotation** drop-down button. The pop-up lists available shape annotation types.
+* Select a shape type to enable its annotation mode.
+* Draw the shape on the pages of the PDF document.
+
+N> When in pan mode and a shape annotation tool is selected, the PDF Viewer switches to text select mode automatically to ensure a smooth interaction experience.
In the pan mode, if the shape annotation mode is entered, the PDF Viewer control will switch to text select mode.
-
+
Refer to the following code sample to switch to the circle annotation mode.
@@ -114,11 +116,11 @@ import { PdfViewerComponent, LinkAnnotationService, BookmarkViewService,
{% endhighlight %}
{% endtabs %}
-## Adding a shape annotation to the PDF document Programmatically
+## Add a shape annotation to the PDF document programmatically
-With the PDF Viewer library, you can add a shape annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+The PDF Viewer library allows adding a shape annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a shape annotation programmatically:
+Here is an example showing how to add shape annotations programmatically using addAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -286,11 +288,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Edit the existing shape annotation programmatically
+## Edit an existing shape annotation programmatically
-To modify existing shape annotation in the Syncfusion® PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing shape annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation()::
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -488,43 +490,43 @@ export class AppComponent implements OnInit {
## Editing the properties of the shape annotation
-The fill color, stroke color, thickness, and opacity of the shape annotation can be edited using the Edit color tool, Edit stroke color tool, Edit thickness tool, and Edit opacity tool in the annotation toolbar.
+The fill color, stroke color, thickness, and opacity of shape annotations can be edited using the Edit Color, Edit Stroke Color, Edit Thickness, and Edit Opacity tools in the annotation toolbar.
### Editing fill color
The fill color of the annotation can be edited using the color palette provided in the Edit Color tool.
-
+
### Editing stroke color
The stroke color of the annotation can be edited using the color palette provided in the Edit Stroke Color tool.
-
+
### Editing thickness
The thickness of the border of the annotation can be edited using the range slider provided in the Edit Thickness tool.
-
+
### Editing opacity
The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
-
+
### Editing the line properties
-The properties of the line shapes such as line and arrow annotations can be edited using the Line Properties window. It can be opened by selecting the Properties option in the context menu that appears on right-clicking the line and arrow annotations.
+Line and arrow annotations have additional options in the Line Properties window. Open it by right-clicking a line or arrow annotation and selecting Properties from the context menu.
Refer to the following code sample to set the default annotation settings.
-
+
-## Setting default properties during the control initialization
+## Set default properties during control initialization
-The properties of the shape annotations can be set before creating the control using LineSettings, ArrowSettings, RectangleSettings, CircleSettings, and PolygonSettings.
+Default properties for shape annotations can be set before creating the control using LineSettings, ArrowSettings, RectangleSettings, CircleSettings, and PolygonSettings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/signature-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/signature-annotation.md
index 61d3f3f1a..8ead29596 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/signature-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/signature-annotation.md
@@ -1,33 +1,33 @@
---
layout: post
-title: Handwritten signature in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Handwritten signature in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Handwritten signature in Angular PDF Viewer control | Syncfusion
+description: Learn about handwritten signatures in the Syncfusion Angular PDF Viewer (Essential JS 2): add, enable/disable, and edit properties.
platform: document-processing
control: Handwritten signature
documentation: ug
domainurl: ##DomainURL##
---
-# Handwritten Signature
+# Handwritten signature in Angular PDF Viewer control
-The PDF Viewer control supports adding the handwritten signatures to a PDF document. The handwritten signature reduces the paperwork of reviewing the content and verifies it digitally.
+The PDF Viewer control supports adding handwritten signatures to a PDF document. Handwritten signatures reduce paperwork and enable digital verification.
## Adding a handwritten signature to the PDF document
The handwritten signature can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Select the **Handwritten Signature** button in the annotation toolbar. The signature panel will appear.
+* Select the **HandWritten Signature** button in the annotation toolbar. The signature panel appears.
-
+
-* Draw the signature in the signature panel.
+* Draw the signature in the panel.
-
+
-* Then, click the **Create** button and move the signature using the mouse and place them in the desired location.
+* Click **Create**, move the signature, and place it at the desired location.
-
+
## Adding a handwritten signature to the PDF document Programmatically
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/stamp-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/stamp-annotation.md
index 0ff5318bf..2fa355912 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/stamp-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/stamp-annotation.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Stamp annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Stamp annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Stamp annotation in Angular PDF Viewer control | Syncfusion
+description: Learn about stamp annotations in the Syncfusion Angular PDF Viewer (Essential JS 2): dynamic, sign here, standard business, and custom stamps.
platform: document-processing
control: Stamp annotation
documentation: ug
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
# Stamp Annotation in Angular PDF Viewer component
-The PDF Viewer control provides options to add, edit, delete, and rotate the following stamp annotation in the PDF documents:
+The PDF Viewer control provides options to add, edit, delete, and rotate the following stamp annotations in PDF documents:
* Dynamic
* Sign Here
@@ -19,24 +19,24 @@ The PDF Viewer control provides options to add, edit, delete, and rotate the fol

-## Adding stamp annotations to the PDF document
+## Add stamp annotations to the PDF document
The stamp annotations can be added to the PDF document using the annotation toolbar.
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Stamp Annotation** drop-down button. A drop-down pop-up will appear and shows the stamp annotations to be added.
+* Click the **Stamp Annotation** drop-down button. The pop-up lists available stamp annotation types.

-* Select the annotation type to be added to the page in the pop-up.
+* Select a stamp type to enable its annotation mode.

-* You can add the annotation over the pages of the PDF document.
+* Place the stamp on the pages of the PDF document.
-In the pan mode, if the stamp annotation mode is entered, the PDF Viewer control will switch to text select mode.
+N> When in pan mode and a stamp annotation tool is selected, the PDF Viewer switches to text select mode automatically for a smooth interaction experience.
-Refer to the following code sample to switch to the stamp annotation mode.
+The following examples switch to stamp annotation modes.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -114,11 +114,10 @@ Refer to the following code sample to switch to the stamp annotation mode.
{% endhighlight %}
{% endtabs %}
-## Adding a Stamp annotation to the PDF document Programmatically
+## Add a stamp annotation to the PDF document programmatically
+The PDF Viewer library allows adding a stamp annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-With the PDF Viewer library, you can add a Stamp annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-
-Here's a example of how you can utilize the **addAnnotation()** method to include a Stamp annotation programmatically:
+Here are examples showing how to add stamp annotations programmatically using addAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -381,24 +380,23 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Adding custom stamp to the PDF document
+## Add a custom stamp to the PDF document
* Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the **Stamp Annotation** drop-down button. A drop-down pop-up will appear and shows the stamp annotations to be added.
+* Click the **Stamp Annotation** drop-down button. The pop-up lists available stamp annotation types.
* Click the Custom Stamp button.

-* The file explorer dialog will appear, choose the image and then add the image to the PDF page.
+* In the file explorer dialog, choose an image and add it to the PDF page.
->The JPG and JPEG image format is only supported in the custom stamp annotations.
+>Only JPG and JPEG image formats are supported for custom stamp annotations.
## Setting default properties during control initialization
-The properties of the stamp annotation can be set before creating the control using the StampSettings.
+Default properties for stamp annotations can be set before creating the control using StampSettings.
-After editing the default opacity using the Edit Opacity tool, they will be changed to the selected values.
-Refer to the following code sample to set the default sticky note annotation settings.
+After changing default opacity using the Edit Opacity tool, the selected value is applied. The following example sets default stamp annotation settings.
{% tabs %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/sticky-notes-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/sticky-notes-annotation.md
index 5e77c7504..04c7c3ca2 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/sticky-notes-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/sticky-notes-annotation.md
@@ -1,43 +1,42 @@
---
layout: post
-title: Sticky notes annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Sticky notes annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Sticky notes in Angular PDF Viewer control | Syncfusion
+description: Learn about sticky note annotations in the Syncfusion Angular PDF Viewer (Essential JS 2): add, edit, delete, and default settings.
platform: document-processing
control: Sticky notes annotation
documentation: ug
domainurl: ##DomainURL##
---
-# Sticky Notes Annotation in the Angular PDF Viewer component
+# Sticky notes in Angular PDF Viewer control
-The PDF Viewer control provides the options to add, edit, and delete the sticky note annotations in the PDF document.
+The PDF Viewer control provides options to add, edit, and delete sticky note annotations in the PDF document.

-## Adding a sticky note annotation to the PDF document
+## Add a sticky note annotation to the PDF document
Sticky note annotations can be added to the PDF document using the annotation toolbar.
-* Click the **Comments** button in the PDF Viewer toolbar. A toolbar appears below it.
-* Click the position where you want to add sticky note annotation in the PDF document.
-* Sticky note annotation will be added in the clicked positions.
+* Click the **Comments** button in the PDF Viewer toolbar. The annotation toolbar appears below it.
+* Click the position where the sticky note annotation should be added.
+* The sticky note annotation is added at the clicked position.

-Annotation comments can be added to the PDF document using the comment panel.
+Annotation comments can be added using the comment panel.
-* Select a Sticky note annotation in the PDF document and right-click it.
-* Select the Comment option in the context menu that appears.
-* Now, you can add Comments, Reply, and Status using the Comment Panel.
-* Now, you can add Comments, Reply, and Status using the Comment Panel.
+* Select a sticky note annotation in the PDF document and right-click it.
+* Select Comment from the context menu.
+* Add comments, replies, and status using the comment panel.

-## Adding a sticky note annotation to the PDF document Programmatically
+## Add a sticky note annotation to the PDF document programmatically
-With the PDF Viewer library, you can add a sticky note annotation to the PDF Viewer control programmatically using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+The PDF Viewer library allows adding a sticky note annotation programmatically using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's a example of how you can utilize the **addAnnotation()** method to include a sticky note annotation programmatically:
+Here is an example showing how to add a sticky note annotation programmatically using addAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -124,11 +123,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Edit the existing sticky note annotation programmatically
+## Edit an existing sticky note annotation programmatically
-To modify existing sticky note annotation in the Syncfusion® PDF viewer programmatically, you can use the **editAnnotation()** method.
+To modify an existing sticky note annotation programmatically, use the editAnnotation() method.
-Here is an example of how you can use the **editAnnotation()** method:
+Here is an example of using editAnnotation():
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -223,31 +222,31 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Editing the properties of the sticky note annotation
+## Edit the properties of the sticky note annotations
### Editing opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Edit opacity using the range slider in the Edit Opacity tool.

### Editing comments
-The comment, comment reply, and comment status of the annotation can be edited using the Comment Panel.
+Comment text, replies, and status can be edited using the comment panel.
-* Open the comment panel using the Comment Panel button showing in the annotation toolbar.
+* Open the comment panel using the Comment Panel button in the annotation toolbar.

-You can modify or delete the comments or comments replay and it’s status using the menu option provided in the comment panel.
+Modify or delete comments or replies, and change status using the menu options in the comment panel.

-## Setting default properties during the control initialization
+## Set default properties during the control initialization
-The properties of the sticky note annotation can be set before creating the control using the StickyNoteSettings.
+Default properties for sticky note annotations can be set before creating the control using StickyNotesSettings.
-After editing the default opacity using the Edit Opacity tool, they will be changed to the selected values. Refer to the following code sample to set the default sticky note annotation settings.
+After changing default opacity using the Edit Opacity tool, the selected value is applied. The following example sets default sticky note annotation settings.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -323,9 +322,9 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Disabling sticky note annotations
+## Disable sticky note annotations
-The PDF Viewer control provides an option to disable the sticky note annotations feature. The code sample for disabling the feature is as follows.
+The PDF Viewer control provides an option to disable sticky note annotations. The following example disables the feature.
{% tabs %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/annotation/text-markup-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/annotation/text-markup-annotation.md
index fc6faab68..8c0fe4f98 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/annotation/text-markup-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/annotation/text-markup-annotation.md
@@ -1,39 +1,39 @@
---
layout: post
-title: Text Markup Annotation in Angular PDF Viewer component | Syncfusion
-description: Learn here all about Text Markup Annotation in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
+title: Text markup annotation in Angular PDF Viewer | Syncfusion
+description: Learn to add, edit, delete, and customize text markup annotations like highlight, underline, and squiggly in Syncfusion Angular PDF Viewer.
platform: document-processing
control: Text Markup Annotation
documentation: ug
domainurl: ##DomainURL##
---
-# Text Markup Annotation in the Angular PDF Viewer component
+# title: Text markup annotation in Angular PDF Viewer | Syncfusion
-The PDF Viewer control provides the options to add, edit, and delete text markup annotations such as highlight, underline, strikethrough and squiggly annotations in the PDF document.
+The PDF Viewer provides options to add, edit, and delete text markup annotations, including Highlight, Underline, Strikethrough, and Squiggly.

-## Highlight a text
+## Highlight text
-There are two ways to highlight a text in the PDF document:
+There are two ways to highlight text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select **Highlight** option in the context menu that appears.
+* Select text in the PDF document and right-click it.
+* Select **Highlight** in the context menu.

2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Highlight** button in the annotation toolbar. It enables the highlight mode.
- * Select the text and the highlight annotation will be added.
- * You can also select the text and apply the highlight annotation using the **Highlight** button.
+ * Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+ * Select **Highlight** to enable highlight mode.
+ * Select text to add the highlight annotation.
+ * Alternatively, select text first and then click **Highlight**.

-In the pan mode, if the highlight mode is entered, the PDF Viewer control will switch to text select mode to enable the text selection for highlighting the text.
+When pan mode is active and a text markup mode is entered, the PDF Viewer switches to text selection mode to enable selection.
Refer to the following code sample to switch to the highlight mode.
@@ -203,11 +203,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Highlight a text programmatically
+## Highlight text programmatically
-The PDF Viewer library enables you to programmatically highlight text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+Programmatically add highlights using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's an example of how you can use the **addAnnotation()** method to apply highlighting programmatically:
+Example:
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -292,22 +292,22 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Underline a text
+## Underline text
-There are two ways to underline a text in the PDF document:
+There are two ways to underline text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select the **Underline** option in the context menu that appears.
+ *Select text in the PDF document and right-click it.
+ * Select **Underline** in the context menu.

2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Underline** button in the annotation toolbar. It enables the underline mode.
- * Select the text and the underline annotation will be added.
- * You can also select the text and apply the underline annotation using the **Underline** button.
+ * Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+ * Select **Underline** to enable underline mode.
+ * Select text to add the underline annotation.
+ * Alternatively, select text first and then click **Underline**.

@@ -481,11 +481,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Underline a text programmatically
+## Underline text programmatically
-The PDF Viewer library enables you to programmatically Underline text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+Programmatically add underlines using the [addAnnotation()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's an example of how you can use the **addAnnotation()** method to apply Underline programmatically:
+Example:
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -570,22 +570,22 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Strikethrough a text
+## Strikethrough text
-There are two ways to strikethrough a text in the PDF document:
+There are two ways to strikethrough text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select the **Strikethrough** option in the context menu that appears.
+* Select text in the PDF document and right-click it.
+* Select **Strikethrough** in the context menu.

2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Strikethrough** button in the annotation toolbar. It enables the strikethrough mode.
- * Select the text and the strikethrough annotation will be added.
- * You can also select the text and apply the strikethrough annotation using the **Strikethrough** button.
+ * Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+ * Select **Strikethrough** to enable strikethrough mode.
+ * Select text to add the strikethrough annotation.
+ * Alternatively, select text first and then click **Strikethrough**.

@@ -759,11 +759,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Strikethrough a text programmatically
+## Strikethrough text programmatically
-The PDF Viewer library enables you to programmatically Strikethrough text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+Programmatically add strikethrough using the [addAnnotation](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's an example of how you can use the **addAnnotation()** method to apply Strikethrough programmatically:
+Example:
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -848,22 +848,22 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Squiggly a text
+## Add Squiggly to text
-There are two ways to add squiggly to a text in the PDF document:
+There are two ways to add squiggly to text:
1. Using the context menu
- * Select a text in the PDF document and right-click it.
- * Select the **Squiggly** option in the context menu that appears.
+* Select text in the PDF document and right-click it.
+* Select **Squiggly** in the context menu.

2. Using the annotation toolbar
- * Click the **Edit Annotation** button in the PDF Viewer toolbar. A toolbar appears below it.
- * Select the **Squiggly** button in the annotation toolbar. It enables the squiggly mode.
- * Select the text and the squiggly annotation will be added.
- * You can also select the text and apply the squiggly annotation using the **Squiggly** button.
+ * Click the **Edit Annotation** button in the PDF Viewer toolbar to open the annotation toolbar.
+ * Select **Squiggly** to enable squiggly mode.
+ * Select text to add the squiggly annotation.
+ * Alternatively, select text first and then click **Squiggly**.

@@ -1037,11 +1037,11 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Squiggly a text programmatically
+## Squiggly text programmatically
-The PDF Viewer library enables you to programmatically Squiggly text within the PDF Viewer control using the [**addAnnotation()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
+Refer to the following code snippet to switch back to normal mode from squiggly mode.(https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotation/#addannotationn) method.
-Here's an example of how you can use the **addAnnotation()** method to apply Squiggly programmatically:
+Example:
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -1130,37 +1130,37 @@ export class AppComponent implements OnInit {
The selected annotation can be deleted in the following ways:
-1. Using the Delete key
- * Select the annotation to be deleted.
- * Click the Delete key in the keyboard. The selected annotation will be deleted.
+1. Using the Delete/Backspace key
+ * Select the annotation.
+ * Press Delete (or Backspace). The selected annotation is removed.
2. Using the annotation toolbar
- * Select the annotation to be deleted.
- * Click the **Delete Annotation** button in the annotation toolbar. The selected annotation will be deleted.
+ * Select the annotation.
+ * Click **Delete Annotation** in the annotation toolbar. The selected annotation is removed.

-## Editing the properties of the text markup annotation
+## Edi text markup annotation properties
The color and the opacity of the text markup annotation can be edited using the Edit Color tool and the Edit Opacity tool in the annotation toolbar.
-### Editing color
+### Edit color
-The color of the annotation can be edited using the color palette provided in the Edit Color tool.
+Use the color palette in the Edit Color tool to change the annotation color.

-### Editing opacity
+### Edit opacity
-The opacity of the annotation can be edited using the range slider provided in the Edit Opacity tool.
+Use the range slider in the Edit Opacity tool to change annotation opacity.

-## Setting default properties during the control initialization
+## Set default properties during control initialization
-The properties of the text markup annotation can be set before creating the control using the highlightSettings, underlineSettings, strikethroughSettings and squigglySettings.
+Set default properties before creating the control using `highlightSettings`, `underlineSettings`, `strikethroughSettings`, and `squigglySettings`.
->After editing the default color and opacity using the Edit Color tool and Edit Opacity tool, they will be changed to the selected values.
+> After editing default color and opacity using the Edit Color and Edit Opacity tools, the values update to the selected settings.
Refer to the following code sample to set the default annotation settings.
@@ -1248,22 +1248,22 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Performing undo and redo
+## Perform undo and redo
-The PDF Viewer performs undo and redo for the changes made in the PDF document. In the text markup annotation, undo and redo actions are provided for:
+The PDF Viewer supports undo and redo for changes. For text markup annotations, undo and redo are provided for:
* Inclusion of the text markup annotations.
* Deletion of the text markup annotations.
* Change of either color or opacity of the text markup annotations.
-The undo and redo actions can be done in the following ways:
+Undo and redo actions can be performed in the following ways:
-1. Using the keyboard shortcuts:
- After performing a text markup annotation action, you can undo it by using the Ctrl + Z shortcut and redo by using the Ctrl + Y shortcut.
-2. Using toolbar:
- The Undo and redo can be done using the **Undo** tool and **Redo** tool provided in the toolbar.
+1. Using keyboard shortcuts:
+ After performing a text markup annotation action, press Ctrl+Z to undo and Ctrl+Y to redo.
+2. Using the toolbar:
+ Use the **Undo** and **Redo** tools in the toolbar.
-Refer to the following code sample for calling undo and redo actions from the client-side.
+Refer to the following code snippet to call undo and redo actions from the client side.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -1353,17 +1353,17 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-## Saving the text markup annotation
+## Save text markup annotations
-When you click the download tool in the toolbar, the text markup annotations will be saved in the PDF document. This action will not affect the original document.
+Click the download tool in the toolbar to save text markup annotations to the PDF document. The original document is not modified.
-## Printing the text markup annotation
+## Print text markup annotations
-When the print tool is selected in the toolbar, the PDF document will be printed along with the text markup annotations added to the pages. This action will not affect the original document.
+Click the print tool in the toolbar to print the PDF document with text markup annotations. The original document is not modified.
-## Disabling text markup annotation
+## Disable text markup annotation
-The PDF Viewer control provides an option to disable the text markup annotation feature. The code sample for disabling the feature is as follows.
+Disable text markup annotations using the `enableTextMarkupAnnotation` property.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/download.md b/Document-Processing/PDF/PDF-Viewer/angular/download.md
index f6b68dd29..b60f7ffbd 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/download.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/download.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Download in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Download in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Download in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Download in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Download
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/events.md b/Document-Processing/PDF/PDF-Viewer/angular/events.md
new file mode 100644
index 000000000..8dd049f3a
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/events.md
@@ -0,0 +1,3176 @@
+---
+layout: post
+title: Events in Angular PDF Viewer | Syncfusion
+description: Comprehensive list of events in the Syncfusion Angular PDF Viewer with descriptions, event arguments, and usage examples to integrate custom logic.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Events in Angular PDF Viewer
+
+The PDF Viewer component triggers events for creation, page navigation, document life cycle, context menu interactions, comments, bookmarks, download and export, hyperlinks, annotation import/export, custom keyboard commands, printing, signatures, text search, and text selection. Use these events to integrate custom logic into application workflows.
+
+The following table lists commonly used events supported by the PDF Viewer component:
+
+| Event | Description |
+| ----- | ----------- |
+| [`bookmarkClick`](#bookmarkclick) | Triggers when a bookmark item is clicked in the bookmark panel. |
+| [`buttonFieldClick`](#buttonfieldclick) | Triggers when a button form field is clicked. |
+| [`commentAdd`](#commentadd) | Triggers when a comment is added to the comment panel. |
+| [`commentDelete`](#commentdelete) | Triggers when a comment is deleted from the comment panel. |
+| [`commentEdit`](#commentedit) | Triggers when a comment is edited in the comment panel. |
+| [`commentSelect`](#commentselect) | Triggers when a comment is selected in the comment panel. |
+| [`commentStatusChanged`](#commentstatuschanged) | Triggers when a comment’s status changes in the comment panel. |
+| [`created`](#created) | Triggers during the creation of the PDF Viewer component. |
+| [`customContextMenuBeforeOpen`](#customcontextmenubeforeopen) | Fires before the custom context menu opens. |
+| [`customContextMenuSelect`](#customcontextmenuselect) | Fires when a custom context menu item is selected. |
+| [`documentLoad`](#documentload) | Triggers while loading a document into the PDF Viewer. |
+| [`documentLoadFailed`](#documentloadfailed) | Triggers when document loading fails. |
+| [`documentUnload`](#documentunload) | Triggers when the document is closed. |
+| [`downloadEnd`](#downloadend) | Triggers after a document is downloaded. |
+| [`downloadStart`](#downloadstart) | Triggers when the download action is initiated. |
+| [`exportFailed`](#exportfailed) | Triggers when exporting annotations fails. |
+| [`exportStart`](#exportstart) | Triggers when exporting annotations starts. |
+| [`exportSuccess`](#exportsuccess) | Triggers when annotations are exported successfully. |
+| [`extractTextCompleted`](#extracttextcompleted) | Triggers when text extraction is completed. |
+| [`hyperlinkClick`](#hyperlinkclick) | Triggers when a hyperlink is clicked. |
+| [`hyperlinkMouseOver`](#hyperlinkmouseover) | Triggers when hovering over a hyperlink. |
+| [`importFailed`](#importfailed) | Triggers when importing annotations fails. |
+| [`importStart`](#importstart) | Triggers when importing annotations starts. |
+| [`importSuccess`](#importsuccess) | Triggers when annotations are imported successfully. |
+| [`keyboardCustomCommands`](#keyboardcustomcommands) | Triggers when customized keyboard command keys are pressed. |
+| [`moveSignature`](#movesignature) | Triggers when a signature is moved across the page. |
+| [`pageChange`](#pagechange) | Triggers when the current page number changes. |
+| [`pageClick`](#pageclick) | Triggers when a mouse click occurs on a page. |
+| [`pageMouseover`](#pagemouseover) | Triggers when moving the mouse over a page. |
+| [`pageOrganizerSaveAs`](#pageorganizersaveas) | Triggers when a `save as` action is performed in the page organizer. |
+| [`pageRenderComplete`](#pagerendercomplete) | Triggers after a page finishes rendering. |
+| [`pageRenderInitiate`](#pagerenderinitiate) | Triggers when page rendering begins. |
+| [`printEnd`](#printend) | Triggers when a print action is completed. |
+| [`printStart`](#printstart) | Triggers when a print action is initiated. |
+| [`removeSignature`](#removesignature) | Triggers when a signature is removed. |
+| [`resizeSignature`](#resizesignature) | Triggers when a signature is resized. |
+| [`resourcesLoaded`](#resourcesloaded) | Triggers after PDFium resources are loaded. |
+| [`signaturePropertiesChange`](#signaturepropertieschange) | Triggers when signature properties are changed. |
+| [`signatureSelect`](#signatureselect) | Triggers when a signature is selected. |
+| [`signatureUnselect`](#signatureunselect) | Triggers when a signature is unselected. |
+| [`textSearchComplete`](#textsearchcomplete) | Triggers when a text search is completed. |
+| [`textSearchHighlight`](#textsearchhighlight) | Triggers when the searched text is highlighted. |
+| [`textSearchStart`](#textsearchstart) | Triggers when a text search is initiated. |
+| [`textSelectionEnd`](#textselectionend) | Triggers when text selection is complete. |
+| [`textSelectionStart`](#textselectionstart) | Triggers when text selection is initiated. |
+| [`thumbnailClick`](#thumbnailclick) | Triggers when a thumbnail is clicked. |
+| [`toolbarClick`](#toolbarclick) | Triggers when a toolbar item is clicked. |
+| [`validateFormFields`](#validateformfields) | Triggers when form field validation fails. |
+| [`zoomChange`](#zoomchange) | Triggers when the magnification value changes. |
+
+Note: For annotation and signature events, see the dedicated Annotations Events topic.
+
+## bookmarkClick
+
+The [bookmarkClick](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#bookmarkclickevent) event triggers when a bookmark item is clicked in the bookmark panel.
+
+- Event arguments: [BookmarkClickEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/bookmarkClickEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onBookmarkClick(args: any): void {
+ console.log(`Bookmark clicked: ${args.name}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## toolbarClick
+
+The [toolbarClick](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#toolbarclickevent) event triggers when a toolbar item is clicked. Use it to handle actions based on the clicked item's id or name.
+
+- Event arguments: `ClickEventArgs`.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onToolbarClick(args: any): void {
+ console.log(`Toolbar item clicked: ${args.name}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## validateFormFields
+
+The [validateFormFields](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#validateformfieldsevent) event triggers when form field validation fails, typically before a download or submit action proceeds. Use this event to inspect which required fields are empty and show custom messages or block application logic if needed.
+
+- Event arguments: [ValidateFormFieldsArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/validateFormFieldsArgs/)
+ - name: Event name
+ - documentName: Current document name
+ - formField: The last interacted field’s data (if applicable)
+ - nonFillableFields: Array detailing required/invalid fields
+
+When it triggers
+- Add a form field and mark it Required (UI: right‑click field > Properties > Required).
+- Leave the field empty and click Download. The event fires and provides the list of fields that failed validation.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/form-designer.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+ public enableFormFieldsValidation = true;
+
+ public onValidateFormFields(args: any): void {
+ console.log('form field event name:', args.name);
+ console.log('form field document name:', args.documentName);
+ console.log('form field data:', args.formField);
+ console.log('non fillable form field details:', args.nonFillableFields);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+Tip
+- To require a field programmatically, set isRequired: true when creating or editing the field via Form Designer APIs.
+
+## zoomChange
+
+The [zoomChange](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#zoomchangeevent) event triggers when the magnification value changes.
+
+- Event arguments: [ZoomChangeEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/zoomChangeEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onZoomChange(args: any): void {
+ console.log(`Zoom changed to: ${args.zoomValue}%`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## buttonFieldClick
+
+The [buttonFieldClick](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#buttonfieldclickevent) event triggers when a button form field is clicked.
+
+- Event arguments: [ButtonFieldClickEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/buttonFieldClickEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onButtonFieldClick(args: any): void {
+ console.log(`Button field clicked. Name: ${args.name}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## commentAdd
+
+The [commentAdd](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#commentaddevent) event triggers when a comment is added in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onCommentAdd(args: any): void {
+ console.log(`Comment added. Id: ${args.id}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## commentDelete
+
+The [commentDelete](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#commentdeleteevent) event triggers when a comment is deleted in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onCommentDelete(args: any): void {
+ console.log(`Comment deleted. Id: ${args.id}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## commentEdit
+
+The [commentEdit](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#commenteditevent) event triggers when a comment is edited in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onCommentEdit(args: any): void {
+ console.log(`Comment edited. Id: ${args.id}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## commentSelect
+
+The [commentSelect](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#commentselectevent) event triggers when a comment is selected in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onCommentSelect(args: any): void {
+ console.log(`Comment selected. Id: ${args.id}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## commentStatusChanged
+
+The [commentStatusChanged](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#commentstatuschangedevent) event triggers when a comment status is changed in the comment panel.
+
+- Event arguments: [CommentEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/commentEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onCommentStatusChanged(args: any): void {
+ console.log(`Comment status changed. Id: ${args.id}, Status: ${args.status}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## created
+
+The [created](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#createdevent) event is triggered during the creation of the PDF Viewer component.
+
+- Event arguments: `void`.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onCreated(): void {
+ console.log('PDF Viewer created');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## customContextMenuBeforeOpen
+
+The [customContextMenuBeforeOpen](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#customcontextmenubeforeopenevent) event fires just before the context menu is shown. Use it to show or hide items based on the current state (for example, only show search items when text is selected).
+
+- Event arguments: [CustomContextMenuBeforeOpenEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/customContextMenuBeforeOpenEventArgs/)
+ - name: Event name
+ - ids: Array of menu item ids that will be shown; remove ids to hide items for this open
+
+Example:
+
+```ts
+// app.component.ts
+import { Component, ViewChild } from '@angular/core';
+import { PdfViewerComponent, ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ @ViewChild('pdfViewer', { static: false }) pdfViewer!: PdfViewerComponent;
+
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public menuItems: any[] = [
+ {
+ text: 'SEARCH_ON_WEB',
+ id: 'web_search',
+ iconCss: 'e-icons e-search',
+ items: [
+ { text: 'SEARCH_IN_GOOGLE_IMAGE', id: 'web_search_images' },
+ { text: 'SEARCH_IN_WIKIPEDIA', id: 'web_search_wikipedia' },
+ { text: 'SEARCH_IN_YOUTUBE', id: 'web_search_youtube' },
+ { text: 'SEARCH_GOOGLE', id: 'web_search_google' },
+ ],
+ },
+ { id: 'web_search_separator', separator: true },
+ ];
+
+ public onCustomContextMenuBeforeOpen(args: any): void {
+ console.log(`Before open context menu at page ${args.name}`);
+ }
+
+ public onDocumentLoad(): void {
+ if (this.pdfViewer) {
+ this.pdfViewer.addCustomMenu(this.menuItems, false, false);
+ }
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## customContextMenuSelect
+
+The [customContextMenuSelect](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#customcontextmenuselectevent) event fires when a custom menu item is clicked. Use it to branch logic by the clicked item's id.
+
+- Event arguments: [CustomContextMenuSelectEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/customContextMenuSelectEventArgs/).
+
+- name: Event name
+- id: The id of the clicked menu item
+
+Example:
+
+```ts
+// app.component.ts
+import { Component, ViewChild } from '@angular/core';
+import { PdfViewerComponent, ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ @ViewChild('pdfViewer', { static: false }) pdfViewer!: PdfViewerComponent;
+
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public menuItems: any[] = [
+ {
+ text: 'SEARCH_ON_WEB',
+ id: 'web_search',
+ iconCss: 'e-icons e-search',
+ items: [
+ { text: 'SEARCH_IN_GOOGLE_IMAGE', id: 'web_search_images' },
+ { text: 'SEARCH_IN_WIKIPEDIA', id: 'web_search_wikipedia' },
+ { text: 'SEARCH_IN_YOUTUBE', id: 'web_search_youtube' },
+ { text: 'SEARCH_GOOGLE', id: 'web_search_google' },
+ ],
+ },
+ { id: 'web_search_separator', separator: true },
+ ];
+
+ public onCustomContextMenuSelect(args: any): void {
+ console.log(`Context menu item selected: ${args.name}`);
+ }
+
+ public onDocumentLoad(): void {
+ if (this.pdfViewer) {
+ this.pdfViewer.addCustomMenu(this.menuItems, false, false);
+ }
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## documentLoad
+
+The [documentLoad](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#documentloadevent) event occurs after a document is successfully loaded and parsed.
+
+- Event arguments: [LoadEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/loadEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onDocumentLoad(args: any): void {
+ console.log(`Document loaded: page count = ${args.pageData}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## documentLoadFailed
+
+The [documentLoadFailed](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#documentloadfailedevent) event triggers when loading a document fails.
+
+- Event arguments: [LoadFailedEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/loadFailedEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/invalid.pdf';
+
+ public onDocumentLoadFailed(args: any): void {
+ console.log(`Load failed. Error: ${args.documentName}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## documentUnload
+
+The [documentUnload](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#documentunloadevent) event triggers when closing the current document.
+
+- Event arguments: [UnloadEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/unloadEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onDocumentUnload(): void {
+ console.log('Document unloaded');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## downloadEnd
+
+The [downloadEnd](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#downloadendevent) event triggers after a document download completes.
+
+- Event arguments: [DownloadEndEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/downloadEndEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onDownloadEnd(args: any): void {
+ console.log(`Download finished. File name: ${args.fileName}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## downloadStart
+
+The [downloadStart](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#downloadstartevent) event triggers when the download operation is initiated.
+
+- Event arguments: [DownloadStartEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/downloadStartEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onDownloadStart(): void {
+ console.log('Download started');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## exportFailed
+
+The [exportFailed](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#exportfailedevent) event triggers when exporting annotations fails.
+
+- Event arguments: [ExportFailureEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/exportFailureEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onExportFailed(args: any): void {
+ console.log(`Export failed: ${args.name}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## exportStart
+
+The [exportStart](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#exportstartevent) event triggers when exporting annotations starts.
+
+- Event arguments: [ExportStartEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/exportStartEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onExportStart(): void {
+ console.log('Export started');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## exportSuccess
+
+The [exportSuccess](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#exportsuccessevent) event triggers when annotations are exported successfully.
+
+- Event arguments: [ExportSuccessEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/exportSuccessEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import { ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onExportSuccess(): void {
+ console.log('Export success');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## extractTextCompleted
+
+The [extractTextCompleted](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#extracttextcompletedevent) event triggers when text extraction completes.
+
+- Event arguments: [ExtractTextCompletedEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/extractTextCompletedEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onExtractTextCompleted(args: any): void {
+ console.log(`Extracted text length: ${(args.documentTextCollection || '').length}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## hyperlinkClick
+
+The [hyperlinkClick](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#hyperlinkclickevent) event triggers when a hyperlink is clicked.
+
+- Event arguments: [HyperlinkClickEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/hyperlinkClickEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onHyperlinkClick(args: any): void {
+ console.log(`Hyperlink clicked: ${args.hyperlink}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## hyperlinkMouseOver
+
+The [hyperlinkMouseOver](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#hyperlinkmouseoverevent) event triggers when hovering over a hyperlink.
+
+- Event arguments: HyperlinkMouseOverArgs.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onHyperlinkMouseOver(args: any): void {
+ console.log(`Hyperlink hover at page: ${args.name}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## importFailed
+
+The [importFailed](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#importfailedevent) event triggers when importing annotations fails.
+
+- Event arguments: [ImportFailureEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/importFailureEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onImportFailed(args: any): void {
+ console.log(`Import failed: ${args.name}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## importStart
+
+The [importStart](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#importstartevent) event triggers when importing annotations starts.
+
+- Event arguments: [ImportStartEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/importStartEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onImportStart(): void {
+ console.log('Import started');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## importSuccess
+
+The [importSuccess](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#importsuccessevent) event triggers when annotations are imported successfully.
+
+- Event arguments: [ImportSuccessEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/importSuccessEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onImportSuccess(): void {
+ console.log('Import success');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## keyboardCustomCommands
+
+The [keyboardCustomCommands](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#keyboardcustomcommandsevent) event triggers when customized keyboard command keys are pressed.
+
+- Event arguments: [KeyboardCustomCommandsEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/keyboardCustomCommandsEventArgs/).
+
+ - name: Event name
+ - keyboardCommand: The command metadata raised by Command Manager
+
+When it triggers
+- After registering gestures in commandManager.keyboardCommand. For example, pressing Shift + Alt + G or Shift + Alt + H triggers the event. Use this to handle custom keyboard shortcuts.
+
+Refer to [Keyboard interaction](./accessibility#keyboard-interaction) for details about adding and handling custom shortcut keys.
+Example:
+
+```ts
+// app.component.ts
+import { Component, ViewChild } from '@angular/core';
+import { PdfViewerComponent, ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, AnnotationService, FormDesignerService, FormFieldsService, PageOrganizerService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ @ViewChild('pdfViewer', { static: false }) pdfViewer!: PdfViewerComponent;
+
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onCreated(): void {
+ if (this.pdfViewer) {
+ const PdfKeys: any = (window as any).PdfKeys || {};
+ const ModifierKeys: any = (window as any).ModifierKeys || {};
+ (this.pdfViewer as any).commandManager = {
+ keyboardCommand: [
+ { name: 'customCopy', gesture: { pdfKeys: PdfKeys.G, modifierKeys: ModifierKeys.Shift | ModifierKeys.Alt } },
+ { name: 'customPaste', gesture: { pdfKeys: PdfKeys.H, modifierKeys: ModifierKeys.Shift | ModifierKeys.Alt } },
+ { name: 'customCut', gesture: { pdfKeys: PdfKeys.Z, modifierKeys: ModifierKeys.Control } },
+ { name: 'customSelectAll', gesture: { pdfKeys: PdfKeys.E, modifierKeys: ModifierKeys.Control } },
+ ],
+ };
+ }
+ }
+
+ public onKeyboardCustomCommands(args: any): void {
+ console.log('Custom command triggered:', args);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## moveSignature
+
+The [moveSignature](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#movesignatureevent) event triggers when a signature is moved across the page.
+
+- Event arguments: `MoveSignatureEventArgs`.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onMoveSignature(args: any): void {
+ console.log(`Signature moved on page ${args.id}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## pageChange
+
+The [pageChange](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#pagechangeevent) event triggers when the current page number changes (for example, via scrolling or navigation controls).
+
+- Event arguments: [PageChangeEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/pageChangeEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPageChange(args: any): void {
+ console.log(`Page changed from ${args.previousPageNumber} to ${args.currentPageNumber}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## pageClick
+
+The [pageClick](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#pageclickevent) event triggers when a mouse click occurs on a page.
+
+- Event arguments: [PageClickEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/pageClickEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPageClick(args: any): void {
+ console.log(`Page ${args.pageNumber} clicked at (${args.x}, ${args.y})`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## pageMouseover
+
+The [pageMouseover](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#pagemouseoverevent) event triggers when the mouse moves over a page.
+
+- Event arguments: `PageMouseoverEventArgs`.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPageMouseover(args: any): void {
+ console.log(`Mouse over page ${args.name}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## pageOrganizerSaveAs
+
+The [pageOrganizerSaveAs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#pageorganizersaveasevent) event triggers when a Save As action is performed in the page organizer.
+
+- Event arguments: `PageOrganizerSaveAsEventArgs`.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPageOrganizerSaveAs(args: any): void {
+ console.log(`Page organizer save triggered. File name: ${args.downloadDocument}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## pageRenderComplete
+
+The [pageRenderComplete](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#pagerendercompleteevent) event triggers after a page finishes rendering.
+
+- Event arguments: [PageRenderCompleteEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/pageRenderCompleteEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPageRenderComplete(args: any): void {
+ console.log(`Page ${args.data} rendering completed.`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## pageRenderInitiate
+
+The [pageRenderInitiate](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#pagerenderinitiateevent) event triggers when page rendering begins.
+
+- Event arguments: [PageRenderInitiateEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/pageRenderInitiateEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPageRenderInitiate(args: any): void {
+ console.log(`Page ${args.jsonData} rendering initiated.`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## printEnd
+
+The [printEnd](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#printendevent) event triggers when a print action completes.
+
+- Event arguments: [PrintEndEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/printEndEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPrintEnd(): void {
+ console.log('Print action completed.');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## printStart
+
+The [printStart](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#printstartevent) event triggers when a print action is initiated.
+
+- Event arguments: [PrintStartEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/printStartEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onPrintStart(): void {
+ console.log('Print action initiated.');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## removeSignature
+
+The [removeSignature](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#removesignatureevent) event triggers when a signature is removed.
+
+- Event arguments: [RemoveSignatureEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/removeSignatureEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onRemoveSignature(args: any): void {
+ console.log(`Signature removed from page ${args.bounds}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## resizeSignature
+
+The [resizeSignature](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#resizesignatureevent) event triggers when a signature is resized.
+
+- Event arguments: [ResizeSignatureEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/resizeSignatureEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onResizeSignature(args: any): void {
+ console.log(`Signature resized on page ${args.currentPosition}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## resourcesLoaded
+
+The [resourcesLoaded](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#resourcesloadedevent) event triggers after the viewer's required resources are loaded.
+
+- Event arguments: `void`.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onResourcesLoaded(): void {
+ console.log('PDFium resources loaded.');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## signaturePropertiesChange
+
+The [signaturePropertiesChange](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#signaturepropertieschangeevent) event triggers when signature properties change.
+
+- Event arguments: [SignaturePropertiesChangeEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/signaturePropertiesChangeEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onSignaturePropertiesChange(args: any): void {
+ console.log(`Signature properties changed on page ${args.type}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## signatureSelect
+
+The [signatureSelect](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#signatureselectevent) event triggers when a signature is selected.
+
+- Event arguments: [SignatureSelectEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/signatureSelectEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onSignatureSelect(args: any): void {
+ console.log(`Signature selected on page ${args.signature}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## signatureUnselect
+
+The [signatureUnselect](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#signatureunselectevent) event triggers when a signature is unselected.
+
+- Event arguments: [SignatureUnselectEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/signatureUnselectEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onSignatureUnselect(args: any): void {
+ console.log(`Signature unselected ${args.signature}`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## textSearchComplete
+
+The [textSearchComplete](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#textsearchcompleteevent) event triggers when a text search completes.
+
+- Event arguments: [TextSearchCompleteEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/textSearchCompleteEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onTextSearchComplete(): void {
+ console.log('Text search completed.');
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## textSearchHighlight
+
+The [textSearchHighlight](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#textsearchhighlightevent) event triggers when searched text is highlighted.
+
+- Event arguments: [TextSearchHighlightEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/textSearchHighlightEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onTextSearchHighlight(args: any): void {
+ console.log(`Search result ${args.bounds} highlighted.`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## textSearchStart
+
+The [textSearchStart](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#textsearchstartevent) event triggers when a text search is initiated.
+
+- Event arguments: [TextSearchStartEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/textSearchStartEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onTextSearchStart(args: any): void {
+ console.log(`Text search started for: "${args.searchText}"`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## textSelectionEnd
+
+The [textSelectionEnd](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#textselectionendevent) event triggers when text selection is complete.
+
+- Event arguments: [TextSelectionEndEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/textSelectionEndEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onTextSelectionEnd(args: any): void {
+ console.log(`Text selection ended on page ${args.pageIndex}.`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## textSelectionStart
+
+The [textSelectionStart](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#textselectionstartevent) event triggers when text selection is initiated.
+
+- Event arguments: `TextSelectionStartEventArgs`.
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onTextSelectionStart(args: any): void {
+ console.log(`Text selection started on page ${args.pageIndex}.`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+## thumbnailClick
+
+The [thumbnailClick](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#thumbnailclickevent) event triggers when a thumbnail is clicked.
+
+- Event arguments: [ThumbnailClickEventArgs](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/thumbnailClickEventArgs/).
+
+Example:
+
+```ts
+// app.component.ts
+import { Component } from '@angular/core';
+import {
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ providers: [
+ ToolbarService,
+ MagnificationService,
+ NavigationService,
+ LinkAnnotationService,
+ ThumbnailViewService,
+ BookmarkViewService,
+ TextSelectionService,
+ AnnotationService,
+ FormDesignerService,
+ FormFieldsService,
+ PageOrganizerService
+ ]
+})
+export class AppComponent {
+ public documentPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
+
+ public onThumbnailClick(args: any): void {
+ console.log(`Thumbnail clicked for page index ${args.pageNumber}.`);
+ }
+}
+```
+
+```html
+
+
+
+```
+
+> Tip: For annotation and signature-specific events and arguments, see the dedicated Annotations Events topic.
+
+See also:
+
+- [Annotation events](./annotation/annotation-event)
+- [Form field events](./form-designer/form-field-events)
+- [Organize PDF events](./organize-pdf/organize-pdf-events)
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/feature-module.md b/Document-Processing/PDF/PDF-Viewer/angular/feature-module.md
index 4cc1dddb6..ac3ebbc2b 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/feature-module.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/feature-module.md
@@ -1,18 +1,18 @@
---
layout: post
-title: Feature module in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Feature module in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Feature module in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Feature module in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Feature module
documentation: ug
domainurl: ##DomainURL##
---
-# Feature modules
+# Feature modules in Angular PDF Viewer
The [`Angular PDF Viewer`](https://www.syncfusion.com/pdf-viewer-sdk) features are segregated into individual feature-wise modules to enable selectively referencing in the application. The required modules should be injected to extend its functionality. The following are the selective modules of PDF Viewer that can be included as required:
-The available PdfViewer modules are:
+The available PDF Viewer modules are:
* **Toolbar**:- Built-in toolbar for better user interaction.
* **Magnification**:- Perform zooming operation for better viewing experience.
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/form-designer/create-programmatically.md b/Document-Processing/PDF/PDF-Viewer/angular/form-designer/create-programmatically.md
index 0153bd8d5..6db092f4d 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/form-designer/create-programmatically.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/form-designer/create-programmatically.md
@@ -1,29 +1,29 @@
---
layout: post
-title: Create programmatically in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Create programmatically in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Create form fields in the Angular PDF Viewer component | Syncfusion
+description: Learn here all about Create programmatically in Syncfusion Angular PDF Viewer control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Create programmatically
documentation: ug
domainurl: ##DomainURL##
---
-# Create form fields programmatically
+# Create programmatically in Angular Pdf viewer control
-The PDF Viewer control provides the option to add, edit and delete the Form Fields. The Form Fields type supported by the PDF Viewer Control are:
+The PDF Viewer component provides options to add, edit, and delete form fields. The supported form field types are:
- * Textbox
- * Password
- * CheckBox
- * RadioButton
- * ListBox
- * DropDown
- * SignatureField
- * InitialField
+- Textbox
+- Password
+- CheckBox
+- RadioButton
+- ListBox
+- DropDown
+- Signature field
+- Initial field
## Add a form field to PDF document programmatically
-Using addFormField method, the form fields can be added to the PDF document programmatically. We need to pass two parameters in this method. They are Form Field Type and Properties of Form Field Type. To add form field programmatically, Use the following code.
+Use the addFormField method to add form fields programmatically. Pass the form field type and the corresponding property object as parameters. The following example demonstrates adding multiple fields on document load.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
@@ -90,8 +90,7 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-N> To set up the **server-backed PDF Viewer**,
-Add the below serviceUrl in the `app.component.ts` file
+N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.ts` file:
`public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`;
Within the template, configure the PDF Viewer by adding the `[serviceUrl]='service'` attribute inside the div element.
@@ -99,7 +98,7 @@ Within the template, configure the PDF Viewer by adding the `[serviceUrl]='servi
## Edit/Update form field programmatically
-Using updateFormField method, Form Field can be updated programmatically. We should get the Form Field object/Id from FormFieldCollections property that you would like to edit and pass it as a parameter to updateFormField method. The second parameter should be the properties that you would like to update for Form Field programmatically. We have updated the value and background Color properties of Textbox Form Field.
+Use the updateFormField method to modify a form field programmatically. Retrieve the target field from the formFieldCollections property (by object or ID) and pass it as the first parameter. Provide the properties to update as the second parameter. The following example updates the background color of a Textbox field.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
@@ -167,8 +166,7 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-N> To set up the **server-backed PDF Viewer**,
-Add the below serviceUrl in the `app.component.ts` file
+N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.ts` file:
`public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`;
Within the template, configure the PDF Viewer by adding the `[serviceUrl]='service'` attribute inside the div element.
@@ -176,7 +174,7 @@ Within the template, configure the PDF Viewer by adding the `[serviceUrl]='servi
## Delete form field programmatically
-Using deleteFormField method, the form field can be deleted programmatically. We should retrieve the Form Field object/Id from FormFieldCollections property that you would like to delete and pass it as a parameter to deleteFormField method. To delete a Form Field programmatically, use the following code.
+Use the deleteFormField method to remove a form field programmatically. Retrieve the target field from the formFieldCollections property (by object or ID) and pass it to deleteFormField. The following example deletes the first form field.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
@@ -244,8 +242,7 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-N> To set up the **server-backed PDF Viewer**,
-Add the below serviceUrl in the `app.component.ts` file
+N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.ts` file:
`public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`;
Within the template, configure the PDF Viewer by adding the `[serviceUrl]='service'` attribute inside the div element.
@@ -294,11 +291,11 @@ removeSignature() {
## Saving the form fields
-When the download icon is selected on the toolbar, the Form Fields will be saved in the PDF document and this action will not affect the original document. Refer the below GIF for further reference.
+Selecting the Download icon on the toolbar saves the form fields in the exported PDF without modifying the original document. See the following GIF for reference.
-
+
-You can invoke download action using following code snippet.
+You can invoke the print action using the following code snippet:
```html
-
-```
-
-## Printing the form fields
-
-When the print icon is selected on the toolbar, the PDF document will be printed along with the Form Fields added to the pages and this action will not affect the original document. Refer the below GIF for further reference.
-
-
-
-You can invoke print action using the following code snippet.,
-
-```html
-
-
-```
-
-## Open the existing PDF document
-
-We can open the already saved PDF document contains Form Fields in it by clicking the open icon in the toolbar. Refer the below GIF for further reference.
-
-
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/formdesigner/user-interaction-with-form-fields.md b/Document-Processing/PDF/PDF-Viewer/angular/formdesigner/user-interaction-with-form-fields.md
deleted file mode 100644
index e3a7a5300..000000000
--- a/Document-Processing/PDF/PDF-Viewer/angular/formdesigner/user-interaction-with-form-fields.md
+++ /dev/null
@@ -1,111 +0,0 @@
----
-layout: post
-title: User interaction in Angular Pdfviewer component | Syncfusion
-description: Learn here all about User interaction with form fields in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
-platform: document-processing
-control: User interaction with form fields
-documentation: ug
-domainurl: ##DomainURL##
----
-
-# User interaction with form fields
-
-The PDF viewer control provides the option for interaction with Form Fields such as Drag and resize. you can draw a Form Field dynamically by clicking the Form Field icon on the toolbar and draw it in the PDF document. The Form Fields type supported by the PDF Viewer Control are:
-
- * Textbox
- * Password
- * CheckBox
- * RadioButton
- * ListBox
- * DropDown
- * SignatureField
- * InitialField
-
-## Enable or Disable form designer toolbar
-
-We should inject FormDesigner module and set enableFormDesignerToolbar as true to enable the Form designer icon on the toolbar. By default, enableFormDesignerToolbar is set as true. Use the following code to inject FormDesigner module and to enable the enableFormDesignerToolbar property.
-
-```html
-import { ViewChild } from '@angular/core';
-import { Component, OnInit } from '@angular/core';
-import { PdfViewerComponent, LinkAnnotationService, BookmarkViewService,
- MagnificationService, ThumbnailViewService, ToolbarService,
- NavigationService, TextSearchService, TextSelectionService,
- PrintService, AnnotationService, FormDesignerService,
- FormFieldsService
- } from '@syncfusion/ej2-angular-pdfviewer';
-
-@Component({
- selector: 'app-root',
- // Specifies the template string for the PDF Viewer component.
- template: `
-
-
-
`,
- providers: [ LinkAnnotationService, BookmarkViewService, MagnificationService,
- ThumbnailViewService, ToolbarService, NavigationService,
- TextSearchService, TextSelectionService, PrintService,
- AnnotationService, FormDesignerService, FormFieldsService]
-})
-export class AppComponent implements OnInit {
- @ViewChild('pdfviewer')
- public pdfviewerControl: PdfViewerComponent;
- public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer';
- public document: string = 'FormDesigner.pdf';
- ngOnInit(): void {
- }
-}
-```
-
-## Add the form field dynamically
-
-Click the Form Field icon on the toolbar and then click on to the PDF document to draw a Form Field. Refer the below GIF for further reference.
-
-
-
-## Drag the form field
-
-We provide options to drag the Form Field which is currently selected in the PDF document. Refer the below GIF for further reference.
-
-
-
-## Resize the form field
-
-We provide options to resize the Form Field which is currently selected in the PDF document. Refer the below GIF for further reference.
-
-
-
-## Edit or Update the form field dynamically
-
-The properties of the Form Fields can be edited using the Form Field Properties window. It can be opened by selecting the Properties option in the context menu that appears on the right by clicking the Form Field object. Refer the below image for the properties available to customize the appearance of the Form Field.
-
-
-
-
-
-
-
-## Clipboard operation with form field
-
-The PDF Viewer control supports the clipboard operations such as cut, copy and paste for Form Fields. You can right click on the Form Field object to view the context menu and select to the clipboard options that you would like to perform. Refer the below image for the options in the context menu.
-
-
-
-## Undo and Redo
-
-We provided support to undo/redo the Form Field actions that are performed at runtime. Use the following code example to perform undo/redo actions.
-
-```html
-
-
-```
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/getting-started-with-server-backed.md b/Document-Processing/PDF/PDF-Viewer/angular/getting-started-with-server-backed.md
index b282acab7..5d1d997aa 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/getting-started-with-server-backed.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/getting-started-with-server-backed.md
@@ -1,18 +1,18 @@
---
layout: post
-title: Getting started with Angular PDF Viewer component | Syncfusion
-description: Checkout and learn about Getting started with Angular PDF Viewer component of Syncfusion Essential JS 2 and more details.
+title: Getting started with Angular PDF Viewer (server-backed) | Syncfusion
+description: Learn how to set up and use the Syncfusion Angular PDF Viewer in server-backed mode, including module injection and web service configuration.
platform: document-processing
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Getting started with PDF Viewer component
+# Getting started with Angular PDF Viewer (server-backed)
-This section explains the steps required to create a simple Angular PDF Viewer and demonstrates the basic usage of the PDF Viewer control in a Angular CLI application.
+This guide explains how to create the PDF Viewer component and configure its features in Angular using the Essential JS 2 in server-backed mode.
-## Setup Angular Environment
+## Set up the development environment
You can use the [`Angular CLI`](https://github.com/angular/angular-cli) to setup your Angular applications.
To install the latest Angular CLI globally use the following command.
@@ -21,9 +21,7 @@ To install the latest Angular CLI globally use the following command.
npm install -g @angular/cli
```
-N> Use the command **npm install --save @angular/cli@12.0.2** to install the Angular CLI version 12.0.2
-
-## Create an Angular Application
+## Create an Angular application
Start a new Angular application using the Angular CLI command as follows.
@@ -32,15 +30,31 @@ ng new my-app
cd my-app
```
-## Installing Syncfusion® PDF Viewer package
+## Add Syncfusion JavaScript packages
-All the available Essential® JS 2 packages are published in `npmjs.com` registry. To install PDF Viewer component, use the following command.
+All the available Essential JS 2 packages are published in the [npmjs.com](https://www.npmjs.com/~syncfusionorg) public registry. To install PDF Viewer component, use the following command.
```bash
npm install @syncfusion/ej2-angular-pdfviewer --save
```
-## Registering PDF Viewer Module
+## Import Syncfusion CSS styles
+
+Add the component CSS in the `~/src/styles.css` file, as shown below:
+
+```css
+@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css';
+@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
+```
+
+## Add the PDF Viewer component
Import PDF Viewer module into Angular application(app.module.ts) from the package `@syncfusion/ej2-angular-pdfviewer` [src/app/app.module.ts].
@@ -68,24 +82,6 @@ import { AppComponent } from './app.component';
export class AppModule { }
```
-## Adding CSS reference
-
-Add the Angular PDF Viewer component’s styles as given below in `src/styles.css` file.
-
-```css
-@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css';
-@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
-```
-
-## Adding PDF Viewer component
-
Add the Angular PDF Viewer by using `` selector in `template` section of the `src/app/app.component.ts` file to render the PDF Viewer component.
```typescript
@@ -118,7 +114,7 @@ export class AppComponent implements OnInit {
}
}
```
-N> The Web API hosted link https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer utilized in the PDF viewer's serviceUrl property is intended solely for demonstration and evaluation purposes. For production deployment, please host your own web service with your required server configurations. You can refer and reuse the [GitHub Web Service example](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices) or [Docker image](https://hub.docker.com/r/syncfusion/pdfviewer-server) for hosting your own web service and use for the serviceUrl property. **We strongly recommend using the standalone mode.**
+N> The Web API link https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/ used in the `serviceUrl` property is intended for demonstration and evaluation only. For production, host your own web service with the required server configuration. You can reuse the [GitHub web service example](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices) or [Docker image](https://hub.docker.com/r/syncfusion/pdfviewer-server). **Standalone mode is strongly recommended.**
## Run the application
@@ -158,30 +154,52 @@ platformBrowserDynamic().bootstrapModule(AppModule)
> For PDF Viewer serviceUrl creation, follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/how-to/create-pdfviewer-service)
-## How to run the PDF Viewer web service
+## Module injection
+
+To enable additional features, inject the required modules. The following modules extend the PDF Viewer's functionality:
+
+* `LinkAnnotationService`: Enables hyperlink navigation.
+* `BookmarkViewService`: Displays and navigates document bookmarks.
+* `MagnificationService`: Provides zoom in/out operations.
+* `NavigationService`: Enables page navigation.
+* `TextSelectionService`: Enables text selection.
+* `ThumbnailViewService`: Displays page thumbnails for navigation.
+* `ToolbarService`: Enables the built-in toolbar UI.
+* `PrintService`: Enables printing.
+* `AnnotationService`: Enables annotation features.
+* `TextSearchService`: Enables text search.
+* `FormFieldsService`: Enables form field support.
+* `FormDesignerService`: Enables designing and editing of form fields.
+* `PageOrganizerService`: Enables page organization features.
+
+Inject modules using the `providers` property in `@NgModule`.
-1. Download the sample from the [Web service sample in GitHub](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices) link.
+> To create a PDF Viewer `serviceUrl`, follow the steps in [Create PDF Viewer service](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/how-to/create-pdfviewer-service).
-2. Navigate to the `ASP.NET Core` folder and open it in the command prompt.
+## Run the PDF Viewer web service
+
+1. Download the sample from the [web service sample in GitHub](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices).
+
+2. Navigate to the `ASP.NET Core` folder and open it in a command prompt.
3. Navigate to the appropriate subfolder based on your .NET version:
- .NET 6.0 → `PdfViewerWebService_6.0`
- .NET 8.0 → `PdfViewerWebService_8.0`
-4. Use the below command to restore the required packages.
+4. Restore packages:
- ```sh
- dotnet restore
- ```
+```
+ dotnet restore
+```
-5. Use the below command to run the web service.
+5. Run the web service:
- ```sh
- dotnet run
- ```
+```
+ dotnet run
+```
-6. You can see that the PDF Viewer server instance runs in the local host with the port number `localhost:5001`and navigate to the PDF Viewer Web control `localhost:5001/pdfviewer`which returns the default get response method. We can bind the link to the `serviceUrl` property of PDF Viewer as below.
+6. The PDF Viewer server instance runs at `https://localhost:5001`. Navigate to `https://localhost:5001/pdfviewer` to see the default GET response. Bind this URL to the `serviceUrl` property of the PDF Viewer as shown below.
```javascript
export class AppComponent implements OnInit {
@@ -190,9 +208,12 @@ platformBrowserDynamic().bootstrapModule(AppModule)
ngOnInit(): void {
}
```
-N> When configuring the server-backed PDF viewer, it's Essential® to understand that there is no need to include the pdfium.js and pdfium.wasm files. Unlike the standalone PDF viewer, which relies on these files for local rendering, the server-backed PDF viewer fetches and renders PDFs directly from the server. Consequently, you can exclude the copy command for deployment process, as they are not required to load and display PDFs in this context.
-N> For hosting the web service on the Linux platform, ensure to include the [SkiaSharp.NativeAssets.Linux](https://nuget.org/packages/SkiaSharp.NativeAssets.Linux/3.116.1). Additionally, for AWS environments, utilize the following packages:
+N> In server-backed mode, do not include `pdfium.js` and `pdfium.wasm`. Unlike standalone mode, the server-backed PDF Viewer renders PDFs on the server. These files and their copy steps are not required for deployment in this context.
+
+> Refer to the [Angular PDF Viewer feature tour](https://www.syncfusion.com/pdf-viewer-sdk) for an overview of capabilities. Explore the [Angular PDF Viewer example](https://document.syncfusion.com/demos/pdf-viewer/angular/#/tailwind3/pdfviewer/default.html) to see core features in action.
+
+N> For hosting the web service on Linux, include [SkiaSharp.NativeAssets.Linux](https://nuget.org/packages/SkiaSharp.NativeAssets.Linux/3.116.1). For AWS environments, use the following packages:
| **Amazon Web Services (AWS)** |**NuGet package name** |
| --- | --- |
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/getting-started.md b/Document-Processing/PDF/PDF-Viewer/angular/getting-started.md
index d4b3270fa..67aeadca7 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/getting-started.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/getting-started.md
@@ -8,9 +8,9 @@ documentation: ug
domainurl: ##DomainURL##
---
-# Getting started with Standalone PDF Viewer component
+# Getting started with Angular Standalone PDF Viewer component
-This section explains the steps required to create a simple Standalone Angular PDF Viewer and demonstrates the basic usage of the PDF Viewer control in a Angular CLI application (for Angular versions below 17).
+This section explains the steps required to create a simple Standalone Angular PDF Viewer and demonstrates the basic usage of the PDF Viewer control in an Angular CLI application.
N> For Angular 17+, see the following links:
@@ -87,7 +87,7 @@ export class AppModule { }
## Adding CSS reference
-Add the Angular PDF Viewer component’s styles as given below in `src/styles.css` file.
+Add the Angular PDF Viewer component's styles as given below in `src/styles.css` file.
```css
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@@ -101,7 +101,7 @@ Add the Angular PDF Viewer component’s styles as given below in `src/styles.cs
@import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
```
-## Adding PDF Viewer component
+## Add the PDF Viewer component
Add the Angular PDF Viewer by using `` selector in `template` section of the `src/app/app.component.ts` file to render the PDF Viewer component.
@@ -135,7 +135,8 @@ export class AppComponent implements OnInit {
}
}
```
-### Steps to Load PDF Viewer with Local Resources
+
+### Load PDF Viewer with local resources
To configure the PDF Viewer to use local files for `documentPath` and `resourceUrl` instead of files hosted on a CDN, follow these steps:
@@ -216,4 +217,26 @@ platformBrowserDynamic().bootstrapModule(AppModule)
{% previewsample "Document-Processing/samples/pdfviewer/angular/getting-started-cs1-standalone/index.html" %}
+## Module injection
+
+To enable additional features, inject the required modules. The following modules extend the PDF Viewer's functionality:
+
+* `LinkAnnotationService`: Enables hyperlink navigation.
+* `BookmarkViewService`: Displays and navigates document bookmarks.
+* `MagnificationService`: Provides zoom in/out operations.
+* `NavigationService`: Enables page navigation.
+* `TextSelectionService`: Enables text selection.
+* `ThumbnailViewService`: Displays page thumbnails for navigation.
+* `ToolbarService`: Enables the built-in toolbar UI.
+* `PrintService`: Enables printing.
+* `AnnotationService`: Enables annotation features.
+* `TextSearchService`: Enables text search.
+* `FormFieldsService`: Enables form field support.
+* `FormDesignerService`: Enables designing and editing of form fields.
+* `PageOrganizerService`: Enables page organization features.
+
+Inject modules using the `providers` array in the component or module.
+
+> Refer to the [Angular PDF Viewer feature tour](https://www.syncfusion.com/pdf-viewer-sdk/angular-pdf-viewer) for an overview of capabilities. Explore the [Angular PDF Viewer example](https://document.syncfusion.com/demos/pdf-viewer/angular/#/tailwind3/pdfviewer/default) to see core features in action.
+
[View sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/Getting%20started%20-%20Standalone).
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/globalization.md b/Document-Processing/PDF/PDF-Viewer/angular/globalization.md
index 935dfdd1e..6556a914e 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/globalization.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/globalization.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Globalization in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Globalization in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Globalization in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Globalization in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Globalization
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to-overview.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to-overview.md
new file mode 100644
index 000000000..fa8cb0449
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to-overview.md
@@ -0,0 +1,60 @@
+---
+layout: post
+title: FAQ Section in Angular PDF Viewer control | Syncfusion
+description: In this section, you can know about the various questions asked about manipulation of in Angular PDF Viewer control.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Frequently Asked Questions Section in Angular PDF Viewer control
+
+The frequently asked questions in Essential® PDF Viewer are listed below.
+
+* [Unload the PDF document Programmatically](./how-to/unload-document)
+* [Load PDF documents dynamically](./how-to/load-document)
+* [Include Authorization Token](./how-to/include-authorization-token)
+* [Get the Base64 string of the loaded PDF document](./how-to/get-base-string-of-the-loaded-document)
+* [Customize the selection border](./how-to/change-selection-border)
+* [Extract Text using extractTextCompleted Event](./how-to/extract-text-completed)
+* [Import and Export annotation](./how-to/import-export-annotation)
+* [Delete a specific annotation](./how-to/delete-annotation)
+* [Open Thumbnail pane programmatically](./how-to/open-thumbnail)
+* [How to enable and disable the delete button based on annotation selection and unselection events](./how-to/enable-disable-annotation)
+* [Add the custom stamp based on the free text bounds](./how-to/custom-stamp)
+* [Install packages required for versions below 12](./how-to/install-packages-required-for-lower-versions)
+* [Load Office files in PDF Viewer](./how-to/load-office-files)
+* [How to Change the Font Family in the Type Signature](./how-to/font-family)
+* [Resolve unable to find an entry point named FPDFText_GetCharAngle error](./how-to/resolve-unable-to-find-an-entry-point-error)
+* [How to clear the Web-service is not listening error](./how-to/webservice-not-listening)
+* [Load N number of pages on initial loading](./how-to/load-n-number-page)
+* [Retry Timeout](./how-to/retry-timeout)
+* [Configure Redis Cache](./how-to/redis-cache)
+* [Supported conformance documents](./how-to/conformance)
+* [Customize context menu](./how-to/custom-context-menu)
+* [PageRenderInitiate and PageRenderComplete event](./how-to/pagerenderstarted-pagerendercompleted)
+* [Open and Close Bookmark pane programmatically](./how-to/open-bookmark)
+* [Locking Form Fields in a PDF document](./how-to/lock-formfield-in-a-document)
+* [SignatureSelect and SignatureUnselect event](./how-to/signatureselect-signatureunselect)
+* [Controlling File Downloads](./how-to/download-start-event)
+* [Minimum and Maximum Zoom Properties](./how-to/min-max-zoom)
+* [Restrict Zoom Percentage on Mobile Devices](./how-to/restricting-zoom-in-mobile-mode)
+* [Custom fonts for Signature and Initial fields](./how-to/custom-font-signature-field)
+* [Export As Image in Angular PDF Viewer component](./how-to/export-as-image)
+* [Add custom fonts to the PDF Viewer using the PDF document](./how-to/custom-fonts)
+* [Create a Standalone PDF Viewer in Angular 17 and above with --no-standalone flag](./how-to/create-a-standalone-pdf-viewer-in-angular-17-and-above-with-no-standalone-flag)
+* [Create a Standalone PDF Viewer in Angular 17 and above without --no-standalone flag](./how-to/create-a-standalone-pdf-viewer-in-angular-17-and-above-without-no-standalone-flag)
+* [Configure Annotation Selector Setting](./how-to/configure-annotation-selector-setting)
+* [Convert Pdf Library Bounds to Pdf viewer bounds](./how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds)
+* [Display Custom Stamp items in Custom Stamp](./how-to/show-custom-stamp-item)
+* [Get Page Info in Angular PDF Viewer component](./how-to/getPageInfo)
+* [Retrieve base64-encoded value of a loaded PDF document](./how-to/get-base64)
+* [Enable Local Storage](./how-to/enable-local-storage)
+* [Add Rectangle Annotation using Search Text Bounds](./how-to/add-annotation-in-text-search)
+* [Control Annotation Visibility](./how-to/control-annotation-visibility)
+* [Extract Text Option](./how-to/extract-text-option)
+* [Find Text using findTextAsync Method](./how-to/find-text-async)
+* [Extract Text](./how-to/extract-text)
+* [Dynamically Enable or Disable Text Selection](./how-to/enable-text-selection)
+* [Show and Hide Annotations](./how-to/show-hide-annotation)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/add-annotation-in-text-search.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/add-annotation-in-text-search.md
index 36cdc83ce..71ce9603b 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/add-annotation-in-text-search.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/add-annotation-in-text-search.md
@@ -1,24 +1,22 @@
---
layout: post
-title: Add Annotation in Text Search in Angular PdfViewer | Syncfusion
-description: Learn how to add rectangle annotations using search text bounds in Syncfusion Angular PdfViewer component using Essential JS 2.
+title: Add Rectangle Annotation via Text Search | Syncfusion
+description: Learn to add rectangle annotations using text search bounds in the Angular PDF Viewer component, including initialization and search controls.
platform: document-processing
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Add Rectangle Annotations Using Search Text Bounds in PDF Viewer
+# Add Rectangle Annotations via Text Search in Angular PDF Viewer
-## Overview
+A concise guide to adding rectangle annotations at highlighted text search results in the Angular PDF Viewer to visually emphasize matches and improve readability.
-This guide demonstrates how to add rectangle annotations based on the bounds of highlighted search text in the PDF Viewer. This technique is useful for emphasizing search results with visual markers in annotation-supported applications.
-
-## Steps to Add Rectangle Annotations on Search Result Highlight
+## Steps to add rectangle annotations on search result highlight
**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/getting-started) to create a simple PDF Viewer sample in Angular.
-**Step 2:** Set Up the PdfViewer Component to add rectangle annotations based on the bounds of highlighted search text in the PDF Viewer.
+**Step 2:** Set Up the PDF Viewer Component to add rectangle annotations based on the bounds of highlighted search text in the PDF Viewer.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/add-header-value.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/add-header-value.md
new file mode 100644
index 000000000..dfa0a08ac
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/add-header-value.md
@@ -0,0 +1,85 @@
+---
+layout: post
+title: Add header values to AJAX requests in Angular PDF Viewer | Syncfusion
+description: Learn how to include custom headers in PDF Viewer AJAX requests using ajaxRequestSettings and ajaxHeaders in the Angular PDF Viewer component.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+---
+
+# Add header values in the Angular PDF Viewer
+
+Use the ajaxHeaders property in the PDF Viewer’s [ajaxRequestSettings](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#ajaxrequestsettings) to include custom headers with each AJAX request.
+
+Example: Add a custom Authorization header using ajaxRequestSettings in an Angular component
+
+{% tabs %}
+{% highlight ts tabtitle="index.ts" %}
+import { Component, ViewEncapsulation, OnInit, ViewChild } from '@angular/core';
+import {
+ PdfViewerComponent,
+ LinkAnnotationService,
+ BookmarkViewService,
+ MagnificationService,
+ ThumbnailViewService,
+ ToolbarService,
+ NavigationService,
+ TextSearchService,
+ TextSelectionService,
+ PrintService,
+ AnnotationService,
+ FormFieldsService,
+ FormDesignerService,
+ PageOrganizerService,
+ PdfViewerModule,
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+/**
+ * Default PdfViewer Controller
+ */
+@Component({
+ selector: 'app-root',
+ templateUrl: 'app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ // tslint:disable-next-line:max-line-length
+ providers: [
+ LinkAnnotationService,
+ BookmarkViewService,
+ MagnificationService,
+ ThumbnailViewService,
+ ToolbarService,
+ NavigationService,
+ TextSearchService,
+ TextSelectionService,
+ PrintService,
+ AnnotationService,
+ FormFieldsService,
+ FormDesignerService,
+ PageOrganizerService,
+ ],
+ styleUrls: ['app.component.css'],
+ standalone: true,
+ imports: [PdfViewerModule],
+})
+export class AppComponent {
+ @ViewChild('pdfviewer')
+ public pdfviewerControl: PdfViewerComponent;
+ public serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';
+ public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public ajaxRequestSettings: any = {
+ ajaxHeaders: [
+ {
+ headerName: 'Authorization',
+ headerValue: 'Bearer 64565dfgfdsjweiuvbiuyhiueygf'
+ }
+ ],
+ withCredentials: false
+ };
+ ngOnInit(): void {
+ // ngOnInit function
+ }
+}
+{% endhighlight %}
+{% endtabs %}
+
+Find the sample [how to add custom headers in AjaxRequestSettings](https://stackblitz.com/edit/angular-pfdpfdzq-o4b3dlur?file=src%2Fapp.component.html,src%2Fapp.component.ts,node_modules%2F%40syncfusion%2Fej2-pdfviewer%2Fsrc%2Fpdfviewer%2Fpdfviewer-model.d.ts,src%2Findex.html)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/annotation-selectors.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/annotation-selectors.md
new file mode 100644
index 000000000..eaa429be9
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/annotation-selectors.md
@@ -0,0 +1,93 @@
+---
+layout: post
+title: Customize Annotation Selectors | Syncfusion Angular PDF Viewer
+description: Learn how to customize annotation selectors in the Angular PDF Viewer component using annotationSelectorSettings with examples.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+---
+
+# Customize annotation selectors in Angular PDF Viewer
+
+Customize the annotation selector using the [annotationSelectorSettings](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#annotationselectorsettings) property of the PDF Viewer.
+
+Example: Customize the selector of a shape annotation
+
+```html
+
+```
+
+```ts
+import { Component, ViewEncapsulation, OnInit, ViewChild } from '@angular/core';
+import {
+ PdfViewerComponent,
+ LinkAnnotationService,
+ BookmarkViewService,
+ MagnificationService,
+ ThumbnailViewService,
+ ToolbarService,
+ NavigationService,
+ TextSearchService,
+ TextSelectionService,
+ PrintService,
+ AnnotationService,
+ FormFieldsService,
+ FormDesignerService,
+ PageOrganizerService,
+ PdfViewerModule,
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+/**
+ * Default PdfViewer Controller
+ */
+@Component({
+ selector: 'app-root',
+ templateUrl: 'app.component.html',
+ encapsulation: ViewEncapsulation.None,
+ // tslint:disable-next-line:max-line-length
+ providers: [
+ LinkAnnotationService,
+ BookmarkViewService,
+ MagnificationService,
+ ThumbnailViewService,
+ ToolbarService,
+ NavigationService,
+ TextSearchService,
+ TextSelectionService,
+ PrintService,
+ AnnotationService,
+ FormFieldsService,
+ FormDesignerService,
+ PageOrganizerService,
+ ],
+ styleUrls: ['app.component.css'],
+ standalone: true,
+ imports: [PdfViewerModule],
+})
+export class AppComponent {
+ @ViewChild('pdfviewer')
+ public pdfviewerControl: PdfViewerComponent;
+ public document: string =
+ 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public resource: string =
+ 'https://cdn.syncfusion.com/ej2/23.2.6/dist/ej2-pdfviewer-lib';
+
+ onAnnotationSelector(): void {
+ if (!this.pdfviewerControl) {
+ return;
+ }
+ this.pdfviewerControl.rectangleSettings.annotationSelectorSettings.resizerShape =
+ 'Circle';
+ const annot = this.pdfviewerControl.annotationCollection[0];
+ if (annot) {
+ this.pdfviewerControl.annotationModule.editAnnotation(annot);
+ }
+ }
+
+ ngOnInit(): void {
+ // ngOnInit function
+ }
+}
+```
+
+Sample: [How to customize the annotation selector](https://stackblitz.com/edit/angular-pfdpfdzq-u7rmrzrp?file=src%2Fapp.component.html,src%2Fapp.component.ts)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/change-author-name-using-annotation-settings.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/change-author-name-using-annotation-settings.md
new file mode 100644
index 000000000..82cda18a1
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/change-author-name-using-annotation-settings.md
@@ -0,0 +1,117 @@
+---
+layout: post
+title: Change Author Name via Annotation Settings | Syncfusion
+description: Learn how to change the author name and related annotation settings using the annotationSettings API in the Angular PDF Viewer.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Change author name using annotation settings in Angular PDF Viewer
+
+The PDF Viewer allows customizing individual annotation settings using the annotationSettings API, which exposes properties common to all annotations.
+
+API name: annotationSettings
+
+| Property Name | Data type & Default Value | Description |
+|---|---|---|
+| author | String ("Guest") | Specifies the author of the annotation. |
+| minWidth | Number (0) | Specifies the minimum width of the annotation. |
+| maxWidth | Number (0) | Specifies the maximum width of the annotation. |
+| minHeight | Number (0) | Specifies the minimum height of the annotation. |
+| maxHeight | Number (0) | Specifies the maximum height of the annotation. |
+| isLock | Boolean (false) | Specifies whether the annotation is locked. If true, the annotation cannot be selected. |
+| isPrint | Boolean (true) | Specifies whether the annotation is included in print actions. |
+| isDownload | Boolean (true) | Specifies whether the annotation is included in download actions. |
+| Free Text Settings |
+| allowOnlyTextInput | Boolean (false) | Specifies text-only mode for free text annotations. If true, moving or resizing is disabled. |
+
+Change the author name and other properties using the annotationSettings API as shown below.
+
+{% tabs %}
+{% highlight ts tabtitle="Standalone" %}
+```ts
+// app.module.ts
+import { NgModule } from '@angular/core';
+import { BrowserModule } from '@angular/platform-browser';
+import { PdfViewerModule, ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, TextSearchService, PrintService, AnnotationService, FormFieldsService } from '@syncfusion/ej2-angular-pdfviewer';
+import { AppComponent } from './app.component';
+
+@NgModule({
+ declarations: [AppComponent],
+ imports: [BrowserModule, PdfViewerModule],
+ providers: [ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, TextSearchService, PrintService, AnnotationService, FormFieldsService],
+ bootstrap: [AppComponent]
+})
+export class AppModule {}
+
+// app.component.ts
+import { Component } from '@angular/core';
+import { AnnotationSettingsModel, FreeTextSettingsModel } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ template: `
+
+
+ `
+})
+export class AppComponent {
+ public docPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public annotationSettings: AnnotationSettingsModel = {
+ author: 'syncfusion', minHeight: 30, maxHeight: 500, minWidth: 30, maxWidth: 500, isLock: false, isPrint: true, isDownload: true
+ };
+ public freeTextSettings: FreeTextSettingsModel = {
+ allowTextOnly: true
+ };
+}
+```
+{% endhighlight %}
+{% highlight ts tabtitle="Server-Backed" %}
+```ts
+// app.module.ts
+import { NgModule } from '@angular/core';
+import { BrowserModule } from '@angular/platform-browser';
+import { PdfViewerModule, ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, TextSearchService, PrintService, AnnotationService, FormFieldsService } from '@syncfusion/ej2-angular-pdfviewer';
+import { AppComponent } from './app.component';
+
+@NgModule({
+ declarations: [AppComponent],
+ imports: [BrowserModule, PdfViewerModule],
+ providers: [ToolbarService, MagnificationService, NavigationService, LinkAnnotationService, ThumbnailViewService, BookmarkViewService, TextSelectionService, TextSearchService, PrintService, AnnotationService, FormFieldsService],
+ bootstrap: [AppComponent]
+})
+export class AppModule {}
+
+// app.component.ts
+import { Component } from '@angular/core';
+import { AnnotationSettingsModel, FreeTextSettingsModel } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-root',
+ template: `
+
+
+ `
+})
+export class AppComponent {
+ public serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';
+ public docPath = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ public annotationSettings: AnnotationSettingsModel = {
+ author: 'syncfusion', minHeight: 30, maxHeight: 500, minWidth: 30, maxWidth: 500, isLock: false, isPrint: true, isDownload: true
+ };
+ public freeTextSettings: FreeTextSettingsModel = {
+ allowTextOnly: true
+ };
+}
+```
+{% endhighlight %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/change-selection-border.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/change-selection-border.md
index 809d21837..8e2425c7e 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/change-selection-border.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/change-selection-border.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Change selection border in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Change selection border in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Change selection border in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Change selection border in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Change selection border
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/configure-annotation-selector-setting.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/configure-annotation-selector-setting.md
index 75231383b..d448ebfc5 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/configure-annotation-selector-setting.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/configure-annotation-selector-setting.md
@@ -1,28 +1,27 @@
---
layout: post
-title: Annotation Selector Setting in Angular Pdfviewer|Syncfusion.
-description: Learn here all about Configuring Annotation Selector Settings in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Configure annotation selector settings in Angular PDF Viewer | Syncfusion
+description: Learn how to configure annotation selector settings in the Angular PDF Viewer using annotationSelectorSettings and related options.
platform: document-processing
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# How to Configure Annotation Selector Settings
+# Configure Annotation Selector Settings
### Annotation Selector Settings
-The [**annotationSelectorSettings**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotationSelectorSettings/) property allows you to customize the appearance and behavior of the annotation selector in the UI.
+Use the [annotationSelectorSettings](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotationSelectorSettings/) property to customize the appearance and behavior of the annotation selector in the UI.
### AnnotationSelectorSettingsModel
-The [**AnnotationSelectorSettingsModel**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotationSelectorSettingsModel/) defines the settings for the annotation selector, including border colors, sizes, and shapes. It provides fine-grained control over how annotations are displayed and interacted with.
+The [AnnotationSelectorSettingsModel](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/annotationSelectorSettingsModel/) defines settings such as border colors, sizes, and shapes, enabling fine-grained control over how annotations are displayed and interacted with.
-### How to Configure Annotation Selector Settings
+Steps to configure annotation selector settings
-**Step 1:** Create a PdfViewer Instance: Initialize your PdfViewer instance.
-
-**Step 2:** Set the annotationSelectorSettings Property: Define your settings to customize the annotation selector.
+- Step 1: Create a PDF Viewer instance and initialize it.
+- Step 2: Set the annotationSelectorSettings property to customize selector behavior.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -153,24 +152,16 @@ export class AppComponent implements OnInit {
{% endhighlight %}
{% endtabs %}
-#### Key properties include:
-
-* **selectionBorderColor**: Sets the color for the border around selected annotations.
-
-* **resizerBorderColor**: Sets the color for the border of the resizer handles.
-
-* **resizerFillColor**: Defines the fill color for the resizer handles.
-
-* **resizerSize**: Determines the size of the resizer handles.
-
-* **selectionBorderThickness**: Specifies how thick the selection border should be.
-
-* **resizerShape**: Allows you to choose the shape of the resizer handles (e.g., Circle or Square).
-
-* **selectorLineDashArray**: Specifies the dash pattern for the selector line to enhance visual cues.
-
-* **resizerLocation**: Determines where the resizer appear in relation to the annotation (e.g., Corners or Edges).
-
-* **resizerCursorType**: Sets the cursor style when hovering over the resizer, improving user interaction.
+#### Key properties
+
+- selectionBorderColor: Sets the color for the border around selected annotations.
+- resizerBorderColor: Sets the color for the border of the resizer handles.
+- resizerFillColor: Defines the fill color for the resizer handles.
+- resizerSize: Determines the size of the resizer handles.
+- selectionBorderThickness: Specifies the thickness of the selection border.
+- resizerShape: Sets the shape of the resizer handles (for example, Circle or Square).
+- selectorLineDashArray: Specifies the dash pattern for the selector line.
+- resizerLocation: Determines where the resizers appear relative to the annotation (for example, Corners or Edges).
+- resizerCursorType: Sets the cursor style when hovering over a resizer.
[View sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/conformance.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/conformance.md
index 0f8ab70d1..f4a266245 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/conformance.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/conformance.md
@@ -1,26 +1,26 @@
---
layout: post
-title: Know the supported conformance PDF documents | Syncfusion
-Description: Learn here all about the supported conformance PDF documents in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
+title: Supported PDF conformance levels | Syncfusion
+description: Learn about the supported PDF/A and PDF/X conformance levels in the Angular PDF Viewer component.
platform: document-processing
-control: Conformance
+control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Know the supported conformance PDF documents in Anglar PDF Viewer component
+# supported PDF conformance in Anglar PDF Viewer component
-The PDF Viewer supports the below conformance documents:
+The PDF Viewer supports the following conformance levels:
-* **PDF/A-1a conformance**
-* **PDF/A-1b conformance**
-* **PDF/X-1a conformance**
-* **PDF/A-2a conformance**
-* **PDF/A-2b conformance**
-* **PDF/A-2u conformance**
-* **PDF/A-3a conformance**
-* **PDF/A-3b conformance**
-* **PDF/A-3u conformance**
-* **PDF/A-4 conformance**
-* **PDF/A-4e conformance**
-* **PDF/A-4f conformance**
\ No newline at end of file
+* PDF/A-1a
+* PDF/A-1b
+* PDF/X-1a
+* PDF/A-2a
+* PDF/A-2b
+* PDF/A-2u
+* PDF/A-3a
+* PDF/A-3b
+* PDF/A-3u
+* PDF/A-4
+* PDF/A-4e
+* PDF/A-4f
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/control-annotation-visibility.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/control-annotation-visibility.md
index 196b4be34..c09df0407 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/control-annotation-visibility.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/control-annotation-visibility.md
@@ -1,27 +1,27 @@
---
layout: post
-title: Control Annotations Visibility in Angular Pdfviewer|Syncfusion.
-description: Learn how to Control PDF Annotations Visibility in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Control annotation visibility in Angular PDF Viewer | Syncfusion
+description: Learn how to control the visibility of PDF annotations in the Angular PDF Viewer, ensuring annotations appear only in the viewer as needed.
platform: document-processing
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Control PDF Annotations Visibility in PDF Viewer
+# Control annotations visibility in PDF Viewer
-### Overview
+Overview
-This guide demonstrates how to control the visibility of PDF annotations in documents loaded and saved using the Syncfusion® PDF Viewer. This process allows the annotations to be visible only in specific viewers, such as the Syncfusion® PDF Viewer.
+This guide explains how to control the visibility of PDF annotations in documents loaded and saved using the Syncfusion PDF Viewer in Angular, so annotations are visible only in the viewer when required.
-### How to Control Annotation Visibility
+Steps to control annotation visibility
**Step 1:** Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/getting-started) to create a simple PDF Viewer sample.
-**Step 2:** Set Up Your Angular Component
+**Step 2:** Add buttons for annotation modification and downloading
-Create an Angular component and update the template to include a button that triggers the download operation. Additionally, create a function to save the document with the PDF annotation flag set to `noView`.
+Include buttons in the HTML for modifying annotations and downloading the PDF.
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
@@ -183,6 +183,6 @@ save() {
{% endhighlight %}
{% endtabs %}
-By following these steps, the annotations in a PDF document can be set to be visible in the Syncfusion® PDF Viewer, providing control over annotation visibility based on different platforms.
+Following these steps ensures annotations are visible in the Syncfusion PDF Viewer while controlling their visibility in the downloaded PDF.
[View sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/How%20to)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds.md
index a131c433d..ba1937db9 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/convert-pdf-library-bounds-to-pdf-viewer-bounds.md
@@ -1,24 +1,22 @@
---
layout: post
-title: Converting Library Bounds in Angular PdfViewer | Syncfusion
-description: Learn how to convert Library bounds into Viewer bounds in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Convert PDF Library bounds to PDF Viewer bounds | Syncfusion
+description: Learn how to convert PDF Library bounds into PDF Viewer bounds when exporting annotations, ensuring accurate placement in the Angular PDF Viewer.
platform: document-processing
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Converting PDF Library Bounds to PDF Viewer Bounds
+# Convert PDF Library bounds to PDF Viewer bounds
-### Overview
+When exporting annotations from the PDF Library, convert the bounds values into the PDF Viewer format to ensure accurate placement.
-When exporting annotations from the PDF Library, you may need to convert the bounds values into the PDF Viewer format. This guide will help you achieve that using the Syncfusion® PDF Viewer component.
+Steps to convert bounds values
-### How to Convert Bounds Values
+**Step 1:** Initialize the PDF Viewer instance
-**Step 1:** Initialize the PdfViewer Instance
-
-Create an instance of the PdfViewer and configure it with the required services.
+Create an instance of the PDF Viewer and configure it with the required services.
```html
```
-**Step 2:** Handle Export Success
+**Step 2:** Handle export success
Convert the exported blob URL to an object and then extract and convert the annotation bounds.
@@ -66,9 +64,9 @@ Convert the exported blob URL to an object and then extract and convert the anno
}
```
-**Step 3:** Create a Function to Convert Blob URL to Object
+**Step 3:** Convert Blob URL to object
-This function fetches the blob data and converts it into a JSON object.
+Fetch the blob data and convert it into a JSON object.
```typescript
// Function to convert Blob URL to object
@@ -88,8 +86,8 @@ This function fetches the blob data and converts it into a JSON object.
}
```
-### Conclusion
+Conclusion
-By following these steps, you can successfully convert PDF Library bounds values into PDF Viewer bounds values when exporting annotations as JSON. This will help maintain accuracy in the annotation placement and ensure a seamless user experience.
+These steps convert PDF Library bounds values into PDF Viewer bounds values when exporting annotations as JSON, maintaining accurate annotation placement.
[View sample in GitHub](https://github.com/SyncfusionExamples/angular-pdf-viewer-examples/tree/master/How%20to)
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-context-menu.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-context-menu.md
index 5577f9609..9f5583368 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-context-menu.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-context-menu.md
@@ -1,20 +1,21 @@
---
layout: post
-title: Customize context menu in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Customize context menu in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Customize the context menu in Angular PDF Viewer | Syncfusion
+description: Learn how to add and customize custom context menu options in the Angular PDF Viewer using addCustomMenu, customContextMenuSelect, and related events.
platform: document-processing
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
---
-# Customize context menu
+# Customize the context menu in PDF Viewer
PDF Viewer allows you to add custom option in context menu. It can be achieved by using the `addCustomMenu()` method and custom action is defined using the `customContextMenuSelect()`method.
+PDF Viewer supports adding custom options to the context menu using the `addCustomMenu()`(https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#addcustommenu)method. Define actions for custom items with the [customContextMenuSelect()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#customcontextmenuselect) method.
-### Add Custom Option
+### Add a custom option
-The following code shows how to add custom option in context menu.
+The following example adds custom options to the context menu.
```ts
public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
@@ -56,9 +57,9 @@ The following code shows how to add custom option in context menu.
```
-### Customize custom option in context menu
+### Customize the default vs context menu
-The PDF Viewer feature enables customization of custom options and the ability to toggle the display of the default context menu. When the addCustomMenu parameter is set to `true`, the default menu is hidden; conversely, when it is set to `false`, the default menu items are displayed.
+Toggle the display of the default context menu. When the addCustomMenu parameter is `true`, the default menu is hidden; when `false`, default menu items are displayed alongside custom items.
```js
public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
@@ -99,9 +100,9 @@ The PDF Viewer feature enables customization of custom options and the ability t
}
```
-#### Customize added context menu items
+#### show or hide custom items before opening
-The following code shows how to hide/show added custom option in context menu using the `customContextMenuBeforeOpen()` method.
+Use [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#customcontextmenubeforeopen) to hide or show custom options dynamically.
```js
export class CustomContextMenuComponent implements OnInit {
@@ -148,7 +149,7 @@ export class CustomContextMenuComponent implements OnInit {
case 'search_in_google':
for (var i = 0; i < pdfViewer.textSelectionModule.selectionRangeArray.length; i++) {
var content = pdfViewer.textSelectionModule.selectionRangeArray[i].textContent;
- if ((pdfViewer.textSelectionModule.isTextSelection) && (/\S/.test(content))) {
+ if ((pdfViewer.textSelectionModule.isTextSelection) && (\/\S\/.test(content))) {
window.open('http://google.com/search?q=' + content);
}
}
@@ -209,7 +210,7 @@ export class CustomContextMenuComponent implements OnInit {
}
```
-The following is the output of custom context menu with customization.
+The following is the output of the custom context menu with customization.
{% tabs %}
{% highlight ts tabtitle="app.component.ts" %}
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-font-signature-field.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-font-signature-field.md
index 08d6472e6..8220776eb 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-font-signature-field.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-font-signature-field.md
@@ -1,7 +1,7 @@
---
Layout: post
-title: To change the font family in Syncfusion Angular Pdfviewer component
-description: Learn how to change the font family in Form Field's Type Signature in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: To change the font family in Syncfusion Angular PDF Viewer component
+description: Learn how to change the font family in Form Field's Type Signature in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: PDF Viewer
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-fonts.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-fonts.md
index 21ff9ecda..9d115426b 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-fonts.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-fonts.md
@@ -1,7 +1,7 @@
---
layout: post
title: Add custom fonts to the PDF Viewer using the PDF document | Syncfusion
-description: Learn how to add custom fonts using the PDF document in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+description: Learn how to add custom fonts using the PDF document in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: PDF Viewer
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-stamp.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-stamp.md
index 5b29144a2..62e5dc368 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-stamp.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/custom-stamp.md
@@ -1,7 +1,7 @@
---
layout: post
title: Add the custom stamp based on the free text bounds | Syncfusion
-description: Learn how to add the custom stamp based on the free text bounds in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+description: Learn how to add the custom stamp based on the free text bounds in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Add the custom stamp based on the free text bounds
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/delete-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/delete-annotation.md
index a3cb6f134..e536dd409 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/delete-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/delete-annotation.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Delete annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Delete annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Delete annotation in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Delete annotation in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Delete annotation
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/download-start-event.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/download-start-event.md
index 05b00f0c1..6d8377a4a 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/download-start-event.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/download-start-event.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Controlling File Downloads in Angular Pdfviewer component | Syncfusion
-description: Learn here how to Controlling File Downloads in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Controlling File Downloads in Angular PDF Viewer component | Syncfusion
+description: Learn here how to Controlling File Downloads in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: PDF Viewer
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-completed.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-completed.md
index a60f2a993..2fd44e42c 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-completed.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-completed.md
@@ -1,7 +1,7 @@
---
layout: post
-title: extractTextCompleted Event in Angular Pdfviewer component | Syncfusion
-description: Learn here all about extractTextCompleted Event in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: extractTextCompleted Event in Angular PDF Viewer component | Syncfusion
+description: Learn here all about extractTextCompleted Event in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: extractTextCompleted
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-option.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-option.md
index d4ffddd88..e8184e07a 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-option.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text-option.md
@@ -1,16 +1,16 @@
---
layout: post
-title: Extract text Option in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Extract text Option in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Extract text Option in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Extract text Option in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Extract text Option
documentation: ug
domainurl: ##DomainURL##
---
-# Extract Text Option in Syncfusion Angular Pdfviewer Control
+# Extract Text Option in Syncfusion Angular PDF Viewer Control
-The `extractTextOption` property in the Syncfusion PdfViewer control allows you to optimize memory usage by controlling the level of text extraction. This setting influences the data returned in the `extractTextCompleted` event. You can select one of the following options to determine the kind of text extraction and layout information to retrieve.
+The `extractTextOption` property in the Syncfusion PDF Viewer control allows you to optimize memory usage by controlling the level of text extraction. This setting influences the data returned in the `extractTextCompleted` event. You can select one of the following options to determine the kind of text extraction and layout information to retrieve.
### Available Options:
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text.md
index f5683f07d..6f434c40b 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/extract-text.md
@@ -1,16 +1,16 @@
---
layout: post
-title: Extract Text in Vue Pdfviewer component | Syncfusion
-description: Learn about the Extract Text in Syncfusion Vue Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Extract Text in Vue PDF Viewer component | Syncfusion
+description: Learn about the Extract Text in Syncfusion Vue PDF Viewer component of Syncfusion Essential JS 2 and more.
control: Extract Text
platform: ej2-vue
documentation: ug
domainurl: ##DomainURL##
---
-# Extract Text Method in Syncfusion® PdfViewer Control
+# Extract Text Method in Syncfusion® PDF Viewer Control
-The `extractText` method of the Syncfusion PdfViewer control enables text extraction from one or more pages in a PDF document. This method is useful for retrieving the text content along with its associated data, such as the bounds of each text element.
+The `extractText` method of the Syncfusion PDF Viewer control enables text extraction from one or more pages in a PDF document. This method is useful for retrieving the text content along with its associated data, such as the bounds of each text element.
### extractText Method
The extractText method retrieves text data from the specified page(s) of a PDF document. It can extract text from one page, a range of pages, or even provide detailed text data, depending on the options specified.
@@ -33,7 +33,7 @@ The method returns a Promise that resolves to an object containing two propertie
**pageText:** A concatenated string of plain text extracted from the specified page(s).
-### Usage of extractText in Syncfusion PdfViewer Control
+### Usage of extractText in Syncfusion PDF Viewer Control
Here is an example that demonstrates how to use the extractText method:
```ts
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/find-text-async.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/find-text-async.md
index a92c78028..08a3630f5 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/find-text-async.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/find-text-async.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Find Text Async Angular Pdfviewer component | Syncfusion
-description: Learn about the `findTextAsync` in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Find Text Async Angular PDF Viewer component | Syncfusion
+description: Learn about the `findTextAsync` in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Find Text Async
documentation: ug
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
# Find Text using findTextAsync Method in Syncfusion PdfViewer
-The findTextAsync method in the Syncfusion PdfViewer control allows you to search for specific text or an array of strings asynchronously within a PDF document. The method returns the bounding rectangles for each occurrence of the search term, allowing you to find and work with text positions in the document.
+The findTextAsync method in the Syncfusion PDF Viewer control allows you to search for specific text or an array of strings asynchronously within a PDF document. The method returns the bounding rectangles for each occurrence of the search term, allowing you to find and work with text positions in the document.
Here is an example of how you can use the **findTextAsync** method:
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/font-family.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/font-family.md
index 47ce52527..9c813ef91 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/font-family.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/font-family.md
@@ -1,7 +1,7 @@
---
Layout: post
-title: Change the Font Family in Angular Pdfviewer component | Syncfusion
-description: Learn how to change the font family in the type signature in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Change the Font Family in Angular PDF Viewer component | Syncfusion
+description: Learn how to change the font family in the type signature in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Change the Font Family in the Type Signature
documentation: ug
@@ -12,7 +12,7 @@ domainurl: ##DomainURL##
Change the font family in the Type Signature of the Syncfusion® PDF Viewer by adding a custom CSS stylesheet to the document, and then apply the desired font family to the Type Signature element. Include the Google Font link in the HTML head section to apply the Google Font.
-use the [handWrittenSignatureSettings](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/handWrittenSignatureSettings/) property of the PdfViewer component and modify the fontFamily property.
+use the [handWrittenSignatureSettings](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/handWrittenSignatureSettings/) property of the PDF Viewer component and modify the fontFamily property.
```html
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base-string-of-the-loaded-document.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base-string-of-the-loaded-document.md
index c59443bb8..f70ad79c5 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base-string-of-the-loaded-document.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base-string-of-the-loaded-document.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Get base string of the loaded document in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Get base string of the loaded document in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Get base string of the loaded document in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Get base string of the loaded document in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Get base string of the loaded document
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base64.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base64.md
index fe029415e..f44bc7873 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base64.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/get-base64.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Retrieving Base64 Value from a PDF in Angular Pdfviewer|Syncfusion.
-description: Learn here all about how to retrieve the Base64 value of a loaded PDF document in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Retrieving Base64 Value from a PDF in Angular PDF Viewer|Syncfusion.
+description: Learn here all about how to retrieve the Base64 value of a loaded PDF document in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: PDF Viewer
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/import-export-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/import-export-annotation.md
index d785b2484..fa9c7eb9f 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/import-export-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/import-export-annotation.md
@@ -1,14 +1,14 @@
---
layout: post
-title: Import export annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Import export annotation in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Import & Export Annotations in Angular PDF Viewer | Syncfusion
+description: Explore how to handle PDF annotations with import and export features in Syncfusion Angular PDF Viewer component.
platform: document-processing
control: Import export annotation
documentation: ug
domainurl: ##DomainURL##
---
-# Import and Export annotation
+# Import Export annotation in Angular PDF Viewer component
The PDF Viewer library allows you to import annotations from objects or streams instead of loading it as a file. To import such annotation objects, the PDF Viewer control must export the PDF annotations as objects by using the [**ExportAnnotationsAsObject()**](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#exportannotationsasobject) method. Only the annotation objects that are exported from the PDF Viewer can be imported.
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/include-authorization-token.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/include-authorization-token.md
index c1ee29eb3..0ccf847e7 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/include-authorization-token.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/include-authorization-token.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Include authorization token in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Include authorization token in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Include authorization token in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Include authorization token in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Include authorization token
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-document.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-document.md
index 72931102d..243349f6d 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-document.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-document.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Load document in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Load document in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Load document in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Load document in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Load document
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-n-number-page.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-n-number-page.md
index 20f7e0738..9102ffc7a 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-n-number-page.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-n-number-page.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Load N number of pages in Angular Pdfviewer component | Syncfusion
-description: Learn how to Load N number of pages on initial loading in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Load N number of pages in Angular PDF Viewer component | Syncfusion
+description: Learn how to Load N number of pages on initial loading in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Load N number of pages on initial loading
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-office-files.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-office-files.md
index fdefebb5c..f10054165 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-office-files.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/load-office-files.md
@@ -1,7 +1,7 @@
---
layout: post
title: Load office files in PDF Viewer
-description: Learn about how to load office files in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+description: Learn about how to load office files in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: How to load the Office products
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/lock-annotation-in-a-document.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/lock-annotation-in-a-document.md
index d0c75d91d..3c65a8f50 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/lock-annotation-in-a-document.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/lock-annotation-in-a-document.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Lock annotation in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Lock annotation in a document in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Lock annotation in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Lock annotation in a document in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Lock annotation in a document
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/open-thumbnail.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/open-thumbnail.md
index d87232668..fc57feaab 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/open-thumbnail.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/open-thumbnail.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Open thumbnail in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Open thumbnail in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Open thumbnail in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Open thumbnail in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Open thumbnail
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/redis-cache.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/redis-cache.md
index b62a81f81..210120825 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/redis-cache.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/redis-cache.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Redis cache in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Redis cache in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Redis cache in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Redis cache in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Redis cache
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/resolve-unable-to-find-an-entry-point-error.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/resolve-unable-to-find-an-entry-point-error.md
index 06d8208e6..dc55163ef 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/resolve-unable-to-find-an-entry-point-error.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/resolve-unable-to-find-an-entry-point-error.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Find an entry point in Angular Pdfviewer component | Syncfusion
-description: Learn here how to resolve unable to find an entry point named error in Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Find an entry point in Angular PDF Viewer component | Syncfusion
+description: Learn here how to resolve unable to find an entry point named error in Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
control: Resolve unable to find an entry point error
platform: document-processing
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/retry-timeout.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/retry-timeout.md
index f9dc2c0f0..7f410b072 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/retry-timeout.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/retry-timeout.md
@@ -1,7 +1,7 @@
---
layout: post
title: Retry Timeout | Syncfusion
-Description: Learn here all about Retry Timeout in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+Description: Learn here all about Retry Timeout in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Retry Timeout
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-custom-stamp-item.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-custom-stamp-item.md
index 2307c9a66..78e9f9134 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-custom-stamp-item.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-custom-stamp-item.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Displaying Custom stamp Items in Angular Pdfviewer|Syncfusion.
-description: Learn how to display custom items in the custom stamp Dropdown in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Displaying Custom stamp Items in Angular PDF Viewer|Syncfusion.
+description: Learn how to display custom items in the custom stamp Dropdown in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: PDF Viewer
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-hide-annotation.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-hide-annotation.md
index e0ed9e331..575ad78ac 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-hide-annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-hide-annotation.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Showing and Hiding Annotations in Angular Pdfviewer | Syncfusion
-description: Learn here all about how to show and hide annotations in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Showing and Hiding Annotations in Angular PDF Viewer | Syncfusion
+description: Learn here all about how to show and hide annotations in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: PDF Viewer
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-pop-up-after-completion-of-export-form-fields.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-pop-up-after-completion-of-export-form-fields.md
index 92a11c919..1e1b49d67 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-pop-up-after-completion-of-export-form-fields.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/show-pop-up-after-completion-of-export-form-fields.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Show pop up in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Show pop up after completion of export form fields in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Show pop up in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Show pop up after completion of export form fields in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Show pop up after completion of export form fields
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md b/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md
index 45eb53632..2a9884353 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/how-to/unload-document.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Unload document in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Unload document in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Unload document in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Unload document in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Unload document
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/add-revised.png b/Document-Processing/PDF/PDF-Viewer/angular/images/add-revised.png
new file mode 100644
index 000000000..0e0a24bae
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/add-revised.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/add-shapes.png b/Document-Processing/PDF/PDF-Viewer/angular/images/add-shapes.png
new file mode 100644
index 000000000..09ab8ef22
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/add-shapes.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/add-signature.png b/Document-Processing/PDF/PDF-Viewer/angular/images/add-signature.png
new file mode 100644
index 000000000..3bf8fe062
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/add-signature.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/add-sticky-notes.png b/Document-Processing/PDF/PDF-Viewer/angular/images/add-sticky-notes.png
new file mode 100644
index 000000000..d86780c44
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/add-sticky-notes.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/add-text-markup.png b/Document-Processing/PDF/PDF-Viewer/angular/images/add-text-markup.png
new file mode 100644
index 000000000..7a09d8d5a
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/add-text-markup.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/adding-signature.png b/Document-Processing/PDF/PDF-Viewer/angular/images/adding-signature.png
new file mode 100644
index 000000000..fd92aa760
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/adding-signature.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/after-enabling-annotation-toolbar.png b/Document-Processing/PDF/PDF-Viewer/angular/images/after-enabling-annotation-toolbar.png
new file mode 100644
index 000000000..2387c4035
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/after-enabling-annotation-toolbar.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/change-property.png b/Document-Processing/PDF/PDF-Viewer/angular/images/change-property.png
new file mode 100644
index 000000000..edb1b772d
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/change-property.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/close-comment-panel.png b/Document-Processing/PDF/PDF-Viewer/angular/images/close-comment-panel.png
new file mode 100644
index 000000000..26af17938
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/close-comment-panel.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/comment-panel.png b/Document-Processing/PDF/PDF-Viewer/angular/images/comment-panel.png
new file mode 100644
index 000000000..61c066ec0
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/comment-panel.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/delete-icon.png b/Document-Processing/PDF/PDF-Viewer/angular/images/delete-icon.png
new file mode 100644
index 000000000..9c99dc690
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/delete-icon.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/edit-annotation.png b/Document-Processing/PDF/PDF-Viewer/angular/images/edit-annotation.png
new file mode 100644
index 000000000..1b00dad78
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/edit-annotation.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-del.png b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-del.png
new file mode 100644
index 000000000..0a320823d
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-del.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-dialog.png b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-dialog.png
new file mode 100644
index 000000000..e6e87df83
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-dialog.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-signed.png b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-signed.png
new file mode 100644
index 000000000..93470a0f5
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature-signed.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature.png b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature.png
new file mode 100644
index 000000000..9be25488e
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling-signature.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling.png b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling.png
new file mode 100644
index 000000000..42c9b0064
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/form-filling.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/ink-annotation.png b/Document-Processing/PDF/PDF-Viewer/angular/images/ink-annotation.png
new file mode 100644
index 000000000..163a1130e
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/ink-annotation.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/open-comment.png b/Document-Processing/PDF/PDF-Viewer/angular/images/open-comment.png
new file mode 100644
index 000000000..900069fad
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/open-comment.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/open-fillcolor.png b/Document-Processing/PDF/PDF-Viewer/angular/images/open-fillcolor.png
new file mode 100644
index 000000000..5eaa67806
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/open-fillcolor.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/open-ink.png b/Document-Processing/PDF/PDF-Viewer/angular/images/open-ink.png
new file mode 100644
index 000000000..c52125247
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/open-ink.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/open-radius.png b/Document-Processing/PDF/PDF-Viewer/angular/images/open-radius.png
new file mode 100644
index 000000000..0dd083a9c
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/open-radius.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/open-stamp.png b/Document-Processing/PDF/PDF-Viewer/angular/images/open-stamp.png
new file mode 100644
index 000000000..74ccf1664
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/open-stamp.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/organize-copy.png b/Document-Processing/PDF/PDF-Viewer/angular/images/organize-copy.png
new file mode 100644
index 000000000..6f1b99332
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/organize-copy.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/organize-delete.png b/Document-Processing/PDF/PDF-Viewer/angular/images/organize-delete.png
new file mode 100644
index 000000000..55dce7cee
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/organize-delete.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/organize-insert.png b/Document-Processing/PDF/PDF-Viewer/angular/images/organize-insert.png
new file mode 100644
index 000000000..cde4161c6
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/organize-insert.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/radius-annotation.png b/Document-Processing/PDF/PDF-Viewer/angular/images/radius-annotation.png
new file mode 100644
index 000000000..2559f6da8
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/radius-annotation.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/select-text.png b/Document-Processing/PDF/PDF-Viewer/angular/images/select-text.png
new file mode 100644
index 000000000..b7d119b38
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/select-text.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/images/sticky-notes-in-page.png b/Document-Processing/PDF/PDF-Viewer/angular/images/sticky-notes-in-page.png
new file mode 100644
index 000000000..3a96cc714
Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/angular/images/sticky-notes-in-page.png differ
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/interaction-mode.md b/Document-Processing/PDF/PDF-Viewer/angular/interaction-mode.md
index 08dc99406..4267606d6 100644
--- a/Document-Processing/PDF/PDF-Viewer/angular/interaction-mode.md
+++ b/Document-Processing/PDF/PDF-Viewer/angular/interaction-mode.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Interaction mode in Angular Pdfviewer component | Syncfusion
-description: Learn here all about Interaction mode in Syncfusion Angular Pdfviewer component of Syncfusion Essential JS 2 and more.
+title: Interaction mode in Angular PDF Viewer component | Syncfusion
+description: Learn here all about Interaction mode in Syncfusion Angular PDF Viewer component of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Interaction mode
documentation: ug
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/interactive-pdf-navigation/bookmark.md b/Document-Processing/PDF/PDF-Viewer/angular/interactive-pdf-navigation/bookmark.md
new file mode 100644
index 000000000..7b30115f2
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/interactive-pdf-navigation/bookmark.md
@@ -0,0 +1,249 @@
+---
+layout: post
+title: Bookmark Navigation in Angular PDF Viewer | Syncfusion
+description: Learn how to use bookmarks for quick navigation in the Syncfusion Angular PDF Viewer control, enhancing user experience and accessibility.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Bookmark navigation in Angular PDF Viewer control
+
+The Bookmarks saved in PDF files are loaded and made ready for easy navigation.
+You can enable/disable bookmark navigation by using the following code snippet.,
+
+{% tabs %}
+{% highlight ts tabtitle="Standalone" %}
+import { Component, ViewEncapsulation, OnInit, ViewChild, AfterViewInit } from '@angular/core';
+import {
+ PdfViewerComponent,
+ LinkAnnotationService,
+ BookmarkViewService,
+ MagnificationService,
+ ThumbnailViewService,
+ ToolbarService,
+ NavigationService,
+ TextSearchService,
+ TextSelectionService,
+ PrintService,
+ AnnotationService,
+ FormFieldsService,
+ FormDesignerService,
+ PageOrganizerService,
+ PdfViewerModule,
+} from '@syncfusion/ej2-angular-pdfviewer';
+
+/**
+ * Default PdfViewer Controller
+ */
+@Component({
+ selector: 'app-root',
+ // templateUrl: 'app.component.html',
+ template: `
+
+
+ style="height:640px;display:block"
+
+ `,
+ encapsulation: ViewEncapsulation.None,
+ // tslint:disable-next-line:max-line-length
+ providers: [
+ LinkAnnotationService,
+ BookmarkViewService,
+ MagnificationService,
+ ThumbnailViewService,
+ ToolbarService,
+ NavigationService,
+ TextSearchService,
+ TextSelectionService,
+ PrintService,
+ AnnotationService,
+ FormFieldsService,
+ FormDesignerService,
+ PageOrganizerService,
+ ],
+ styleUrls: ['app.component.css'],
+ standalone: true,
+ imports: [PdfViewerModule],
+
+})
+
+export class AppComponent {
+ @ViewChild('pdfviewer')
+ public viewer: PdfViewerComponent;
+ public service = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer';
+ public document: string =
+ 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+
+ ngOnInit(): void {
+ // ngOnInit function
+ }
+}
+
+{% endhighlight %}
+{% endtabs %}
+
+
+
+To perform bookmark navigation, you can use the **goToBookmark** method. It's important to note that the **goToBookmark** method will throw an error if the specified bookmark does not exist in the PDF document.
+
+Here is an example of how to use the **goToBookmark** method:
+
+```
+
+```
+
+```ts
+import { Component, ViewChild, AfterViewInit } from '@angular/core';
+import { PdfViewerComponent } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-container',
+ template: ``
+})
+export class AppComponent implements AfterViewInit {
+ @ViewChild('pdfViewer', { static: false }) public viewer: PdfViewerComponent;
+
+ ngAfterViewInit(): void {
+ const btn = document.getElementById('gotobookmark');
+ if (btn) {
+ btn.addEventListener('click', () => {
+ const x = 0; // page index
+ const y = 0; // Y coordinate
+ this.viewer.bookmark.goToBookmark(x, y);
+ });
+ }
+ }
+}
+```
+
+x - Specifies the pageIndex for Navigate.
+
+y - Specifies the Y coordinates value of the Page.
+
+Also, you can use the **getBookmarks** method to retrieve a list of all the bookmarks in a PDF document. This method returns a List of Bookmark objects, which contain information about each bookmark.
+
+Here is an example of how to use the getBookmarks method:
+
+```
+
+```
+
+```ts
+import { Component, ViewChild, AfterViewInit } from '@angular/core';
+import { PdfViewerComponent } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-container',
+ template: ``
+})
+export class AppComponent implements AfterViewInit {
+ @ViewChild('pdfViewer', { static: false })
+ public viewer: PdfViewerComponent;
+
+ ngAfterViewInit(): void {
+ const btn = document.getElementById('getBookmarks');
+ if (btn) {
+ btn.addEventListener('click', () => {
+ const getBookmarks = this.viewer.bookmark.getBookmarks();
+ console.log(getBookmarks);
+ });
+ }
+ }
+}
+```
+
+## See also
+
+* [Toolbar items](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/toolbar)
+* [Feature Modules](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/feature-module)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/angular/interactive-pdf-navigation/hyperlink.md b/Document-Processing/PDF/PDF-Viewer/angular/interactive-pdf-navigation/hyperlink.md
new file mode 100644
index 000000000..b9380492a
--- /dev/null
+++ b/Document-Processing/PDF/PDF-Viewer/angular/interactive-pdf-navigation/hyperlink.md
@@ -0,0 +1,289 @@
+---
+layout: post
+title: Hyperlink navigation in PDF Viewer | Syncfusion
+description: Learn how to configure hyperlink navigation, including table-of-contents entries, in the Syncfusion PDF Viewer control for Angular.
+platform: document-processing
+control: PDF Viewer
+documentation: ug
+domainurl: ##DomainURL##
+---
+
+# Hyperlink navigation in PDF Viewer
+
+The PDF Viewer consolidates hyperlink-driven experiences, including inline links and table-of-contents (TOC) entries that target in-document destinations. These elements surface contextual entry points so users can jump directly to relevant sections without manual scrolling.
+
+> **Note:** The table of contents pane and hyperlink interactions rely on the same navigation infrastructure. When these capabilities are enabled, the PDF Viewer automatically surfaces TOC entries and clickable links defined in the PDF.
+
+## Required modules
+
+Inject the following modules to enable both navigation experiences: `Toolbar`, `Magnification`, `Navigation`, `LinkAnnotation`, `BookmarkView`, `TextSelection`, `ThumbnailView`, and optionally `Annotation`.
+
+## Table of contents navigation
+
+Use the table of contents to navigate to headings and sections defined in the PDF. When the document contains a bookmarks or outline structure, the viewer exposes those entries in the table of contents (Bookmarks) pane. Selecting an entry navigates directly to the mapped destination. If the PDF does not include a table of contents, the pane will not list any entries.
+
+
+
+## Hyperlink navigation
+
+The PDF Viewer provides robust support for hyperlink navigation within PDF documents. This allows users to interact with embedded links, which can point to external websites or other locations within the same document. This section covers how to configure hyperlink behavior, including enabling or disabling links, controlling how they open, and responding to hyperlink-related events.
+
+
+
+### Enable or disable hyperlinks
+
+By default, the PDF Viewer automatically detects and enables all hyperlinks present in a loaded document. This behavior can be controlled using the `enableHyperlink` property.
+
+- **Property**: `enableHyperlink`
+- **Type**: `boolean`
+- **Default**: `true`
+
+When `enableHyperlink` is set to `false`, all hyperlinks in the document become non-interactive. This means that users cannot click them, and no hyperlink-related events will be triggered.
+
+The following example demonstrates how to disable hyperlink navigation:
+
+{% tabs %}
+{% highlight ts tabtitle="Standalone" %}
+
+import { Component, OnInit } from '@angular/core';
+import { PdfViewerComponent, LinkAnnotationService, BookmarkViewService, MagnificationService,
+ ThumbnailViewService, ToolbarService, NavigationService,
+ TextSearchService, AnnotationService, TextSelectionService,
+ PrintService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-container',
+ template: `
`,
+ providers: [ LinkAnnotationService, BookmarkViewService, MagnificationService,
+ ThumbnailViewService, ToolbarService, NavigationService,
+ AnnotationService, TextSearchService, TextSelectionService,
+ PrintService ]
+})
+export class AppComponent {
+ public service = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer';
+ public document = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
+ ngOnInit(): void {}
+}
+{% endhighlight %}
+{% endtabs %}
+
+> **Note:** Disabling hyperlinks only affects the viewer's behavior and does not alter the original PDF document.
+### Control link behavior
+
+The `hyperlinkOpenState` property determines how external URLs are opened when a hyperlink is clicked.
+
+- **Property**: `hyperlinkOpenState`
+- **Type**: `'CurrentTab' | 'NewTab'`
+- **Default**: `'CurrentTab'`
+
+By default, links open in the same browser tab (`CurrentTab`). To open links in a new tab, set this property to `'NewTab'`. This is useful for preserving the user's current viewing session.
+
+The following example configures hyperlinks to open in a new tab:
+
+{% tabs %}
+{% highlight ts tabtitle="Standalone" %}
+
+import { Component, OnInit } from '@angular/core';
+import { PdfViewerComponent, LinkAnnotationService, BookmarkViewService, MagnificationService,
+ ThumbnailViewService, ToolbarService, NavigationService,
+ TextSearchService, AnnotationService, TextSelectionService,
+ PrintService } from '@syncfusion/ej2-angular-pdfviewer';
+
+@Component({
+ selector: 'app-container',
+ template: `