xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 6.01M
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2020-12-14
  • 語言: C#
  • 標(biāo)簽: pdf??Spire??書簽??C#??

資源簡介

C#操作PDF,采用Spire.Pdf第三方dll,功能強(qiáng)大,方法可讀性強(qiáng),本示例代碼展示了使用該dll對pdf文件書簽的管理,獲取書簽列表,刪除,新增書簽(可定位),內(nèi)含測試pdf數(shù)據(jù)(free版本限制使用10頁)

Spire.Pdf.PdfDocument pdfd = newSpire.Pdf.PdfDocument();//PDF文檔基礎(chǔ)類,幾種重載方式,可以在實例化時輸入路徑
pdfd.LoadFromFile(path);//也可以采用load方法
 
Spire.Pdf.Bookmarks.PdfBookmarkCollection pcollotion = pdfd.Bookmarks;//獲取pdf的書簽列表
pcollotion.Clear();//清除索引
 
Spire.Pdf.PdfPageBasepage = pdfd.Pages[2];//獲取page頁面第三頁
 
Spire.Pdf.General.PdfDestinationpartBookmarkDest = new Spire.Pdf.General.PdfDestination(page, new PointF(0,0));//建立在該頁的定位點
Spire.Pdf.Bookmarks.PdfBookmark ppmark = pdfd.Bookmarks.Add(name);//添加書簽的tile
ppmark.Action = newSpire.Pdf.Actions.PdfGoToAction(partBookmarkDest);//將書簽所標(biāo)記的頁面鏈接掛接在該書簽下,這樣點擊書簽后可定位到該頁,(0,0)默認(rèn)為這頁面的頭部
                  
pdfd.SaveToFile(path);//保存
pdfd.Dispose();//釋放


資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;

namespace?AEframe
{
????public?partial?class?Pdfindex?:?Form
????{
????????public?Pdfindex()
????????{
????????????InitializeComponent();
????????}

????????///?
????????///?打開pdf
????????///?

????????///?
????????///?
????????private?void?OpenPDFbutton_Click(object?sender?EventArgs?e)
????????{
????????????this.textBoxPath.Text?=?IOForm.OpenfileHelper(“pdf“);
????????}

????????///?
????????///?執(zhí)行
????????///?

????????///?
????????///?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-06-28?08:59??PDF索引Spirepdfdll\
?????文件???????86528??2017-06-28?08:57??PDF索引Spirepdfdll\AEframe.suo
?????目錄???????????0??2017-06-28?08:57??PDF索引Spirepdfdll\PDFindex\
?????文件????????1361??2017-06-28?08:33??PDF索引Spirepdfdll\PDFindex\App.config
?????目錄???????????0??2017-06-28?08:33??PDF索引Spirepdfdll\PDFindex\Config\
?????文件?????????931??2017-05-16?14:12??PDF索引Spirepdfdll\PDFindex\Config\LogHelper.cs
?????目錄???????????0??2017-06-28?08:33??PDF索引Spirepdfdll\PDFindex\Helper\
?????目錄???????????0??2017-06-28?08:33??PDF索引Spirepdfdll\PDFindex\Helper\IOForm\
?????文件????????1901??2017-05-16?15:38??PDF索引Spirepdfdll\PDFindex\Helper\IOForm\IOFormHelper.cs
?????文件????????6561??2017-06-28?08:49??PDF索引Spirepdfdll\PDFindex\PDFindex.csproj
?????文件?????????478??2017-05-16?10:22??PDF索引Spirepdfdll\PDFindex\PDFindex.csproj.user
?????文件????????4266??2017-06-28?08:43??PDF索引Spirepdfdll\PDFindex\Pdfindex.Designer.cs
?????文件????????4678??2017-06-28?08:58??PDF索引Spirepdfdll\PDFindex\Pdfindex.cs
?????文件???????28749??2017-06-28?08:57??PDF索引Spirepdfdll\PDFindex\Pdfindex.resx
?????文件?????????493??2017-06-28?08:34??PDF索引Spirepdfdll\PDFindex\Program.cs
?????目錄???????????0??2017-06-28?08:30??PDF索引Spirepdfdll\PDFindex\Properties\
?????文件????????1358??2016-11-14?10:29??PDF索引Spirepdfdll\PDFindex\Properties\AssemblyInfo.cs
?????文件????????2852??2017-05-16?10:21??PDF索引Spirepdfdll\PDFindex\Properties\Resources.Designer.cs
?????文件????????5612??2016-11-14?10:29??PDF索引Spirepdfdll\PDFindex\Properties\Resources.resx
?????文件????????1105??2017-05-16?10:21??PDF索引Spirepdfdll\PDFindex\Properties\Settings.Designer.cs
?????文件?????????249??2016-11-14?10:29??PDF索引Spirepdfdll\PDFindex\Properties\Settings.settings
?????文件?????????686??2017-06-28?09:03??PDF索引Spirepdfdll\PDFindex\Properties\licenses.licx
?????文件?????????261??2017-05-18?08:38??PDF索引Spirepdfdll\PDFindex\Properties\licenses.licx.bak
?????目錄???????????0??2017-06-28?08:33??PDF索引Spirepdfdll\PDFindex\bin\
?????目錄???????????0??2017-06-28?09:03??PDF索引Spirepdfdll\PDFindex\bin\Debug\
?????文件???????28672??2017-06-28?09:03??PDF索引Spirepdfdll\PDFindex\bin\Debug\AEframe.exe
?????文件????????1361??2017-06-28?08:33??PDF索引Spirepdfdll\PDFindex\bin\Debug\AEframe.exe.config
?????文件???????38400??2017-06-28?09:03??PDF索引Spirepdfdll\PDFindex\bin\Debug\AEframe.pdb
?????文件???????11600??2017-06-28?09:03??PDF索引Spirepdfdll\PDFindex\bin\Debug\AEframe.vshost.exe
?????文件????????1361??2017-06-28?08:33??PDF索引Spirepdfdll\PDFindex\bin\Debug\AEframe.vshost.exe.config
?????文件?????????490??2016-07-16?19:44??PDF索引Spirepdfdll\PDFindex\bin\Debug\AEframe.vshost.exe.manifest
............此處省略55個文件信息

評論

共有 條評論