原創(chuàng)|使用教程|編輯:郝浩|2013-03-19 13:50:28.000|閱讀 633 次
概述:從PDF文件中刪除指定注釋,需要調(diào)用[*Annotations*] 集合中的Delete方法,這個集合屬于注釋存在的頁面對象,Delete方法需要被刪除注釋的指數(shù)。之后,保存更新之后的PDF文檔。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Aspose.Pdf從PDF文件中刪除指定注釋,需要調(diào)用[*Annotations*] 集合中的Delete方法,這個集合屬于注釋存在的頁面對象,Delete方法需要被刪除注釋的指數(shù)。之后,保存更新之后的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")
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)