Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PDF Annotations

The Syncfusion [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) provides powerful tools to create, read, and edit PDF documents. This library also includes features to add, edit, and manage annotations in PDF files, enabling effective markup and collaboration.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) provides powerful tools to create, read, and edit PDF documents. This library also includes features to add, edit, and manage annotations in PDF files, enabling effective markup and collaboration.

## Steps to add annotations to a PDF

Expand All @@ -12,46 +12,46 @@ Follow these steps to add a popup annotation to a PDF file using the Syncfusion

3. **Include necessary namespaces**: Add the following namespaces to your `Program.cs` file:

```csharp
using Syncfusion.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Interactive;
using Syncfusion.Pdf.Parsing;
```
```csharp
using Syncfusion.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Interactive;
using Syncfusion.Pdf.Parsing;
```

4. **Code to add annotations**: Use the following code snippet in `Program.cs` to insert annotations into a 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))
{
// Access the first page of the PDF document
PdfPageBase loadedPage = loadedDocument.Pages[0];
// Create a new popup annotation
PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(new RectangleF(100, 100, 20, 20), "Comment");
// Set the icon for the popup annotation
popupAnnotation.Icon = PdfPopupIcon.Comment;
// Set the color for the popup annotation
popupAnnotation.Color = new PdfColor(Color.Yellow);
// Add the annotation to the page
loadedPage.Annotations.Add(popupAnnotation);
// Save the updated document
using (FileStream outputFileStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write))
{
loadedDocument.Save(outputFileStream);
}
}
}
```
```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))
{
// Access the first page of the PDF document
PdfPageBase loadedPage = loadedDocument.Pages[0];

// Create a new popup annotation
PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(new RectangleF(100, 100, 20, 20), "Comment");

// Set the icon for the popup annotation
popupAnnotation.Icon = PdfPopupIcon.Comment;

// Set the color for the popup annotation
popupAnnotation.Color = new PdfColor(Color.Yellow);

// Add the annotation to the page
loadedPage.Annotations.Add(popupAnnotation);

// Save the updated document
using (FileStream outputFileStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write))
{
loadedDocument.Save(outputFileStream);
}
}
}
```

For a complete working example, visit the [GitHub repository](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Annotation/Add-a-popup-annotation-to-an-existing-PDF-document/.NET).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Compressing PDF Files

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) allows users to seamlessly create, read, and edit PDF documents. Additionally, it offers features for compressing PDF files, which helps reduce their size without sacrificing quality—optimizing storage and enhancing the efficiency of file sharing.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) allows users to seamlessly create, read, and edit PDF documents. Additionally, it offers features for compressing PDF files, which helps reduce their size without sacrificing quality—optimizing storage and enhancing the efficiency of file sharing.

## Steps to compress PDF files

Expand All @@ -13,14 +13,14 @@ Step 2: **Install the NuGet package**: Add the [Syncfusion.Pdf.Net.Core](https:/
Step 3: **Add required namespaces**: Include the following namespaces in your `Program.cs` file:

```csharp
using Syncfusion.Pdf.Parsing;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Parsing;
using Syncfusion.Pdf;
```

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

```csharp
//Load the PDF document
//Load the PDF document
using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
{
// Create a new PdfCompressionOptions object
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Digital Signature

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) offers powerful capabilities for creating, reading, and editing PDF documents. One of its robust features is the ability to apply digital signatures to PDF files, ensuring document authenticity, integrity, and security.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) offers powerful capabilities for creating, reading, and editing PDF documents. One of its robust features is the ability to apply digital signatures to PDF files, ensuring document authenticity, integrity, and security.

## Steps to add a digital signature to PDF files

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PDF Forms

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) provides an easy way to create, read, and edit PDF documents. It also includes features for creating, filling, and editing PDF forms, which can include interactive form fields and form data.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) provides an easy way to create, read, and edit PDF documents. It also includes features for creating, filling, and editing PDF forms, which can include interactive form fields and form data.

## Steps to create PDF forms

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create PDF Document

The Syncfusion<sup>&reg;</sup> [.NET PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net/pdf-library) used to create PDF document from scratch and saving it to disk or stream. This library also offers functionality to merge, split, stamp, forms, and secure PDF files.
The [.NET PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) used to create PDF document from scratch and saving it to disk or stream. This library also offers functionality to merge, split, stamp, forms, and secure PDF files.

## Steps to create PDF document

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# HTML to PDF Conversion

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) allows you to create, read, and edit PDF documents. It also includes functionality for accurately converting HTML content into PDF files.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) allows you to create, read, and edit PDF documents. It also includes functionality for accurately converting HTML content into PDF files.

## Steps to convert HTML to PDF

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Converting Images to PDF

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) offers tools to create, read, and edit PDF documents. It also provides functionality to convert images into PDF files, making it easy to integrate image content into your PDF documents.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) offers tools to create, read, and edit PDF documents. It also provides functionality to convert images into PDF files, making it easy to integrate image content into your PDF documents.

## Steps to convert images to PDF

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Merging PDF Files

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) allows you to easily create, read, edit, and merge PDF documents. This library provides a straightforward way to combine multiple PDF files into a single document.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) allows you to easily create, read, edit, and merge PDF documents. This library provides a straightforward way to combine multiple PDF files into a single document.

## Steps to merge PDF files

Expand Down
2 changes: 1 addition & 1 deletion OCR/.NET/Perform-OCR-AWS-Textract/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Perform OCR with AWS Textract
The [Syncfusion&reg; .NET OCR library](https://www.syncfusion.com/document-processing/pdf-framework/net/pdf-library/ocr-process) supports external engines (AWS Textract) to process the OCR on Images and PDF documents.
The [.NET OCR library](https://www.syncfusion.com/document-sdk/net-pdf-library) supports external engines (AWS Textract) to process the OCR on Images and PDF documents.

## Steps to perform OCR with AWS Textract
1. Create a new .NET Console application project.
Expand Down
2 changes: 1 addition & 1 deletion OCR/.NET/Perform-OCR-Azure-Vision/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Perform OCR with Azure Vision

The [Syncfusion&reg; .NET OCR library](https://www.syncfusion.com/document-processing/pdf-framework/net/pdf-library/ocr-process) supports external engines (Azure Computer Vision) to process the OCR on images and PDF documents.
The [.NET OCR library](https://www.syncfusion.com/document-sdk/net-pdf-library) supports external engines (Azure Computer Vision) to process the OCR on images and PDF documents.

## Steps to perform OCR with Azure Computer Vision
1. Create a new .NET Console application project.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OCR on PDF Files

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) enables you to create, read, and edit PDF documents effortlessly. Additionally, the library provides OCR (Optical Character Recognition) capabilities, allowing you to extract text from scanned images within PDF files.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) enables you to create, read, and edit PDF documents effortlessly. Additionally, the library provides OCR (Optical Character Recognition) capabilities, allowing you to extract text from scanned images within PDF files.

## Steps to perform OCR on PDF files

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Convert PDF to PDF/A

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) provides tools for creating, reading, and editing PDF documents. Among its features, the library enables conversion of standard PDF files into the PDF/A format, suitable for long-term archiving and meeting archival standards.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) provides tools for creating, reading, and editing PDF documents. Among its features, the library enables conversion of standard PDF files into the PDF/A format, suitable for long-term archiving and meeting archival standards.

## Steps to convert a PDF to PDF/A

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Split PDF Files

The Syncfusion<sup>&reg;</sup> [.NET Core PDF library](https://www.syncfusion.com/document-processing/pdf-framework/net-core/pdf-library) allows for creating, reading, and editing PDF documents, as well as splitting them into separate files.
The [.NET Core PDF library](https://www.syncfusion.com/document-sdk/net-pdf-library) allows for creating, reading, and editing PDF documents, as well as splitting them into separate files.

## Steps to split PDF files

Expand Down
Loading
Loading