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

Klucz Podsumowanie Kategoria
PARSERNET-2890 Implement the ability to extract annotations from PDF documents Ulepszenie
PARSERNET-2891 Implement NuGet packages for .NET 6, .NET 8, .NET 10 Ulepszenie

Public API changes

Implement the ability to extract annotations from PDF documents

Do przestrzeni nazw GroupDocs.Parser.Data została dodana klasa AnnotationItem.
Do klasy GroupDocs.Parser.Data.AnnotationItem została dodana właściwość System.String Value.

Do klasy GroupDocs.Parser.Options.Features została dodana właściwość Boolean Annotations.
Do klasy GroupDocs.Parser.Options.TextOptions została dodana właściwość Boolean IncludeAnnotations.

Do klasy GroupDocs.Parser.Parser została dodana metoda System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations().
Do klasy GroupDocs.Parser.Parser została dodana metoda System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations(Int32).

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

Zmiany w publicznym API: Brak.

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

Zainstaluj pakiet router — automatycznie wybierze odpowiedni pakiet dla Twojej platformy: