We’re pleased to announce the release of GroupDocs.Parser for .NET 26.7, available as of July 2026.

What’s new in this release

Key Summary Category
PARSERNET-2890 Implement the ability to extract annotations from PDF documents Improvement
PARSERNET-2891 Implement NuGet packages for .NET 6, .NET 8, .NET 10 Improvement

Public API changes

Implement the ability to extract annotations from PDF documents

Class AnnotationItem has been added to GroupDocs.Parser.Data namespace.
Property System.String Value has been added to GroupDocs.Parser.Data.AnnotationItem class.

Property Boolean Annotations has been added to GroupDocs.Parser.Options.Features class.
Property Boolean IncludeAnnotations has been added to GroupDocs.Parser.Options.TextOptions class.

Method System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations() has been added to GroupDocs.Parser.Parser class.
Method System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations(Int32) has been added to GroupDocs.Parser.Parser class.

Implement NuGet packages for .NET 6, .NET 8, .NET 10

Public API changes: None.

Code example

Extract annotations together with full text

using (Parser parser = new Parser("C:\\MyDocuments\\MyFile.pdf"))
{
    TextOptions options = new TextOptions()
    {
        IncludeAnnotations = true
    };
    using (TextReader reader = parser.GetText(options))
    {
        string text = reader.ReadToEnd();
        Console.WriteLine(text);
    }
}

Extract annotations separately

using (Parser parser = new Parser("C:\\MyDocuments\\MyFile.pdf"))
{
    IEnumerable<AnnotationItem> annotations = parser.GetAnnotations();
    foreach (AnnotationItem annotation in annotations)
    {
        Console.WriteLine(annotation.Value);
    }
}

How to get the update

NuGet

Install the router package — it will automatically select the appropriate package for your platform: