Siamo lieti di annunciare il rilascio di GroupDocs.Parser per .NET 26.7, disponibile a partire da luglio 2026.

What’s new in this release

Chiave Riepilogo Categoria
PARSERNET-2890 Implementare la possibilità di estrarre annotazioni da documenti PDF Miglioramento
PARSERNET-2891 Implementare pacchetti NuGet per .NET 6, .NET 8, .NET 10 Miglioramento

Public API changes

Implementare la possibilità di estrarre annotazioni da documenti PDF

La classe AnnotationItem è stata aggiunta allo spazio dei nomi GroupDocs.Parser.Data.
La proprietà System.String Value è stata aggiunta alla classe GroupDocs.Parser.Data.AnnotationItem.

La proprietà Boolean Annotations è stata aggiunta alla classe GroupDocs.Parser.Options.Features.
La proprietà Boolean IncludeAnnotations è stata aggiunta alla classe GroupDocs.Parser.Options.TextOptions.

Il metodo System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations() è stato aggiunto alla classe GroupDocs.Parser.Parser.
Il metodo System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations(Int32) è stato aggiunto alla classe GroupDocs.Parser.Parser.

Implementare pacchetti NuGet per .NET 6, .NET 8, .NET 10

Public API changes: Nessuna.

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

Installa il pacchetto router — selezionerà automaticamente il pacchetto appropriato per la tua piattaforma: