Installation

Installation

Aspose.PDF FOSS for .NET is distributed as a NuGet package (Aspose.Pdf.Foss). Add it to any .NET 8+ project using the dotnet CLI or the NuGet Package Manager.


Prerequisites

RequirementDetail
Runtime.NET 8.0 or later
Package sourcenuget.org (public feed)
LicenseMIT — no key required

Install via dotnet CLI

Run the following command in your project directory:

dotnet add package Aspose.Pdf.Foss --version 0.1.0-alpha

Install via NuGet Package Manager (Visual Studio)

  1. Open Tools > NuGet Package Manager > Manage NuGet Packages for Solution.
  2. Search for Aspose.Pdf.Foss.
  3. Select version 0.1.0-alpha and click Install.

Namespace imports

After installation add the following using directives to your source files:

using Aspose.Pdf;

Use Aspose.Pdf for the core document API (Document, Page, Annotation, etc.). Sub-namespaces like Aspose.Pdf.Text, Aspose.Pdf.Annotations, and Aspose.Pdf.Forms provide additional types when needed.


Verifying the installation

Create a minimal console project and confirm the package resolves correctly:

using Aspose.Pdf;
var doc = Document.Create();
doc.Pages.Add();
doc.Save("output.pdf");
Console.WriteLine("Saved output.pdf");

If the project builds and runs without errors the package is installed correctly.


Package versions

ComponentValue
Package nameAspose.Pdf.Foss
Current version0.1.0-alpha
Target frameworksnet8.0
LicenseMIT

See Also