diff --git a/Compression/Compress-the-images-in-an-existing-PDF-document/.NET/Compress-the-images-in-an-existing-PDF-document/README.md b/Compression/Compress-the-images-in-an-existing-PDF-document/.NET/Compress-the-images-in-an-existing-PDF-document/README.md index 09c54a0f..b8bed639 100644 --- a/Compression/Compress-the-images-in-an-existing-PDF-document/.NET/Compress-the-images-in-an-existing-PDF-document/README.md +++ b/Compression/Compress-the-images-in-an-existing-PDF-document/.NET/Compress-the-images-in-an-existing-PDF-document/README.md @@ -6,18 +6,18 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to compress PDF files using the Syncfusion library: -1. **Create a new project**: Set up a new C# Console Application project. +Step 1: **Create a new project**: Set up a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Add required namespaces**: Include the following namespaces in your `Program.cs` file: +Step 3: **Add required namespaces**: Include the following namespaces in your `Program.cs` file: ```csharp using Syncfusion.Pdf.Parsing; using Syncfusion.Pdf; ``` -4. **Implement PDF compression**: Use the following code snippet in `Program.cs` to compress PDF files: +Step 4: **Implement PDF compression**: Use the following code snippet in `Program.cs` to compress PDF files: ```csharp // Open a file stream to read the input PDF file diff --git a/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Data/signature.png b/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Data/signature.png new file mode 100644 index 00000000..e700dd88 Binary files /dev/null and b/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Data/signature.png differ diff --git a/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Program.cs b/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Program.cs index e5134f25..0ace91a9 100644 --- a/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Program.cs +++ b/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Program.cs @@ -2,6 +2,7 @@ using Syncfusion.Drawing; using Syncfusion.Pdf; +using Syncfusion.Pdf.Graphics; using Syncfusion.Pdf.Interactive; using Syncfusion.Pdf.Parsing; using Syncfusion.Pdf.Security; diff --git a/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/README.md b/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/README.md index f01637d9..c2d9ef3b 100644 --- a/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/README.md +++ b/Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/README.md @@ -6,11 +6,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to digitally sign PDF files using the Syncfusion library: -1. **Create a new project**: Start by creating a new C# Console Application project. +Step 1: **Create a new project**: Start by creating a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: +Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: ```csharp using Syncfusion.Pdf; @@ -18,9 +18,10 @@ Follow these steps to digitally sign PDF files using the Syncfusion library: using Syncfusion.Pdf.Parsing; using Syncfusion.Pdf.Security; using Syncfusion.Drawing; + using Syncfusion.Pdf.Interactive; ``` -4. **Add digital signature code**: Use the following code snippet in `Program.cs` to add a digital signature to a PDF file: +Step 4: **Add digital signature code**: Use the following code snippet in `Program.cs` to add a digital signature to a PDF file: ```csharp // Open the existing PDF document as a stream diff --git a/Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/README.md b/Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/README.md index 93b0c6c7..05889d87 100644 --- a/Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/README.md +++ b/Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/README.md @@ -6,11 +6,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to create a PDF form with a textbox field: -1. **Create a new project**: Start by creating a new C# Console Application project. +Step 1: **Create a new project**: Start by creating a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: +Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: ```csharp using Syncfusion.Drawing; @@ -19,7 +19,7 @@ Follow these steps to create a PDF form with a textbox field: using Syncfusion.Pdf.Interactive; ``` -4. **Create PDF forms**: Implement the following code in `Program.cs` to add a textbox field to a PDF document: +Step 4: **Create PDF forms**: Implement the following code in `Program.cs` to add a textbox field to a PDF document: ```csharp // Create a new PDF document diff --git a/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/README.md b/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/README.md index c5cd2b4e..b41e12e4 100644 --- a/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/README.md +++ b/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/README.md @@ -6,11 +6,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to convert HTML content into a PDF file using the Syncfusion library: -1. **Create a new project**: Initialize a new C# Console Application project. +Step 1: **Create a new project**: Initialize a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.HtmlToPdfConverter.Net.Windows](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Windows) package as a reference in your .NET Standard application from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.HtmlToPdfConverter.Net.Windows](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Windows) package as a reference in your .NET Standard application from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: +Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: ```csharp using Syncfusion.HtmlConverter; @@ -18,7 +18,7 @@ Follow these steps to convert HTML content into a PDF file using the Syncfusion using System.Runtime.InteropServices; ``` -4. **Convert HTML to PDF**: Implement the following code in `Program.cs` to convert a website URL to a PDF file: +Step 4: **Convert HTML to PDF**: Implement the following code in `Program.cs` to convert a website URL to a PDF file: ```csharp // Initialize the HTML to PDF converter diff --git a/Images/Convert_Image_to_PDF/.NET/Convert_Image_to_PDF/README.md b/Images/Convert_Image_to_PDF/.NET/Convert_Image_to_PDF/README.md index ed962cf4..e971ef16 100644 --- a/Images/Convert_Image_to_PDF/.NET/Convert_Image_to_PDF/README.md +++ b/Images/Convert_Image_to_PDF/.NET/Convert_Image_to_PDF/README.md @@ -6,17 +6,17 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to convert an image into a PDF file using the Syncfusion library: -1. **Create a new project**: Start a new C# Console Application project. +Step 1: **Create a new project**: Start a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Imaging.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Imaging.Net.Core) package as a reference to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Imaging.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Imaging.Net.Core) package as a reference to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add the following namespace in your `Program.cs` file: +Step 3: **Include necessary namespaces**: Add the following namespace in your `Program.cs` file: ```csharp using Syncfusion.Pdf; ``` -4. **Convert image to PDF**: Implement the following code in `Program.cs` to convert an image into a PDF file: +Step 4: **Convert image to PDF**: Implement the following code in `Program.cs` to convert an image into a PDF file: ```csharp // Create an instance of the ImageToPdfConverter class diff --git a/Merge PDFs/Merge-multiple-documents-from-stream/.NET/Merge-multiple-documents-from-stream/README.md b/Merge PDFs/Merge-multiple-documents-from-stream/.NET/Merge-multiple-documents-from-stream/README.md index a528102b..2dd51a10 100644 --- a/Merge PDFs/Merge-multiple-documents-from-stream/.NET/Merge-multiple-documents-from-stream/README.md +++ b/Merge PDFs/Merge-multiple-documents-from-stream/.NET/Merge-multiple-documents-from-stream/README.md @@ -6,17 +6,17 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to merge PDF files using the Syncfusion library: -1. **Create a new project**: Start by creating a new C# Console Application project. +Step 1: **Create a new project**: Start by creating a new C# Console Application project. -2. **Install the NuGet package**: Reference the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package in your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Reference the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package in your project from [NuGet.org](https://www.nuget.org/). -3. **Include required namespaces**: Add the following namespace in your `Program.cs` file: +Step 3: **Include required namespaces**: Add the following namespace in your `Program.cs` file: ```csharp using Syncfusion.Pdf; ``` -4. **Merge PDF files**: Use the following code snippet in `Program.cs` to merge PDF files: +Step 4: **Merge PDF files**: Use the following code snippet in `Program.cs` to merge PDF files: ```csharp // Create a PDF document for the final merged output diff --git a/OCR/.NET/Perform-OCR-for-the-entire-PDF-document/Perform-OCR-for-the-entire-PDF-document/README.md b/OCR/.NET/Perform-OCR-for-the-entire-PDF-document/Perform-OCR-for-the-entire-PDF-document/README.md index 47dfe316..adcf986b 100644 --- a/OCR/.NET/Perform-OCR-for-the-entire-PDF-document/Perform-OCR-for-the-entire-PDF-document/README.md +++ b/OCR/.NET/Perform-OCR-for-the-entire-PDF-document/Perform-OCR-for-the-entire-PDF-document/README.md @@ -6,18 +6,18 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to apply OCR to PDF files using the Syncfusion library: -1. **Create a new project**: Set up a new C# Console Application project. +Step 1: **Create a new project**: Set up a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.PDF.OCR.Net.Core](https://www.nuget.org/packages/Syncfusion.PDF.OCR.Net.Core) package as a reference in your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.PDF.OCR.Net.Core](https://www.nuget.org/packages/Syncfusion.PDF.OCR.Net.Core) package as a reference in your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: +Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: ```csharp using Syncfusion.OCRProcessor; using Syncfusion.Pdf.Parsing; ``` -4. **Implement OCR Processing**: Use the following code snippet in `Program.cs` to perform OCR on a PDF document: +Step 4: **Implement OCR Processing**: Use the following code snippet in `Program.cs` to perform OCR on a PDF document: ```csharp // Initialize the OCR processor diff --git a/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/Program.cs b/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/Program.cs index 14c71b65..8577da4d 100644 --- a/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/Program.cs +++ b/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/Program.cs @@ -68,4 +68,5 @@ void LoadedDocument_SubstituteFont(object sender, PdfFontEventArgs args) } //Close the document. +docStream.Dispose(); loadedDocument.Close(true); diff --git a/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/README.md b/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/README.md index 6e494167..0931544b 100644 --- a/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/README.md +++ b/PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document/README.md @@ -6,18 +6,18 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce Follow these steps to convert a PDF document to PDF/A format using the Syncfusion library: -1. **Create a new project**: Start by creating a new C# Console Application project. +Step 1: **Create a new project**: Start by creating a new C# Console Application project. -2. **Install the NuGet package**: Reference the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package in your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Reference the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package in your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: +Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file: ```csharp using Syncfusion.Pdf; using Syncfusion.Pdf.Parsing; ``` -4. **Convert PDF to PDF/A**: Implement the following code in `Program.cs` to perform the conversion: +Step 4: **Convert PDF to PDF/A**: Implement the following code in `Program.cs` to perform the conversion: ```csharp // Load an existing PDF document @@ -41,6 +41,6 @@ Follow these steps to convert a PDF document to PDF/A format using the Syncfusio } ``` -You can download a complete working sample from the [GitHub repository](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/PDF%20Conformance/Get-PDF-to-PDFA-conversion-progress/.NET). +You can download a complete working sample from the [GitHub repository](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/PDF%20Conformance/Convert-PDF-to-PDFA-conformance-document). To explore additional features of the Syncfusion PDF library, click [here](https://www.syncfusion.com/document-processing/pdf-framework/net-core). \ No newline at end of file diff --git a/Pages/Splitting-PDF-file-into-individual-pages/.NET/Splitting-PDF-file-into-individual-pages/README.md b/Pages/Splitting-PDF-file-into-individual-pages/.NET/Splitting-PDF-file-into-individual-pages/README.md index c9a1f2aa..42322a1c 100644 --- a/Pages/Splitting-PDF-file-into-individual-pages/.NET/Splitting-PDF-file-into-individual-pages/README.md +++ b/Pages/Splitting-PDF-file-into-individual-pages/.NET/Splitting-PDF-file-into-individual-pages/README.md @@ -4,46 +4,46 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce ## Steps to split PDF files -1. **Create a new project**: Begin by setting up a new C# Console Application project. +Step 1: **Create a new project**: Begin by setting up a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: In your **Program.cs** file, include the following namespaces: +Step 3: **Include necessary namespaces**: In your **Program.cs** file, include the following namespaces: ```csharp using Syncfusion.Pdf.Parsing; using Syncfusion.Pdf; -``` - -4. **Split the PDF file:** Implement the following code in **Program.cs** to split the PDF file: - -```csharp -// Create a FileStream object to read the input PDF file -using (FileStream inputFileStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read)) -{ - // Load the PDF document from the input stream - using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputFileStream)) - { - // Iterate over each page of the loaded document - for (int pageIndex = 0; pageIndex < loadedDocument.PageCount; pageIndex++) - { + ``` + +Step 4: **Split the PDF file:** Implement the following code in **Program.cs** to split the PDF file: + + ```csharp + // Create a FileStream object to read the input PDF file + using (FileStream inputFileStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read)) + { + // Load the PDF document from the input stream + using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputFileStream)) + { + // Iterate over each page of the loaded document + for (int pageIndex = 0; pageIndex < loadedDocument.PageCount; pageIndex++) + { // Create a new PdfDocument for the output using (PdfDocument outputDocument = new PdfDocument()) { - // Import the page into the new document - outputDocument.ImportPage(loadedDocument, pageIndex); - - // Create a FileStream to write the output PDF file - using (FileStream outputFileStream = new FileStream($"Output{pageIndex}.pdf", FileMode.Create, FileAccess.Write)) - { - // Save the new document to the output stream - outputDocument.Save(outputFileStream); - } + // Import the page into the new document + outputDocument.ImportPage(loadedDocument, pageIndex); + + // Create a FileStream to write the output PDF file + using (FileStream outputFileStream = new FileStream($"Output{pageIndex}.pdf", FileMode.Create, FileAccess.Write)) + { + // Save the new document to the output stream + outputDocument.Save(outputFileStream); + } } - } - } -} -``` + } + } + } + ``` You can download a complete working sample from [GitHub repository](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Pages/Splitting-PDF-file-into-individual-pages/). diff --git a/Redaction/Removing-sensitive-content-from-the-PDF-document/.NET/Removing-sensitive-content-from-the-PDF-document/README.md b/Redaction/Removing-sensitive-content-from-the-PDF-document/.NET/Removing-sensitive-content-from-the-PDF-document/README.md index 0303a344..4a3675c1 100644 --- a/Redaction/Removing-sensitive-content-from-the-PDF-document/.NET/Removing-sensitive-content-from-the-PDF-document/README.md +++ b/Redaction/Removing-sensitive-content-from-the-PDF-document/.NET/Removing-sensitive-content-from-the-PDF-document/README.md @@ -4,11 +4,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce ## Steps to Redact PDF Files -1. **Create a new project**: Start by creating a new C# Console Application project. +Step 1: **Create a new project**: Start by creating a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project via [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project via [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add these namespaces to your **Program.cs** file: +Step 3: **Include necessary namespaces**: Add these namespaces to your **Program.cs** file: ```csharp using Syncfusion.Pdf.Parsing; @@ -17,7 +17,7 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce using Syncfusion.Drawing; ``` -4. **Implement redaction**: Use the following code in **Program.cs** to perform PDF redaction: +Step 4: **Implement redaction**: Use the following code in **Program.cs** to perform PDF redaction: ```csharp using (FileStream docStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read)) diff --git a/Security/Protect-an-existing-PDF-document/.NET/Protect-an-existing-PDF-document/README.md b/Security/Protect-an-existing-PDF-document/.NET/Protect-an-existing-PDF-document/README.md index 63bd6c0c..10042274 100644 --- a/Security/Protect-an-existing-PDF-document/.NET/Protect-an-existing-PDF-document/README.md +++ b/Security/Protect-an-existing-PDF-document/.NET/Protect-an-existing-PDF-document/README.md @@ -4,18 +4,18 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce ## Steps to Protect PDF Files -1. **Create a new project**: Begin by setting up a new C# Console Application project. +Step 1: **Create a new project**: Begin by setting up a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add these namespaces in your **Program.cs** file: +Step 3: **Include necessary namespaces**: Add these namespaces in your **Program.cs** file: ```csharp using Syncfusion.Pdf.Security; using Syncfusion.Pdf.Parsing; ``` -4. **Implement encryption**: Use the following code in **Program.cs** to secure your PDF file: +Step 4: **Implement encryption**: Use the following code in **Program.cs** to secure your PDF file: ```csharp // Load the PDF document from a file stream diff --git a/Table/PdfGrid/Create-table-from-data-source-in-a-PDF/.NET/Create-table-from-data-source-in-a-PDF/README.md b/Table/PdfGrid/Create-table-from-data-source-in-a-PDF/.NET/Create-table-from-data-source-in-a-PDF/README.md index b7fd778d..5239ea5a 100644 --- a/Table/PdfGrid/Create-table-from-data-source-in-a-PDF/.NET/Create-table-from-data-source-in-a-PDF/README.md +++ b/Table/PdfGrid/Create-table-from-data-source-in-a-PDF/.NET/Create-table-from-data-source-in-a-PDF/README.md @@ -4,11 +4,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce ## Steps to Add a Table to a PDF Document -1. **Create a new project**: Start by setting up a new C# Console Application project. +Step 1: **Create a new project**: Start by setting up a new C# Console Application project. -2. **Install the NuGet package**: Reference the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package in your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Reference the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package in your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add these namespaces to your **Program.cs** file: +Step 3: **Include necessary namespaces**: Add these namespaces to your **Program.cs** file: ```csharp using Syncfusion.Pdf.Grid; @@ -16,7 +16,7 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce using Syncfusion.Drawing; ``` -4. **Add a table to the PDF**: Use the following code in **Program.cs** to insert a table into the PDF: +Step 4: **Add a table to the PDF**: Use the following code in **Program.cs** to insert a table into the PDF: ```csharp // Create a new PDF document diff --git a/Tagged PDF/Add-tag-for-the-text-element-in-PDF-document/.NET/Add-tag-for-the-text-element-in-PDF-document/README.md b/Tagged PDF/Add-tag-for-the-text-element-in-PDF-document/.NET/Add-tag-for-the-text-element-in-PDF-document/README.md index 61f02030..770f5901 100644 --- a/Tagged PDF/Add-tag-for-the-text-element-in-PDF-document/.NET/Add-tag-for-the-text-element-in-PDF-document/README.md +++ b/Tagged PDF/Add-tag-for-the-text-element-in-PDF-document/.NET/Add-tag-for-the-text-element-in-PDF-document/README.md @@ -4,11 +4,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce ## Steps to Create Accessible PDF Files -1. **Create a new project**: Start by setting up a new C# Console Application project. +Step 1: **Create a new project**: Start by setting up a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add these namespaces in your **Program.cs** file: +Step 3: **Include necessary namespaces**: Add these namespaces in your **Program.cs** file: ```csharp using Syncfusion.Drawing; @@ -16,7 +16,7 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce using Syncfusion.Pdf.Graphics; ``` -4. **Implement accessibility**: Use the following code in **Program.cs** to create an accessible PDF: +Step 4: **Implement accessibility**: Use the following code in **Program.cs** to create an accessible PDF: ```csharp // Create new PDF document diff --git a/Text Extraction/Extract-text-from-the-entire-PDF-document/.NET/Extract-text-from-the-entire-PDF-document/README.md b/Text Extraction/Extract-text-from-the-entire-PDF-document/.NET/Extract-text-from-the-entire-PDF-document/README.md index d983fd40..386b6769 100644 --- a/Text Extraction/Extract-text-from-the-entire-PDF-document/.NET/Extract-text-from-the-entire-PDF-document/README.md +++ b/Text Extraction/Extract-text-from-the-entire-PDF-document/.NET/Extract-text-from-the-entire-PDF-document/README.md @@ -4,11 +4,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce ## Steps to Extract Data from PDF Files -1. **Create a new project**: Begin by setting up a new C# Console Application project. +Step 1: **Create a new project**: Begin by setting up a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Add these namespaces in your **Program.cs** file: +Step 3: **Include necessary namespaces**: Add these namespaces in your **Program.cs** file: ```csharp using Syncfusion.Pdf; @@ -16,7 +16,7 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce using System.IO; ``` -4. **Extract data from PDF**: Use the following code in **Program.cs** to extract data from a PDF: +Step 4: **Extract data from PDF**: Use the following code in **Program.cs** to extract data from a PDF: ```csharp // Open an existing PDF document stream diff --git a/Watermark/Add-text-watermark-in-an-existing-PDF-document/.NET/Add-text-watermark-in-an-existing-PDF-document/README.md b/Watermark/Add-text-watermark-in-an-existing-PDF-document/.NET/Add-text-watermark-in-an-existing-PDF-document/README.md index 4cf49806..178db009 100644 --- a/Watermark/Add-text-watermark-in-an-existing-PDF-document/.NET/Add-text-watermark-in-an-existing-PDF-document/README.md +++ b/Watermark/Add-text-watermark-in-an-existing-PDF-document/.NET/Add-text-watermark-in-an-existing-PDF-document/README.md @@ -4,11 +4,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce ## Steps to Add a Watermark to a PDF File -1. **Create a new project**: Begin by setting up a new C# Console Application project. +Step 1: **Create a new project**: Begin by setting up a new C# Console Application project. -2. **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). +Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) package to your project from [NuGet.org](https://www.nuget.org/). -3. **Include necessary namespaces**: Include the following namespaces in your **Program.cs** file: +Step 3: **Include necessary namespaces**: Include the following namespaces in your **Program.cs** file: ```csharp using Syncfusion.Pdf.Graphics; @@ -17,7 +17,7 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce using Syncfusion.Drawing; ``` -4. **Add a watermark to the PDF**: Use the following code snippet in **Program.cs** to apply a watermark to an existing PDF: +Step 4: **Add a watermark to the PDF**: Use the following code snippet in **Program.cs** to apply a watermark to an existing PDF: ```csharp // Create FileStream object to read the input PDF file