GroupDocs.Parser for .NET 26.7 のリリースをお知らせいたします。リリース日は 2026年7月 です。

このリリースの新機能

キー 概要 カテゴリ
PARSERNET-2890 PDF ドキュメントから注釈を抽出する機能を実装 改善
PARSERNET-2891 .NET 6、.NET 8、.NET 10 用の NuGet パッケージを実装 改善

パブリック API の変更

PDF ドキュメントから注釈を抽出する機能を実装

クラス AnnotationItemGroupDocs.Parser.Data 名前空間に追加されました。
プロパティ System.String ValueGroupDocs.Parser.Data.AnnotationItem クラスに追加されました。

プロパティ Boolean AnnotationsGroupDocs.Parser.Options.Features クラスに追加されました。
プロパティ Boolean IncludeAnnotationsGroupDocs.Parser.Options.TextOptions クラスに追加されました。

メソッド System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations()GroupDocs.Parser.Parser クラスに追加されました。
メソッド System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations(Int32)GroupDocs.Parser.Parser クラスに追加されました。

.NET 6、.NET 8、.NET 10 用の NuGet パッケージを実装

パブリック API の変更: なし。

コード例

注釈と全文テキストの抽出

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);
    }
}

注釈のみの抽出

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

更新の取得方法

NuGet

ルーター パッケージをインストールしてください — プラットフォームに適したパッケージが自動的に選択されます。