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

    文檔首頁>>Aspose.PDF使用教程>>Aspose.Pdf使用教程:為PDF文件添加swf注釋

    Aspose.Pdf使用教程:為PDF文件添加swf注釋


    Aspose.Pdf可以為PDF文件添加各種形式的注釋,包括將swf文件作為注釋添加進PDF文件中,這一操作可以通過簡單的代碼片段實現(xiàn)。

    》》》下載Aspose.Pdf試用版

    下面是代碼示例:

    C#

    //Open the PDF document
    Document doc = new Document("d:/pdftest/input.pdf");
    // get reference of the page to which you need to add the annotation
    Page page = doc.Pages[1];
    // create ScreenAnnotation object with .swf multimedia file as an argument
    ScreenAnnotation annotation = 
       new ScreenAnnotation(page, new Aspose.Pdf.Rectangle(0, 400, 600, 700),
       @"E:\First_Application_with_Aspose.Pdf_for_.NET.swf");
    // add the annotation to annotations collection of page
    page.Annotations.Add(annotation);
    // save the update PDF document with annotation
    doc.Save("d:/pdftest/Pdf_Filesample_with_SWF.pdf");
    
    

    VB.NET

    'Open the PDF document
    Dim doc As Document = New Document("d:/pdftest/input.pdf")
    ' get reference of the page to which you need to add the annotation
    Dim page As Page = doc.Pages(1)
    ' create ScreenAnnotation object with .swf multimedia file as an argument
    Dim annotation As ScreenAnnotation = 
        New ScreenAnnotation(page, New Aspose.Pdf.Rectangle(0, 400, 600, 700), 
       "E:\First_Application_with_Aspose.Pdf_for_.NET.swf")
    ' add the annotation to annotations collection of page
    page.Annotations.Add(annotation)
    ' save the update PDF document with annotation
    doc.Save("d:/pdftest/Pdf_Filesample_with_SWF.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); })();