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

Chave Resumo Categoria
PARSERNET-2890 Implementar a capacidade de extrair anotações de documentos PDF Melhoria
PARSERNET-2891 Implementar pacotes NuGet para .NET 6, .NET 8, .NET 10 Melhoria

Public API changes

Implementar a capacidade de extrair anotações de documentos PDF

A classe AnnotationItem foi adicionada ao namespace GroupDocs.Parser.Data.
A propriedade System.String Value foi adicionada à classe GroupDocs.Parser.Data.AnnotationItem.

A propriedade Boolean Annotations foi adicionada à classe GroupDocs.Parser.Options.Features.
A propriedade Boolean IncludeAnnotations foi adicionada à classe GroupDocs.Parser.Options.TextOptions.

O método System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations() foi adicionado à classe GroupDocs.Parser.Parser.
O método System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations(Int32) foi adicionado à classe GroupDocs.Parser.Parser.

Implementar pacotes NuGet para .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

Instale o pacote roteador — ele selecionará automaticamente o pacote apropriado para sua plataforma: