Skip to content

Commit ce8fa2e

Browse files
committed
927524_ft Resolved the FT readme alignment issue and output issues.
1 parent 02f336b commit ce8fa2e

File tree

19 files changed

+100
-88
lines changed
  • Compression/Compress-the-images-in-an-existing-PDF-document/.NET/Compress-the-images-in-an-existing-PDF-document
  • Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document
  • Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document
  • HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document
  • Images/Convert_Image_to_PDF/.NET/Convert_Image_to_PDF
  • Merge PDFs/Merge-multiple-documents-from-stream/.NET/Merge-multiple-documents-from-stream
  • OCR/.NET/Perform-OCR-for-the-entire-PDF-document/Perform-OCR-for-the-entire-PDF-document
  • PDF Conformance/Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document
  • Pages/Splitting-PDF-file-into-individual-pages/.NET/Splitting-PDF-file-into-individual-pages
  • Redaction/Removing-sensitive-content-from-the-PDF-document/.NET/Removing-sensitive-content-from-the-PDF-document
  • Security/Protect-an-existing-PDF-document/.NET/Protect-an-existing-PDF-document
  • Table/PdfGrid/Create-table-from-data-source-in-a-PDF/.NET/Create-table-from-data-source-in-a-PDF
  • Tagged PDF/Add-tag-for-the-text-element-in-PDF-document/.NET/Add-tag-for-the-text-element-in-PDF-document
  • Text Extraction/Extract-text-from-the-entire-PDF-document/.NET/Extract-text-from-the-entire-PDF-document
  • Watermark/Add-text-watermark-in-an-existing-PDF-document/.NET/Add-text-watermark-in-an-existing-PDF-document

19 files changed

+100
-88
lines changed

Compression/Compress-the-images-in-an-existing-PDF-document/.NET/Compress-the-images-in-an-existing-PDF-document/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce
66

77
Follow these steps to compress PDF files using the Syncfusion library:
88

9-
1. **Create a new project**: Set up a new C# Console Application project.
9+
Step 1: **Create a new project**: Set up a new C# Console Application project.
1010

11-
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/).
11+
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/).
1212

13-
3. **Add required namespaces**: Include the following namespaces in your `Program.cs` file:
13+
Step 3: **Add required namespaces**: Include the following namespaces in your `Program.cs` file:
1414

1515
```csharp
1616
using Syncfusion.Pdf.Parsing;
1717
using Syncfusion.Pdf;
1818
```
1919

20-
4. **Implement PDF compression**: Use the following code snippet in `Program.cs` to compress PDF files:
20+
Step 4: **Implement PDF compression**: Use the following code snippet in `Program.cs` to compress PDF files:
2121

2222
```csharp
2323
// Open a file stream to read the input PDF file
Loading

Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
using Syncfusion.Drawing;
44
using Syncfusion.Pdf;
5+
using Syncfusion.Pdf.Graphics;
56
using Syncfusion.Pdf.Interactive;
67
using Syncfusion.Pdf.Parsing;
78
using Syncfusion.Pdf.Security;
@@ -29,7 +30,7 @@
2930
signature.Reason = "I am the author of this document.";
3031

3132
// Load the image for the signature field
32-
FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/signature.png"), FileMode.Open, FileAccess.Read);
33+
FileStream imageStream = new FileStream(Path.GetFullPath(@"..Data/signature.png"), FileMode.Open, FileAccess.Read);
3334
PdfBitmap signatureImage = new PdfBitmap(imageStream);
3435

3536
// Draw the image on the signature field

Digital Signature/Add-a-digital-signature-to-an-existing-document/.NET/Add-a-digital-signature-to-an-existing-document/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce
66

77
Follow these steps to digitally sign PDF files using the Syncfusion library:
88

9-
1. **Create a new project**: Start by creating a new C# Console Application project.
9+
Step 1: **Create a new project**: Start by creating a new C# Console Application project.
1010

11-
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/).
11+
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/).
1212

13-
3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
13+
Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
1414

1515
```csharp
1616
using Syncfusion.Pdf;
1717
using Syncfusion.Pdf.Graphics;
1818
using Syncfusion.Pdf.Parsing;
1919
using Syncfusion.Pdf.Security;
2020
using Syncfusion.Drawing;
21+
using Syncfusion.Pdf.Interactive;
2122
```
2223

23-
4. **Add digital signature code**: Use the following code snippet in `Program.cs` to add a digital signature to a PDF file:
24+
Step 4: **Add digital signature code**: Use the following code snippet in `Program.cs` to add a digital signature to a PDF file:
2425

2526
```csharp
2627
// Open the existing PDF document as a stream

Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce
66

77
Follow these steps to create a PDF form with a textbox field:
88

9-
1. **Create a new project**: Start by creating a new C# Console Application project.
9+
Step 1: **Create a new project**: Start by creating a new C# Console Application project.
1010

11-
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/).
11+
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/).
1212

13-
3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
13+
Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
1414

1515
```csharp
1616
using Syncfusion.Drawing;
@@ -19,7 +19,7 @@ Follow these steps to create a PDF form with a textbox field:
1919
using Syncfusion.Pdf.Interactive;
2020
```
2121

22-
4. **Create PDF forms**: Implement the following code in `Program.cs` to add a textbox field to a PDF document:
22+
Step 4: **Create PDF forms**: Implement the following code in `Program.cs` to add a textbox field to a PDF document:
2323

2424
```csharp
2525
// Create a new PDF document

HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66

77
//Initialize HTML to PDF converter.
88
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
9+
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
10+
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
11+
{
12+
//Set command line arugument to run without the sandbox.
13+
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
14+
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
15+
}
16+
//Assign Blink converter settings to HTML converter.
17+
htmlConverter.ConverterSettings = blinkConverterSettings;
918
//Convert URL to PDF document.
1019
PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com");
1120
//Create file stream.

HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce
66

77
Follow these steps to convert HTML content into a PDF file using the Syncfusion library:
88

9-
1. **Create a new project**: Initialize a new C# Console Application project.
9+
Step 1: **Create a new project**: Initialize a new C# Console Application project.
1010

11-
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/).
11+
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/).
1212

13-
3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
13+
Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
1414

1515
```csharp
1616
using Syncfusion.HtmlConverter;
1717
using Syncfusion.Pdf;
1818
using System.Runtime.InteropServices;
1919
```
2020

21-
4. **Convert HTML to PDF**: Implement the following code in `Program.cs` to convert a website URL to a PDF file:
21+
Step 4: **Convert HTML to PDF**: Implement the following code in `Program.cs` to convert a website URL to a PDF file:
2222

2323
```csharp
2424
// Initialize the HTML to PDF converter

Images/Convert_Image_to_PDF/.NET/Convert_Image_to_PDF/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce
66

77
Follow these steps to convert an image into a PDF file using the Syncfusion library:
88

9-
1. **Create a new project**: Start a new C# Console Application project.
9+
Step 1: **Create a new project**: Start a new C# Console Application project.
1010

11-
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/).
11+
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/).
1212

13-
3. **Include necessary namespaces**: Add the following namespace in your `Program.cs` file:
13+
Step 3: **Include necessary namespaces**: Add the following namespace in your `Program.cs` file:
1414

1515
```csharp
1616
using Syncfusion.Pdf;
1717
```
1818

19-
4. **Convert image to PDF**: Implement the following code in `Program.cs` to convert an image into a PDF file:
19+
Step 4: **Convert image to PDF**: Implement the following code in `Program.cs` to convert an image into a PDF file:
2020

2121
```csharp
2222
// Create an instance of the ImageToPdfConverter class

Merge PDFs/Merge-multiple-documents-from-stream/.NET/Merge-multiple-documents-from-stream/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce
66

77
Follow these steps to merge PDF files using the Syncfusion library:
88

9-
1. **Create a new project**: Start by creating a new C# Console Application project.
9+
Step 1: **Create a new project**: Start by creating a new C# Console Application project.
1010

11-
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/).
11+
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/).
1212

13-
3. **Include required namespaces**: Add the following namespace in your `Program.cs` file:
13+
Step 3: **Include required namespaces**: Add the following namespace in your `Program.cs` file:
1414

1515
```csharp
1616
using Syncfusion.Pdf;
1717
```
1818

19-
4. **Merge PDF files**: Use the following code snippet in `Program.cs` to merge PDF files:
19+
Step 4: **Merge PDF files**: Use the following code snippet in `Program.cs` to merge PDF files:
2020

2121
```csharp
2222
// Create a PDF document for the final merged output

OCR/.NET/Perform-OCR-for-the-entire-PDF-document/Perform-OCR-for-the-entire-PDF-document/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-proce
66

77
Follow these steps to apply OCR to PDF files using the Syncfusion library:
88

9-
1. **Create a new project**: Set up a new C# Console Application project.
9+
Step 1: **Create a new project**: Set up a new C# Console Application project.
1010

11-
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/).
11+
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/).
1212

13-
3. **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
13+
Step 3: **Include necessary namespaces**: Add the following namespaces in your `Program.cs` file:
1414

1515
```csharp
1616
using Syncfusion.OCRProcessor;
1717
using Syncfusion.Pdf.Parsing;
1818
```
1919

20-
4. **Implement OCR Processing**: Use the following code snippet in `Program.cs` to perform OCR on a PDF document:
20+
Step 4: **Implement OCR Processing**: Use the following code snippet in `Program.cs` to perform OCR on a PDF document:
2121

2222
```csharp
2323
// Initialize the OCR processor

0 commit comments

Comments
 (0)