原創|使用教程|編輯:郝浩|2013-03-19 13:50:28.000|閱讀 633 次
概述:從PDF文件中刪除指定注釋,需要調用[*Annotations*] 集合中的Delete方法,這個集合屬于注釋存在的頁面對象,Delete方法需要被刪除注釋的指數。之后,保存更新之后的PDF文檔。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
Aspose.Pdf從PDF文件中刪除指定注釋,需要調用[*Annotations*] 集合中的Delete方法,這個集合屬于注釋存在的頁面對象,Delete方法需要被刪除注釋的指數。之后,保存更新之后的PDF文檔。
下面是代碼示例:
C#
//open document Document pdfDocument = new Document("input.pdf"); //delete particular annotation pdfDocument.Pages[1].Annotations.Delete(1); //save updated document pdfDocument.Save("output.pdf");
VB.NET
'open document Dim pdfDocument As New Document("input.pdf") 'delete particular annotation pdfDocument.Pages(1).Annotations.Delete(1) 'save updated document pdfDocument.Save("output.pdf")
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網