永利最大(官方)网站

logo Aspose.PDF使用教程
文档永利最大(官方)网站>>Aspose.PDF使用教程>>Aspose.Pdf使用教程:从PDF文件中获取注释

Aspose.Pdf使用教程:从PDF文件中获取注释


PDF每页的注释都可以在该页的注释集合中找到,如果要找到某一个特定的注释,就必须先为该注释制定一个索引。

》》》下载Aspose.Pdf试用版

下面的代码片段显示了你如何获得一个特定的注释和它的属性:

C#

//open document
Document pdfDocument = new Document("input.pdf");

//get particular annotation
TextAnnotation textAnnotation = (TextAnnotation)pdfDocument.Pages[1].Annotations[1];
//get annotation properties
Console.WriteLine("Title : {0} ", textAnnotation.Title);
Console.WriteLine("Subject : {0} ", textAnnotation.Subject);
Console.WriteLine("Contents : {0} ", textAnnotation.Contents);

VB.NET

'open document
Dim pdfDocument As New Document("input.pdf")

'get particular annotation
Dim textAnnotation As TextAnnotation = CType(pdfDocument.Pages(1).Annotations(1), TextAnnotation)
'get annotation properties
Console.WriteLine("Title : {0} ", textAnnotation.Title)
Console.WriteLine("Subject : {0} ", textAnnotation.Subject)
Console.WriteLine("Contents : {0} ", textAnnotation.Contents)
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP
PM娱乐城网络现金网站(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) PM娱乐城最大(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 永利外围最新(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 网络权威朗驰娱乐大全(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 永利真人网上足球(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 利记最火十大网(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) boyu·博鱼权威网络足球(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) PM娱乐城网上足球(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新)