原創|其它|編輯:郝浩|2013-01-22 14:36:18.000|閱讀 304 次
概述:使用專業PDF處理控件activePDF Toolkit可以提供文檔信息的檢索功能,為用戶檢索文檔信息提供方便快捷的新途徑。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
使用專業PDF處理控件activePDF Toolkit可以提供文檔信息的檢索功能,為用戶檢索文檔信息提供方便快捷的新途徑。
示例代碼如下:
// Copyright (c) 2013 activePDF, Inc. // Example created 01/21/13 // Make sure to add the activePDF product .NET DLL(s) to your application. // .NET DLL(s) are typically found in the products 'bin' folder. class Examples { public void main() { string strPath; string strAuthor; string strTitle; string strSubject; string strKeywords; string strProducer; string strCreator; string strCreateDate; string strModDate; strPath = AppDomain.CurrentDomain.BaseDirectory; // Instantiate Object APToolkitNET.Toolkit oTK = new APToolkitNET.Toolkit(); // Specify the file to retrieve information about oTK.GetPDFInfo(strPath + "PDF.pdf"); // Retrieve various information about the PDF strAuthor = oTK.Author; strTitle = oTK.Title; strSubject = oTK.Subject; strKeywords = oTK.Keywords; strProducer = oTK.Producer; strCreator = oTK.Creator; strCreateDate = oTK.CreateDate; strModDate = oTK.ModDate; // Close the PDF as it's no longer needed oTK.CloseInputFile(); // Release Object oTK = null; // Process Complete System.Diagnostics.Debug.WriteLine("Done!"); } }
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網