• <menu id="w2i4a"></menu>
  • logo Aspose.PDF使用教程

    文檔首頁>>Aspose.PDF使用教程>>Aspose.Pdf使用教程:刪除PDF文件中的指定注釋

    Aspose.Pdf使用教程:刪除PDF文件中的指定注釋


    Aspose.Pdf從PDF文件中刪除指定注釋,需要調(diào)用[*Annotations*] 集合中的Delete方法,這個集合屬于注釋存在的頁面對象,Delete方法需要被刪除注釋的指數(shù)。之后,保存更新之后的PDF文檔。

    》》》下載Aspose.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")
    
    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();