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
| Requirement | Detail |
|---|---|
| Runtime | .NET 8.0 or later |
| Package source | nuget.org (public feed) |
| License | MIT — 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-alphaInstall via NuGet Package Manager (Visual Studio)
- Open Tools > NuGet Package Manager > Manage NuGet Packages for Solution.
- Search for
Aspose.Pdf.Foss. - Select version
0.1.0-alphaand 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
| Component | Value |
|---|---|
| Package name | Aspose.Pdf.Foss |
| Current version | 0.1.0-alpha |
| Target frameworks | net8.0 |
| License | MIT |