TOP > AcroExch.PDDoc > GetPermanentID [...]
説明
PDFドキュメントのトレーラでID配列から永久的なID(最初の要素)を得ます。
形式
BSTR GetPermanentID();
引数
- 無し
戻り値
- 最大32文字の文字列。
動作するバージョン
Version | Adobe Acrobat | 備考 |
---|---|---|
4 | - | Acrobat 4.0 ※Windows 98SE + Excel 2000 |
5 | - | Acrobat 5.0.5 |
6 | - | Acrobat 6.0.3 Pro |
7 | - | Acrobat 7.0.9 Pro Acrobat 7.1.4 Pro |
8 | OK | Acrobat 8.1.2 Pro |
9 | - | Acrobat 9.3.2 Extended |
10 | - | Acrobat X (10.1.8) Extended |
11 | - | Acrobat XI (11.0.04) Extended |
- OK = 動作する。
- NO = 動作しない。 戻り値が0を返す。
- - = 未確認。
サンプル:ExcelのVBA
説明:PDFドキュメントのパーマネントIDを取得する
- F8キーでステップ実行しながら動作確認する。
- 事前に参照設定をする。
001 Sub AcroExch_PDDoc_GetPermanentID()
002
003 Dim objAcroPDDoc As New Acrobat.AcroPDDoc
004 Dim lRet As Long
005 Dim strRet As String
006
007 lRet = objAcroPDDoc.Open("E:\Test01.pdf")
008 'Acrobatアプリケーションを起動して、PDFドキュメントを表示する
009 strRet = objAcroPDDoc.GetPermanentID
010 Debug.Print "GetPermanentID=(" & strRet & ")"
011
012 'PDFドキュメントを閉じる
013 lRet = objAcroPDDoc.Close
014 Set objAcroPDDoc = Nothing
015
016 End Sub
Highlight:プログラミング言語のソースコードを構文で色分け (GUI編)
補足
- 当サイト管理者は、このPermanentIDの意味を理解していません。
動作確認環境
- WindowsXP Pro(+ SP3) +
Acrobat 8.1.2 Pro + Office 2003 + MicrosoftUpdate
< 戻る >