우리는 GroupDocs.Parser for .NET 26.7의 릴리스를 발표하게 되어 기쁩니다. 이 릴리스는 2026년 7월부터 사용할 수 있습니다.
이번 릴리스의 새로운 기능
| Key | Summary | Category |
|---|---|---|
| PARSERNET-2890 | PDF 문서에서 주석을 추출하는 기능 구현 | 개선 |
| PARSERNET-2891 | .NET 6, .NET 8, .NET 10용 NuGet 패키지 구현 | 개선 |
Public API changes
PDF 문서에서 주석을 추출하는 기능 구현
Class AnnotationItem이 GroupDocs.Parser.Data 네임스페이스에 추가되었습니다.
Property System.String Value가 GroupDocs.Parser.Data.AnnotationItem 클래스에 추가되었습니다.
Property Boolean Annotations가 GroupDocs.Parser.Options.Features 클래스에 추가되었습니다.
Property Boolean IncludeAnnotations가 GroupDocs.Parser.Options.TextOptions 클래스에 추가되었습니다.
Method **System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations()**가 GroupDocs.Parser.Parser 클래스에 추가되었습니다.
Method **System.Collections.Generic.IEnumerable<GroupDocs.Parser.Data.AnnotationItem> GetAnnotations(Int32)**가 GroupDocs.Parser.Parser 클래스에 추가되었습니다.
.NET 6, .NET 8, .NET 10용 NuGet 패키지 구현
Public API changes: 없음.
Code example
전체 텍스트와 함께 주석 추출
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
- .NET Framework 4.6.2 package
- .NET Standard 2.1 package
- .NET 6 package
- .NET 8 package
- .NET 10 package
라우터 패키지를 설치하십시오 — 플랫폼에 맞는 패키지를 자동으로 선택합니다: